/* Works page — Figma node 2008:3196 (Draft 4 / 06 / Works). Shared helpers (.crumbs, .btn--white) come from services.css. */

/* ---------- Hero (2008:3255) ---------- */
.w-hero { position: relative; overflow: hidden; padding: 108.7px 0 38.5px; background: var(--orange-50b); }
.w-hero__bg { position: absolute; inset: 0; overflow: hidden; }
.w-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(255, 244, 234, 0) 60%, rgba(255, 244, 234, .85) 100%),
    linear-gradient(to right, rgba(255, 244, 234, .88) 0%, rgba(255, 244, 234, .62) 34%, rgba(255, 244, 234, .08) 58%, rgba(255, 244, 234, 0) 100%);
}
.w-hero__inner, .w-hero__stats { position: relative; z-index: 1; }
.w-hero__text { max-width: 524.4px; display: flex; flex-direction: column; align-items: flex-start; }
.w-hero h1 { margin-top: 19.1px; font-size: var(--fs-page-h1); line-height: var(--lh-page-h1); letter-spacing: -0.5px; color: var(--green-600); }
.w-hero__text > p { margin-top: 19px; font-size: 18px; line-height: 30.6px; color: var(--text); padding-bottom: .7px; }
.w-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20.4px; padding-top: 4px; }
.w-hero__stats { margin-top: 90.6px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.w-stats { display: grid; grid-template-columns: repeat(4, 280px); gap: 16px; }
.w-stat {
  display: flex; align-items: center; gap: 16px; padding: 25px; background: #fff; border: 1px solid var(--border-soft);
  border-radius: var(--r-20); box-shadow: 0 18px 44px rgba(21, 37, 28, .14);
}
.w-stat img { flex: none; }
.w-stat strong { display: block; font-family: var(--font-heading); font-size: 34px; line-height: 37.4px; color: var(--green-600); }
.w-stat b { display: block; font-size: 14px; font-weight: 600; line-height: 21.2px; color: var(--ink); }
.w-stat span { display: block; font-size: 14px; line-height: 21.2px; color: var(--text-muted); }
.w-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 60px; width: 1155px; max-width: 100%; padding: 13px 25px;
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-pill); box-shadow: 0 12px 30px rgba(21, 37, 28, .10);
}
.w-pills li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; line-height: 21.2px; color: var(--ink); }

/* ---------- Gallery (2008:3275) ---------- */
.w-gallery { position: relative; padding: 48px 0 144px; background: #fff; }
.w-gallery__deco { left: 0; bottom: 0; width: 1440px; height: 430px; max-width: none; }
.w-gallery__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 30px; }
.w-gallery__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.w-gallery__head .eyebrow { margin-bottom: 9px; }
.w-gallery__head h2 { font-size: 42px; line-height: 50.4px; color: var(--green-900); }
.w-gallery__head p { max-width: 420px; padding-right: 39.5px; font-size: 16px; line-height: 28px; color: var(--text); }
.w-gallery__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { height: 43px; padding: 0 19px; border: 1px solid var(--border-card); border-radius: var(--r-pill); background: #fff; font-size: 15px; font-weight: 700; line-height: 41px; color: var(--green-600); transition: background-color .15s; }
.chip:hover { background: var(--green-50b); }
.chip.is-on { padding: 0 18px; border-color: var(--green-600); background: var(--green-600); color: #fff; }
.w-gallery__count { font-size: 14px; line-height: 21.2px; color: var(--text-muted); }
.w-gallery__count b { color: var(--ink); }
.w-gallery__count b.g { color: var(--green-600); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.work-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--border-card); border-radius: var(--r-20); box-shadow: 0 16px 36px rgba(21, 37, 28, .12); transition: transform .2s, box-shadow .2s; }
.work-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(21, 37, 28, .16); }
.work-card[hidden] { display: none; }
.work-card__img { position: relative; display: block; height: 220px; overflow: hidden; }
.work-card__no {
  position: absolute; top: 16px; left: 16px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--r-12); background: #fff; box-shadow: 0 8px 18px rgba(21, 37, 28, .16);
  font-family: var(--font-heading); font-size: 16px; font-weight: 700; line-height: 20.8px; color: var(--green-600);
}
.work-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 22px 22.4px; }
.work-card__body h3 { font-size: 19px; line-height: 26.6px; color: var(--ink); }
.tag { padding: 4px 12px; border-radius: var(--r-pill); background: var(--green-50); font-size: 13px; font-weight: 700; line-height: 20px; color: var(--green-600); }
.w-gallery__more { display: flex; justify-content: center; }
.w-gallery__more .btn img { width: 17px; height: 17px; }

