/* ==========================================================================
   Dra. Lígia Sales — Nutrição Clínica
   Scrollytelling: cada seção é um "stage" cinematográfico com vídeo em
   scroll-scrub (Lenis + GSAP ScrollTrigger). Paleta: branco / bege claro /
   verde sálvia / verde escuro. Tipografia: Poppins (display) + Inter (corpo).
   ========================================================================== */

:root {
  /* color — base (header/footer, superfícies claras) */
  --c-white:      #FFFFFF;
  --c-cream:      #F3EEE3;
  --c-cream-deep: #EAE1CC;
  --c-sage:       #8FA283;
  --c-sage-deep:  #6E8161;
  --c-sage-pale:  #E7EDE2;
  --c-sage-light: #C3D0B8;
  --c-forest:     #2F3D28;
  --c-ink:        #26241D;
  --c-stone:      #6B6355;
  --c-line:       rgba(47, 61, 40, .12);

  /* color — sobre vídeo (stages) */
  --c-onvideo-heading: #FFFFFF;
  --c-onvideo-body:    rgba(243, 238, 227, .88);
  --c-onvideo-muted:   rgba(243, 238, 227, .64);
  --c-onvideo-eyebrow: #CBDABF;

  /* type */
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  --fs-hero:    clamp(2.2rem, 1.5rem + 2.2vw, 3.4rem);
  --fs-h2:      clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  --fs-h3:      1.15rem;
  --fs-lead:    clamp(1.05rem, 1rem + .3vw, 1.22rem);
  --fs-eyebrow: .8rem;

  /* shape */
  --r-sm:   14px;
  --r-md:   22px;
  --r-lg:   34px;
  --r-pill: 999px;

  --shadow-sm: 0 10px 26px -14px rgba(38, 36, 29, .22);
  --shadow-lg: 0 34px 80px -30px rgba(47, 61, 40, .32);

  --container: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-forest);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; }
svg { display: block; }
blockquote { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--c-forest); color: var(--c-white);
  padding: .7rem 1.2rem; border-radius: var(--r-sm);
  z-index: 300; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: rgba(255, 255, 255, .08); pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--c-sage) 0%, var(--c-sage-light) 100%);
  transform: scaleX(0); transform-origin: left;
  transition: transform .08s linear;
}

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

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(38, 36, 29, .28);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(243, 238, 227, .12);
  transition: background-color .3s var(--ease);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand-mark { border-radius: 8px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--c-white); }

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  font-size: .94rem; font-weight: 500; color: rgba(255, 255, 255, .88);
  position: relative; padding-block: 4px;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--c-sage-light);
  transition: right .28s var(--ease);
}
.main-nav a:hover::after { right: 0; }

.header-cta { margin-left: .5rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: var(--r-sm);
}
.nav-toggle span { width: 20px; height: 2px; background: var(--c-white); margin-inline: auto; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .96rem;
  padding: .85rem 1.6rem; border-radius: var(--r-pill);
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--c-sage); color: var(--c-white);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5);
}
.btn-primary:hover { background: var(--c-sage-deep); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .55); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(38, 36, 29, .22); color: var(--c-white); border-color: rgba(255, 255, 255, .4);
}
.btn-ghost:hover { border-color: var(--c-white); background: rgba(38, 36, 29, .4); }

.btn-sm { padding: .58rem 1.15rem; font-size: .86rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.1rem; font-size: 1.02rem; margin-top: .3rem; }

/* ==========================================================================
   Cinematic stages
   ========================================================================== */
main { position: relative; z-index: 1; }

.stage {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.stage-media { position: absolute; inset: 0; z-index: 0; background: var(--c-forest); }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }

.stage-scrim { position: absolute; inset: 0; }
.stage-scrim.align-left  { background: linear-gradient(100deg, rgba(30, 32, 22, .82) 0%, rgba(30, 32, 22, .58) 34%, rgba(30, 32, 22, .1) 62%, transparent 78%); }
.stage-scrim.align-right { background: linear-gradient(260deg, rgba(30, 32, 22, .82) 0%, rgba(30, 32, 22, .58) 34%, rgba(30, 32, 22, .1) 62%, transparent 78%); }
.stage-scrim-strong.align-right { background: linear-gradient(260deg, rgba(24, 27, 19, .92) 0%, rgba(24, 27, 19, .78) 40%, rgba(24, 27, 19, .28) 70%, rgba(24,27,19,.1) 88%); }
.stage-scrim::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 22, 15, .55), transparent 30%);
}

