/* =========================================================
   Luciane Capassi — Neuropsicóloga
   Design system: papel/dossiê clínico editorial
   ========================================================= */

:root{
  /* --- color --- */
  --ivory:        #F7F4EE;
  --paper-alt:    #EFE9DE;
  --surface:      #FFFFFF;
  --graphite:     #23262A;
  --graphite-70:  #23262Ab3;
  --graphite-45:  #5A5D61;
  --petrol:       #14343A;
  --petrol-light: #3E6B70;
  --petrol-tint:  #E7EEEC;
  --line:         #D8D0C2;
  --line-soft:    #E4DED2;

  /* --- type --- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --fs-h1: clamp(2.5rem, 1.7rem + 3.2vw, 4.6rem);
  --fs-h2: clamp(1.9rem, 1.55rem + 1.5vw, 2.8rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-lede: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-micro: 0.78rem;

  /* --- layout --- */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-py: clamp(4.5rem, 4rem + 3vw, 8rem);
  --radius: 2px;

  /* --- motion --- */
  --ease: cubic-bezier(.16,.8,.24,1);
  --dur-s: .25s;
  --dur-m: .6s;
  --dur-l: .9s;
}

/* =========== reset =========== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html{ overflow-x: hidden; }
html{ scroll-padding-top: 6rem; }
body{
  margin: 0;
  background: var(--ivory);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p{ margin: 0; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address{ font-style: normal; }

:focus-visible{
  outline: 2px solid var(--petrol);
  outline-offset: 3px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--petrol);
  color: var(--ivory);
  padding: .9rem 1.4rem;
  z-index: 200;
  border-radius: var(--radius);
}
.skip-link:focus{
  left: 1rem;
  top: 1rem;
}

.wrap{
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =========== type helpers =========== */
.eyebrow{
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--petrol-light);
  margin: 0 0 1rem;
}
.eyebrow::after{
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: .6rem;
  background: currentColor;
  opacity: .5;
  transition: width .7s var(--ease) .35s;
}
.eyebrow.is-visible::after{ width: 2.75rem; }
.eyebrow--inverse{ color: #9FC2C3; }

/* the hero eyebrow isn't part of the scroll-reveal system (it's already in view on load),
   so its underline draws in via the same on-load choreography instead of .is-visible */
.js .hero-in.eyebrow::after{
  animation: eyebrow-line-in .6s var(--ease) forwards;
  animation-delay: .55s;
}
@keyframes eyebrow-line-in{ to{ width: 2.75rem; } }

@media (prefers-reduced-motion: reduce){
  .eyebrow::after{ transition: none; width: 2.75rem; }
  .js .hero-in.eyebrow::after{ animation: none; width: 2.75rem; }
}

.section__title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--graphite);
}

.lede{
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--graphite);
}

.section__intro{
  max-width: 46ch;
  color: var(--graphite-70);
  font-size: 1.05rem;
}

/* =========== buttons =========== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1.75rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-3px); }
.btn:active{ transform: translateY(-1px) scale(.97); }

.btn__arrow{
  flex-shrink: 0;
  transition: transform var(--dur-s) var(--ease);
}
.btn:hover .btn__arrow{ transform: translateX(4px); }

.btn--primary{
  background: var(--petrol);
  color: var(--ivory);
  box-shadow: 0 0 0 rgba(20,52,58,0);
  transition: background-color var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), transform var(--dur-s) var(--ease), box-shadow var(--dur-m) var(--ease);
}
.btn--primary:hover{ background: var(--petrol-light); box-shadow: 0 6px 22px rgba(20,52,58,.28); }

.btn--secondary{
  background: transparent;
  color: var(--graphite);
  border-color: var(--graphite);
}
.btn--secondary:hover{ border-color: var(--petrol); color: var(--petrol); }

.btn--ghost-inverse{
  background: transparent;
  color: var(--ivory);
  border-color: rgba(247,244,238,.4);
}
.btn--ghost-inverse:hover{ border-color: var(--ivory); }

.btn--inverse{
  background: var(--ivory);
  color: var(--petrol);
}
.btn--inverse:hover{ background: #fff; }

.btn--sm{ padding: .7rem 1.25rem; font-size: .85rem; }

/* =========== header =========== */
/* Fixed overlay (not in-flow) so the hero video is truly full-bleed underneath it.
   Safe default: fully visible for no-JS users. Only once JS confirms it can drive the
   hero scroll story does the header start hidden and fade in after the hero is scrolled
   past — a no-JS/broken-JS visitor should never lose access to navigation. */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(35,38,42,0);
  transition: background-color var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease);
}
.js .site-header{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-m) var(--ease), visibility 0s var(--dur-m), background-color var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease);
}
.js .site-header.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--dur-m) var(--ease), visibility 0s, background-color var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease);
}
.site-header.is-scrolled{
  background: rgba(247,244,238,.9);
  backdrop-filter: blur(10px);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(35,38,42,.05);
}
.site-header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.15rem;
  transition: padding-block var(--dur-m) var(--ease);
}
.site-header.is-scrolled .site-header__inner{ padding-block: .8rem; }