/* ---------- Collage (2008:3641) ---------- */
.w-collage { position: relative; padding: 48px 0; background: radial-gradient(1448px 1930px at 100% 50%, rgba(10, 138, 62, .10) 0%, rgba(10, 138, 62, 0) 45%), radial-gradient(1470px 1960px at 0% 100%, rgba(255, 122, 26, .07) 0%, rgba(255, 122, 26, 0) 35%), #fff; }
.w-collage__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 300px; }
.w-collage__text { flex: 0 0 441.6px; }
.w-collage__text h2 { margin-top: 15px; padding-bottom: .8px; font-size: 42px; line-height: 52.5px; color: var(--ink); }
.w-collage__text p { margin-top: 15.9px; font-size: 16px; line-height: 28px; color: var(--text); }
.fan { position: relative; flex: 0 0 662.4px; height: 300px; }
.fan__item { position: absolute; margin: 0; padding: 6px; background: #fff; border-radius: var(--r-20); box-shadow: 0 22px 46px rgba(21, 37, 28, .18); transform: rotate(var(--rot)); }
.fan__item span { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 14px; }

/* ---------- Clients + CTA (2008:3664) ---------- */
.w-clients { position: relative; padding: 48px 0 26.5px;   /* Figma: the footer overlaps the last 45px of this section */
 background: var(--orange-50b); }
.w-clients__deco-r { top: 257.8px; right: 0; width: 240px; height: 914px; }
.w-clients__deco-l { top: 546.8px; left: -49px; width: 240px; height: 914px; }
.w-clients__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 36px; }
.w-clients__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.w-clients__head h2 { margin-top: 9px; font-size: 42px; line-height: 50.4px; color: var(--green-900); }
.w-clients__head p { margin-top: 9px; font-size: 16px; line-height: 28px; color: var(--text); }
.w-clients__nums { display: flex; align-items: center; gap: 32px; }
.w-clients__nums strong { display: block; font-family: var(--font-heading); font-size: 44px; line-height: 46.2px; color: var(--green-600); }
.w-clients__nums span { display: block; font-size: 15px; line-height: 22.7px; color: var(--text-muted); }
.w-clients__nums i { width: 1px; height: 56px; background: #EBCDB6; }
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logo-wall li { display: flex; align-items: center; justify-content: center; gap: 10px; height: 116px; padding: 16px 22px; background: #fff; border-radius: var(--r-14); box-shadow: 0 8px 20px rgba(122, 74, 40, .07); }
.logo-wall li img { width: auto; max-width: 100%; }
.logo-wall .is-placeholder span { font-family: var(--font-heading); font-size: 20px; font-weight: 800; line-height: 26px; letter-spacing: 1.2px; color: var(--text-faint); }
.w-cta { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 28px; padding: 44px 48px; }
.w-cta .cta-band__text, .w-cta .cta-band__actions { position: relative; }
.w-cta .cta-band__bg { width: 518.4px; }

@media (max-width: 1240px) { .w-stats { grid-template-columns: repeat(2, 280px); } .w-pills { gap: 12px 28px; } }
@media (max-width: 1100px) {
  .w-collage__inner { flex-direction: column; align-items: stretch; }
  .w-collage__text, .fan { flex-basis: auto; }
  .fan { min-height: 300px; overflow-x: auto; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .w-hero { padding-top: 56px; }
  .w-hero h1 { font-size: 44px; line-height: 1.15; }
  .w-hero__stats { margin-top: 48px; }
  .w-stats { grid-template-columns: 1fr; width: 100%; }
  .w-pills { border-radius: var(--r-20); }
  .w-gallery__head h2, .w-collage__text h2, .w-clients__head h2 { font-size: 30px; line-height: 1.25; }
  .work-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .w-cta { padding: 32px 24px; }
}

.w-gallery__empty { padding: 32px 0; text-align: center; font-size: 16px; color: var(--text-muted); }
