/* ==========================================================================
   Site do Casamento — folha de estilo base
   Tipografia: Pinyon Script (nomes e títulos) + EB Garamond (todo o resto)
   Paleta: bordô sobre creme
   ========================================================================== */

:root {
  --bg:          #F4F1EA;
  --bg-alt:      #EBE5D9;
  --bg-card:     #FAF7F1;
  --ink:         #5E2230;
  --ink-soft:    #8A5A66;
  --ink-strong:  #4A0F1C;
  --line:        #DCD0C0;
  --line-soft:   #E7DFD2;
  --accent:      #7D2B3B;

  --serif:   'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;
  --display: 'Pinyon Script', 'EB Garamond', Georgia, serif;

  --gutter: 16px;
  --measure: 640px;
  --wide: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* --------------------------------------------------------------- tipografia */

.display {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink-strong);
  line-height: 1.35;
  letter-spacing: 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

h2.section-title {
  font-family: var(--display);
  font-size: clamp(42px, 8vw, 62px);
  font-weight: 400;
  color: var(--ink-strong);
  letter-spacing: 0;
  margin: 0 0 14px;
  line-height: 1.3;
}

h3 {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-strong);
  margin: 0 0 14px;
}

p { margin: 0 0 18px; }

b, strong { font-weight: 500; color: var(--ink-strong); }

.lead { font-size: 19px; }

.muted { color: var(--ink-soft); }

/* texto de abertura em caixa alta, como na referência — escrito em caixa normal
   no HTML para facilitar a edição */
.intro-text {
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .09em;
  line-height: 2.15;
}
.intro-text p { margin: 0 0 26px; }

/* link que não muda a aparência do texto */
.plain-link {
  color: inherit;
  text-decoration: none;
  border: 0;
}

.contact-phone { font-size: 22px; letter-spacing: .06em; }
.contact-phone a {
  color: var(--ink-strong);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .2s ease;
}
.contact-phone a:hover { border-bottom-color: var(--accent); }

/* ------------------------------------------------------------------ layout */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow { max-width: var(--measure); margin-left: auto; margin-right: auto; }

section { padding: 84px 0; }

.center { text-align: center; }

.section-head {
  text-align: center;
  margin-bottom: 52px;
}

/* ornamento divisor */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 16px;
  color: var(--accent);
}
.ornament::before,
.ornament::after {
  content: '';
  display: block;
  width: 54px;
  height: 1px;
  background: var(--line);
}
.ornament svg { width: 15px; height: 15px; opacity: .75; }

/* -------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-stuck { border-bottom-color: var(--line-soft); }

.nav-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.nav a {
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink-strong);
  border-bottom-color: var(--accent);
}

/* ---------------------------------------------------------- idiomas */

.lang {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lang-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  opacity: .38;
  filter: saturate(.5);
  transition: opacity .2s ease, filter .2s ease;
}
.lang-btn:hover { opacity: .75; filter: saturate(.85); }
.lang-btn.is-on { opacity: 1; filter: none; }
.lang-btn svg {
  width: 22px;
  height: 16px;
  display: block;
  border: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 8px 0;
  cursor: pointer;
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px var(--gutter) 60px;
  overflow: hidden;
}

/* desenho da Casa Maciço ao fundo da capa.
   O branco da aquarela já foi gravado como transparência no próprio arquivo, então
   aqui basta opacidade — sem mix-blend-mode, que não rendia junto com máscara e filtro. */
.hero > .hero-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url('../img/casa-macico.webp');
  background-repeat: no-repeat;
  background-position: center 62%;
  background-size: 1100px auto;
  opacity: .42;
  filter: saturate(.72);
}

