/* =========================================================================
   THEMES.CSS — identidade visual (Karoline & Felipe — guia oficial dos noivos)
   -------------------------------------------------------------------------
   Paleta oficial:
     Off-white  #F8F4EE  fundo predominante
     Vinho      #6C202D  títulos, inicial K, destaques
     Verde-sálvia #737B59  textos secundários, inicial F, menu, legendas
     Areia dourada #D0B697  linhas, bordas, divisores, ícones
     Linho      #E6D7C7  fundos alternativos e transições
   Tipografia: Cormorant Garamond (display) · Lora (corpo) · Montserrat (UI)
   Mood: boho chic · minimalista · natural · elegante · convite impresso
   ========================================================================= */

:root {
  /* ---- Neutros quentes (guia oficial) ---- */
  --off-white:   #F8F4EE;
  --linho:       #E6D7C7;
  --areia:       #E6D7C7;            /* seção alternada = linho */
  --areia-cheia: #D0B697;            /* areia dourada (swatch) */
  --card:        #FDFBF7;            /* branco quente (superfícies) */

  /* ---- Verdes ---- */
  --sage:        #737B59;            /* verde-sálvia oficial */
  --sage-deep:   #5F664A;            /* sálvia escurecida p/ texto (≥4.5:1) */
  --oliva:       var(--sage-deep);   /* acento/links usam a sálvia legível */

  /* ---- Acentos ---- */
  --vinho:       #6C202D;
  --ameixa:      var(--vinho);
  --petroleo:    var(--sage-deep);

  /* ---- Ouro / areia dourada ---- */
  --gold:        #B9976B;
  --gold-soft:   #D0B697;

  /* ---- Tokens semânticos ---- */
  --bg:          var(--off-white);
  --bg-alt:      var(--linho);
  --bg-dark:     var(--vinho);
  --text:        var(--vinho);
  --text-soft:   var(--sage-deep);
  --text-inv:    #F8F4EE;
  --accent:      var(--sage);        /* botões / elementos funcionais */
  --accent-2:    var(--vinho);
  --accent-soft: #EAEDE2;            /* sálvia pálida (focus ring) */
  --line:        oklch(0.78 0.04 80 / 0.45);
  --gold-line:   rgba(185, 151, 107, 0.55);

  /* ---- Hero claro (convite) ---- */
  --hero-gradient: radial-gradient(120% 90% at 50% 8%, #FBF8F2 0%, var(--off-white) 55%, var(--linho) 100%);
  --hero-overlay: none;

  /* ---- Tipografia (guia oficial) ---- */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Montserrat', system-ui, sans-serif;
  --font-script:  'Cormorant Garamond', cursive;

  --radius: 3px;
  color-scheme: light;
}

/* =========================================================================
   Identidade: header, hero e componentes
   ========================================================================= */

body { line-height: 1.72; }
:root { --section-y: clamp(4.5rem, 11vw, 8rem); }

/* ---- Eyebrow: pequeno subtitle em caps espaçadas (sálvia), como no guia ---- */
.eyebrow {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--sage-deep);
  margin-bottom: 0.15rem;
}
.section-title { font-weight: 500; letter-spacing: 0.02em; color: var(--vinho); }

/* ---- Nav ---- */
.nav__brand, .nav__links a, .nav__toggle { color: var(--text); }
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: baseline; gap: 0.55rem;
}
.nav__sep { width: 1px; height: 1.35em; background: var(--gold); align-self: center; }
.nav__k { color: var(--vinho); }
.nav__f { color: var(--sage); }
.nav__sep { width: 1px; height: 1.35em; background: var(--gold); align-self: center; }
.nav__links a { font-family: var(--font-ui); font-weight: 400; }
.nav__links a.is-active { border-bottom: 1px solid var(--gold); }

/* ---- Hero (monograma K | F, nomes, data, countdown) ---- */
.hero { color: var(--text); }
.hero__scroll { z-index: 2; color: var(--sage-deep); opacity: 0.8; }

.hero__mono {
  display: flex; align-items: center; justify-content: center; gap: clamp(1.4rem, 4vw, 2.6rem);
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(5.25rem, 17.5vw, 10.6rem); line-height: 1;
}
.hero__mono .k { color: var(--vinho); }
.hero__mono .f { color: var(--sage); }
.hero__mono .bar { width: 1px; height: clamp(4.5rem, 13.75vw, 8.25rem); background: var(--gold-line); }