.main-nav ul{
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
}
.main-nav a{
  font-size: .92rem;
  color: var(--graphite-70);
  position: relative;
  padding-block: .25rem;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--petrol);
  transition: right var(--dur-s) var(--ease);
}
.main-nav a:hover{ color: var(--graphite); }
.main-nav a:hover::after{ right: 0; }

.site-header__actions{
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
}
.nav-toggle span{
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--graphite);
  transition: transform var(--dur-s) var(--ease), opacity var(--dur-s) var(--ease);
}

/* =========== hero (video) =========== */
/* Safe default: a normal single-viewport section, video behind, content always visible.
   Only when JS confirms it can drive the scroll story (not reduced-motion, not a narrow
   viewport, rAF/IntersectionObserver available) does it add .hero-video--pinned, which is
   the only thing that turns on the tall sticky scroll-reveal below. No-JS, reduced-motion
   and mobile all get this fallback and it is a complete, legible hero on its own. */
.hero-video{
  position: relative;
  min-height: 100vh;
}
.hero-video__pin{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--graphite);
}
.hero-video__media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video__scrim{
  position: absolute;
  inset: 0;
  z-index: 1;
  /* strong enough to guarantee text contrast against any frame of the loop, not just the darker ones */
  background:
    linear-gradient(90deg, rgba(8,17,19,.78) 0%, rgba(8,17,19,.6) 55%, rgba(8,17,19,.42) 100%),
    linear-gradient(180deg, rgba(10,20,22,.55) 0%, rgba(10,20,22,.7) 55%, rgba(8,16,18,.85) 100%);
}
.hero-video__content{
  position: relative;
  z-index: 2;
  max-width: 42rem;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.hero-video__name{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  letter-spacing: .02em;
  color: #9FC2C3;
  margin-bottom: .85rem;
}
.hero-video__title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--ivory);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 28px rgba(0,0,0,.4);
}
.hero-video__title em{ font-style: italic; color: #9FC2C3; }
.hero-video__subtitle{
  font-size: var(--fs-lede);
  color: rgba(247,244,238,.88);
  max-width: 40ch;
  margin-bottom: 2.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero-video__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.hero-video__meta{
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .06em;
  color: rgba(247,244,238,.65);
  text-transform: uppercase;
}

/* scroll cue — only meaningful once the pinned story is active */
.hero-video__cue{
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: rgba(247,244,238,.75);
  transform: translateX(-50%);
}
.hero-video__cue span{
  width: 1px;
  height: 2.25rem;
  background: currentColor;
  position: relative;
  overflow: hidden;
}
.hero-video__cue span::after{
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--ivory);
  animation: cue-drip 1.8s ease-in-out infinite;
}
@keyframes cue-drip{ to{ top: 100%; } }
.hero-video__cue small{
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* --- progressive enhancement: pinned scroll story (added by JS only when appropriate) --- */
/* FOUC guard: <html class="hero-ready"> is set synchronously in <head>, before the hero
   markup even exists and long before the deferred main.js runs — so hero text is hidden
   from the very first painted frame instead of flashing visible-then-hidden while main.js
   loads. Kept in sync with the same eligibility check main.js uses for .hero-video--pinned. */
html.hero-ready .hero-video__el{
  --p: 0;
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * 26px));
}
.hero-video.hero-video--pinned{ height: 200vh; }
.hero-video.hero-video--pinned .hero-video__pin{
  position: sticky;
  top: 0;
  height: 100vh;
}
.hero-video.hero-video--pinned .hero-video__cue{ display: flex; }
.hero-video.hero-video--pinned .hero-video__el{
  --p: 0;
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * 26px));
  transition: opacity .1s linear, transform .1s linear;
}