/* véu na cor do fundo (#F4F1EA) que dissolve o topo e a base do desenho.
   Feito com gradiente por cima, em vez de mask, para não depender de suporte a máscara. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(244, 241, 234, 1) 0%,
    rgba(244, 241, 234, 0) 26%,
    rgba(244, 241, 234, 0) 76%,
    rgba(244, 241, 234, 1) 100%
  );
}

/* o ramo de folhas continua em main.js, caso queiram voltar a usá-lo */
.hero > .hero-art { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-art svg { position: absolute; color: var(--accent); opacity: .08; }
.hero-art .leaf-tl { top: -130px; left: -160px;  width: 330px; }
.hero-art .leaf-tr { top: -110px; right: -170px; width: 350px; transform: scaleX(-1); }
.hero-art .leaf-bl { bottom: -150px; left: -150px; width: 300px; transform: scaleY(-1); }

/* conteúdo acima do desenho de fundo — os fundos usam .hero > .hero-*,
   com especificidade maior, para não serem pegos por esta regra */
.hero > * { position: relative; z-index: 1; }

/* monograma entrelaçado: M e G na caligrafia dos nomes.
   --lap controla o quanto o G avança sobre o M (A -.20em, B -.06em, C .10em) */
.monogram {
  font-family: var(--display);
  font-size: 50px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
}
.monogram .g { margin-left: var(--lap, -.12em); }

.hero-names {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 11vw, 104px);
  letter-spacing: 0;
  color: var(--ink-strong);
  margin: 0;
  line-height: 1.35;
}

.hero-date {
  margin-top: 34px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-strong);
}

.hero-place {
  margin-top: 13px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-strong);
  font-style: italic;
}

/* halo na cor do fundo: invisível no creme liso, mas separa o texto do desenho */
.hero .monogram,
.hero-names,
.hero-date,
.hero-place {
  text-shadow:
    0 0 10px rgba(244, 241, 234, 1),
    0 0 22px rgba(244, 241, 234, .95),
    0 0 40px rgba(244, 241, 234, .8);
}

/* --------------------------------------------------------------- countdown */

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 6vw, 56px);
  margin-top: 46px;
}
.cd-unit { min-width: 56px; }
/* números em EB Garamond: o script não serve para algarismos */
.cd-num {
  font-family: var(--serif);
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 400;
  color: var(--ink-strong);
  line-height: 1;
  letter-spacing: .04em;
}
.cd-label {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ cards */

.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  padding: 40px 32px;
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.event-when {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.event-hour {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: .12em;
  color: var(--ink-strong);
  line-height: 1;
  margin: 14px 0 18px;
}
.event-card p { margin-bottom: 8px; }
.event-card .venue { font-style: italic; color: var(--ink-strong); }

/* ------------------------------------------------------------------ trajes */

/* um bloco só, dividido por um fio — no celular vira um embaixo do outro */
.dress {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.dress > div {
  padding: 48px 40px;
  text-align: center;
}
.dress > div + div { border-left: 1px solid var(--line-soft); }
.dress h3 { margin-bottom: 22px; }
.dress p { margin-bottom: 14px; }

/* ----------------------------------------------------------------- botões */

.btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-strong);
  background: transparent;
  border: 1px solid var(--line);
  padding: 15px 34px;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--bg-alt); border-color: var(--accent); }

.btn-solid {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: var(--bg);
}
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.btn-sm { padding: 10px 20px; font-size: 11px; letter-spacing: .18em; }

/* --------------------------------------------------- lista de atalhos (nav cards) */

.shortcuts { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }

.shortcut {
  background: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 30px;
  text-decoration: none;
  transition: background .25s ease, padding-left .25s ease;
}
.shortcut:hover { background: var(--bg-alt); padding-left: 38px; }
.shortcut .bar { width: 1px; height: 26px; background: var(--accent); flex: none; }
.shortcut .label {
  flex: 1;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-strong);
}
.shortcut .desc {
  display: block;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  margin-top: 4px;
  font-style: italic;
}
.shortcut .arrow { color: var(--accent); font-size: 18px; }

/* --------------------------------------------------------------------- FAQ */

