/* ==========================================================================
   Descomplica Noivos — tema do site público (paleta padrão creme/vinho,
   sobrescrita por convênio via <style> inline gerado no layout)
   ========================================================================== */

:root {
    --bg-color: #f8f5ee;
    --text-main: #2a2625;
    --text-muted: #5c5552;
    --text-nav: #2a2625;
    --placeholder-bg: #e2dfdb;
    --accent-color: #580b17;
    --accent-dark: color-mix(in srgb, var(--accent-color) 85%, black);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Cormorant Garamond', serif;
}

* { box-sizing: border-box; }
body {
    background: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.15rem;
    margin: 0;
    overflow-x: hidden;
}
h1, h2, h3, .names-title { font-family: var(--font-display); }
a { color: var(--accent-color); }

/* ---------- Navbar ---------- */
.navbar-site {
    background: color-mix(in srgb, var(--bg-color) 88%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--placeholder-bg);
    padding: .7rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-site .navbar-brand { margin-right: 0; }
.navbar-site .navbar-logo { height: 75px; width: auto; object-fit: contain; }
@media (max-width: 991.98px) {
    .navbar-site .navbar-logo { height: 48px; }
}
.navbar-site .nav-link {
    color: var(--text-nav) !important;
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}
.navbar-site .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: width .3s ease, left .3s ease;
}
.navbar-site .nav-link:hover::after { width: 100%; left: 0; }
.navbar-site .navbar-toggler:focus { box-shadow: none; }

/* No mobile, logo (se tiver) fica à esquerda e o botão hambúrguer à direita
   — "space-between" empurra cada um pra uma ponta; sem logo, o hambúrguer
   sozinho já cai naturalmente à esquerda. No desktop o menu é centralizado
   no meio da página.
   Observação: o Bootstrap dá "flex-grow:1" ao .navbar-collapse mesmo no
   breakpoint expandido, então ele já ocupa a largura toda do .container —
   centralizar o .container sozinho não bastava, é preciso centralizar o
   conteúdo (a <ul>) dentro do próprio .navbar-collapse. */
.navbar-site .container { justify-content: space-between; }
@media (min-width: 992px) {
    .navbar-site .container { justify-content: center; }
    .navbar-site .navbar-collapse { justify-content: center; }
    .navbar-site .navbar-nav { gap: 2.5rem; }
}

/* ---------- Hero ---------- */
.hero-section { padding: 0 0 2rem; text-align: center; }
.names-title {
    font-size: clamp(3rem, 7vw, 5rem);
    letter-spacing: 3px;
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 40px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.15;
}
.names-title .ampersand {
    font-family: var(--font-body);
    font-style: italic;
    font-size: .75em;
    font-weight: 400;
    vertical-align: middle;
    padding: 0 .1em;
}
.wedding-meta { color: var(--text-muted); font-size: 1.3rem; margin-bottom: 2rem; letter-spacing: .5px; }
.wedding-address { color: var(--text-muted); font-size: 1rem; margin-top: -1.5rem; margin-bottom: 2rem; }
.wedding-address a { color: var(--accent-color); text-decoration: underline; }

.hero-photos img,
.hero-photos .photo-main {
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
}
.hero-photos img:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.hero-photos img { width: 100%; height: 350px; object-fit: cover; border-radius: 8px; }
.hero-photos .photo-main { height: 450px; }

/* Carrossel de fotos do herói no mobile (substitui as 3 colunas do desktop) */
.hero-carousel { max-width: 480px; }
.hero-carousel img { width: 100%; height: 340px; object-fit: cover; }
.hero-carousel .carousel-indicators { margin-bottom: .85rem; }
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 25px; height: 3px; border-radius: 0; background-color: rgba(255, 255, 255, .6);
    opacity: 1; transition: all .4s ease; border: none; margin: 0 5px;
}
.hero-carousel .carousel-indicators .active { background-color: #fff; width: 35px; box-shadow: 0 0 4px rgba(0, 0, 0, .3); }

.hero-divider { display: flex; align-items: center; justify-content: center; gap: 1rem; max-width: 260px; margin: 1.75rem auto; }
.hero-divider span { flex: 1; height: 1px; background: color-mix(in srgb, var(--accent-color) 30%, transparent); }
.hero-divider i { color: var(--accent-color); font-size: 1rem; opacity: .8; }

/* ---------- Seções ---------- */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: .5rem;
}
.section-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    letter-spacing: .5px;
    margin-bottom: 2.5rem;
}
section { padding: 3.5rem 0; }

