/* ============ Letícia & Mateus — 07.11.2026 ============ */
/* Tokens oficiais: paleta do manual de identidade (Estúdio Pinus) */
:root {
  --wedding-white: #F7F7F4;
  --wedding-paper: #F8F7F5;
  --wedding-sand: #E8E3D6;
  --wedding-light-green: #DCE3D1;
  --wedding-olive: #7C8B66;
  --wedding-dark-green: #3E4B34;
  --wedding-navy: #17436A;
  --wedding-wood: #8A6A4E;
  --wedding-text: var(--wedding-navy);
  --wedding-background: var(--wedding-white);
  --wedding-surface: var(--wedding-paper);
  --wedding-border: rgba(23, 67, 106, 0.16);
  --wedding-border: color-mix(in srgb, var(--wedding-navy) 16%, transparent);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: Manrope, Inter, system-ui, sans-serif;
  --container: 1240px;
}

@font-face { font-family: 'Cormorant Garamond'; src: url('../assets/fonts/cormorant-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../assets/fonts/cormorant-300italic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../assets/fonts/cormorant-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/manrope-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../assets/fonts/manrope-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--wedding-text);
  background: var(--wedding-background);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; letter-spacing: 0.035em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.12; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; }
p { margin: 0 0 1em; }
strong { font-weight: 500; } /* só Manrope 400/500 são embarcadas — evita negrito sintético */
a { color: var(--wedding-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--wedding-navy); outline-offset: 3px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 0.7rem 1.1rem;
  background: var(--wedding-navy); color: var(--wedding-white); border-radius: 0 0 4px 4px;
  font-size: 0.82rem; letter-spacing: 0.08em; text-decoration: none; transition: top 200ms ease; }
.skip-link:focus-visible { top: 0; outline-color: var(--wedding-white); outline-offset: -5px; }

/* ---------- layout primitives ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.section { padding-block: clamp(3.5rem, 9vw, 9rem); }
.section--paper { background: var(--wedding-paper); }
.section--sand { background: var(--wedding-sand); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.grid--start { align-items: start; }
.grid--stretch { align-items: stretch; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.span-8--center { grid-column: 3 / span 8; }
@media (max-width: 820px) { .grid > * { grid-column: span 12 !important; } }

.u-center { text-align: center; }
.stack { display: grid; gap: clamp(20px, 3vw, 40px); align-content: start; }
.btn-row { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.section-label {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--wedding-dark-green);
  display: flex; align-items: center; gap: 14px; margin-bottom: 1.2rem;
}
.section-label::after { content: ""; height: 1px; width: 56px; background: var(--wedding-border); }
.section-label--center { justify-content: center; }
.section-label--center::before { content: ""; height: 1px; width: 56px; background: var(--wedding-border); }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--wedding-dark-green); }

.paper-card {
  background: var(--wedding-surface);
  border: 1px solid var(--wedding-border);
  border-radius: 4px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 0.9rem 1.4rem; border-radius: 2px; cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease;
}
.btn--primary { color: var(--wedding-white); background: var(--wedding-navy); border: 1px solid var(--wedding-navy); }
.btn--primary:hover { background: #10314e; }
.btn--ghost { color: var(--wedding-navy); background: transparent; border: 1px solid var(--wedding-navy); }
.btn--ghost:hover { background: rgba(23, 67, 106, 0.06); }
/* Link ainda não liberado: contorno quieto, contraste pleno (o sólido volta quando o link chegar) */
.btn--pending { background: transparent; color: var(--wedding-navy);
  border: 1px solid color-mix(in srgb, var(--wedding-navy) 45%, transparent); cursor: not-allowed; }
.btn--pending:hover { background: transparent; }
.btn--pending .btn__pending-note { display: inline; }
.btn__pending-note { display: none; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: none; opacity: 0.75; }

.photo-frame { border-radius: 4px; overflow: hidden; border: 1px solid var(--wedding-border); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame--square { aspect-ratio: 1 / 1; }

.icon { width: 44px; height: 44px; color: var(--wedding-olive); }
.icon--navy { color: var(--wedding-navy); }
.icon--heart { width: 15px; height: 15px; color: var(--wedding-navy); vertical-align: -2px; }

/* ---------- reveals (progressivos: sem JS, tudo visível) ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(.22,.61,.36,1), transform 700ms cubic-bezier(.22,.61,.36,1); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- fixed nav ---------- */
.site-nav { position: fixed; inset-inline: 0; top: 0; z-index: 50;
  background: rgba(247, 247, 244, 0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wedding-border); }
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.site-nav__brand img { height: 44px; width: auto; }
.site-nav__menu { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); list-style: none; margin: 0; padding: 0; }
.site-nav__menu a:not(.btn) { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-decoration: none; white-space: nowrap; }
.site-nav__menu a:not(.btn):hover { text-decoration: underline; }
.btn--nav { padding: 0.7rem 1.1rem; white-space: nowrap; }
.btn--nav .btn__pending-note { display: none !important; } /* na nav o aviso fica só no title */
.site-nav__toggle { display: none; }
@media (max-width: 1120px) {
  .site-nav__toggle { display: inline-block; background: none; border: 1px solid var(--wedding-border);
    border-radius: 2px; padding: 0.5rem 0.9rem; font: inherit; font-size: 0.8rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--wedding-navy); }
  .site-nav__menu { display: none; position: absolute; top: 72px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem clamp(20px, 4vw, 40px) 1.4rem;
    background: var(--wedding-paper); border-bottom: 1px solid var(--wedding-border); }
  .site-nav__menu.is-open { display: flex; }
  .site-nav__menu a:not(.btn) { display: block; padding: 0.7rem 0; font-size: 0.9rem; }
  .site-nav__menu .btn--nav { margin-top: 0.8rem; text-align: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92vh; display: grid; place-items: center; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247,247,244,0.55) 0%, rgba(247,247,244,0.28) 45%, rgba(247,247,244,0.82) 100%); }
