/* ==========================================================================
   DUTCH DESIGN AGENCY — pillar.css
   Shared template for the three service pillar pages:
   strategy.html · branding.html · growth.html
   Sizes follow the live gl scale on the fluid rem root (base.css).
   Loads after base.css / nav.css / footer.css.
   ========================================================================== */

/* ---- Hero ---------------------------------------------------------------- */
.pillar-hero { padding-top: calc(var(--nav-h) + var(--s-sm)); }
.pillar-hero-copy { padding-bottom: var(--s-sm); }
.pillar-hero-copy h1 { font-size: var(--fs-2xl); line-height: 1.1; font-weight: 300; max-width: 18ch; }
.pillar-hero-copy p { margin: 1rem 0 1.6rem; font-size: var(--fs-sm); line-height: 1.5; max-width: 80ch; }
.pillar-hero-media { position: relative; height: clamp(340px, 62vh, 720px); overflow: hidden; container-type: size; }
.pillar-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.pillar-hero-video { position: absolute; inset: 0; pointer-events: none; }
.pillar-hero-video iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); border: 0; }
@media (max-width: 767px) { .pillar-hero-video { display: none; } }
@media (max-width: 767px) {
  .pillar-hero-copy h1 { font-size: var(--fs-lg); }
  .pillar-hero-copy p { font-size: var(--fs-xs); }
}

/* ---- Intro (h2 left, copy right) ----------------------------------------- */
.pillar-intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); align-items: start; }
.pillar-intro h2 { font-size: var(--fs-lg); line-height: 1.1; font-weight: 300; max-width: 18ch; }
.pillar-intro p { font-size: var(--fs-xs); line-height: 1.5; max-width: 52ch; }
@media (max-width: 900px) { .pillar-intro { grid-template-columns: 1fr; } }

/* ---- Spread eyebrow row (OUR … SERVICES) ---------------------------------- */
.spread { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.spread .eyebrow { color: inherit; }

/* ---- Services list (black band) ------------------------------------------ */
.svc { background: var(--black); color: var(--offwhite); }
.svc-list { margin-top: var(--s-sm); }
.svc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.05rem 0; border-bottom: var(--rule-light);
  font-size: var(--fs-lg); font-weight: 300; line-height: 1.1;
}
.svc-row:first-child { border-top: var(--rule-light); }
.svc-row .svc-arrow { width: 1.5rem; height: auto; transition: transform 0.35s var(--ease-out); }
.svc-row:hover .svc-arrow { transform: translateX(6px); }
@media (max-width: 767px) { .svc-row { font-size: var(--fs-md); } }

/* ---- Challenges ----------------------------------------------------------- */
.chal-lead { margin-top: 1.5rem; max-width: 62ch; font-size: var(--fs-sm); line-height: 1.5; }
.chal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-md); margin-top: var(--s-lg); }
.chal-col { border-top: var(--rule-dark); padding-top: 1.1rem; }
.chal-col h3 { font-size: var(--fs-xs); font-weight: 300; text-transform: uppercase; letter-spacing: 0; }
.chal-col p { margin-top: 0.8rem; font-size: var(--fs-xs); line-height: 1.5; }
@media (max-width: 900px) { .chal-grid { grid-template-columns: 1fr; } }

/* ---- Way of working (black band) ------------------------------------------ */
.wow { background: var(--black); color: var(--offwhite); }
.wow-steps { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-top: var(--s-sm); }
.wow-step { flex: 1 1 8rem; border-top: var(--rule-light); padding-top: 0.7rem; font-size: var(--fs-xs); font-weight: 300; white-space: nowrap; }
.wow-duration { margin-top: 2rem; font-size: var(--fs-xs); color: var(--grey); }
@media (max-width: 620px) { .wow-steps { flex-direction: column; gap: 0.9rem; } }

/* ---- Stats ----------------------------------------------------------------- */
.stats-lead { max-width: 56ch; font-size: var(--fs-sm); line-height: 1.5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-md); margin-top: var(--s-lg); }
.stat-num { font-size: var(--fs-xl); font-weight: 300; line-height: 1; letter-spacing: 0; }
.stat-cap { margin-top: 0.8rem; font-size: var(--fs-xs); max-width: 24ch; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .stats-grid { grid-template-columns: 1fr; } }

/* ---- Pillar switch (blue segmented pill) ----------------------------------- */
.pillar-switch { display: flex; justify-content: center; margin-top: var(--s-lg); }
.pillar-switch-inner { display: inline-flex; background: var(--blue); border-radius: 50rem; padding: 0.3rem; }
.pillar-switch a {
  font-size: var(--fs-xs); font-weight: 300; color: var(--white);
  padding: 0.55em 1.4em; border-radius: 50rem; opacity: 0.75;
  transition: opacity 0.25s ease, background 0.25s ease;
}
.pillar-switch a:hover { opacity: 1; }
.pillar-switch a.active { background: rgba(255, 255, 255, 0.28); opacity: 1; }

/* ---- Discovery call --------------------------------------------------------- */
.disco h2 { font-size: var(--fs-lg); font-weight: 300; }
.disco-frame { margin-top: 1.5rem; width: 100%; height: 15rem; border: 0; border-radius: var(--radius); background: var(--offwhite); }
@media (max-width: 620px) { .disco-frame { height: 26rem; } }

/* ---- Selected projects (mirrors live work cards) ------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-xs); margin-top: var(--s-sm); }
.work-card { display: block; color: var(--black); }
.work-media { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); background: #e9e6df; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-name { display: block; font-size: var(--fs-2xs); font-weight: 300; text-transform: uppercase; margin-top: 0.9rem; }
.work-tag { font-size: var(--fs-xs); margin-top: 0.2rem; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Service HUB (level-1, e.g. strategy/research.html) — reuses the pillar
   template; adds the black sub-service-cards section that links to the
   level-2 detail pages.
   ========================================================================== */
.hub-services { background: var(--black); color: var(--white); padding: var(--s-xl) 0; }
.hub-services .spread { display: flex; justify-content: space-between; margin-bottom: var(--s-sm); }
.hub-services .eyebrow { color: var(--white); }
.hub-svc-card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-md);
  align-items: start; padding: var(--s-md) 0; border-top: var(--rule-light);
}
.hub-svc-card:last-child { border-bottom: var(--rule-light); }
.hub-svc-card h3 { font-size: var(--fs-lg); font-weight: 300; line-height: 1.05; }
.hub-svc-right { display: flex; flex-direction: column; gap: var(--s-sm); }
.hub-svc-right p { font-size: var(--fs-xs); line-height: 1.6; color: var(--white); }
.hub-svc-more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-xs); text-transform: uppercase; align-self: flex-start;
}
.hub-svc-more img { width: 1rem; height: 1rem; transition: transform 0.3s var(--ease-out); }
.hub-svc-more:hover img { transform: translateX(0.35rem); }
@media (max-width: 767px) {
  .hub-svc-card { grid-template-columns: 1fr; gap: var(--s-2xs); }
  .hub-svc-card h3 { font-size: var(--fs-md); }
}