/* ---------- Contagem regressiva (faixa cheia) ---------- */
.countdown-section {
    background-color: var(--accent-color);
    color: #fff;
    padding: 4rem 1rem;
    text-align: center;
}
.countdown-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 2.25rem;
}
#countdown-container { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.countdown-box {
    background: #fff;
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    text-align: center;
    min-width: 105px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
}
.countdown-box .num {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    line-height: 1;
    margin-bottom: .4rem;
}
.countdown-box .label {
    font-size: .8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: sans-serif;
    font-weight: 700;
}
.countdown-description {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .9);
    font-size: 1.15rem;
    line-height: 1.6;
}
.countdown-section .countdown-title.w-100 { color: #fff; margin: 0; }

.hint-text { font-size: .75rem; color: var(--text-muted); }
.badge-modern { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .01em; }
.badge-neutral-modern { background: var(--placeholder-bg); color: var(--text-main); }

/* ---------- Presentes ---------- */
.gift-search-section {
    background-color: rgba(255, 255, 255, .5);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 2.5rem;
}

@keyframes giftFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.gift-item { animation: giftFadeIn .5s ease forwards; }

.gift-card {
    background: #fff;
    border: 1px solid #e8e5e2;
    border-radius: 4px;
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .3s ease;
}
.gift-card:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .08); }
.gift-card img { max-width: 100%; height: 180px; object-fit: contain; margin: 0 auto 1.5rem; display: block; }
.gift-card-body { padding: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.gift-card-name { font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; }
.gift-card-footer { margin-top: auto; width: 100%; }
.gift-card-footer .hint-text { font-size: 1rem; color: var(--text-muted); margin-bottom: 1rem; }
.gift-progress { height: 6px; border-radius: 4px; background: var(--placeholder-bg); overflow: hidden; margin: .6rem 0; }
.gift-progress .bar { height: 100%; background: var(--accent-color); transition: width 1s cubic-bezier(.22, 1, .36, 1); }

.btn-accent {
    background: var(--accent-color);
    border: none;
    color: #fff;
    border-radius: .375rem;
    padding: .7rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color .3s ease;
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-accent:disabled { opacity: .5; }

.btn-load-more {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .85rem;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    background: transparent;
    border-radius: 6px;
    padding: .75rem 2.5rem;
    transition: all .3s ease;
}
.btn-load-more:hover { background: var(--accent-color); color: #fff; }

.empty-hint {
    text-align: center; color: var(--text-muted); padding: 2.75rem 2rem; max-width: 460px; margin: 0 auto;
    background: #fff; border-radius: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}
.empty-hint i { display: block; font-size: 2.2rem; color: var(--accent-color); opacity: .45; margin-bottom: .75rem; }

/* ---------- RSVP / Mural forms ---------- */
.rsvp-card, .mural-form-card {
    background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--accent-color) 3%, #fff) 100%);
    border: 1px solid color-mix(in srgb, var(--accent-color) 8%, transparent);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06), 0 1px 4px rgba(0, 0, 0, .04);
    max-width: 640px;
    margin: 0 auto;
}
.form-control-site {
    border: 1px solid var(--placeholder-bg);
    border-radius: 8px;
    padding: .6rem .9rem;
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.05rem;
    background: color-mix(in srgb, var(--accent-color) 2%, #fff);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control-site:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 .15rem color-mix(in srgb, var(--accent-color) 15%, transparent);
}

/* ---------- Mural ---------- */
.mural-icon-wrapper { display: flex; justify-content: center; margin-bottom: 1rem; }
.mural-header-icon { font-size: 2.5rem; color: var(--accent-color); opacity: .85; }

.mural-card {
    position: relative;
    background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--accent-color) 3%, #fff) 100%);
    border: 1px solid color-mix(in srgb, var(--accent-color) 8%, transparent);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06), 0 1px 4px rgba(0, 0, 0, .04);
    transition: box-shadow .3s ease, transform .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.mural-card:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, .1), 0 2px 8px rgba(0, 0, 0, .06); transform: translateY(-3px); }
.mural-quote-icon { font-size: 1.7rem; color: var(--accent-color); opacity: .25; line-height: 1; margin-bottom: .4rem; }
.mural-message { font-style: italic; line-height: 1.7; color: var(--text-main); flex-grow: 1; margin-bottom: 1.1rem; }
.mural-author { display: flex; align-items: center; gap: .75rem; padding-top: .85rem; border-top: 1px solid color-mix(in srgb, var(--accent-color) 8%, transparent); }
.mural-author-name { font-weight: 700; color: var(--text-main); font-size: .95rem; }
.mural-author-date { font-size: .8rem; color: var(--text-muted); font-family: sans-serif; }
.mural-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    color: var(--accent-color);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; font-family: sans-serif;
    flex-shrink: 0;
}

/* ---------- Lua de mel ---------- */
.honeymoon-section { background: color-mix(in srgb, var(--accent-color) 6%, transparent); }
.lua-svg-wrapper { display: flex; justify-content: center; margin-bottom: 1rem; }

.lua-card {
    background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--accent-color) 3%, #fff) 100%);
    border: 1px solid color-mix(in srgb, var(--accent-color) 8%, transparent);
    border-radius: 16px;
    padding: 2.25rem 1.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06), 0 1px 4px rgba(0, 0, 0, .04);
    transition: box-shadow .3s ease, transform .3s ease;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}
