/* ==========================================================================
   LP Imersão Presencial Saúde Feminina · Rita Castro
   Design System + Components
   ========================================================================== */

:root {
  /* ---- Palette ---- */
  --forest-900: #0F1F16;
  --forest-800: #162a1e;
  --forest-700: #1F3529;
  --forest-500: #3B5F47;
  --forest-300: #93A98C;

  --paper-100: #FAF6EE;
  --paper-50:  #F4ECDC;
  --paper-80:  #F1E7D1;

  --sun-500: #D4A53F;
  --sun-600: #B78A2F;
  --sun-300: #E6C477;

  --ink-900: #1A1A1A;
  --ink-700: #2E2A24;
  --ink-500: #4A4540;
  --ink-300: #8A8278;
  --ink-200: #B8B0A2;

  --cta-500: #2D4A24;
  --cta-600: #1F3529;

  /* ---- Typography ---- */
  --font-display: 'Fraunces', 'Newsreader', 'EB Garamond', Georgia, serif;
  --font-body: 'Inter', 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Escala tipográfica (modular scale 1.25) */
  --text-xs: clamp(11px, 0.7vw, 12px);
  --text-sm: clamp(13px, 0.9vw, 14px);
  --text-base: clamp(16px, 1.05vw, 17px);
  --text-lg: clamp(18px, 1.3vw, 20px);
  --text-xl: clamp(22px, 1.8vw, 28px);
  --text-2xl: clamp(28px, 3vw, 42px);
  --text-3xl: clamp(36px, 4.5vw, 60px);
  --text-4xl: clamp(48px, 6vw, 86px);
  --text-5xl: clamp(64px, 8vw, 120px);

  /* ---- Spacing ---- */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;
  --space-20: 160px;

  /* ---- Layout ---- */
  --container-max: 1240px;
  --container-narrow: 760px;
  --container-wide: 1440px;
  --section-y: clamp(80px, 10vw, 160px);

  /* ---- Radius ---- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px rgba(15, 31, 22, 0.04), 0 4px 12px rgba(15, 31, 22, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 31, 22, 0.08), 0 12px 32px rgba(15, 31, 22, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 31, 22, 0.15);

  /* ---- Motion ---- */
  --ease-organic: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0.24, 1);

  /* ---- Header ---- */
  --header-h: 64px;
}

/* ==== RESET ==== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper-100);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--sun-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ==== UTILITY LAYOUT ==== */
.container {
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.container--narrow {
  width: min(100%, var(--container-narrow));
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--paper { background: var(--paper-100); }
.section--paper2 { background: var(--paper-50); }
.section--forest { background: var(--forest-700); color: var(--paper-100); }
.section--forest-dark { background: var(--forest-900); color: var(--paper-100); }

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: var(--space-3);
  max-width: 32ch;
}
.section__title--light { color: var(--paper-100); }
.section__title--center { margin-inline: auto; text-align: center; max-width: 28ch; }

.section__sub {
  font-size: var(--text-lg);
  color: var(--ink-500);
  max-width: 60ch;
  margin-bottom: var(--space-10);
}
.section__sub--light { color: rgba(250, 246, 238, 0.72); }
.section__sub--center { margin-inline: auto; text-align: center; }

.prose p { font-size: var(--text-base); line-height: 1.75; color: var(--ink-700); margin-bottom: var(--space-3); max-width: 68ch; }
.prose__highlight {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--ink-900);
  padding-left: var(--space-3);
  border-left: 2px solid var(--sun-500);
  margin-top: var(--space-4);
}
.prose--light p { color: rgba(250, 246, 238, 0.82); }
.prose__highlight--light { color: var(--paper-100); }

