/* ── FONTES (hospedadas localmente) ─────────────────────────── */
@font-face {
    font-family: 'Schoolbell';
    src: url('../fonts/schoolbell.woff2') format('woff2');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Turquoise Kimono';
    src: url('../fonts/turquoise-kimono.woff2') format('woff2');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Lazy Designer';
    src: url('../fonts/lazy-designer.woff2') format('woff2');
    font-weight: normal; font-style: normal; font-display: swap;
}

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
    --bg:        #f8f2e9;
    --green:     #68733a;   /* verde da marca (#717d3b escurecido ~6% p/ passar 4,5:1 em texto pequeno) */
    --ink:       #566129;   /* texto corrido — 6:1 sobre o fundo */
    --muted:     #626b31;   /* texto secundário — 5:1 sobre o fundo */
    --pink:      #d93d76;
    --coral:     #e2583b;   /* numerais e horários — 3,4:1 (texto grande) */
    --blue:      #4e94bf;   /* só como preenchimento/filete: 3:1 sobre o creme, não serve para texto */
    --yellow:    #f2d027;
    --coral-ink: #c03f26;   /* coral escuro para texto pequeno (4,7:1) */
    --pink-deep: #c22f68;   /* rosa para botão com texto branco (5,4:1) */
    --tint-blue: #e6eef4;   /* tom suave do azul da paleta */
    --tint-pink: #f8e6ea;   /* tom suave do rosa da paleta */
    --card:      rgba(255, 255, 255, .58);
    --line:      rgba(113, 125, 59, .2);

    --font-body:    'Schoolbell', 'Comic Sans MS', cursive;
    --font-display: 'Turquoise Kimono', 'Brush Script MT', cursive;
    --font-label:   'Lazy Designer', Georgia, serif;

    /* Lazy Designer ampliada em 1,5× em todo o site */
    --lazy: 1.5;

    --strip-h: 34px;
    --bar-h: 64px;

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-io:  cubic-bezier(.65, 0, .35, 1);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scrollbar-color: rgba(113, 125, 59, .5) var(--bg); }
html.no-scroll { overflow: hidden; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;   /* fallback (iOS < 16) */
    overflow-x: clip;
    line-height: 2.1;
    letter-spacing: .03em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: rgba(113, 125, 59, .24); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 3px; }
[tabindex="-1"]:focus { outline: none; }   /* alvos de foco programático (main e seções) */

.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 400;
    padding: .6rem 1.1rem;
    font-size: 1.1rem; line-height: 1.5;
    color: #fff; background: var(--ink);
    border-radius: 3px; text-decoration: none;
    transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ── FAIXA DE TILES ─────────────────────────────────────────── */
.tile-strip {
    height: var(--strip-h);
    background: url('../img/tiles/tiles-loop.webp') repeat-x center / auto 100%;
}

/* ── SPLASH ─────────────────────────────────────────────────── */
#splash {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: var(--bg);
    overflow: hidden;
}
#splash[hidden] { display: none; }

.splash-strip { position: relative; z-index: 2; }