/* =========== credibility strip =========== */
.credibility{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.credibility__inner{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 1.75rem;
}
.credibility__item{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .15rem;
}
.credibility__item strong{
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--graphite);
}
.credibility__item span{
  font-size: var(--fs-micro);
  color: var(--graphite-45);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.credibility__divider{
  width: 1px;
  height: 2rem;
  background: var(--line);
}
@media (max-width: 720px){
  .credibility__divider{ display: none; }
}

/* =========== sections generic =========== */
.section{
  padding-block: var(--section-py);
}
.section--alt{
  background: var(--paper-alt);
  position: relative;
}
/* soft blend instead of a hard color cut where alt sections meet the page */
.section--alt::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5rem;
  background: linear-gradient(to bottom, var(--ivory), transparent);
  pointer-events: none;
}

.section__head{
  max-width: 56rem;
  margin-bottom: clamp(2.5rem, 3vw, 4rem);
}

.section--split{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.section__label-col{ position: sticky; top: 6rem; align-self: start; }
.section__content-col > * + *{ margin-top: 1.25rem; }

/* =========== life stages =========== */
.life-stages__row{
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 12rem 1fr;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.5rem;
  padding-left: 1rem;
  margin-left: -1rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
  transition: background-color var(--dur-m) var(--ease);
}
.life-stages__row:last-child{ border-bottom: 1px solid var(--line); }
.life-stages__accent{
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--petrol);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform var(--dur-m) var(--ease);
}
.life-stages__row:hover{ background: var(--surface); }
.life-stages__row:hover .life-stages__accent{ transform: scaleY(1); }
.life-stages__row:hover .life-stages__mark{ color: var(--petrol); }
.life-stages__row:hover .life-stages__name{ transform: translateX(6px); }
.life-stages__mark{
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--petrol-light);
  transition: color var(--dur-s) var(--ease);
}
.life-stages__name{
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--graphite);
  display: inline-block;
  transition: transform var(--dur-m) var(--ease);
}
.life-stages__desc{
  color: var(--graphite-70);
  font-size: .98rem;
}
.section--alt .life-stages__row:hover{ background: var(--ivory); }
@media (max-width: 720px){
  .life-stages__row{
    grid-template-columns: 2.25rem 1fr;
    grid-template-areas: "mark name" ". desc";
    row-gap: .35rem;
  }
  .life-stages__mark{ grid-area: mark; }
  .life-stages__name{ grid-area: name; }
  .life-stages__desc{ grid-area: desc; }
}

/* =========== demandas mosaic =========== */
/* Editorial, asymmetric bento composition replacing the old uniform tag-cloud pills.
   Three tiers of visual weight (lg/md/sm) plus a full-width closing note, laid out on a
   6-column grid with a couple of hand-placed vertical nudges so it reads as intentional
   rather than an automatic grid. */
.demandas-grid{
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.85rem, 1.5vw, 1.15rem);
}
.demandas-map{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}
.demandas-map__path{
  fill: none;
  stroke: var(--petrol-light);
  stroke-width: .25;
  stroke-dasharray: 1.3 2.4;
  stroke-linecap: round;
  opacity: .4;
}
.demandas-map__dot{
  fill: var(--petrol-light);
  opacity: .5;
}