.hero__names {
  font-size: clamp(2rem, 6.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vinho);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .hero__names { letter-spacing: 0.06em; }
}
.hero__amp { font-style: normal; color: var(--sage); padding-inline: 0.05em; }

.hero__date {
  margin-top: 1.2rem;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em; /* compensa o tracking na última letra */
  color: var(--sage-deep);
}

/* divisor dourado com ornamento central (como no convite) */
.hero__divider {
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  margin: 1.8rem auto 1.6rem; max-width: 22rem; color: var(--gold);
}
.hero__divider::before, .hero__divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gold-line);
}
.hero__divider-leaf { width: 52px; height: 32px; fill: currentColor; }

/* countdown do convite: números vinho, rótulos sálvia, separadores finos */
.countdown--hero { margin-top: 2.2rem; color: var(--vinho); gap: 0; flex-wrap: nowrap; }
.countdown--hero .countdown__unit {
  min-width: clamp(5.2rem, 13.5vw, 9.6rem);
  padding-inline: clamp(0.4rem, 1.5vw, 1.2rem);
}
.countdown--hero .countdown__unit + .countdown__unit { border-left: 1px solid var(--gold-line); }
.countdown--hero .countdown__num {
  color: var(--vinho); font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: clamp(2.4rem, 7vw, 4.3rem);
}
.countdown--hero .countdown__label { color: var(--sage-deep); letter-spacing: 0.22em; }

/* ---- Folhagem do hero (aquarelas de canto, como no convite) ---- */
.hero__leaf {
  position: absolute; z-index: 0; height: clamp(220px, 36vh, 420px); width: auto;
  opacity: 0.6; pointer-events: none;
}
.hero__leaf--tr { top: 8%; right: 0; transform: rotate(178deg) scaleX(-1); }
.hero__laurel { display: none; }
.hero__frame { display: none; }

.lf-stem { fill: none; stroke: currentColor; stroke-width: 0.85; stroke-linecap: round; }
.lf-leaf { fill: currentColor; }

/* ---- Divisor dourado de seção ---- */
.rule { color: var(--gold); max-width: 16rem; }
.rule::before, .rule::after { background: var(--gold-line); }
.rule__dot {
  width: 9px; height: 13px; transform: rotate(45deg);
  background: var(--gold); border-radius: 50% 0 50% 0;
}

/* ---- Countdown padrão ---- */
.countdown__num { color: var(--vinho); }
.countdown__label { color: var(--sage-deep); }

/* ---- Timeline ---- */
.tl-year { color: var(--sage-deep); font-style: italic; }
.tl-dot {
  background: var(--gold);
  border-color: var(--bg);
  box-shadow: 0 0 0 1px var(--gold-line);
}

/* ---- Local / Venue ---- */
.venue__eyebrow { color: var(--sage-deep); letter-spacing: 0.22em; }
.venue__name { color: var(--vinho); }
.venue__time { color: var(--vinho); }
.venue__map { filter: sepia(0.18) saturate(0.92) contrast(1.02); }

/* ---- Formulários ---- */
.field label { color: var(--sage-deep); letter-spacing: 0.14em; }
.choice input:checked + label {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--text-inv);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---- Cartões ---- */
.venue, .gift, .info-card, .rsvp-form {
  background: var(--card);
  border-color: var(--line);
  box-shadow: 0 26px 52px -38px rgba(108, 32, 45, 0.35);
}
.gift__title, .info-card h3, .venue__name { letter-spacing: 0.01em; }
.gift__icon, .info-card__icon { color: var(--gold); }
.info-card__contact { color: var(--sage-deep); }
.pix-box { background: var(--linho); }
.pix-copy { color: var(--sage-deep); }

/* ---- Ícones line-art ---- */
.ico { width: 1.7em; height: 1.7em; display: block; margin-inline: auto; }

/* ---- Botões (pílula, Montserrat, sálvia) ---- */
.btn {
  font-family: var(--font-ui);
  border-radius: 999px;
  padding: 0.95rem 2.2rem;
}
.btn--ghost { background: transparent; color: var(--sage-deep); border-color: var(--gold); }
.btn--ghost:hover { background: var(--sage); border-color: var(--sage); color: var(--text-inv); }