.splash-body {
    position: relative;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.splash-btn {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 1.5rem 1.5rem 2rem;
}
.splash-logo    { width: min(250px, 58vw); }
.splash-bouquet { width: 54px; margin: .2rem 0 .4rem; }

.splash-welcome {
    font-family: var(--font-label);
    font-size: calc(1.3rem * var(--lazy));
    letter-spacing: .12em;
    color: var(--green);
    line-height: 1.4;
    text-align: center;
}

.splash-cta {
    display: inline-block;
    margin-top: .6rem;
    font-family: var(--font-label);
    font-size: calc(1rem * var(--lazy));
    letter-spacing: .16em;
    line-height: 1.5;
    text-transform: lowercase;
    color: var(--green);
    border: 1px solid rgba(113, 125, 59, .45);
    border-radius: 3px;
    padding: .35rem 2rem;
    transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.splash-btn:hover .splash-cta,
.splash-btn:focus-visible .splash-cta { background: var(--ink); color: #fff; border-color: var(--ink); }
.splash-btn:focus-visible { outline-offset: -6px; }

/* Entrada: os elementos sobem em sequência (sem loop contínuo) */
@media (scripting: enabled) {
    .splash-logo, .splash-bouquet, .splash-welcome, .splash-cta { animation: rise 1.1s var(--ease-out) both; }
    .splash-bouquet { animation-delay: .12s; }
    .splash-welcome { animation-delay: .24s; }
    .splash-cta     { animation-delay: .36s; }
}
@keyframes rise    { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Momento principal: o convite se abre — a faixa de baixo sai, o conteúdo se dissolve */
#splash.is-leaving { pointer-events: none; }
#splash.is-leaving .splash-strip--bottom { transform: translateY(100%); transition: transform 1s var(--ease-io); }
#splash.is-leaving .splash-strip--top    { opacity: 0; transition: opacity .3s linear .75s; }
#splash.is-leaving .splash-body {
    opacity: 0;
    transform: translateY(-14px) scale(1.015);
    filter: blur(6px);
    transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s var(--ease-out);
}
#splash.is-leaving { background: transparent; transition: background-color .5s linear .55s; }

/* Sem JavaScript, a splash não bloqueia o site */
@media (scripting: none) { #splash { display: none; } }

/* ── MASTHEAD (visual) + BARRA DE MENU ──────────────────────── */
.masthead-logo {
    display: flex;
    justify-content: center;
    padding: 1.1rem 0 .6rem;
}
.masthead-logo img { height: clamp(76px, 9vw, 104px); width: auto; }

.bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--bar-h);
    padding: 0 2rem;
    transition: background-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.bar.is-stuck {
    background: rgba(248, 242, 233, .97);
    box-shadow: 0 1px 0 var(--line), 0 14px 28px -22px rgba(42, 31, 26, .35);
}

.bar-logo {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(.9);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility 0s .5s;
}
.bar-logo img { height: 44px; width: auto; }
.bar.is-stuck .bar-logo {
    opacity: 1; visibility: visible; transform: translateY(-50%);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility 0s;
}
/* com 8 links a barra ocupa a largura toda: o mini-logo só cabe em telas largas */
@media (max-width: 1499px) {
    .bar-logo { display: none; }
}

.bar-links { display: flex; gap: 1.8rem; }

.bar-links a,
.drawer a {
    font-family: var(--font-label);
    letter-spacing: .08em;
    color: var(--green);
    text-decoration: none;
}
.bar-links a {
    position: relative;
    display: block;
    font-size: calc(1.1rem * var(--lazy));
    line-height: 1.6;
    padding: .2rem 0;
    transition: color .3s var(--ease-out);
}
.bar-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease-out);
}
.bar-links a:hover { color: var(--pink); }

.bar-links .bar-cta a { padding: .2rem 1.2rem; color: #fff; background: var(--pink-deep); border-radius: 999px; transition: background-color .3s var(--ease-out), transform .4s var(--ease-out); }
.bar-links .bar-cta a::after { display: none; }
.bar-links .bar-cta a:hover { color: #fff; background: var(--ink); }
.drawer li.drawer-cta, .drawer li.drawer-cta:first-child { border: 0; margin-bottom: 1rem; }
.drawer .drawer-cta a { padding: .7rem 1rem; font-size: calc(1.15rem * var(--lazy)); text-align: center; color: #fff; background: var(--pink-deep); border-radius: 999px; }
.drawer .drawer-cta a:hover, .drawer .drawer-cta a[aria-current="true"] { color: #fff; transform: none; padding-left: 1rem; }
.drawer li.drawer-cta + li { border-top: 1px solid var(--line); }

/* Botão de menu (mobile/tablet): flutua sobre o header com fundo próprio, para ter contraste sobre os tiles */
.bar-toggle {
    display: none;
    position: fixed;
    z-index: 300;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    height: 48px;
    padding: 0 1.4rem 0 1.2rem;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 8px 22px -8px rgba(42, 31, 26, .4);
    cursor: pointer;
    transition: transform .4s var(--ease-out), opacity .3s var(--ease-out), background-color .3s;
}
.bar-toggle:active { transform: translateX(-50%) scale(.96); }
.bar-toggle.is-hidden { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }   /* some ao rolar para baixo */
.bar-toggle-icon { display: flex; flex-direction: column; gap: 5px; }
.bar-toggle-icon span {
    display: block;
    width: 20px; height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: transform .45s var(--ease-out), opacity .2s;
}
.bar-toggle-label { font-family: var(--font-label); font-size: 1.15rem; letter-spacing: .1em; line-height: 1; color: var(--green); }
.bar-toggle[aria-expanded="true"] .bar-toggle-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bar-toggle[aria-expanded="true"] .bar-toggle-icon span:nth-child(2) { opacity: 0; }
.bar-toggle[aria-expanded="true"] .bar-toggle-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer-backdrop {
    position: fixed; inset: 0; z-index: 250;
    background: rgba(42, 31, 26, .4);
    opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease-out), visibility 0s .45s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-out), visibility 0s; }

.drawer {
    position: fixed; top: 0; right: 0; z-index: 260;
    width: min(320px, 82vw);
    height: 100vh;    /* fallback (iOS < 15.4) */
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 4rem 2rem 2.5rem 2.2rem;
    background: var(--bg);
    box-shadow: -10px 0 40px rgba(42, 31, 26, .16);
    overflow-y: auto;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .55s var(--ease-out), visibility 0s .55s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease-out), visibility 0s; }
.drawer ul { margin-block: auto; }   /* centraliza sem cortar o topo quando o texto é grande */
.drawer li { border-bottom: 1px solid var(--line); }
.drawer li:first-child { border-top: 1px solid var(--line); }
.drawer a {
    display: block;
    font-size: calc(1.35rem * var(--lazy));
    line-height: 1.5;
    padding: .55rem 0;
    transition: color .3s var(--ease-out), transform .4s var(--ease-out);
}

/* ── LAYOUT COMPARTILHADO ───────────────────────────────────── */
.section {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding: clamp(5rem, 9vw, 8rem) 0;
    scroll-margin-top: var(--bar-h);
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 3rem;
}

.sec-header { text-align: center; margin-bottom: 4.5rem; }

.sec-eye {
    display: block;
    margin-bottom: .6rem;
    font-family: var(--font-label);
    font-size: calc(1.5rem * var(--lazy));
    letter-spacing: .1em;
    line-height: 1.4;
    color: var(--green);
}

.sec-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: normal;
    line-height: 1.15;
    color: var(--green);
    text-wrap: balance;
}

.sec-rule { width: 56px; height: 2px; margin: 1.4rem auto 0; background: var(--accent, var(--coral)); border-radius: 2px; }

/* cada seção tem uma cor-âncora vinda dos tiles */
#welcome { --accent: var(--pink); }
#historia { --accent: var(--coral); }
#grande-dia { --accent: var(--yellow); }
#informacoes { --accent: var(--blue); }
#galeria { --accent: var(--pink); }
#hospedagem { --accent: var(--coral); }
.heart { color: var(--pink); }

.prose {
    font-size: clamp(1.2rem, 2.1vw, 1.5rem);
    line-height: 2.1;
    text-align: center;
    text-wrap: pretty;
    margin: 0 auto;
}

.amp { color: var(--pink); }

/* ── HERO ───────────────────────────────────────────────────── */
#hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    padding: 1.2rem 0 clamp(2.5rem, 5vw, 4.5rem);
}