.demandas-card{
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.demandas-card:hover,
.demandas-card:focus-within{
  transform: translateY(-5px);
  border-color: var(--petrol);
  box-shadow: 0 18px 40px rgba(35,38,42,.08);
}
.demandas-card:hover + .demandas-card{ transform: translateY(-2px); }
@supports selector(:has(*)){
  .demandas-card:has(+ .demandas-card:hover){ transform: translateY(-2px); }
}

.demandas-card__label{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--petrol-light);
  margin-bottom: .5rem;
}
.demandas-card__sub{
  font-family: var(--font-display);
  color: var(--graphite);
  line-height: 1.3;
}
.demandas-card__more{
  color: var(--graphite-45);
  font-size: .86rem;
  line-height: 1.5;
  max-width: 34ch;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), max-height .4s var(--ease), margin-top .4s var(--ease);
}
.demandas-card:hover .demandas-card__more,
.demandas-card:focus-within .demandas-card__more{
  opacity: 1;
  transform: none;
  max-height: 6rem;
  margin-top: .6rem;
}
@media (hover: none){
  .demandas-card__more{ opacity: 1; transform: none; max-height: none; margin-top: .6rem; }
}

.demandas-card--lg{
  grid-column: span 3;
  min-height: 14.5rem;
  padding: 2.1rem 2.1rem 1.85rem;
}
.demandas-card--lg .demandas-card__sub{ font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); font-weight: 500; }
.demandas-card--lg:nth-of-type(2){ margin-top: 1.75rem; }

.demandas-card--md{
  grid-column: span 2;
  min-height: 10.25rem;
  padding: 1.75rem;
}
.demandas-card--md .demandas-card__sub{ font-size: 1.15rem; font-weight: 500; }
.demandas-card--md:nth-of-type(4){ margin-top: 1.25rem; }

.demandas-card--sm{
  grid-column: span 2;
  min-height: 6.75rem;
  padding: 1.3rem 1.45rem;
  justify-content: center;
}
.demandas-card--sm .demandas-card__sub{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .96rem;
}
.demandas-card--sm:nth-of-type(8){ margin-top: 1rem; }
.demandas-card--sm:nth-of-type(10){ margin-top: -.5rem; }

.demandas-card--closing{
  grid-column: span 6;
  background: transparent;
  border-style: dashed;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.65rem 2rem;
}
.demandas-card--closing .demandas-card__sub{
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 28ch;
}
.demandas-card--closing .demandas-card__more{ max-width: 36ch; }
.demandas-card--closing:hover,
.demandas-card--closing:focus-within{ transform: none; box-shadow: none; }