/* ==== BUTTONS ==== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform .25s var(--ease-organic), background .25s, color .25s, box-shadow .25s;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--sun-500);
  color: var(--forest-900);
  box-shadow: 0 8px 24px -8px rgba(212, 165, 63, 0.5);
}
.btn--primary:hover { background: var(--sun-300); transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(212, 165, 63, 0.6); }
.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn--ghost:hover { background: currentColor; color: var(--forest-900); }
.btn--large { padding: 18px 32px; font-size: var(--text-base); }
.btn--xl { padding: 22px 40px; font-size: var(--text-lg); }
.btn--small { padding: 10px 18px; font-size: var(--text-xs); }
.btn--full { width: 100%; justify-content: center; }

/* ==== PROGRESS BAR ==== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--sun-500);
  z-index: 100;
  transition: width .05s linear;
}

/* ==== HEADER ==== */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 90;
  background: transparent;
  transition: background .3s var(--ease-soft), backdrop-filter .3s;
  padding-block: 16px;
}
.header.is-scrolled {
  background: rgba(15, 31, 22, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.header__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  color: var(--paper-100);
}
@media (min-width: 960px) {
  .header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .header__nav { grid-column: 2; justify-self: center; }
  .header__cta { grid-column: 3; justify-self: end; }
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}
.header__logo-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--sun-500);
  color: var(--forest-900);
  border-radius: 50%;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.header__logo-text { font-size: var(--text-sm); opacity: 0.92; }
.header__nav { display: none; gap: var(--space-4); font-size: var(--text-sm); font-weight: 500; }
.header__nav a { position: relative; opacity: 0.85; transition: opacity .2s; }
.header__nav a:hover { opacity: 1; }
.header__nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 1px;
  background: var(--sun-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-organic);
}
.header__nav a:hover::after { transform: scaleX(1); }
.header__cta { color: var(--paper-100); }
@media (min-width: 960px) {
  .header__nav { display: flex; }
  .header__logo-text { display: inline; }
}
@media (max-width: 640px) {
  .header__logo-text { display: none; }
  .header__cta { display: none; }
}