.hero__content { position: relative; text-align: center; padding-top: 88px; }
.hero__monogram { margin: 0 auto 1.2rem; height: 72px; width: auto; }
.hero__names em { font-style: italic; font-weight: 300; }
.hero__meta { font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 2rem; }
.hero__scroll { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  text-decoration: none; font-size: 1.4rem; padding: 10px 16px; }
@media (max-width: 700px) { .hero { min-height: 86vh; } }
@media (max-height: 560px) { .hero__scroll { display: none; } }

/* ---------- countdown ---------- */
.countdown { display: flex; justify-content: center; gap: clamp(16px, 4vw, 42px); margin-block: 1.4rem 1.8rem; }
.countdown__cell { display: grid; gap: 2px; min-width: 74px; }
.countdown__num { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 360px) {
  .countdown { gap: 10px; }
  .countdown__cell { min-width: 62px; }
}
.countdown__lbl { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--wedding-dark-green); }
.countdown__state { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); }

/* garante que o atributo hidden vença displays de classe (ex.: .countdown) */
[hidden] { display: none !important; }

/* ---------- história ---------- */
.story h3 { margin-top: 0.8rem; }
.story .icon { width: 38px; height: 38px; }

/* ---------- agenda ---------- */
.agenda { display: grid; align-content: start; gap: 0.5rem; }
.agenda .icon { width: 36px; height: 36px; }
.agenda__time { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wedding-dark-green); margin: 0; }

/* ---------- lugar ---------- */
.photo-frame--wide { aspect-ratio: 3 / 2; }
.capela-fig { margin: 0; }
.capela-fig svg { width: 100%; height: auto; display: block; }
.capela-fig--wide svg { height: clamp(380px, 44vw, 540px); width: auto; max-width: 100%; margin-inline: auto; }

/* ---------- idioma (PT | EN) ---------- */
.site-nav__lang { display: flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--wedding-navy); }
.lang-btn { background: none; border: none; font: inherit; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--wedding-navy); cursor: pointer; padding: 4px 3px; opacity: 0.5; }
.lang-btn:hover { opacity: 0.85; }
.lang-btn[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.hero__lang { margin-top: 1.4rem; font-size: 0.85rem; }
.lang-link { background: none; border: none; font: inherit; color: var(--wedding-navy); cursor: pointer;
  padding: 2px 4px; text-decoration: underline; text-underline-offset: 3px; }
.lang-link[aria-pressed="true"] { text-decoration: none; font-weight: 500; }
@media (max-width: 1120px) { .site-nav__lang { padding: 0.7rem 0; } }

/* ---------- rsvp ---------- */
.rsvp-card { max-width: 640px; margin-inline: auto; }
.rsvp-card__note { font-size: 0.9rem; color: var(--wedding-dark-green); margin: 1.2rem 0 0; }

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--wedding-border); }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.02em;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.9rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-family: var(--font-display); font-size: 1.5rem;
  line-height: 1; color: var(--wedding-olive); transition: transform 250ms ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > p { margin: 0 0 1.1rem; }