@media (min-width: 768px) { .lua-card { padding: 2.75rem; } }
.lua-card:hover { box-shadow: 0 8px 40px rgba(0, 0, 0, .1), 0 2px 8px rgba(0, 0, 0, .06); transform: translateY(-2px); }
.lua-card-body { display: flex; flex-direction: column; align-items: center; gap: 1.15rem; }
.lua-stats { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; justify-content: center; }

.lua-amount-raised { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 700; color: var(--accent-color); line-height: 1.1; }
.lua-amount-target { font-size: 1rem; color: var(--text-muted); }

.lua-progress-track { width: 100%; height: 10px; background: var(--placeholder-bg); border-radius: 5px; position: relative; overflow: visible; }
.lua-progress-fill {
    height: 100%; border-radius: 5px;
    background: linear-gradient(90deg, var(--accent-color) 0%, color-mix(in srgb, var(--accent-color) 70%, #c9a84c) 100%);
    transition: width 1.2s cubic-bezier(.22, 1, .36, 1);
}
.lua-progress-dot {
    width: 18px; height: 18px; background: #fff; border: 3px solid var(--accent-color); border-radius: 50%;
    position: absolute; top: 50%; transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 8%, transparent);
    transition: left 1.2s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
}
.lua-percentage { font-size: .95rem; color: var(--text-muted); }
.lua-percentage strong { color: var(--accent-color); font-weight: 700; }

.lua-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    width: 100%; padding: 1rem 2rem;
    font-size: 1.1rem; font-weight: 600; font-family: var(--font-body);
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color) 0%, color-mix(in srgb, var(--accent-color) 80%, #c9a84c) 100%);
    border: none; border-radius: 12px; cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}
.lua-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); color: #fff; }
.lua-btn:active { transform: translateY(0); }

/* ---------- Modal de contribuição ---------- */
.modal-payment .modal-content { border: 0; border-radius: 16px; box-shadow: 0 15px 45px rgba(0, 0, 0, .2); }
.quick-amount-btn {
    border: 1.5px solid color-mix(in srgb, var(--accent-color) 25%, transparent);
    background: #fff; color: var(--text-main);
    border-radius: 10px; padding: .55rem 1rem; margin: .25rem;
    font-weight: 600; font-size: .9rem;
    transition: all .2s ease; cursor: pointer;
}
.quick-amount-btn:hover { border-color: var(--accent-color); background: color-mix(in srgb, var(--accent-color) 5%, #fff); color: var(--accent-color); }
.quick-amount-btn.active { border-color: var(--accent-color); background: var(--accent-color); color: #fff; }
.pix-qr { max-width: 200px; }

/* ---------- Carrossel "O Casal" ---------- */
.casal-carousel { max-width: 760px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.casal-carousel .carousel-item img { width: 100%; height: 480px; object-fit: cover; }
.casal-carousel .carousel-caption { background: rgba(0, 0, 0, .38); border-radius: 10px; padding: .5rem 1rem; bottom: 1.25rem; }
.casal-carousel .carousel-indicators [data-bs-target] {
    width: 25px; height: 3px; border-radius: 0; background-color: rgba(255, 255, 255, .6);
    opacity: 1; transition: all .4s ease; border: none; margin: 0 5px;
}
.casal-carousel .carousel-indicators .active { background-color: #fff; width: 35px; box-shadow: 0 0 4px rgba(0, 0, 0, .3); }
@media (max-width: 767.98px) {
    .casal-carousel { border-radius: 12px; }
    .casal-carousel .carousel-item img { height: 320px; }
}

/* ---------- Notificação de prova social ---------- */
.social-proof-toast {
    position: fixed; bottom: 20px; left: 20px;
    background: #fff; color: var(--text-main);
    padding: 12px 20px; border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
    font-size: .95rem; z-index: 9999;
    display: flex; align-items: center; gap: 10px;
    opacity: 0; transform: translateX(-20px);
    transition: opacity .5s ease, transform .5s ease;
    pointer-events: none; max-width: 300px;
}
.social-proof-toast.show { opacity: 1; transform: translateX(0); }
.social-proof-toast .sp-dot { width: 10px; height: 10px; background: #22c55e; border-radius: 50%; flex-shrink: 0; animation: sp-pulse 2s infinite; }
@keyframes sp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (max-width: 576px) {
    .social-proof-toast { bottom: 10px; left: 10px; right: 10px; max-width: none; font-size: .85rem; padding: 10px 14px; }
}

footer.site-footer { text-align: center; padding: 2rem 0; color: var(--text-muted); font-size: .9rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 767.98px) {
    .names-title { font-size: 2.2rem; }
    .hero-photos .photo-main { height: 260px; }
    .hero-carousel img { height: 260px; }
    section { padding: 2.5rem 0; }
    .countdown-section { padding: 2.75rem 1rem; }
    .countdown-box { min-width: 74px; padding: 1rem .6rem; margin: .2rem; }
    .countdown-box .num { font-size: 1.7rem; }
    .countdown-box .label { font-size: .65rem; letter-spacing: 1px; }
    .section-title { font-size: 1.9rem; }
    .gift-card img { height: 150px; }
}