.hero-content { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

.hero-eyebrow { font-size: clamp(1rem, 1.8vw, 1.1rem); line-height: 1.6; color: var(--muted); }   /* mesma fala da linha da igreja: informação, não botão */

.hero-names {
    font-family: var(--font-display);
    font-size: clamp(4.6rem, 15vw, 10rem);
    font-weight: normal;
    line-height: 1.5;
    color: var(--green);
}
.hero-amp {
    font-size: clamp(2.4rem, 7vw, 5rem);
    color: var(--pink);
    margin: 0 .4rem;
}

.hero-date {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    letter-spacing: .04em;
    line-height: 1.5;
    color: var(--ink);
    margin-top: .4rem;
}
.hero-when { margin-top: 0; font-size: clamp(1rem, 1.8vw, 1.1rem); line-height: 1.6; color: var(--muted); }
.hero-when a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; transition: color .3s var(--ease-out); }
.hero-when a:hover { color: var(--pink); }

.portraits {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4.5rem;
    margin: 3rem 0;
}
.portrait { text-align: center; flex: 0 0 auto; }
.portrait img { margin: 0 auto; transition: transform .6s var(--ease-out); }
.portrait-lg img { width: clamp(100px, 12vw, 160px); }
.portrait-sm img { width: clamp(78px, 9vw, 120px); }

.portrait-name {
    font-family: var(--font-label);
    font-size: calc(1.9rem * var(--lazy));
    letter-spacing: .05em;
    line-height: 1.3;
    color: var(--green);
    margin-top: 1rem;
}
.portrait-role {
    font-family: var(--font-label);
    font-size: calc(1.1rem * var(--lazy));
    letter-spacing: .07em;
    line-height: 1.4;
    color: var(--muted);
    margin-top: .3rem;
}