/* ==== HERO ==== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--paper-100);
  overflow: hidden;
  padding-top: calc(var(--header-h) + var(--space-4));
  padding-bottom: clamp(60px, 8vh, 120px);
  background: var(--forest-900);
}
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity .6s var(--ease-soft);
  pointer-events: none;
}
.hero__video.is-loaded { opacity: 1; }
@media (max-width: 959px) { .hero__video { display: none; } }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(15, 31, 22, 0.35) 0%, rgba(15, 31, 22, 0.75) 100%),
    linear-gradient(180deg, rgba(15, 31, 22, 0.25) 0%, rgba(15, 31, 22, 0.55) 40%, rgba(15, 31, 22, 0.92) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  animation: heroReveal 1.2s var(--ease-organic) both;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__meta {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: var(--space-4);
  padding: 10px 0;
  background: rgba(15, 31, 22, 0.4);
  border: 1px solid rgba(230, 196, 119, 0.25);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  color: var(--sun-300);
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 2px 18px;
  border-inline-start: 1px solid rgba(230, 196, 119, 0.2);
}
.hero__meta-item:first-child { border-inline-start: 0; }
.hero__meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(230, 196, 119, 0.55);
  font-weight: 500;
}
.hero__meta-value {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sun-300);
  font-weight: 500;
  line-height: 1.15;
}
@media (max-width: 768px) {
  .hero__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 360px;
    padding: 10px 0;
    border-radius: 14px;
  }
  .hero__meta-item { padding: 2px 10px; text-align: left; }
  .hero__meta-label { font-size: 9px; letter-spacing: 0.14em; }
  .hero__meta-value { font-size: 11px; letter-spacing: 0.04em; }
}
.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  max-width: 18ch;
  text-wrap: balance;
}
.hero__sub {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: rgba(250, 246, 238, 0.85);
  margin-bottom: var(--space-6);
  max-width: 50ch;
}
@media (max-width: 768px) {
  .hero { padding-top: calc(var(--header-h) + 12px); padding-bottom: 24px; }
  .hero__meta { margin-bottom: 16px; }
  .hero__headline {
    font-size: clamp(28px, 7vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    max-width: 22ch;
  }
  .hero__sub {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 20px;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero__actions .btn--primary {
    width: 100%;
    justify-content: space-between;
    padding: 16px 22px;
    font-size: 14px;
  }
  .hero__countdown {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    padding-left: 0;
    border-left: 0;
    opacity: 0.85;
    text-align: center;
  }
  .hero__countdown-num { font-size: 18px; }
  .hero__countdown-label { font-size: 10px; letter-spacing: 0.1em; }
  .hero .hero__scroll { display: none !important; }
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.hero__countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.7);
  padding-left: var(--space-4);
  border-left: 1px solid rgba(250, 246, 238, 0.2);
}
.hero__countdown-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--sun-300);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  z-index: 2;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  border: 1px solid rgba(250, 246, 238, 0.25);
  border-radius: 999px;
  opacity: 0.6;
  transition: opacity .3s;
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll span {
  display: block;
  width: 2px;
  height: 8px;
  background: var(--paper-100);
  border-radius: 2px;
  animation: heroScroll 2s var(--ease-organic) infinite;
}
@keyframes heroScroll {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==== REVEAL (scroll-triggered) ==== */
/* Só esconde se JS carregou. Sem JS, tudo visível (graceful degradation). */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease-organic) var(--delay, 0ms), transform .8s var(--ease-organic) var(--delay, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==== SEÇÃO 2: PROBLEMA ==== */
#problema .section__title { font-weight: 400; }

/* ==== SEÇÃO 3: PARA QUEM ==== */
.para-quem { background: var(--forest-700); position: relative; overflow: hidden; }
.para-quem::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(212, 165, 63, 0.08) 0%, transparent 60%),
    radial-gradient(40% 40% at 20% 80%, rgba(147, 169, 140, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  position: relative;
}
@media (min-width: 900px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
}
.card-perfil {
  background: rgba(250, 246, 238, 0.04);
  border: 1px solid rgba(250, 246, 238, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform .4s var(--ease-organic), border-color .3s, background .3s;
}
.card-perfil:hover {
  transform: translateY(-4px);
  border-color: var(--sun-500);
  background: rgba(250, 246, 238, 0.06);
}
.card-perfil__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--sun-500);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.card-perfil__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-2);
  color: var(--paper-100);
  line-height: 1.15;
}
.card-perfil p { color: rgba(250, 246, 238, 0.82); line-height: 1.7; font-size: var(--text-base); }
.para-quem__denominador {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: 1.4;
  text-align: center;
  max-width: 38ch;
  margin-inline: auto;
  color: var(--paper-100);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(212, 165, 63, 0.25);
}

/* ==== SEÇÃO 4: METODOLOGIA ==== */
.metodologia { padding-block: 0; background: var(--paper-100); }
.metodologia__grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 960px) {
  .metodologia__grid { grid-template-columns: 45% 55%; }
}
.metodologia__photo {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}
@media (min-width: 960px) {
  .metodologia__photo { position: sticky; top: 0; height: 100vh; min-height: 100vh; }
}
.metodologia__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: photoBreath 9s ease-in-out infinite;
}
@keyframes photoBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.metodologia__content {
  padding: clamp(60px, 10vw, 120px) clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.metodologia__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  color: var(--ink-900);
}
.metodologia__sub {
  font-size: var(--text-lg);
  color: var(--ink-500);
  margin-bottom: var(--space-6);
  max-width: 44ch;
}
.metodologia__rule {
  border: 0;
  border-top: 1px solid var(--sun-500);
  width: 0;
  margin-block: var(--space-5);
  transition: width 1.6s var(--ease-organic);
}
.metodologia__rule.is-visible { width: 80px; }
.modulators {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-block: var(--space-4);
  border-top: 1px solid rgba(74, 69, 64, 0.12);
}
.modulators li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 0;
  border-bottom: 1px solid rgba(74, 69, 64, 0.12);
  transition: padding-left .25s var(--ease-organic), color .25s;
  cursor: default;
}
.modulators li:hover { padding-left: 12px; color: var(--cta-500); }
.modulators li span {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.modulators li em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--ink-300);
  text-align: right;
  max-width: 24ch;
}

