/* =====================================================
   GOOGLE FONTS
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400&family=Montserrat:wght@500&display=swap');

/* =====================================================
   VARIÁVEIS DO TEMA
===================================================== */
:root {
    --verde-principal: #3F5D2A;
    --verde-secundario: #6B8E4E;
    --verde-claro: #EAF3E4;
    --fundo-papel: #F8F6F1;
    --texto-principal: #2E2E2E;
    --texto-suave: #6C757D;
}

/* =====================================================
   BASE
===================================================== */
html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--fundo-papel);
    color: var(--texto-principal);
}

main {
    position: relative;
    z-index: 1;
}

/* =====================================================
   TIPOGRAFIA
===================================================== */
h1, h2, h3, h4, .title-serif {
    font-family: 'Libre Baskerville', serif;
    color: var(--verde-principal);
}

/* =====================================================
   LINKS
===================================================== */
a {
    color: var(--verde-principal);
    text-decoration: none;
}

    a:hover {
        color: var(--verde-secundario);
    }

/* =====================================================
   BOTÕES
===================================================== */
.btn {
    border-radius: 30px;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--verde-principal);
    border-color: var(--verde-principal);
}

    .btn-primary:hover {
        background-color: var(--verde-secundario);
        border-color: var(--verde-secundario);
    }

.btn-outline-primary {
    color: var(--verde-principal);
    border-color: var(--verde-principal);
}

    .btn-outline-primary:hover {
        background-color: var(--verde-principal);
        color: #fff;
    }

.btn-sm {
    border-radius: 20px;
}

/* =====================================================
   HERO (FOTO PRINCIPAL)
===================================================== */
.hero-wrapper {
    position: relative;
    overflow: hidden;
}

.hero {
    position: relative;
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('/images/casal/principal.jpg') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 1rem;
    /* ESSA LINHA RESOLVE O PROBLEMA */
    transform: translateY(80px);
}

.hero-title {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-subtitle {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   FLORES DO HERO (DECORAÇÃO)
===================================================== */
.hero-flower {
    position: absolute;
    bottom: 0;
    max-height: 70%;
    opacity: 0.95;
    pointer-events: none;
    z-index: 1;
}

    .hero-flower.left {
        left: 2%;
    }

    .hero-flower.right {
        right: 2%;
    }

@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-flower {
        max-height: 40%;
    }
}

/* =====================================================
   CONTAGEM REGRESSIVA (NO HERO)
===================================================== */
.hero-countdown {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

    .hero-countdown .count-box {
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(6px);
        border-radius: 12px;
        padding: 10px 14px;
        min-width: 70px;
        text-align: center;
    }

    .hero-countdown span {
        font-size: 1.4rem;
        font-weight: 600;
        color: #fff;
        display: block;
    }

    .hero-countdown small {
        font-size: 0.7rem;
        letter-spacing: 1px;
        color: rgba(255,255,255,0.85);
        text-transform: uppercase;
    }

/* =====================================================
   GALERIA DE FOTOS
===================================================== */
.gallery-card {
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

    .gallery-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* =====================================================
   SEÇÕES DE CONTEÚDO
===================================================== */
.reception-section,
.gift-section {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 992px) {
    .reception-section,
    .gift-section {
        max-width: 820px;
    }
}

/* MAPA */
.reception-map {
    max-width: 700px;
    margin: 0 auto;
}

/* =====================================================
   CARDS
===================================================== */
.card {
    border-radius: 14px;
    background: #ffffffd9;
    backdrop-filter: blur(4px);
}

/* =====================================================
   ADMIN (SEM FLORES, FUNDO LIMPO)
===================================================== */
body.admin {
    background: #ffffff;
}

    body.admin .card {
        transition: background-color 0.15s ease;
    }

        body.admin .card:hover {
            background-color: #f8f9fa;
        }

.table td, .table th {
    vertical-align: middle;
}

.badge {
    font-weight: 500;
    padding: 0.45em 0.6em;
}

.gallery-zoom img {
    transition: transform 0.4s ease;
}

.gallery-zoom:hover img {
    transform: scale(1.08);
}
/* =========================
   RSVP TOGGLE (FINAL)
========================= */

/* =========================
   RSVP TOGGLE – FINAL ELEGANTE
========================= */

.rsvp-toggle {
    display: inline-flex;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
}

    .rsvp-toggle input {
        display: none;
    }

.rsvp-btn {
    padding: 6px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    background-color: #f8f9fa;
}

/* =========================
   SIM
========================= */

/* neutro */
.rsvp-btn.sim {
    color: var(--verde-principal);
}

/* selecionado */
.rsvp-toggle input:checked + .rsvp-btn.sim {
    background-color: var(--verde-principal);
    color: #ffffff;
    font-weight: 500;
}

/* =========================
   NÃO (ELABORADO)
========================= */

/* neutro – vinho suave */
.rsvp-btn.nao {
    color: #7a2a22; /* vinho mais claro */
    background-color: #f5ecea; /* rosado muito suave */
}

/* selecionado – vinho forte */
.rsvp-toggle input:checked + .rsvp-btn.nao {
    background-color: #943101; /* sua cor */
    color: #ffffff;
    font-weight: 500;
}

/* =========================
   HOVER
========================= */

.rsvp-btn:hover {
    filter: brightness(0.97);
}
/* =========================
   PRESENTES – CARDS COMPACTOS
========================= */

.presente-card {
    padding: 1rem; /* antes era maior */
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.6rem; /* menos espaçamento vertical */
    height: 100%;
}

    /* Nome do presente */
    .presente-card h5 {
        font-size: 1.05rem; /* menor */
        margin-bottom: 0.2rem;
    }

    /* Valor */
    .presente-card .presente-valor {
        font-size: 0.95rem;
        font-weight: 600;
    }

    /* Badge de status */
    .presente-card .badge {
        font-size: 0.75rem;
        padding: 0.3em 0.55em;
    }

    /* Botão escolher */
    .presente-card .btn {
        padding: 0.45rem 1rem; /* botão mais baixo */
        font-size: 0.9rem;
        border-radius: 999px;
    }

    /* Espaço final menor */
    .presente-card .mt-auto {
        margin-top: 0.6rem !important;
    }
/* =========================
   IMAGEM DO PRESENTE
========================= */
.presente-img-wrapper {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

    .presente-img-wrapper img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
/* =========================
   BOTÕES – HIERARQUIA CORRETA
========================= */

/* Ação principal (PIX) */
.btn-primary-action {
    padding: 14px 18px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 999px;
}

/* Ações secundárias (comprar / já comprei) */
.btn-secondary-action {
    padding: 9px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 999px;
}

/* =========================
   STATUS "DISPONÍVEL"
========================= */
.badge-status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 999px;
}
/* =========================
   STATUS DO PRESENTE
========================= */
.status-disponivel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #5aa37a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
}

.status-reservado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e0ad4f;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
}

.status-presenteado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #4f7cff;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
}

``