.js .demandas-card.reveal{
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js .demandas-card.reveal.is-visible{ transform: none; }

@media (max-width: 960px){
  .demandas-card--lg{ grid-column: span 4; }
  .demandas-card--md,
  .demandas-card--sm{ grid-column: span 2; }
  .demandas-card--closing{ grid-column: span 4; }
  .demandas-grid{ grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px){
  .demandas-map{ display: none; }
  .demandas-grid{ grid-template-columns: 1fr; }
  .demandas-card--lg,
  .demandas-card--md,
  .demandas-card--sm,
  .demandas-card--closing{ grid-column: span 1; margin-top: 0; }
  .demandas-card--sm:nth-of-type(even){ margin-right: 1.75rem; }
  .demandas-card--sm:nth-of-type(odd){ margin-left: 1.75rem; }
  .demandas-card--closing{ flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* =========== process =========== */
.process-wrap{
  position: relative;
  max-width: 44rem;
}
.process{ position: relative; }
.process__track{
  position: absolute;
  left: 1.35rem;
  top: .5rem;
  bottom: .5rem;
  width: 1px;
  background: var(--line);
}
.process__track-fill{
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: var(--petrol);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .12s linear;
  will-change: transform;
}
.process__step{
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.5rem;
  padding-block: 1.5rem;
  transition: transform var(--dur-m) var(--ease);
}
.process__step:hover{ transform: translateX(8px); }
.process__step:hover .process__index{
  border-color: var(--petrol);
  transform: scale(1.1);
}
.process__index{
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--petrol);
  background: var(--paper-alt);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  z-index: 1;
  transition: background-color var(--dur-m) var(--ease), color var(--dur-m) var(--ease), transform var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease);
}
.section--alt .process__index{ background: var(--ivory); }
.process__step.is-active .process__index{
  background: var(--petrol);
  color: var(--ivory);
  border-color: var(--petrol);
  transform: scale(1.08);
}
.process__body h3{
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin-bottom: .35rem;
  transition: color var(--dur-m) var(--ease);
}
.process__step.is-active .process__body h3{ color: var(--petrol); }
.process__body p{ color: var(--graphite-70); }

@media (prefers-reduced-motion: reduce){
  /* fill still tracks scroll position via JS (not vestibular motion) — just skip the smoothing */
  .process__track-fill{ transition: none; }
}

/* =========== decorative dot-grid (demandas) =========== */
.section--dotted{ position: relative; overflow: hidden; }
.section__dotgrid{
  position: absolute;
  top: -10%; right: -6%;
  width: 26rem; height: 26rem;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .55;
  mask-image: radial-gradient(circle, black 0%, transparent 72%);
  pointer-events: none;
  will-change: transform;
}
@media (max-width: 720px){ .section__dotgrid{ width: 16rem; height: 16rem; } }

/* =========== social value ============ */
.social-value{
  background: var(--petrol);
  color: var(--ivory);
  padding-block: var(--section-py);
  position: relative;
  overflow: hidden;
}
.social-value__inner{
  max-width: 44rem;
  position: relative;
}
.social-value__decor{
  position: absolute;
  top: 50%; right: -4rem;
  width: 22rem; height: 22rem;
  margin-top: -11rem;
  color: rgba(247,244,238,.14);
  pointer-events: none;
  will-change: transform;
}
.social-value__decor-inner{
  width: 100%; height: 100%;
  animation: decor-float 10s ease-in-out infinite;
}
@keyframes decor-float{
  0%, 100%{ transform: translate(0, 0); }
  50%{ transform: translate(-10px, -6px); }
}
@media (max-width: 960px){ .social-value__decor{ display: none; } }
@media (prefers-reduced-motion: reduce){ .social-value__decor-inner{ animation: none; } }
.social-value__title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.social-value__text{
  color: rgba(247,244,238,.82);
  font-size: 1.08rem;
  margin-bottom: 2.25rem;
}

/* =========== sobre =========== */
.sobre__grid{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.sobre__portrait-frame{
  aspect-ratio: 4/5;
  background: var(--petrol);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  outline: 1px solid var(--line);
  outline-offset: 14px;
  transition: transform var(--dur-m) var(--ease), outline-offset var(--dur-m) var(--ease);
}
.sobre__portrait:hover .sobre__portrait-frame{
  transform: scale(1.03);
  outline-offset: 10px;
}
.sobre__portrait-frame span{ transition: transform var(--dur-m) var(--ease); }
.sobre__portrait:hover .sobre__portrait-frame span{ transform: scale(1.06); }
/* progressive enhancement: subtle continuous zoom-out tied to scroll position, no-ops where unsupported */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion: no-preference){
    .sobre__portrait-frame{
      animation: portrait-settle linear;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    @keyframes portrait-settle{
      from{ transform: scale(1.08); }
      to{ transform: scale(1); }
    }
  }
}
.sobre__portrait-frame span{
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(247,244,238,.9);
}
.sobre__role{
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--petrol-light);
  margin-bottom: 1.5rem;
}
.sobre__content > * + *{ margin-top: 1.1rem; }

/* =========== rating block =========== */
.rating-block{
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rating-block__number{
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 3rem + 3vw, 5.5rem);
  line-height: 1;
  color: var(--graphite);
}
.rating-block__side{
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.rating-block__stars{ color: var(--petrol); }
.rating-block__label{
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--graphite-45);
}
.rating-block__note{
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  color: var(--graphite-45);
  font-style: italic;
}

/* =========== accordion =========== */
.accordion__item{
  border-top: 1px solid var(--line);
}
.accordion__item:last-child{ border-bottom: 1px solid var(--line); }
.accordion__item summary{
  cursor: pointer;
  padding-block: 1.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}
.accordion__item summary::-webkit-details-marker{ display: none; }
.accordion__item summary::after{
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--petrol);
  flex-shrink: 0;
  transition: transform var(--dur-s) var(--ease);
}
.accordion__item[open] summary::after{ transform: rotate(45deg); }
.accordion__item summary:hover{ color: var(--petrol); }
.accordion__item p{
  padding-bottom: 1.5rem;
  max-width: 55ch;
  color: var(--graphite-70);
  animation: accordion-in .35s var(--ease);
}
@keyframes accordion-in{
  from{ opacity: 0; transform: translateY(-6px); }
  to{ opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce){
  .accordion__item p{ animation: none; }
}

/* =========== localização =========== */
.localizacao__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.localizacao__address{
  font-size: 1.15rem;
  line-height: 1.6;
  margin-block: 1.25rem;
}
.localizacao__map-panel{
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--petrol);
  text-align: center;
  padding: 2rem;
  transition: transform var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease);
}
.localizacao__map:hover .localizacao__map-panel{
  transform: translateY(-4px);
  border-color: var(--petrol);
  box-shadow: 0 16px 36px rgba(35,38,42,.08);
}
.localizacao__map-panel svg{
  animation: pin-drop 2.6s ease-in-out 1s infinite;
}
@keyframes pin-drop{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-4px); }
}
.localizacao__map-panel span{
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--graphite-70);
  max-width: 20ch;
}