/* ==== SEÇÃO 5: TEMAS ==== */
.temas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--paper-80);
  border: 1px solid var(--paper-80);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tema {
  text-align: left;
  padding: var(--space-5);
  background: var(--paper-100);
  transition: background .3s, padding .3s var(--ease-organic);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink-900);
  border-radius: 0;
}
.tema:hover { background: var(--paper-50); }
.tema[aria-expanded="true"] { background: var(--forest-700); color: var(--paper-100); grid-column: 1 / -1; padding: var(--space-6); }
.tema[aria-expanded="true"] .tema__desc { color: rgba(250, 246, 238, 0.85); }
.tema[aria-expanded="true"] .tema__num { color: var(--sun-300); }
.tema__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--sun-500);
}
.tema__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.tema__desc {
  font-size: var(--text-sm);
  color: var(--ink-500);
  line-height: 1.55;
}
.tema__expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease-organic), padding .3s, opacity .3s;
  opacity: 0;
  padding: 0;
}
.tema[aria-expanded="true"] .tema__expand {
  max-height: 500px;
  opacity: 1;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(212, 165, 63, 0.25);
  margin-top: var(--space-2);
}
.tema__expand ul { list-style: none; display: grid; gap: 10px; }
.tema__expand li {
  font-size: var(--text-base);
  color: rgba(250, 246, 238, 0.88);
  padding-left: 16px;
  position: relative;
}
.tema__expand li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--sun-500);
  font-weight: 600;
}
.tema::after {
  content: "+";
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-size: 20px;
  color: var(--sun-500);
  transition: transform .3s var(--ease-organic);
}
.tema[aria-expanded="true"]::after { content: "×"; transform: rotate(0); }

/* ==== SEÇÃO 6: PROGRAMAÇÃO ==== */
.programacao__track {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-inline: clamp(20px, 5vw, 48px);
  margin-top: var(--space-6);
}
@media (min-width: 1100px) {
  .programacao__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    max-width: var(--container-max);
    margin-inline: auto;
  }
}
.dia {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  color: var(--paper-100);
  transition: transform .6s var(--ease-organic);
}
.dia:hover { transform: translateY(-6px); }
.dia__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 31, 22, 0.1) 0%, rgba(15, 31, 22, 0.92) 85%);
}
.dia__content {
  position: absolute;
  inset: 0;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-2);
}
.dia__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--sun-300);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.dia__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1.15;
  margin-bottom: var(--space-2);
}
.dia__list { list-style: none; display: grid; gap: 6px; }
.dia__list li {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: rgba(250, 246, 238, 0.88);
  padding-left: 14px;
  position: relative;
}
.dia__list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--sun-500);
}

/* ==== SEÇÃO 7: AMBIENTE ==== */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  margin-top: var(--space-6);
  margin-bottom: var(--space-10);
}
.gallery__item {
  grid-column: span 6;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
  padding: 0;
  background: var(--forest-900);
}
.gallery__item--tall { grid-column: span 6; aspect-ratio: 3 / 4; }
.gallery__item--wide { grid-column: span 12; aspect-ratio: 16 / 9; }
@media (min-width: 760px) {
  .gallery__item { grid-column: span 4; aspect-ratio: 1 / 1; }
  .gallery__item--tall { grid-column: span 4; aspect-ratio: 3 / 4; grid-row: span 2; }
  .gallery__item--wide { grid-column: span 8; aspect-ratio: 16 / 9; }
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s var(--ease-organic), filter .4s;
}
.gallery__item:hover img { transform: scale(1.04); filter: saturate(1.08) brightness(1.02); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(212, 165, 63, 0);
  transition: box-shadow .3s;
  pointer-events: none;
  border-radius: inherit;
}
.gallery__item:hover::after { box-shadow: inset 0 0 0 2px var(--sun-500); }