/* ---- Galeria ---- */
.ph { color: var(--linho); }

/* ---- Rodapé (vinho, como o convite) ---- */
.footer { background: var(--vinho); }
.footer .script { color: var(--gold-soft); font-size: clamp(1.5rem, 3vw, 1.9rem); }
.footer__hash { color: var(--off-white); }
.footer p { color: rgba(248, 244, 238, 0.82); }
.footer__credit { color: rgba(248, 244, 238, 0.55); }

/* =========================================================================
   Ornamentos botânicos + delicadeza
   ========================================================================= */

.section { position: relative; overflow: hidden; }
.section .container { position: relative; z-index: 1; }

/* divisor botânico sob cada título de seção (linha + folha, areia/sálvia) */
.section-title::after {
  content: ''; display: block; width: 150px; height: 14px;
  margin: 1rem auto 0; opacity: 0.85;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 14'><line x1='4' y1='7' x2='62' y2='7' stroke='%23B9976B' stroke-width='0.8'/><line x1='88' y1='7' x2='146' y2='7' stroke='%23B9976B' stroke-width='0.8'/><path d='M75 1.5C79 4.5 79 9.5 75 12.5C71 9.5 71 4.5 75 1.5Z' fill='%23737B59'/></svg>") center / contain no-repeat;
}

/* aquarelas de canto por seção */
.section::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: clamp(92px, 13vw, 168px); height: clamp(140px, 20vw, 264px);
  background: var(--botany, none) no-repeat center / contain;
  opacity: var(--botany-op, .55);
  bottom: 1.5%; right: 2%;
  transform: scaleX(-1);
}
#historia::after, #mensagem::after, #dicas::after, #presentes::after, #dresscode::after {
  top: 1.5%; left: 2%; right: auto; bottom: auto; transform: none;
}
#historia  { --botany: url("/assets/elementos/elemento-01.png"); }
#local     { --botany: url("/assets/elementos/elemento-02.png"); }
#mensagem  { --botany: url("/assets/elementos/elemento-05.png"); }
#presentes { --botany: url("/assets/elementos/elemento-03.png"); --botany-op: .6; }
#dicas     { --botany: url("/assets/elementos/elemento-06.png"); }
#rsvp      { --botany: url("/assets/elementos/elemento-04.png"); --botany-op: .5; }
#dresscode { --botany: url("/assets/elementos/elemento-01.png"); }

@media (max-width: 620px) {
  .section::after {
    width: clamp(76px, 22vw, 120px); height: clamp(116px, 32vw, 190px);
    opacity: var(--botany-op, .42);
  }
}

/* ---- Rodapé ---- */
.footer { position: relative; overflow: hidden; }
.footer .container { position: relative; z-index: 1; }
.footer__pampas {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(120px, 16vw, 210px); opacity: .4;
}
.footer__pampas--l { left: clamp(2%, 6vw, 8%); bottom: 8%; }
.footer__pampas--r { right: clamp(2%, 6vw, 8%); bottom: 8%; transform: scaleX(-1); }
@media (max-width: 700px) { .footer__pampas { display: none; } }
.footer__aquarela {
  display: block; width: clamp(55px, 7.5vw, 84px); margin: 0 auto clamp(1rem, 2.5vw, 1.6rem);
  opacity: 0.6; mix-blend-mode: multiply; border-radius: 6px;
}
.footer__seal {
  width: clamp(150px, 22vw, 196px);
  margin: 0 auto clamp(1.3rem, 3vw, 1.9rem);
  background: #fff;
  padding: clamp(12px, 1.6vw, 17px);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px var(--gold-line),
    0 26px 48px -30px rgba(0,0,0,.55);
}
.footer__seal img { display: block; width: 100%; height: auto; }

.btn { padding: 0.95rem 2.2rem; }

/* ---- RSVP por assessoria (card de convite) ---- */
.rsvp-card {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
}
.rsvp-card__deadline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.06em;
  color: var(--vinho);
}
.rsvp-card__deadline strong { font-weight: 600; }
.rsvp-card__sep {
  width: 1px; height: 2.6rem; margin: 1.4rem auto;
  background: var(--gold-line);
}
.rsvp-card__text { color: var(--sage-deep); max-width: 28rem; margin: 0 auto 1.8rem; }
.rsvp-card__text strong { color: var(--vinho); font-weight: 400; }