/* =========== final CTA =========== */
.final-cta{
  background: var(--graphite);
  color: var(--ivory);
  padding-block: var(--section-py);
  text-align: center;
}
.final-cta__inner{
  max-width: 42rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-cta__title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.final-cta__text{
  color: rgba(247,244,238,.75);
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
}
.final-cta__actions{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.final-cta__phone{
  font-family: var(--font-mono);
  font-size: .95rem;
  color: rgba(247,244,238,.7);
  letter-spacing: .03em;
}
.final-cta__phone:hover{ color: var(--ivory); }

/* =========== footer =========== */
.site-footer{
  background: var(--ivory);
  border-top: 1px solid var(--line);
}
.site-footer__inner{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-block: clamp(3rem, 4vw, 4.5rem) 2.5rem;
}
.site-footer__col p{
  color: var(--graphite-70);
  line-height: 1.7;
  margin-top: .5rem;
  font-size: .95rem;
}
.site-footer__col a{
  position: relative;
  display: inline-block;
}
.site-footer__col a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--petrol);
  transition: right var(--dur-m) var(--ease);
}
.site-footer__col a:hover{ color: var(--petrol); }
.site-footer__col a:hover::after{ right: 0; }
.site-footer__bottom{
  border-top: 1px solid var(--line-soft);
  padding-block: 1.5rem;
}
.site-footer__bottom p{
  font-size: var(--fs-micro);
  color: var(--graphite-45);
}

/* =========== whatsapp float =========== */
.whatsapp-float{
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--petrol);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(20,52,58,.28);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur-s) var(--ease), transform var(--dur-s) var(--ease), background-color var(--dur-s) var(--ease);
}
.whatsapp-float.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: wa-pulse 3.2s ease-in-out 1.5s infinite;
}
.whatsapp-float:hover{
  background: var(--petrol-light);
  transform: translateY(-3px) scale(1.06);
  animation-play-state: paused;
}
@keyframes wa-pulse{
  0%, 100%{ box-shadow: 0 8px 24px rgba(20,52,58,.28), 0 0 0 0 rgba(20,52,58,.35); }
  50%{ box-shadow: 0 8px 24px rgba(20,52,58,.28), 0 0 0 10px rgba(20,52,58,0); }
}