.ambiente__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-top: 1px solid rgba(250, 246, 238, 0.1);
  border-bottom: 1px solid rgba(250, 246, 238, 0.1);
  margin-bottom: var(--space-6);
}
@media (min-width: 760px) {
  .ambiente__facts { grid-template-columns: repeat(3, 1fr); }
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact__num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--sun-300);
  letter-spacing: -0.02em;
  line-height: 1;
}
.fact__unit {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--sun-300);
  opacity: 0.7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: -4px;
}
.fact__label {
  font-size: var(--text-sm);
  color: rgba(250, 246, 238, 0.72);
  max-width: 24ch;
  margin-top: 4px;
}

/* ==== SEÇÃO 8: AUTORIDADE ==== */
.autoridade { padding-block: 0; background: var(--paper-50); }
.autoridade__grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 960px) {
  .autoridade__grid { grid-template-columns: 40% 60%; }
}
.autoridade__photo {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}
@media (min-width: 960px) {
  .autoridade__photo { min-height: 100vh; }
}
.autoridade__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.autoridade__badges {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(15, 31, 22, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 165, 63, 0.25);
  border-radius: 999px;
  color: var(--paper-100);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: all;
}
.badge strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--sun-300);
  letter-spacing: -0.02em;
  text-transform: none;
}
.autoridade__content {
  padding: clamp(60px, 10vw, 120px) clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.autoridade__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}
.autoridade__sub {
  font-size: var(--text-lg);
  color: var(--ink-500);
  margin-bottom: var(--space-5);
}

/* ==== SEÇÃO 9: INVESTIMENTO ==== */
.invest-card {
  background: var(--forest-900);
  color: var(--paper-100);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 72px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.invest-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 165, 63, 0.18), transparent 60%);
  pointer-events: none;
}
.invest-card__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-300);
  margin-bottom: var(--space-3);
}
.invest-card__value {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  line-height: 0.9;
}
.invest-card__currency {
  font-size: var(--text-2xl);
  padding-top: 18px;
  color: var(--sun-300);
  font-weight: 300;
}
.invest-card__num {
  font-size: clamp(72px, 10vw, 140px);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--paper-100);
}
.invest-card__meta {
  font-size: var(--text-sm);
  color: rgba(250, 246, 238, 0.7);
  margin-bottom: var(--space-4);
}
.invest-card__countdown {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun-300);
  padding: 8px 16px;
  background: rgba(212, 165, 63, 0.12);
  border-radius: 999px;
  margin-bottom: var(--space-5);
}
.invest-card__discount {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(212, 165, 63, 0.08);
  border: 1px solid rgba(212, 165, 63, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}
.invest-card__discount-tag {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--sun-300);
  line-height: 1;
}
.invest-card__discount span:last-child {
  font-size: var(--text-sm);
  color: rgba(250, 246, 238, 0.85);
  line-height: 1.5;
}
.invest-card__rule {
  border: 0;
  border-top: 1px solid rgba(250, 246, 238, 0.1);
  margin-block: var(--space-5);
}
.invest-card__subtitle {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-3);
}
.hosp-list { list-style: none; display: grid; gap: 10px; margin-bottom: var(--space-3); }
.hosp-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: 12px 0;
  border-bottom: 1px solid rgba(250, 246, 238, 0.08);
}
.hosp-list__label { font-size: var(--text-sm); color: rgba(250, 246, 238, 0.85); }
.hosp-list__price { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--sun-300); white-space: nowrap; }
.invest-card__note { font-size: var(--text-xs); color: rgba(250, 246, 238, 0.6); margin-bottom: var(--space-3); }
.invest-card__rationale {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  line-height: 1.6;
  color: rgba(250, 246, 238, 0.75);
  margin-bottom: var(--space-5);
  padding-left: var(--space-3);
  border-left: 2px solid var(--sun-500);
}
.invest-card__secondary {
  display: block;
  text-align: center;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(250, 246, 238, 0.65);
  transition: color .2s;
}
.invest-card__secondary:hover { color: var(--sun-300); }