/* Contagem regressiva */
.countdown-intro {
    font-family: var(--font-label);
    font-size: calc(1.1rem * var(--lazy));
    letter-spacing: .12em;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 1rem;
}
.countdown { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; row-gap: 1rem; max-width: 100%; }
.cd-unit { text-align: center; padding: 0 1.8rem; border-right: 1px solid rgba(226, 88, 59, .25); }
.cd-unit:last-child { border-right: 0; }
.cd-num {
    display: block;
    font-size: clamp(2.4rem, 5.5vw, 3.4rem);
    line-height: 1;
    color: var(--coral);
    font-variant-numeric: tabular-nums;
}
.cd-label {
    display: block;
    margin-top: .5rem;
    font-family: var(--font-label);
    font-size: calc(1rem * var(--lazy));
    letter-spacing: .12em;
    line-height: 1.4;
    color: var(--muted);
}
.countdown-done { font-family: var(--font-display); font-size: 2.2rem; color: var(--green); }
.countdown-outro {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    letter-spacing: .06em;
    line-height: 1.5;
    color: var(--green);
    margin-top: 1.2rem;
}

/* ── CONFIRMAR PRESENÇA ─────────────────────────────────────── */
.btn-rsvp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 52px;
    padding: .7rem 2rem;
    font-size: 1.25rem;
    letter-spacing: .05em;
    line-height: 1.3;
    color: #fff;
    text-decoration: none;
    background: var(--pink-deep);
    border-radius: 999px;
    box-shadow: 0 12px 26px -14px rgba(194, 47, 104, .8);
    transition: background-color .35s var(--ease-out), color .35s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.btn-rsvp span[aria-hidden] { display: inline-block; transition: transform .4s var(--ease-out); }
#hero .btn-rsvp { margin-top: .7rem; }

.section--rsvp { background: var(--pink-deep); color: var(--bg); text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.rsvp-tile { width: auto; height: 60px; margin: 0 auto 1rem; }
.rsvp-title {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 8.5vw, 5.6rem);
    font-weight: normal;
    line-height: 1.15;
    color: var(--bg);
    text-wrap: balance;
}
.rsvp-text { max-width: 560px; margin: 1.2rem auto 2.2rem; font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.8; color: var(--bg); text-wrap: pretty; }
.section--rsvp .btn-rsvp {
    min-height: 62px;
    padding: .9rem 2.8rem;
    font-size: 1.45rem;
    color: var(--pink-deep);
    background: var(--bg);
    box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .5);
}
.rsvp-note { margin-top: 1.3rem; font-size: 1.05rem; line-height: 1.6; color: var(--bg); }

/* ── BEM-VINDOS ─────────────────────────────────────────────── */
#welcome { padding-top: clamp(2.5rem, 5vw, 4rem); }
.welcome-body { max-width: 740px; }
.welcome-sig {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.5;
    color: var(--green);
    text-align: center;
    margin-top: 2.2rem;
}

/* ── NOSSA HISTÓRIA ─────────────────────────────────────────── */
.historia-layout { display: grid; gap: 3rem; }

.timeline { position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    left: 13px; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--coral) 8%, var(--coral) 92%, transparent);
}
.tl-item { display: grid; grid-template-columns: 28px 1fr; gap: 1rem; margin-bottom: 2.4rem; }
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
    position: relative;
    justify-self: center;
    margin-top: calc((2rem * 1.3 - 12px) / 2);   /* centro do ponto = centro da linha do ano */
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 1px var(--green);
}
.tl-dot.special { background: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.tl-item:nth-child(1) .tl-dot { background: var(--blue);   box-shadow: 0 0 0 1px var(--blue); }
.tl-item:nth-child(2) .tl-dot { background: var(--yellow); box-shadow: 0 0 0 1px #c9a70f; }
.tl-item:nth-child(3) .tl-dot { background: var(--coral);  box-shadow: 0 0 0 1px var(--coral); }
.tl-item:nth-child(4) .tl-dot { background: var(--green);  box-shadow: 0 0 0 1px var(--green); }

.tl-year { font-family: var(--font-display); font-size: 2rem; line-height: 1.3; color: var(--pink); margin-bottom: .3rem; }
.tl-desc { font-size: 1.2rem; line-height: 2; color: var(--muted); text-wrap: pretty; }

.historia-more > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.4rem;
    font-family: var(--font-label);
    font-size: calc(1.05rem * var(--lazy));
    letter-spacing: .08em;
    line-height: 1.5;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 3px;
    list-style: none;
    cursor: pointer;
}
.historia-more > summary::-webkit-details-marker { display: none; }
.historia-more .lbl-open, .historia-more[open] .lbl-closed { display: none; }
.historia-more[open] .lbl-open { display: inline; }

.historia-prose {
    margin-top: 1.8rem;
    max-width: 62ch;
    font-size: clamp(1.2rem, 2.1vw, 1.45rem);
    line-height: 2.1;
    text-wrap: pretty;
}
.historia-prose p + p { margin-top: 1.5rem; }

@media (min-width: 1024px) {
    .historia-layout { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 5rem; align-items: start; }
    .timeline { position: sticky; top: calc(var(--bar-h) + 1.5rem); }
    .historia-more > summary { display: none; }
    .historia-prose { margin-top: 0; }
    .historia-prose p:first-child::first-letter {
        float: left;
        padding: .06em .12em 0 0;
        font-family: var(--font-display);
        font-size: 4.4em;
        line-height: .78;
        color: var(--pink);
    }
}

/* ── O GRANDE DIA ───────────────────────────────────────────── */
#grande-dia .sec-title { font-size: clamp(4rem, 9vw, 7rem); }

.day-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.5rem; }