.stage-content {
  position: relative; z-index: 2; width: 100%;
  padding-block: clamp(40px, 8vh, 110px);
}
.stage-content.align-left  { max-width: 620px; margin-inline: 0 auto; padding-left: clamp(24px, 7vw, 96px); padding-right: 24px; }
.stage-content.align-right { max-width: 620px; margin-inline: auto 0; padding-right: clamp(24px, 7vw, 96px); padding-left: 24px; text-align: left; }
.wrap.stage-content { /* n/a placeholder to keep specificity flat */ }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display); font-size: var(--fs-eyebrow); font-weight: 600;
  color: var(--c-onvideo-heading); text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: .8rem; padding: .42em .9em .42em .72em; border-radius: var(--r-pill);
  background: rgba(243, 238, 227, .1); border: 1px solid rgba(243, 238, 227, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-sage-light); box-shadow: 0 0 8px 1px rgba(195, 208, 184, .7);
}
.accent { color: var(--c-sage-light); }

.stage-content h1 { font-size: var(--fs-hero); letter-spacing: -.01em; color: var(--c-onvideo-heading); max-width: 15ch; }
.stage-content h2 { font-size: var(--fs-h2); color: var(--c-onvideo-heading); max-width: 15ch; }
.stage-content .lead { font-size: var(--fs-lead); color: var(--c-onvideo-body); margin-top: .9rem; max-width: 40ch; }
.stage-content > p:not(.lead):not(.eyebrow) { color: var(--c-onvideo-body); font-size: 1.02rem; max-width: 40ch; }
.stage-content > p + p { margin-top: .8rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.3rem; }

.trust-list { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.1rem; }
.trust-list li { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--c-onvideo-body); font-weight: 500; }
.trust-list svg { color: var(--c-sage-light); flex-shrink: 0; }