/* ==== SEÇÃO 10: FAQ ==== */
.faq__list { display: grid; gap: 4px; margin-top: var(--space-6); }
.faq__item {
  background: var(--paper-50);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  transition: background .3s;
}
.faq__item[open] { background: var(--paper-80); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink-900);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--sun-500);
  font-size: var(--text-xl);
  font-weight: 300;
  transition: transform .3s var(--ease-organic);
}
.faq__item[open] summary { color: var(--cta-500); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer {
  padding: 0 var(--space-5) var(--space-5);
  animation: faqReveal .4s var(--ease-organic);
}
.faq__answer p { color: var(--ink-700); line-height: 1.7; font-size: var(--text-base); max-width: 68ch; }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==== SEÇÃO 11: CTA FINAL ==== */
.cta-final {
  position: relative;
  padding-block: clamp(100px, 14vw, 180px);
  background: var(--forest-900);
  overflow: hidden;
  color: var(--paper-100);
  text-align: center;
}
.cta-final__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
  z-index: 0;
}
.cta-final__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(15, 31, 22, 0.5) 0%, rgba(15, 31, 22, 0.92) 100%);
  z-index: 1;
}
.cta-final__content { position: relative; z-index: 2; }
.cta-final__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  text-wrap: balance;
  max-width: 22ch;
  margin-inline: auto;
}
.cta-final__text {
  font-size: var(--text-base);
  color: rgba(250, 246, 238, 0.78);
  line-height: 1.65;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-3);
}
.cta-final .btn { margin-top: var(--space-5); animation: ctaPulse 3s var(--ease-organic) infinite; }
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}
.cta-final__fineprint {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.45);
  margin-top: var(--space-6);
}

/* ==== FOOTER ==== */
.footer {
  background: var(--forest-900);
  color: rgba(250, 246, 238, 0.7);
  padding-block: var(--space-10) var(--space-5);
  font-size: var(--text-sm);
  border-top: 1px solid rgba(250, 246, 238, 0.06);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(250, 246, 238, 0.06);
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--paper-100);
  margin-bottom: 4px;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--sun-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--sun-300); }
.footer__copy {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(250, 246, 238, 0.4);
  flex-wrap: wrap;
}

/* ==== STICKY CTA (mobile) ==== */
.cta-sticky {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translate(-50%, 100px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--sun-500);
  color: var(--forest-900);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 12px 30px -6px rgba(15, 31, 22, 0.35);
  z-index: 80;
  opacity: 0;
  transition: transform .4s var(--ease-organic), opacity .4s;
}
.cta-sticky.is-visible { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 960px) { .cta-sticky { display: none; } }

/* ==== LIGHTBOX ==== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 22, 0.96);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.lightbox.is-open { display: flex; }
.lightbox__figure {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__caption {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(250, 246, 238, 0.7);
  max-width: 60ch;
  text-align: center;
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(250, 246, 238, 0.08);
  border: 1px solid rgba(250, 246, 238, 0.12);
  color: var(--paper-100);
  border-radius: 50%;
  font-size: 24px;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(250, 246, 238, 0.18); }
.lightbox__close { top: 24px; right: 24px; transform: none; }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }

/* ==== MOTION PREFERENCES ==== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .metodologia__photo img, .hero__video { animation: none; }
}

/* ==== PRINT ==== */
@media print {
  .header, .cta-sticky, .hero__video, .hero__scroll, .progress-bar, .lightbox, .footer { display: none; }
  .hero { min-height: auto; color: var(--ink-900); background: #fff; }
  .hero__overlay { display: none; }
}