.faq { max-width: 680px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 34px 20px 0;
  position: relative;
  font-size: 17px;
  color: var(--ink-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent);
}
.faq details[open] summary::after { content: '–'; }
.faq .faq-body { padding: 0 34px 22px 0; color: var(--ink-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ footer */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 56px var(--gutter) 46px;
  text-align: center;
  background: var(--bg-alt);
}
.footer .monogram { font-size: 34px; margin-bottom: 14px; }
.footer p { margin: 0 0 6px; font-size: 14px; color: var(--ink-soft); }
.footer .to-top {
  display: inline-block;
  margin-top: 22px;
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- formulário */

.field { margin-bottom: 26px; text-align: left; }
.field label {
  display: block;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 9px;
}
.field input[type='text'],
.field input[type='email'],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-strong);
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 13px 15px;
  outline: none;
  transition: border-color .2s ease;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field .hint { font-size: 13px; color: var(--ink-soft); font-style: italic; margin-top: 7px; }

/* pessoa do convite */
.guest {
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
  padding: 22px 24px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.guest-name { font-size: 20px; color: var(--ink-strong); }
.guest-kind { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.choice { display: flex; gap: 8px; }
.choice button {
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s ease;
}
.choice button:hover { border-color: var(--accent); color: var(--ink-strong); }
.choice button[aria-pressed='true'] {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: var(--bg);
}
.choice button.no[aria-pressed='true'] {
  background: var(--bg-alt);
  border-color: var(--line);
  color: var(--ink-soft);
}

/* ------------------------------------------------------- mural de recados */

.note {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  padding: 28px 30px;
  margin-bottom: 16px;
  text-align: center;
}
.note-text {
  font-style: italic;
  font-size: 19px;
  color: var(--ink-strong);
  margin: 0 0 14px;
}
.note-author {
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

/* -------------------------------------------------------------- presentes */

.gift {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  padding: 30px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.gift-icon { color: var(--accent); margin: 0 auto 16px; }
.gift-name {
  font-size: 18px;
  color: var(--ink-strong);
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}
.gift-price {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: .08em;
  color: var(--ink-strong);
  line-height: 1;
  margin-bottom: 22px;
}
.gift-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* quem presenteou — mesmo bloco para PIX e para cartão */
.registro {
  border-top: 1px solid var(--line-soft);
  margin-top: 22px;
  padding-top: 20px;
  text-align: left;
}
.registro .field { margin-bottom: 16px; }
.registro textarea { min-height: 72px; }
.registro [data-registro-ok] { text-align: center; }
.registro button[disabled] { opacity: .45; cursor: not-allowed; }

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(74, 69, 61, .38);
  backdrop-filter: blur(3px);
}
.modal.is-open { display: flex; }
.modal-box {
  background: var(--bg);
  border: 1px solid var(--line);
  max-width: 440px;
  width: 100%;
  padding: 32px 30px 30px;
  text-align: center;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.qr-box {
  width: 150px;
  height: 150px;
  margin: 18px auto 14px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pix-key {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  padding: 11px 13px;
  color: var(--ink);
  text-align: left;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------- utilitários */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* revelar ao rolar */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }

  /* "Menu" de um lado, bandeiras do outro, e os links abaixo quando abre */
  .nav-inner { flex-wrap: wrap; gap: 0; justify-content: space-between; }
  .nav-toggle { display: block; order: 1; }
  .lang { order: 2; }
  .nav-links { order: 3; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 0 16px;
    border-top: 1px solid var(--line-soft);
    margin-top: 10px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 0; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 32px 22px; }

  .dress { grid-template-columns: 1fr; }
  .dress > div { padding: 38px 26px; }
  .dress > div + div { border-left: 0; border-top: 1px solid var(--line-soft); }
  .shortcut { padding: 22px 20px; gap: 14px; }
  .shortcut:hover { padding-left: 20px; }
  .guest { flex-direction: column; align-items: flex-start; }
  .choice { width: 100%; }
  .choice button { flex: 1; }
  .hero > .hero-scene {
    background-size: 190% auto;
    background-position: center 58%;
    opacity: .36;
  }

  .hero > .hero-art .leaf-tl { width: 210px; left: -105px; top: -80px; }
  .hero > .hero-art .leaf-tr { width: 220px; right: -115px; top: -70px; }
  .hero > .hero-art .leaf-bl { display: none; }
  .countdown { gap: 16px; }
}

@media (min-width: 721px) {
  .nav-links { display: flex !important; align-items: center; gap: 30px; }
}