.stage-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(243, 238, 227, .1); border: 1px solid rgba(243, 238, 227, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: .6rem .9rem; border-radius: var(--r-md);
  font-size: .84rem; font-weight: 500; color: var(--c-onvideo-heading);
  margin-top: 1rem;
}
.stage-badge .stars { color: #E8B84B; letter-spacing: 1px; font-size: .8rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: var(--r-pill);
  z-index: 2;
}
.scroll-cue span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--c-white);
  animation: cue-scroll 1.8s ease-in-out infinite;
}
@keyframes cue-scroll { 0%, 100% { opacity: 1; top: 7px; } 60% { opacity: .3; top: 18px; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* ---------- reveal (content choreography) ----------
   Hidden-until-revealed only applies once JS confirms it can drive the
   reveal (html.js). Without JS, content is visible immediately — no
   content is ever gated behind script execution. */
html.js .stage-content > * { opacity: 0; }
html.js [data-anim="fade-up"] .stage-content > * { transform: translateY(34px); }
html.js [data-anim="slide-left"] .stage-content > * { transform: translateX(-46px); }
html.js [data-anim="slide-right"] .stage-content > * { transform: translateX(46px); }
html.js [data-anim="scale-up"] .stage-content > * { transform: scale(.92) translateY(16px); }

html.js .stage-content.is-revealed > * {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.stage-content.is-revealed > *:nth-child(1) { transition-delay: .02s; }
.stage-content.is-revealed > *:nth-child(2) { transition-delay: .1s; }
.stage-content.is-revealed > *:nth-child(3) { transition-delay: .18s; }
.stage-content.is-revealed > *:nth-child(4) { transition-delay: .26s; }
.stage-content.is-revealed > *:nth-child(5) { transition-delay: .34s; }
.stage-content.is-revealed > *:nth-child(6) { transition-delay: .42s; }

/* ==========================================================================
   Como ajudo — help list
   ========================================================================== */
.help-list { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.2rem; }
.help-item {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .75rem .95rem; border-radius: var(--r-lg);
  background: rgba(30, 32, 22, .28); border: 1px solid rgba(243, 238, 227, .14);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.help-item:hover { background: rgba(30, 32, 22, .42); border-color: rgba(243, 238, 227, .26); transform: translateY(-2px); }
.help-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--c-cream); color: var(--c-sage-deep);
}
.help-item h3 { font-size: var(--fs-h3); color: var(--c-onvideo-heading); margin-bottom: .25rem; font-weight: 600; }
.help-item p { color: var(--c-onvideo-muted); font-size: .92rem; }

/* ==========================================================================
   Sobre — indicators
   ========================================================================== */
.sobre-indicators { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.indicator {
  display: flex; align-items: center; gap: .55rem; font-size: .86rem; font-weight: 500; color: var(--c-onvideo-body);
  padding: .48rem .85rem; border-radius: var(--r-pill);
  background: rgba(30, 32, 22, .28); border: 1px solid rgba(243, 238, 227, .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.indicator svg { color: var(--c-sage-light); }
.indicator strong { color: var(--c-onvideo-heading); }

/* ==========================================================================
   Depoimentos
   ========================================================================== */
.testimonial-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.1rem; margin-bottom: 1.3rem; }
.testimonial-item {
  padding: .85rem 1.05rem; border-radius: var(--r-lg);
  background: rgba(30, 32, 22, .3); border: 1px solid rgba(243, 238, 227, .14);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.testimonial-item .stars { color: #E8B84B; letter-spacing: 2px; margin-bottom: .4rem; font-size: .9rem; }
.testimonial-item blockquote {
  font-size: .94rem; line-height: 1.5; color: var(--c-onvideo-body);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.testimonial-source { margin-top: .45rem; font-size: .8rem; color: var(--c-onvideo-muted); font-weight: 500; }

/* ==========================================================================
   Contato
   ========================================================================== */
.contact-details { font-style: normal; margin: .9rem 0 1rem; display: flex; flex-direction: column; gap: .7rem; }
.contact-row { display: flex; align-items: flex-start; gap: .8rem; font-size: .96rem; color: var(--c-onvideo-body); }
.contact-row svg { color: var(--c-sage-light); flex-shrink: 0; margin-top: 2px; }
.contact-row a:hover { color: var(--c-sage-light); }

.contato-map-card {
  margin-top: 1rem; width: min(420px, 100%); height: 150px;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .18);
}
.contato-map-card iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.1) contrast(1.02); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; z-index: 1; background: var(--c-forest); color: rgba(243, 238, 227, .7); padding-block: 2.6rem; border-top: 1px solid rgba(243, 238, 227, .1); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; }
.footer-inner .brand-name { color: var(--c-cream); }
.footer-role { font-size: .88rem; }
.footer-copy { font-size: .82rem; margin-left: auto; }

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--c-sage); color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .55);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.whatsapp-float:hover { background: var(--c-sage-deep); transform: scale(1.08); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(38, 36, 29, .96); border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: .5rem clamp(20px, 5vw, 48px) 1.2rem;
  }
  .site-header.nav-open .main-nav a { padding-block: .8rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .site-header.nav-open .header-cta { display: inline-flex; margin: 1rem clamp(20px, 5vw, 48px) 0; }

  .stage-content.align-left, .stage-content.align-right {
    max-width: none; margin-inline: 0; padding-inline: clamp(20px, 6vw, 40px);
  }
  .stage-scrim.align-left, .stage-scrim.align-right {
    background: linear-gradient(to top, rgba(24, 27, 19, .88) 8%, rgba(24, 27, 19, .5) 55%, rgba(24, 27, 19, .35) 100%);
  }

  .stage-content h1, .stage-content h2, .stage-content .lead, .stage-content > p { max-width: none; }
  .stage-content h1 { font-size: clamp(1.9rem, 1.1rem + 5.2vw, 2.6rem); }
  .stage-content h2 { font-size: clamp(1.7rem, 1.1rem + 3.6vw, 2.3rem); }
}

/* Very short viewports (compact/older phones, landscape phones, short
   laptop windows): trim further to avoid clipping under .stage's
   overflow:hidden, regardless of width. */
@media (max-width: 900px), (max-height: 800px) {
  .stage-content { padding-block: clamp(30px, 5vh, 52px); }
  .stage-content h1 { font-size: clamp(1.55rem, .95rem + 4.6vw, 2.1rem); }
  .stage-content h2 { font-size: clamp(1.4rem, .9rem + 3.2vw, 1.85rem); }
  .stage-content .lead { margin-top: .5rem; font-size: .94rem; }
  .eyebrow { margin-bottom: .5rem; padding: .38em .85em .38em .7em; }

  .hero-actions { margin-top: .7rem; gap: .5rem; }
  .btn-lg { padding: .74rem 1.4rem; font-size: .9rem; }
  .trust-list { margin-top: .5rem; gap: .3rem; }
  .trust-list li { font-size: .78rem; }
  .stage-badge { margin-top: .5rem; padding: .42rem .7rem; font-size: .76rem; }

  .help-list { gap: .5rem; margin-top: .75rem; }
  .help-item { padding: .55rem .8rem; border-radius: var(--r-md); gap: .65rem; }
  .help-item p { display: none; }
  .help-icon { width: 30px; height: 30px; }
  .help-icon svg { width: 17px; height: 17px; }
  .help-item h3 { font-size: .9rem; margin-bottom: 0; }

  .sobre-indicators { margin-top: .7rem; gap: .5rem .9rem; }
  .indicator { padding: .4rem .75rem; font-size: .82rem; }

  .testimonial-list { gap: .5rem; margin-top: .65rem; margin-bottom: .75rem; }
  .testimonial-item { padding: .7rem .9rem; }
  .testimonial-item blockquote {
    font-size: .82rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .testimonial-item .stars { margin-bottom: .28rem; font-size: .78rem; }
  .testimonial-source { margin-top: .25rem; font-size: .72rem; }

  .contact-details { margin: .5rem 0 .7rem; gap: .45rem; }
  .contact-row { font-size: .84rem; }
  .contato-map-card { height: 80px; margin-top: .5rem; }
  .btn-xl { padding: .74rem 1.5rem; font-size: .9rem; margin-top: .15rem; }
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .trust-list { flex-direction: column; gap: .6rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { margin-left: 0; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .contato-map-card { height: 190px; }
  .stage { min-height: 620px; }
}