.day-card {
    padding: 3.5rem 2.5rem;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), transform .6s var(--ease-out);
}

.day-type {
    font-family: var(--font-label);
    font-size: calc(1.15rem * var(--lazy));
    letter-spacing: .1em;
    line-height: 1.5;
    color: var(--green);
    margin-bottom: .8rem;
}
.day-name { font-size: 1.9rem; font-weight: normal; line-height: 1.5; color: var(--green); margin-bottom: .4rem; }
.day-time { font-family: var(--font-display); font-size: 3.4rem; line-height: 1.4; color: var(--coral); margin: .6rem 0; }
.day-address { font-size: 1.05rem; line-height: 1.9; color: var(--muted); margin-bottom: 1.4rem; text-wrap: pretty; }

.btn-map {
    display: inline-block;
    padding: .7rem 1.8rem;
    font-size: 1.1rem;
    letter-spacing: .05em;
    line-height: 1.6;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid rgba(113, 125, 59, .45);
    border-radius: 3px;
    transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.btn-map:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.dresscode { margin-top: 5rem; padding-top: 4rem; border-top: 1px solid var(--line); text-align: center; }
.dresscode-label {
    font-family: var(--font-label);
    font-size: calc(1.2rem * var(--lazy));
    letter-spacing: .1em;
    line-height: 1.5;
    color: var(--green);
    margin-bottom: .6rem;
}
.dresscode-title { font-family: var(--font-display); font-size: 3.4rem; line-height: 1.4; color: var(--green); margin-bottom: .6rem; }
.dresscode-note { max-width: 480px; margin: 0 auto; font-size: 1.3rem; line-height: 2.1; color: var(--muted); text-wrap: pretty; }

.section--band { background: var(--ink); color: var(--bg); }
.section--band .sec-eye, .section--band .sec-title,
.section--band .dresscode-label, .section--band .dresscode-title, .section--band .dresscode-note { color: var(--bg); }

.section--band .dresscode { border-top-color: rgba(248, 242, 233, .25); }
.section--band .dresscode-title { color: var(--yellow); }   /* 4,4:1 sobre o verde-escuro: texto grande */
.section--band .day-card { background: var(--bg); border-color: transparent; }
.section--band .day-card:hover { background: #fff; border-color: transparent; }

/* ── GALERIA ────────────────────────────────────────────────── */
.carousel { position: relative; margin: 3rem calc(50% - 50vw) 0; overflow: hidden; }   /* sangra até a borda da tela */
.carousel-track { touch-action: pan-y pinch-zoom; display: flex; transition: transform .8s var(--ease-out); will-change: transform; }

.car-slide { flex: 0 0 calc(100% / 3); padding: 6px; }
.car-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 4px;
    overflow: hidden;
    cursor: zoom-in;
}
.car-open img {
    width: 100%;
    height: clamp(320px, 38vw, 520px);
    object-fit: cover;
    background: rgba(113, 125, 59, .08);
    transition: transform .8s var(--ease-out);
}

.car-btn {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 .2rem;
    font-size: 2rem;
    line-height: 1;
    color: var(--green);
    background: rgba(248, 242, 233, .94);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .3s var(--ease-out), color .3s var(--ease-out), opacity .3s;
}
.car-btn:hover:not(:disabled) { background: var(--green); color: #fff; }
.car-btn:disabled { opacity: .3; cursor: default; }
.car-prev { left: .5rem; }
.car-next { right: .5rem; }

.carousel-dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1.5rem; }
.c-dot {
    position: relative;
    width: 24px; height: 24px;   /* área de toque; o ponto visível é o ::before */
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}
.c-dot::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: rgba(113, 125, 59, .28);
    transition: background-color .3s var(--ease-out), transform .4s var(--ease-out);
}
.c-dot.is-active::before { background: var(--green); transform: scale(1.4); }

.carousel-count {
    display: none;
    margin-top: 1rem;
    text-align: center;
    font-family: var(--font-label);
    font-size: calc(1rem * var(--lazy));
    letter-spacing: .12em;
    line-height: 1.5;
    color: var(--muted);
}