/* =========== reveal on scroll =========== */
/* Base state only applies once JS confirms it can reveal elements again (see .no-js/.js on <html>) — content stays visible if JS never runs. */
.js .reveal{
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible{
  opacity: 1;
  transform: none;
}

/* variants — combine translate with scale/blur/direction so entrances aren't one generic fade */
.js .reveal--scale{ transform: translateY(24px) scale(.82); }
.js .reveal--scale.is-visible{ transform: none; }

.js .reveal-left{ transform: translateX(-56px); }
.js .reveal-left.is-visible{ transform: none; }

.js .reveal-right{ transform: translateX(56px); }
.js .reveal-right.is-visible{ transform: none; }

.js .reveal--slow{
  transform: translateY(58px);
  transition-duration: 1.4s;
}
.js .reveal--slow.is-visible{ transform: none; }

.js .reveal-clip{
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal-clip.is-visible{ clip-path: inset(0 0 0% 0); }

/* Reduced motion: the brief calls for keeping "essential transitions" rather than
   removing motion outright — parallax, continuous loops and large translations go,
   but a short opacity fade stays so the page never reads as inert. */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  /* keep a short, small translateY+opacity entrance — WCAG treats this as an
     "essential" transition; only parallax, large-scale movement and infinite
     loops (vestibular triggers) get removed below. */
  .js .reveal,
  .js .reveal--scale,
  .js .reveal-left,
  .js .reveal-right,
  .js .reveal--slow{
    transform: translateY(10px);
    transition: opacity .35s ease-out, transform .35s ease-out;
    transition-delay: 0s;
  }
  .js .reveal.is-visible,
  .js .reveal--scale.is-visible,
  .js .reveal-left.is-visible,
  .js .reveal-right.is-visible,
  .js .reveal--slow.is-visible{ transform: none; }
  .js .reveal-clip{ clip-path: none; transition: opacity .35s ease-out; opacity: 0; }
  .js .reveal-clip.is-visible{ opacity: 1; }
  .signature-line__path{ animation: none; stroke-dashoffset: 0; }
  .js .hero-in{ transform: translateY(10px); animation: reduced-fade-in .4s ease-out forwards; }
  @keyframes reduced-fade-in{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: none; } }
  .js .word > span{ animation: none; transform: none; }
  /* the word-mask stagger is decorative, but the title itself still needs a real entrance */
  .js .hero__title{ opacity: 0; animation: reduced-fade-in .45s ease-out .15s forwards; }
  /* remove only the vestibular-trigger motion: continuous loops and parallax */
  .social-value__decor-inner{ animation: none; }
  .whatsapp-float{ animation: none; }
  .localizacao__map-panel svg{ animation: none; }
  .hero-video__cue span::after{ animation: none; top: 100%; }
  [data-parallax-mouse], [data-parallax-speed]{ transform: none !important; transition: none; }

  /* hero scroll story stays on (it's a scroll-position reveal, not vestibular motion) —
     just a smaller, shorter movement, same policy as .reveal above. */
  .hero-video.hero-video--pinned .hero-video__el{
    transform: translateY(calc((1 - var(--p)) * 10px));
    transition: opacity .1s linear, transform .1s linear;
  }
  .js .demandas-card.reveal{
    transform: translateY(8px);
    transition: opacity .3s ease-out, transform .3s ease-out;
  }
}

/* =========== responsive =========== */
@media (max-width: 960px){
  .main-nav{
    position: fixed;
    inset: 0;
    top: 4.5rem;
    background: var(--ivory);
    padding: 2rem var(--gutter);
    transform: translateX(100%);
    transition: transform var(--dur-m) var(--ease);
  }
  .main-nav[data-open="true"]{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; gap: 1.5rem; }
  .main-nav a{ font-size: 1.3rem; font-family: var(--font-display); }
  .nav-toggle{ display: flex; }
  .site-header__actions .btn--sm{ display: none; }

  .hero__inner{ grid-template-columns: 1fr; }
  .hero__figure{ align-items: flex-start; }

  .section--split{ grid-template-columns: 1fr; }
  .section__label-col{ position: static; }

  .sobre__grid{ grid-template-columns: 1fr; }
  .sobre__portrait-frame{ max-width: 20rem; margin-inline: auto; }

  .localizacao__grid{ grid-template-columns: 1fr; }

  .site-footer__inner{ grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 600px){
  .rating-block{ flex-direction: column; align-items: flex-start; gap: 1rem; }
}
