/* ── What We Do page ── */

.wwd-page {
  background: var(--cream);
}

.wwd-main {
  padding: 0 12px 40px;
}

/* ── Hero ── */
.wwd-hero {
  position: relative;
  min-height: 92vh;
  padding: 24px 16px 80px;
  background: linear-gradient(180deg, #6c7a3f82 0%, #9c9a7485 100%),
    url(../assets/wwd-banner.png) center / cover no-repeat;
  color: #fff;
  animation: hero-in 0.9s var(--ease) both;
  margin: 20px 16px;
  border-radius: 20px;
}

.wwd-hero-overlay {
  position: absolute;
  inset: 0;
  background: #00000080;
  border-radius: 20px;
  pointer-events: none;
}

.wwd-hero-inner {
  position: relative;
  z-index: 2;
  min-height: calc(92vh - 104px);
  display: flex;
  flex-direction: column;
}

.wwd-head .hero-nav-list {
  background: var(--cream);
}

.wwd-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 135px 20px 100px;
  max-width: 820px;
  margin: 0 auto;
}

.wwd-hero-title {
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.wwd-hero-lead {
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 36px;
  max-width: 680px;
}

.btn-wwd-explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--olive);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-wwd-explore:hover {
  filter: brightness(1.05);
  color: var(--olive);
  background: var(--cream);
  transform: translateY(-2px);
}

.btn-wwd-explore .icon-anim {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-wwd-explore:hover .icon-anim {
  transform: rotate(45deg);
}

/* ── Transition band ── */
.wwd-transition {
  background: linear-gradient(257deg, #9D9B75, #656B48);
  padding: 48px 24px;
  margin: 0 16px;
  border-radius: 16px;
  height: 941px;
}

.wwd-transition-text {
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  color: var(--olive);
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.wwd-transition-visual {
  margin-top: 40px;
  padding-bottom: 0;
}

.wwd-transition-img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  transform: translateY(40px);
}

/* ── What We Build ── */
.wwd-build-block {
  padding-top: 40px;
  padding-bottom: 80px;
}

.wwd-section-title {
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  color: var(--olive);
  margin: 0 0 16px;
}

.wwd-section-lead {
  font-family: "Lato", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--slate);
  /* max-width: 520px; */
  margin-bottom: 48px;
}

.wwd-build-grid {
  display: flex;
  gap: 10px;
  height: clamp(360px, 50vw, 520px);
  width: 100%;
}

.wwd-build-card {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  /* Figma: While hovering → Variant2 · Smart animate · linear · 300ms */
  transition:
    flex 300ms linear,
    box-shadow 300ms linear;
}

.wwd-build-card.active,
.wwd-build-card:hover {
  flex: 2.8;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.wwd-build-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms linear;
}

.wwd-build-card.active .wwd-build-img,
.wwd-build-card:hover .wwd-build-img {
  transform: scale(1.04);
}

.wwd-build-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 35px 10px;
  background: linear-gradient(to top, rgb(0 0 0 / 86%) 0%, rgba(0, 0, 0, 0.25) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 45%;
  opacity: 1;
  transition: opacity 300ms linear;
  pointer-events: none;
}

.wwd-build-label span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(0.75rem, 2.6vw, 2rem);
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: linear-gradient(to bottom, rgb(108 122 63) 0%, rgb(108 122 63) 100px, transparent 0%);
  padding: 15px 10px;
}

.wwd-build-card.active .wwd-build-label,
.wwd-build-card:hover .wwd-build-label {
  opacity: 0;
}

.wwd-build-overlay--expanded {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 50%, transparent 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 300ms linear,
    transform 300ms linear;
  pointer-events: none;
}

.icon-wwb{
  width: 50px;
  height: 50px;
  background: var(--olive);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.wwd-build-card.active .wwd-build-overlay--expanded,
.wwd-build-card:hover .wwd-build-overlay--expanded {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wwd-build-overlay h3 {
  font-family: "Lato", sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  line-height: 1.3;
  margin-bottom: 10px;
}

.wwd-build-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 1.04rem;
  transition: opacity 0.2s ease;
  padding-left: 70px;
}

.wwd-build-link:hover {
  opacity: 0.8;
  color: #fff;
}

/* ── Customers ── */
.wwd-customers-block {
  padding-top: 40px;
  padding-bottom: 80px;
}

.wwd-tag {
  display: inline-block;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--olive);
  margin-bottom: 16px;
}

.wwd-customers-title {
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 16px;
}

.wwd-customers-lead {
  font-family: "Lato", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--slate);
  max-width: 520px;
  margin-bottom: 48px;
}

.wwd-customers-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 55px;
}

.wwd-customer-card:nth-child(1) { grid-column: 1 / 3; }
.wwd-customer-card:nth-child(2) { grid-column: 3 / 5; }
.wwd-customer-card:nth-child(3) { grid-column: 5 / 7; }
.wwd-customer-card:nth-child(4) { grid-column: 2 / 4; }
.wwd-customer-card:nth-child(5) { grid-column: 4 / 6; }

.wwd-customer-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.wwd-customer-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(108, 122, 63, 0.15);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.wwd-customer-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.wwd-customer-icon i {
  font-size: 3.1rem;
  color: var(--olive);
}

.wwd-customer-card h3 {
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.wwd-customer-card p {
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--slate);
  margin: 0;
  flex: 1;
}

.wwd-customer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--olive);
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  transition: opacity 0.2s ease;
  border-top: 1px solid #6C7A3F;
  padding-top: 20px;
}

.wwd-customer-link span {
  text-shadow: 2px 2px 4px rgb(0 0 0 / 28%);
}

.wwd-customer-link:hover {
  opacity: 0.7;
  color: var(--olive);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .wwd-build-grid {
    flex-direction: column;
    height: auto;
  }

  .wwd-build-card,
  .wwd-build-card.active,
  .wwd-build-card:hover {
    flex: none;
    height: 200px;
  }

  .wwd-build-label span {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .wwd-build-label {
    min-height: auto;
    padding: 20px 16px;
  }

  .wwd-customers-grid {
    grid-template-columns: 1fr;
  }

  .wwd-customer-card:nth-child(n) {
    grid-column: auto;
  }
}

@media (max-width: 767.98px) {
  .wwd-hero {
    min-height: 80vh;
    margin: 12px;
    padding-bottom: 60px;
  }

  .wwd-hero-content {
    padding: 80px 16px 60px;
  }

  .wwd-transition {
    margin: -24px 12px 0;
    padding: 48px 20px 0;
  }

  .wwd-transition-img {
    transform: translateY(24px);
  }

  .wwd-build-block {
    padding-top: 35px;
  }

  .wwd-customers-block {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}