/* Lightbox (<dialog> nativo: foco preso e ESC de graça) */
#lightbox {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    max-width: none; max-height: none;
    margin: 0; padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .93);
    align-items: center;
    justify-content: center;
}
#lightbox[open] { display: flex; animation: fade-in .35s var(--ease-out) both; }
#lightbox::backdrop { background: transparent; }
#lb-img { max-width: 88vw; max-height: 88vh; width: auto; object-fit: contain; border-radius: 3px; user-select: none; }
.lb-count {
    position: absolute;
    left: 50%; bottom: 1.2rem;
    transform: translateX(-50%);
    margin: 0;
    font-family: var(--font-label);
    font-size: 1.1rem;
    letter-spacing: .12em;
    line-height: 1;
    color: rgba(255, 255, 255, .75);
}
.lb-btn {
    position: absolute;
    padding: .8rem 1.2rem;
    font-size: 2.2rem;
    line-height: 1;
    color: rgba(255, 255, 255, .7);
    background: none;
    border: 0;
    cursor: pointer;
    transition: color .3s;
}
.lb-btn:hover { color: #fff; }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-close { top: 1rem; right: 1.2rem; font-size: 1.8rem; }
.lb-prev  { left: .5rem;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ── ONDE FICAR ─────────────────────────────────────────────── */
.lodging-intro { max-width: 760px; font-size: clamp(1.25rem, 2.2vw, 1.45rem); }

.lodging-groups { display: flex; flex-direction: column; gap: 3.6rem; margin-top: 4rem; }

.lodging-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--green);
    list-style: none;
    cursor: pointer;
}
.lodging-head::-webkit-details-marker { display: none; }
.group-tile { width: auto; height: 52px; flex: none; }
.lodging-group:nth-child(1) .lodging-head { border-bottom: 2px solid var(--blue); }
.lodging-group:nth-child(2) .lodging-head { border-bottom: 2px solid var(--yellow); }
.lodging-group:nth-child(3) .lodging-head { border-bottom: 2px solid var(--green); }
.lodging-head h3 {
    font-family: var(--font-display);
    font-size: 2.7rem;
    font-weight: normal;
    line-height: 1.2;
    color: var(--green);
    text-wrap: balance;
}

.hotel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.8rem; }

.hotel {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.8rem 1.6rem 1.6rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color .4s var(--ease-out), transform .6s var(--ease-out);
}
.hotel-badge { position: absolute; top: 1.1rem; right: 1.1rem; width: auto; height: 30px; }
.hotel-name { padding-right: 2.8rem; font-size: 1.5rem; font-weight: normal; line-height: 1.4; color: var(--green); }
.hotel-tag {
    font-family: var(--font-label);
    font-size: calc(1rem * var(--lazy));
    letter-spacing: .06em;
    line-height: 1.5;
    color: var(--coral-ink);
    margin-bottom: .5rem;
}
.hotel-desc { margin-bottom: 1.3rem; font-size: 1.1rem; line-height: 1.9; color: var(--ink); text-wrap: pretty; }

.hotel-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    align-self: flex-start;
    margin-top: auto;
    padding: .55rem 1.3rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid rgba(113, 125, 59, .45);
    border-radius: 3px;
    transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.hotel-link span[aria-hidden] { display: inline-block; transition: transform .4s var(--ease-out); }