.faq-item > div { padding-bottom: 1.1rem; }
.faq-item > div > :last-child { margin-bottom: 0; }
.faq-item ul, .faq-item ol { margin: 0 0 1em; padding-left: 1.3rem; }
.faq-item li { margin-bottom: 0.35em; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

/* ---------- footer ---------- */
.footer { background: var(--wedding-navy); color: var(--wedding-white); text-align: center; padding-block: clamp(3rem, 7vw, 5rem); }
.footer :focus-visible { outline-color: var(--wedding-white); }
.footer__inner img { margin: 0 auto 1rem; }
.footer__names { font-family: var(--font-display); font-size: 1.7rem; margin: 0; }
.footer__meta { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.footer__love { margin-top: 1.6rem; font-size: 0.9rem; opacity: 0.9; }
.footer__egg { background: none; border: none; color: inherit; cursor: pointer; vertical-align: -9px; padding: 9px; }
.footer__egg .icon { color: currentColor; display: block; }
.footer__egg:hover .icon { transform: rotate(-8deg); transition: transform 250ms ease; }
.footer__egg-card { max-width: 420px; margin: 1rem auto 0; border: 1px solid rgba(247,247,244,0.35); border-radius: 4px; padding: 1rem 1.2rem; }
.footer__egg-card p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Elevação de design — atmosfera, entrada orquestrada e ornamentos de marca
   ========================================================================== */

/* entrada do hero em sequência (uma única cena bem coreografada) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__content > * { animation: rise 900ms cubic-bezier(.22,.61,.36,1) both; }
.hero__content > *:nth-child(1) { animation-delay: 200ms; }
.hero__content > *:nth-child(2) { animation-delay: 420ms; }
.hero__content > *:nth-child(3) { animation-delay: 640ms; }
.hero__content > *:nth-child(4) { animation-delay: 860ms; }
.hero__content > *:nth-child(5) { animation-delay: 1080ms; }
.hero__scroll { animation: rise 900ms cubic-bezier(.22,.61,.36,1) 1500ms both; }
.hero__img { animation: hero-drift 16s ease-out both; }
@keyframes hero-drift { from { transform: scale(1.045); } to { transform: scale(1); } }
.hero .eyebrow { color: var(--wedding-navy); }

/* reveals em cascata dentro de grids */
.grid > .reveal:nth-child(2) { transition-delay: 100ms; }
.grid > .reveal:nth-child(3) { transition-delay: 200ms; }
.grid > .reveal:nth-child(4) { transition-delay: 300ms; }

/* texturas do manual de identidade, em opacidade de sussurro */
#contagem { position: relative; }
#contagem::after { content: ""; position: absolute; inset: 0;
  background: url('../assets/img/tex-mar.webp') center bottom / 880px auto no-repeat;
  opacity: 0.038; pointer-events: none; }
#contagem .container { position: relative; }

#fimdesemana { position: relative; overflow: hidden; }
#fimdesemana::after { content: ""; position: absolute; top: 0; bottom: 0; right: -140px; width: 460px;
  background: url('../assets/img/tex-palha.webp') right center / cover no-repeat;
  opacity: 0.05; pointer-events: none; }
#fimdesemana .container { position: relative; }

#historia { position: relative; overflow: hidden; }
#historia::before { content: ""; position: absolute; right: -90px; top: 36px; width: 380px; height: 394px;
  background: url('../assets/img/coral-navy.webp') center / contain no-repeat;
  opacity: 0.06; pointer-events: none; }
#historia .container { position: relative; }

.rsvp-card { position: relative; overflow: hidden; }
.rsvp-card::before { content: ""; position: absolute; inset: 0;
  background: url('../assets/img/tex-coral.webp') center / cover no-repeat;
  opacity: 0.05; pointer-events: none; }
.rsvp-card > * { position: relative; }

/* corais brancos ladeando o rodapé */
.footer { position: relative; overflow: hidden; }
.footer::before, .footer::after { content: ""; position: absolute; bottom: -70px; width: 300px; height: 310px;
  background: url('../assets/img/coral-white.webp') center / contain no-repeat;
  opacity: 0.14; pointer-events: none; }
.footer::before { left: -80px; }
.footer::after { right: -80px; transform: scaleX(-1); }
.footer .container { position: relative; }
@media (max-width: 700px) {
  .footer::before, .footer::after { width: 190px; height: 200px; bottom: -46px; opacity: 0.1; }
  .footer::before { left: -70px; }
  .footer::after { right: -70px; }
}

/* presentes sobre a foto do mar (da Letícia) */
.presentes-mar { position: relative; overflow: hidden; }
.presentes-mar__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.presentes-mar__veil { position: absolute; inset: 0; background: rgba(247, 247, 244, 0.62); }
.presentes-mar__content { position: relative; }

/* movimento reduzido: tudo estático e visível */
@media (prefers-reduced-motion: reduce) {
  .hero__content > *, .hero__scroll, .hero__img { animation: none; }
  .grid > .reveal { transition-delay: 0ms; }
}

/* dress code: aquarela de fundo em toda a seção, véu uniforme e texto por cima
   (mesmo padrão da seção de presentes sobre o mar) */
.dress-fundo { position: relative; overflow: hidden; }
.dress-fundo__bg { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%; }
.dress-fundo__veil { position: absolute; inset: 0; background: rgba(247, 247, 244, 0.68); }
.dress-fundo__content { position: relative; }
.dress-fundo__text { max-width: 620px; margin: 1.2rem auto 0; }
.dress-fundo__text ul { margin-bottom: 0; }
.dress-fundo__text li { margin-bottom: 0.45em; }
.dress-fundo__text li:last-child { margin-bottom: 0; }

/* inspirações de traje: uma seção inteira para elas, outra para eles (par colado) */
.look-full { margin: 0.4rem 0 0; }
#para-elas { padding-bottom: clamp(1.2rem, 2.5vw, 2rem); }
#para-eles { padding-top: clamp(1.2rem, 2.5vw, 2rem); }
