/* === Scroll-scrub interlude — shared across the 10 conceitos === */
.scrub {
  position: relative;
  width: 100%;
  height: 320vh;
  background: #0A0907;
  overflow: clip;
  margin: 0;
}
.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #0A0907;
}
.scrub canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.scrub-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.18) 0%,
      transparent 18%,
      transparent 50%,
      rgba(0,0,0,0.55) 78%,
      rgba(0,0,0,0.88) 100%);
  pointer-events: none;
}
.scrub-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 7vw 7vh;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.18s linear;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.scrub-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans, "Inter", -apple-system, sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--scrub-accent, #C9A961);
  margin-bottom: 22px;
}
.scrub-tag::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--scrub-accent, #C9A961);
}
.scrub-headline {
  font-family: var(--serif, var(--display, "Cormorant Garamond", Georgia, serif));
  font-weight: 400;
  font-size: clamp(40pt, 7vw, 96pt);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #FBF8F0;
  max-width: 18ch;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.scrub-headline em {
  font-style: italic;
  color: var(--scrub-accent, #C9A961);
}
.scrub-deck {
  margin-top: 18px;
  font-family: var(--sans, "Inter", -apple-system, sans-serif);
  font-size: 13.5pt;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(251,248,240,0.82);
  max-width: 42ch;
  text-shadow: 0 1px 16px rgba(0,0,0,0.4);
}
.scrub-folio {
  position: absolute;
  bottom: 22px;
  right: 7vw;
  font-family: var(--sans, "Inter", -apple-system, sans-serif);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(251,248,240,0.5);
  z-index: 6;
  pointer-events: none;
}
.scrub-folio em {
  color: var(--scrub-accent, #C9A961);
  font-style: normal;
  font-weight: 500;
}
@media (max-width: 720px) {
  /* break out to viewport edges — outside of any parent padding */
  .scrub {
    height: 200vh;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
  }
  .scrub-sticky { width: 100% !important; padding: 0 !important; }
  .scrub-overlay { padding: 0 6vw 8vh; }
  .scrub-headline { font-size: clamp(28pt, 9vw, 48pt); line-height: 1.02; }
  .scrub-tag { font-size: 10px; letter-spacing: 0.28em; margin-bottom: 14px; }
  .scrub-tag::before { width: 24px; }
  .scrub-deck { font-size: 12.5pt; line-height: 1.5; margin-top: 12px; }
  .scrub-folio { bottom: 16px; right: 6vw; font-size: 9px; letter-spacing: 0.22em; }
}

/* === PDP handoff block — appended after each conceito's clinic footer === */
.pdp-handoff {
  background: #0E0D0B;
  color: #F4ECE0;
  width: 100%;
  padding: 56px 80px 48px;
  font-family: var(--sans, "Inter", -apple-system, sans-serif);
  border-top: 1px solid rgba(244,236,224,0.08);
}
.pdp-handoff-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
}
.pdp-handoff-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: #C9A961;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.pdp-handoff-text {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(244,236,224,0.78);
  max-width: 640px;
}
.pdp-handoff-text strong { color: #F4ECE0; font-weight: 500; }
.pdp-handoff-text em { color: #C9A961; font-style: normal; font-weight: 500; }
.pdp-handoff-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid #C9A961;
  border-radius: 999px;
  color: #C9A961;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.pdp-handoff-cta:hover { background: #C9A961; color: #0E0D0B; }
.pdp-handoff-cta::after { content: "→"; font-weight: 400; }
@media (max-width: 720px) {
  .pdp-handoff { padding: 36px 24px 32px; }
  .pdp-handoff-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
  }
  .pdp-handoff-cta { align-self: start; }
}

/* === Conceito mobile defaults — applied to all 10 because they were built desktop-first === */
@media (max-width: 720px) {
  /* `overflow-x: clip` instead of `hidden` — `hidden` breaks position: sticky on iOS Safari */
  html, body { overflow-x: clip; max-width: 100vw; }
  body { padding: 0 !important; }

  /* tame the 80px horizontal paddings everywhere */
  header,
  footer,
  main > section,
  main > section > div,
  .hero,
  .hero-text,
  .hero-grid,
  .services,
  .services-head,
  .services-grid,
  .services-list,
  .pillars-section,
  .pillars,
  .pillars-head,
  .approach,
  .approach-grid,
  .creds,
  .results,
  .results-grid,
  .cta,
  .philo,
  .philo-grid,
  .strip,
  .team,
  .team-grid,
  .case-frame,
  .gallery,
  .credentials,
  .quote,
  .results-bar,
  .hero-image,
  .hero-image-wrap {
    padding-left: 24px !important;
    padding-right: 24px !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  /* nested grids/divs that also use 80px padding */
  .hero { padding-top: 48px !important; padding-bottom: 64px !important; }
  .services, .services-head, .services-list, .pillars-section, .pillars,
  .approach, .approach-grid, .creds, .results, .cta, .philo, .gallery,
  .credentials, .quote { padding-top: 48px !important; padding-bottom: 48px !important; }
  footer { padding-top: 36px !important; padding-bottom: 36px !important; }

  /* collapse 2/3-column grids to single column */
  .hero,
  .hero-grid,
  .philo-grid,
  .approach-grid,
  .services-grid,
  .services-list,
  .pillars,
  .pillars-head,
  .results-grid,
  .team-grid,
  .creds-grid,
  .creds,
  .approach,
  .results,
  .results-bar,
  .credentials,
  .gallery-grid,
  .case-frame,
  .cta {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    width: 100% !important;
  }
  /* some pages' .cta is a 2-col grid (text block + .cta-channels) with
     align-items:center — stretch so each block goes full width when stacked */
  .cta {
    align-items: stretch !important;
  }
  .cta > *,
  .cta-channels { max-width: 100% !important; min-width: 0 !important; }

  /* .creds collapses, but its inner .creds-list is a horizontal flex row
     (gap:56px, 5 escolas) that overflows — left-align and wrap it */
  .creds { align-items: flex-start !important; }
  .creds-list {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 12px 22px !important;
  }

  /* section "head" rows (h2 + lede side-by-side on desktop) stack on mobile —
     without this the big serif h2 overlaps its sibling paragraph */
  .services-head,
  .approach-head,
  .gallery-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
  }
  .services-head > *,
  .approach-head > *,
  .gallery-head > * { max-width: 100% !important; }

  /* heroes that use absolute children (e.g. hero-photo, hero-frame, hero-stat) collapse */
  .hero-visual,
  .hero-photo,
  .hero-bg,
  .hero-image-wrap {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    inset: auto !important;
  }
  .hero-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    position: relative !important;
    transform: none !important;
    inset: auto !important;
    opacity: 1 !important;
  }
  .hero-frame { display: none !important; }
  .hero-stat,
  .hero-stat.s1,
  .hero-stat.s2 {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    margin-top: 12px !important;
  }
  .hero-stats { width: 100% !important; }

  /* big hero typography that was sized for desktop */
  .hero h1,
  .hero .h1 {
    font-size: clamp(34px, 9vw, 56px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.02em !important;
  }
  .hero-deck,
  .hero-text p { font-size: 15px !important; line-height: 1.55 !important; }

  /* section h2 cap */
  section h2,
  .philo-h,
  .pillars-head h2,
  .services-head h2,
  .results h2,
  .cta h2 {
    font-size: clamp(28px, 7.5vw, 44px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.012em !important;
  }
  /* nav: hide bulk on mobile, keep CTA visible. Logo stays. */
  header nav ul {
    gap: 12px !important;
    flex-wrap: wrap !important;
  }
  header nav ul li:not(:has(.cta-nav)) { display: none !important; }
  header { gap: 12px !important; }

  /* CTAs / buttons: bigger hit target */
  .btn,
  .btn-primary,
  .btn-ghost,
  .cta-nav,
  .service-link {
    padding: 14px 22px !important;
    font-size: 13px !important;
    display: inline-flex !important;
  }
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .hero-actions .btn { width: 100% !important; text-align: center !important; justify-content: center !important; }

  /* concept-banner mobile */
  .concept-banner {
    font-size: 9.5px !important;
    padding: 6px 10px !important;
    line-height: 1.35 !important;
    letter-spacing: 0.12em !important;
  }
  .concept-banner a { display: inline-block !important; margin-left: 0 !important; margin-top: 2px !important; }
  header { margin-top: 56px !important; }

  /* footer collapses */
  footer {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  /* services cards full width */
  .service,
  .pillar,
  .service-card,
  .approach-card,
  .results-cell,
  .team-card {
    width: 100% !important;
    max-width: 100% !important;
  }
  .service-img,
  .pillar-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/10 !important;
    /* kill the desktop negative side-bleed (margin: -36px -32px ...) so the
       image no longer overflows the card on mobile */
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* card grid: one consistent gutter. Drop the nested list/grid padding and
     the 3-column border hairlines so heading, card, image and text all share
     the same left/right edge instead of three different indents */
  .services-list,
  .services-grid,
  .pillars,
  .approach-grid,
  .team-grid,
  .results-grid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .service,
  .pillar,
  .service-card,
  .approach-card,
  .results-cell,
  .team-card {
    border-left: 0 !important;
    border-right: 0 !important;
  }
}