.hotel-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.lodging-tip {
    max-width: 660px;
    margin: 5rem auto 0;
    padding: 2.6rem 2.4rem;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.lodging-tip h3 {
    font-family: var(--font-label);
    font-size: calc(1.2rem * var(--lazy));
    font-weight: normal;
    letter-spacing: .08em;
    line-height: 1.5;
    color: var(--green);
    margin-bottom: .6rem;
}
.lodging-tip p { font-size: 1.2rem; line-height: 2; text-wrap: pretty; }

.lodging-note { max-width: 660px; margin: 2.5rem auto 0; font-size: 1rem; line-height: 1.9; color: var(--muted); text-align: center; text-wrap: pretty; }
.lodging-sig { margin-top: 1.4rem; font-family: var(--font-display); font-size: 2.4rem; line-height: 1.4; color: var(--green); text-align: center; }

@media (min-width: 1024px) {
    .lodging-head { pointer-events: none; cursor: default; }   /* no desktop os 3 grupos ficam sempre abertos */
}

/* ── INFORMAÇÕES ────────────────────────────────────────────── */
#informacoes { background: var(--tint-blue); }
#informacoes .info-card { background: rgba(255, 255, 255, .72); border-color: rgba(78, 148, 191, .28); }
#informacoes .info-card:hover { border-color: rgba(78, 148, 191, .6); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }

.info-card {
    padding: 2.8rem 2rem;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color .4s var(--ease-out), transform .6s var(--ease-out);
}
.info-tile { width: auto; height: 54px; margin: 0 auto 1rem; }
.info-title {
    font-family: var(--font-label);
    font-size: calc(1.4rem * var(--lazy));
    font-weight: normal;
    letter-spacing: .06em;
    line-height: 1.4;
    color: var(--green);
    margin-bottom: .6rem;
}
.info-text { font-size: 1.15rem; line-height: 2; color: var(--muted); text-wrap: pretty; }
.info-link {
    display: inline-block;
    margin-top: .6rem;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 1.1rem;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .3em;
}
.info-link:hover { color: var(--pink); }

/* ── PRESENTES ──────────────────────────────────────────────── */
#presentes { text-align: center; background: var(--tint-pink); }
#presentes .sec-title { color: var(--pink); }
.presentes-text { max-width: 580px; margin: 2.5rem auto; }

.btn-gift {
    display: inline-block;
    padding: 1.1rem 3.2rem;
    font-size: 1.15rem;
    letter-spacing: .07em;
    line-height: 1.5;
    color: #fff;
    text-decoration: none;
    background: var(--pink-deep);
    border-radius: 3px;
    transition: background-color .35s var(--ease-out), transform .5s var(--ease-out);
}

/* ── RODAPÉ ─────────────────────────────────────────────────── */
.footer { text-align: center; }
.footer-inner { padding: 5rem 1.5rem 3rem; }
.footer-car { width: 110px; margin: 0 auto 1.2rem; opacity: .75; }
.footer-names { font-family: var(--font-display); font-size: 3.5rem; line-height: 1.5; color: var(--green); }
.footer-date {
    font-family: var(--font-label);
    font-size: calc(1.15rem * var(--lazy));
    letter-spacing: .12em;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 1.2rem;
}
.footer-note { font-size: 1.15rem; color: var(--muted); }

/* ── REVELAR AO ROLAR ───────────────────────────────────────── */
/* Só esconde quando há JavaScript; sem ele (ou sem suporte à media query) o conteúdo fica visível */
@media (scripting: enabled) {
    .reveal {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
    }
    .reveal.in { opacity: 1; transform: none; }
    .reveal.delay-1 { transition-delay: .08s; }
    .reveal.delay-2 { transition-delay: .16s; }
    .reveal.delay-3 { transition-delay: .24s; }
}

/* ── RESPONSIVO ─────────────────────────────────────────────── */
@media (max-width: 1279px) {
    .bar { display: none; }
    .bar-toggle { display: flex; }
    .footer-inner { padding-bottom: 6rem; }   /* a pílula de menu não cobre o rodapé */
}

@media (max-width: 1023px) {
    .hotel-grid { grid-template-columns: 1fr; }
    .lodging-groups, .info-grid { max-width: 560px; margin-inline: auto; }
    .info-grid { grid-template-columns: 1fr; }
    .lodging-head::after {   /* indicador do acordeão */
        content: '';
        flex: none;
        margin-left: auto;
        width: 11px; height: 11px;
        border-right: 2px solid var(--green);
        border-bottom: 2px solid var(--green);
        transform: rotate(45deg);
        transition: transform .45s var(--ease-out);
    }
    .lodging-group[open] .lodging-head::after { transform: rotate(-135deg); }
}

@media (max-width: 768px) {
    :root { --strip-h: 30px; --bar-h: 0px; --lazy: 1.2; }

    .container { padding: 0 1.5rem; }
    .section { padding: 3.5rem 0; }
    .sec-header { margin-bottom: 2.5rem; }
    .sec-title { font-size: clamp(2.8rem, 10vw, 4rem); }
    #grande-dia .sec-title { font-size: clamp(3rem, 11vw, 5rem); }

    .portraits { gap: 1rem; }
    .portrait { flex: 1 1 0; min-width: 0; }
    .portrait-lg img { width: 100px; }
    .portrait-sm img { width: 78px; }
    .portrait-name { font-size: calc(1.2rem * var(--lazy)); }
    .portrait-role { font-size: max(1rem, calc(.82rem * var(--lazy))); }

    .cd-unit { padding: 0 .6rem; }
    .cd-num { font-size: clamp(2rem, 9vw, 2.6rem); }
    .cd-label { font-size: max(1rem, calc(.8rem * var(--lazy))); letter-spacing: .05em; }

    .car-slide { flex-basis: 100%; }
    .carousel-dots { display: none; }
    .carousel-count { display: block; }
    .car-open img { height: clamp(300px, 95vw, 460px); }

    .day-cards, .prose { padding: 0 .5rem; }
    .day-card { padding: 2.4rem 1.6rem; }

    body { line-height: 1.85; }
    .prose, .historia-prose { line-height: 1.85; }
    .tl-desc, .info-text, .hotel-desc, .day-address, .dresscode-note, .lodging-note { line-height: 1.7; }
    .tl-item { margin-bottom: 1.8rem; }
    .info-card { padding: 2rem 1.5rem; }
    .dresscode { margin-top: 3rem; padding-top: 2.5rem; }
    .lodging-groups { gap: 1.6rem; margin-top: 2.5rem; }
    .lodging-tip { margin-top: 3rem; }
    .portraits { margin: 1.6rem 0; }
    .hero-names { line-height: 1.3; }
    #hero { padding-bottom: 2.5rem; }
    #welcome { padding-top: 2rem; }
    .prose { font-size: clamp(1.1rem, 4.6vw, 1.25rem); }
    .welcome-sig { margin-top: 1.4rem; font-size: 2.6rem; }
    .day-time { font-size: 2.8rem; margin: .3rem 0; }
    .day-name { font-size: 1.7rem; }
    .day-address { margin-bottom: 1rem; }
    .info-grid { gap: 1rem; margin-top: 2rem; }
    .info-tile { height: 44px; margin-bottom: .5rem; }
    .info-title { margin-bottom: .3rem; }
    .lodging-tip { padding: 1.6rem 1.3rem; }
    .lodging-tip p { font-size: 1.1rem; }
    .lodging-note { margin-top: 1.6rem; }
    .lodging-sig { font-size: 2rem; }
    .presentes-text { margin: 1.6rem auto; }
    .section--rsvp { padding: 3rem 0; }
    .section--rsvp .btn-rsvp { width: 100%; max-width: 340px; padding: .9rem 1.5rem; }
    .lodging-head h3 { font-size: 2.2rem; }
    .lodging-tip { padding: 2.2rem 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }
    .portrait-lg img { width: 88px; }
    .portrait-sm img { width: 68px; }
    .portraits { gap: .6rem; }
    .portrait-name { font-size: calc(1.05rem * var(--lazy)); }
    .portrait-role { font-size: max(1rem, calc(.78rem * var(--lazy))); }
}

/* ── HOVER: só em telas com mouse (no toque o efeito "grudava" depois do tap) ── */
/* seção atual no menu: vale também no toque */
.bar-links a[aria-current="true"]::after { transform: scaleX(1); }
.drawer a[aria-current="true"] { color: var(--pink); transform: translateX(.5rem); }

@media (hover: hover) {
    .bar-links a:hover::after { transform: scaleX(1); }
    .drawer a:hover { color: var(--pink); transform: translateX(.5rem); }
    .portrait img:hover { transform: translateY(-6px); }
    .day-card:hover { background: rgba(255, 255, 255, .88); border-color: rgba(113, 125, 59, .38); transform: translateY(-3px); }
    .car-open:hover img { transform: scale(1.04); }
    .hotel:hover { border-color: rgba(113, 125, 59, .4); transform: translateY(-3px); }
    .hotel-link:hover span[aria-hidden] { transform: translateX(4px); }
    .info-card:hover { border-color: rgba(113, 125, 59, .4); transform: translateY(-3px); }
    .btn-gift:hover { background: var(--ink); transform: translateY(-3px); }
    .btn-rsvp:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
    .section--rsvp .btn-rsvp:hover { background: #fff; color: var(--pink-deep); }
    .btn-rsvp:hover span[aria-hidden] { transform: translateX(4px); }
}

/* ── MOVIMENTO REDUZIDO: menos deslocamento, mantém os fades ── */
@media (prefers-reduced-motion: reduce) {
    .splash-logo, .splash-bouquet, .splash-welcome, .splash-cta { animation-name: fade-in; }
    #splash.is-leaving .splash-body { transform: none; filter: none; }
    #splash.is-leaving .splash-strip--bottom { transform: none; opacity: 0; transition: opacity .4s linear; }

    .reveal { transform: none; transition: opacity .5s linear; }

    .carousel-track, .car-open img, .portrait img, .day-card, .info-card, .btn-gift,
    .hotel-link span, .btn-rsvp, .btn-rsvp span, .hotel, .lodging-head::after, .drawer, .bar-logo, .bar-toggle, .bar-toggle-icon span, .bar-links a::after { transition: none; }
    .day-card:hover, .info-card:hover, .hotel:hover, .btn-gift:hover, .btn-rsvp:hover, .portrait img:hover,
    .car-open:hover img, .hotel-link:hover span[aria-hidden] { transform: none; }
}
