/* ========================
   Who We Serve Page - Building Blocks Pyramid
======================== */
.wws-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #0f0f0f;
  color: #f0f0f0;
  font-family: 'Inter', sans-serif;
}

/* ========================
   Hero Section
======================== */
.wws-hero {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  padding: clamp(60px, 8vw, 50px) clamp(5vw, 40px, 6vw);
  text-align: center;
}

.wws-hero h1 {
  color: #c9aa71;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

.wws-hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #ccc;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* ========================
   Building Blocks Pyramid
======================== */
.wws-pyramid {
  padding: 60px 5vw 100px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wws-pyramid-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Foundation label - wide underline */
.wws-pyramid-foundation {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #555;
  margin-bottom: 35px;
  padding-bottom: 18px;
  border-bottom: 1px solid #333;
  width: 70%;
  max-width: 900px;
  text-align: center;
  transition: color 0.4s ease, border-color 0.4s ease;
}

/* Active state - when scrolled into view */
.wws-pyramid-foundation.active,
.wws-pyramid-tier.visible .wws-pyramid-foundation {
  color: #c9aa71;
  border-color: #c9aa71;
}

/* Label styling - narrower for upper tiers */
.wws-pyramid-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #777;
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2a2a2a;
  width: 45%;
  max-width: 500px;
  text-align: center;
  transition: color 0.4s ease, border-color 0.4s ease;
}

/* Active state for labels */
.wws-pyramid-label.active,
.wws-pyramid-tier.visible .wws-pyramid-label {
  color: #c9aa71;
  border-color: #c9aa71;
}

/* Cards container */
.wws-pyramid-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

/* Building block card - matching rest of site */
.wws-pyramid-card {
  background: #1a1a1a;
  padding: 32px 28px;
  border-radius: 16px;
  text-align: left;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wws-pyramid-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #c9aa71, #e6c487);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wws-pyramid-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(201, 170, 113, 0.2);
  background: #1f1f1f;
}

.wws-pyramid-card:hover::before {
  transform: scaleX(1);
}

/* Foundation tier - 3 cards, widest */
.wws-pyramid-tier-foundation {
  width: 100%;
  z-index: 3;
}

.wws-pyramid-tier-middle {
  width: 100%;
  margin-top: 60px;
  z-index: 2;
}

.wws-pyramid-tier-top {
  width: 100%;
  margin-top: 60px;
  z-index: 1;
}

.wws-pyramid-tier-foundation .wws-pyramid-cards {
  justify-content: center;
  gap: 24px;
}

.wws-pyramid-tier-foundation .wws-pyramid-card {
  max-width: 320px;
  flex: 0 1 320px;
}

/* Middle tier - 2 cards, narrower */
.wws-pyramid-tier-middle .wws-pyramid-cards {
  justify-content: center;
  width: 70%;
  max-width: 720px;
}

.wws-pyramid-tier-middle .wws-pyramid-card {
  max-width: 400px;
  flex: 0 1 400px;
}

/* Top tier - 1 card, narrowest */
.wws-pyramid-tier-top .wws-pyramid-cards {
  justify-content: center;
  width: 45%;
  max-width: 480px;
}

.wws-pyramid-tier-top .wws-pyramid-card {
  max-width: 480px;
  flex: 0 1 480px;
}

/* Card icon */
.wws-pyramid-icon {
  width: 56px;
  height: 56px;
  background: rgba(201, 170, 113, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.wws-pyramid-card:hover .wws-pyramid-icon {
  background: rgba(201, 170, 113, 0.2);
  transform: scale(1.05);
}

.wws-pyramid-icon svg {
  width: 28px;
  height: 28px;
  fill: #c9aa71;
  transition: fill 0.3s ease;
}

.wws-pyramid-card:hover .wws-pyramid-icon svg {
  fill: #fff;
}

/* Card content - white text for dark cards */
.wws-pyramid-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.wws-pyramid-card p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.wws-pyramid-card ul {
  margin: 0 0 20px 0;
  padding-left: 18px;
}

.wws-pyramid-card li {
  font-size: 0.85rem;
  color: #bbb;
  line-height: 1.6;
  margin-bottom: 6px;
}

/* ========================
   Why Work With Us Section
======================== */
.wws-why {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.wws-why h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #c9aa71;
  margin-bottom: 40px;
}

.wws-why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.wws-why-card {
  background: #1a1a1a;
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.35s ease;
  border: 1px solid #2a2a2a;
  flex: 1 1 280px;
  max-width: 350px;
  min-width: 250px;
}

.wws-why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 170, 113, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.wws-why-card h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 600;
}

.wws-why-card p {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.6;
  margin: 0;
}

/* ========================
   CTA Section
======================== */
.wws-cta {
  text-align: center;
  padding: 100px 60px;
  margin-bottom: 80px;
  background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
  margin-top: 60px;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}

.wws-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #c9aa71;
  margin-bottom: 16px;
}

.wws-cta p {
  font-size: 1.1rem;
  color: #ccc;
  max-width: 500px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hs-service-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(180deg, #c9aa71 0%, #b8956a 100%);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 0 #8a6f4a;
}

.hs-service-btn:hover {
  background: linear-gradient(180deg, #e6c487 0%, #c9aa71 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #8a6f4a;
}

/* ========================
   Responsive - Maintain pyramid at all sizes
======================== */
@media (max-width: 1100px) {
  .wws-pyramid-tier-middle .wws-pyramid-cards {
    width: 70%;
  }
  
  .wws-pyramid-tier-top .wws-pyramid-cards {
    width: 50%;
  }
}

@media (max-width: 900px) {
  .wws-pyramid-foundation {
    width: 80%;
  }
  
  .wws-pyramid-label {
    width: 55%;
  }
  
  .wws-pyramid-tier-foundation .wws-pyramid-card {
    max-width: 280px;
    flex: 0 1 280px;
  }
  
  .wws-pyramid-tier-middle .wws-pyramid-card,
  .wws-pyramid-tier-top .wws-pyramid-card {
    max-width: 320px;
    flex: 0 1 320px;
  }
}

@media (max-width: 768px) {
  /* Keep pyramid shape - just scale down */
  .wws-pyramid {
    padding: 40px 10px 80px;
  }
  
  /* Foundation - 3 cards in a row */
  .wws-pyramid-tier-foundation .wws-pyramid-cards {
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
  }
  
  .wws-pyramid-tier-foundation .wws-pyramid-card {
    flex: 0 1 32%;
    max-width: 32%;
    min-width: 100px;
    padding: 20px 12px;
  }
  
  .wws-pyramid-tier-foundation .wws-pyramid-card .wws-pyramid-icon {
    width: 36px;
    height: 36px;
  }
  
  .wws-pyramid-tier-foundation .wws-pyramid-card .wws-pyramid-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .wws-pyramid-tier-foundation .wws-pyramid-card h3 {
    font-size: 0.8rem;
  }
  
  .wws-pyramid-tier-foundation .wws-pyramid-card p {
    font-size: 0.7rem;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  
  .wws-pyramid-tier-foundation .wws-pyramid-card ul {
    padding-left: 12px;
  }
  
  .wws-pyramid-tier-foundation .wws-pyramid-card li {
    font-size: 0.6rem;
    line-height: 1.2;
    margin-bottom: 2px;
  }
  
  /* Middle - 2 cards */
  .wws-pyramid-tier-middle {
    margin-top: 40px;
    padding-top: 40px;
  }
  
  .wws-pyramid-tier-middle .wws-pyramid-cards {
    gap: 10px;
    width: 70%;
  }
  
  .wws-pyramid-tier-middle .wws-pyramid-card {
    flex: 0 1 48%;
    max-width: 48%;
    padding: 22px 14px;
  }
  
  .wws-pyramid-tier-middle .wws-pyramid-card h3 {
    font-size: 0.9rem;
  }
  
  .wws-pyramid-tier-middle .wws-pyramid-card p {
    font-size: 0.75rem;
  }
  
  .wws-pyramid-tier-middle .wws-pyramid-card ul {
    padding-left: 14px;
  }
  
  .wws-pyramid-tier-middle .wws-pyramid-card li {
    font-size: 0.65rem;
  }
  
  /* Top - 1 card */
  .wws-pyramid-tier-top {
    margin-top: 40px;
    padding-top: 40px;
  }
  
  .wws-pyramid-tier-top .wws-pyramid-cards {
    width: 50%;
  }
  
  .wws-pyramid-tier-top .wws-pyramid-card {
    max-width: 100%;
    padding: 24px 18px;
  }
  
  .wws-pyramid-tier-top .wws-pyramid-card h3 {
    font-size: 1rem;
  }
  
  .wws-pyramid-tier-top .wws-pyramid-card p {
    font-size: 0.8rem;
  }
  
  .wws-pyramid-tier-top .wws-pyramid-card ul {
    padding-left: 16px;
  }
  
  .wws-pyramid-tier-top .wws-pyramid-card li {
    font-size: 0.7rem;
  }
  
  /* Labels */
  .wws-pyramid-foundation,
  .wws-pyramid-label {
    width: 80%;
    font-size: 0.65rem;
    letter-spacing: 2px;
  }
  
  .wws-pyramid-foundation {
    margin-bottom: 24px;
    padding-bottom: 12px;
  }
  
  .wws-pyramid-label {
    margin-bottom: 20px;
    padding-bottom: 10px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .wws-pyramid-card, .wws-why-card { 
    transition: none; 
  }
  .wws-pyramid-card:hover, .wws-why-card:hover { 
    transform: none; 
  }
}