/* === BASE & ESTILO RÚSTICO/ZEN === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fcfdfa;
    margin: 0;
    padding: 0;
    color: #1c1c1a;
    overflow-x: hidden;
}

/* Textura de papel — grão sutil, não afeta fotos */
.paper-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Linhas horizontais de pauta — como papel de tipografia */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image: repeating-linear-gradient(0deg,
            transparent,
            transparent 32px,
            rgba(140, 110, 60, 0.09) 32px,
            rgba(140, 110, 60, 0.09) 33px);
}

.font-script {
    font-family: 'Alex Brush', cursive;
}

.font-serif-elegant {
    font-family: 'Cormorant Garamond', serif;
}



/* === ELEMENTOS DECORATIVOS === */
.gold-line {
    width: 80px;
    height: 1px;
    background: #dca353;
    margin: 0 auto;
    opacity: 0.7;
}

.section-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 1.5rem;
}

.section-ornament::before,
.section-ornament::after {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(220, 163, 83, 0.6));
}

.section-ornament::after {
    background: linear-gradient(to left, transparent, rgba(220, 163, 83, 0.6));
}

.section-ornament span {
    font-family: 'Cormorant Garamond', serif;
    color: #dca353;
    font-size: 0.65rem;
    letter-spacing: 0.6em;
    opacity: 0.85;
}

.ink-stroke {
    width: 0;
    height: 1px;
    background: #1c1c1a;
    margin: 1.5rem auto;
    opacity: 0.3;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.ink-stroke.active {
    width: 120px;
}

/* Ornamento tipográfico editorial */
.ornament {
    font-family: 'Cormorant Garamond', serif;
    color: #dca353;
    font-size: 0.75rem;
    letter-spacing: 0.6em;
    display: block;
    text-align: center;
    opacity: 0.8;
}

/* === ANIMAÇÕES REFINADAS === */
.stagger-1, .stagger-2, .stagger-3, .stagger-4 {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.loaded .stagger-1 { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.loaded .stagger-2 { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.loaded .stagger-3 { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }
.loaded .stagger-4 { opacity: 1; transform: translateY(0); transition-delay: 1.1s; }

/* === ACCORDION FOTOGRÁFICO (estilo Netflix) === */
.accordion-strip {
    display: flex;
    height: clamp(20rem, 50vh, 30rem);
    gap: 4px;
    overflow: hidden;
    background: #1c1c1a;
    border-radius: 6px;
}

.accordion-panel {
    flex: 1;
    min-width: 3rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 28, 26, 0.8), transparent 40%);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.accordion-panel:hover:not(.active) img {
    filter: brightness(0.7);
}

.accordion-panel.active {
    flex: 8;
    cursor: default;
}

.accordion-panel img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.7s ease;
    filter: brightness(0.4);
}

.accordion-panel.active img {
    filter: brightness(0.9);
    transform: scale(1.02);
}

.accordion-panel.active::after {
    opacity: 0.6;
}

/* Ano em vertical nos painéis colapsados */
.accordion-year-tag {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.3s 0.1s;
}

.accordion-panel.active .accordion-year-tag {
    opacity: 0;
}

.accordion-year-tag span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    color: rgba(252, 253, 250, 0.75);
    user-select: none;
}

/* Caption expandida — aparece só no painel ativo */
.accordion-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 10;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(10px);
}

.accordion-panel.active .accordion-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Mobile: Accordion se torna uma lista vertical */
@media (max-width: 768px) {
    .accordion-strip {
        flex-direction: column;
        height: auto;
        gap: 1rem;
        background: transparent;
    }
    .accordion-panel {
        height: 250px;
        flex: none !important;
        border-radius: 8px;
    }
    .accordion-panel::after {
        opacity: 0.8;
    }
    .accordion-content {
        opacity: 1;
        transform: translateY(0);
    }
    .accordion-year-tag {
        display: none;
    }
}

/* === CARDS "ONDE & QUANDO" === */
.accordion-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(28,28,26,0.80) 0%, transparent 100%);
    padding: 3.5rem 1.75rem 1.5rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s 0.3s, transform 0.35s 0.3s;
    pointer-events: none;
}
.accordion-panel.active .accordion-caption {
    opacity: 1;
    transform: translateY(0);
}
/* Painel especial 2026 (sem foto) */
.accordion-special-bg {
    width: 100%; height: 100%;
    background-image: url('res/fotos/2026.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    gap: 0.5rem;
}
/* Overlay escuro sobre a foto 2026 para o texto ser legível */
.accordion-special-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(28, 28, 26, 0.45);
    pointer-events: none;
}
.accordion-special-bg > * { position: relative; z-index: 1; }
.accordion-panel:not(.active) .accordion-special-content { display: none; }
.accordion-special-year-tag {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.accordion-panel.active .accordion-special-year-tag { display: none; }
.accordion-special-year-tag span {
    writing-mode: vertical-rl;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    color: #6b8f5e;
}

/* Cards — papel creme letterpress */
.soft-card {
    background-color: #f8f3e8;
    border: 1px solid rgba(140, 110, 60, 0.15);
    border-radius: 6px;
    box-shadow: 
        0 10px 30px -15px rgba(28, 28, 26, 0.1),
        0 4px 6px -2px rgba(28, 28, 26, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.soft-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(220, 163, 83, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.soft-card:hover::before {
    opacity: 1;
}

.soft-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 24px 48px -20px rgba(28, 28, 26, 0.18),
        0 8px 16px -4px rgba(28, 28, 26, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.time-seal {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    color: #1c1c1a;
    line-height: 1;
    position: relative;
    padding: 1rem 0;
}

.time-seal::before, .time-seal::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: #dca353;
    opacity: 0.5;
}

.time-seal::before { top: 0; }
.time-seal::after { bottom: 0; }

.btn-ink-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #1c1c1a;
    border-radius: 4px;
    color: #1c1c1a;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-ink-outline:hover {
    background-color: #1c1c1a;
    color: #fcfdfa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(28, 28, 26, 0.15);
}

.linen-texture {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 300px 300px;
}

/* === ANIMAÇÃO DA ABELHA VOANDO === */
.bee-container {
    position: absolute;
    top: -40px;
    right: -20px;
    width: clamp(140px, 25vw, 200px);
    height: clamp(140px, 25vw, 200px);
    z-index: -1;
}

.bee-trail-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    overflow: visible;
}

.draw-mask {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.draw-mask-anim {
    animation: draw-mask-anim 3.5s 1s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

@keyframes draw-mask-anim {
    to {
        stroke-dashoffset: 0;
    }
}

.trail-line {
    stroke: rgba(220, 163, 83, 0.5);
    stroke-width: 2;
    stroke-dasharray: 5 12;
    stroke-linecap: round;
    fill: none;
}

.bee-fly-in {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    opacity: 0;
    offset-path: path("M 300 -350 Q 150 -50 0 0");
    offset-rotate: -35deg;
    animation: fly-in-bee-entrance 3.5s 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fly-in-bee-entrance {
    0% {
        offset-distance: 0%;
        transform: scale(0.5) rotate(45deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.bee-illustration {
    width: clamp(55px, 10vw, 75px);
    animation: float-bee 18s 4.5s ease-in-out infinite;
    transform-origin: center center;
    transform: scaleX(-1) rotate(-15deg);
}

@keyframes float-bee {

    0%,
    100% {
        transform: translate(0px, 0px) scaleX(-1) rotate(-15deg);
    }

    33% {
        transform: translate(-4px, -9px) scaleX(-1) rotate(-8deg);
    }

    66% {
        transform: translate(5px, -4px) scaleX(-1) rotate(-22deg);
    }
}

/* === BACKGROUND RÚSTICO — sem blobs digitais === */
.bg-drifts {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    /* Manchas de aquarela suave — cores de terra */
    background:
        radial-gradient(ellipse 60% 40% at 8% 15%, rgba(220, 163, 83, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 92% 85%, rgba(107, 143, 94, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(220, 163, 83, 0.02) 0%, transparent 60%);
}

/* Removendo os blobs digitais que passam ar moderno */
.blob-img {
    display: none;
}

/* === BOTÕES — estilo artesanal, sem blur, sem brilho excessivo === */
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: transparent;
    border: 1.5px solid rgba(252, 253, 250, 0.5);
    color: #fcfdfa;
    padding: 0.85rem 1.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.btn-outline-light:hover {
    background: rgba(252, 253, 250, 0.12);
    border-color: rgba(252, 253, 250, 0.85);
    color: #fcfdfa;
}

.btn-solid {
    background: #dca353;
    color: #fcfdfa;
    border: none;
    padding: 1rem 3rem;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 3px 12px rgba(220, 163, 83, 0.20);
}

.btn-solid:hover {
    background: #c99040;
    box-shadow: 0 5px 20px rgba(220, 163, 83, 0.30);
}

/* Revelação no Scroll — mais lenta e suave */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Variante com delay para stagger dentro de seções reveladas */
.reveal.active .reveal-child-1 { transition-delay: 0.1s; }
.reveal.active .reveal-child-2 { transition-delay: 0.25s; }
.reveal.active .reveal-child-3 { transition-delay: 0.4s; }

/* === SEÇÃO TRAJE E PRESENTES === */
.decorative-separator {
    width: 1px;
    height: 140px;
    background: linear-gradient(to bottom, transparent, rgba(220, 163, 83, 0.6) 50%, transparent);
    position: relative;
    opacity: 0.7;
}

.decorative-separator::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fcfdfa;
    padding: 0.5rem 0;
    color: #dca353;
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Cards informativos (traje, presentes) */
.info-card {
    position: relative;
    padding: 2.5rem 2rem;
    border-radius: 4px;
    background: rgba(220, 163, 83, 0.04);
    border: 1px solid rgba(220, 163, 83, 0.12);
    transition: border-color 0.4s ease, background 0.4s ease;
}

.info-card:hover {
    background: rgba(220, 163, 83, 0.07);
    border-color: rgba(220, 163, 83, 0.22);
}

.info-card-icon {
    font-size: 2.8rem;
    color: #dca353;
    opacity: 0.65;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.info-card:hover .info-card-icon {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Pix / presente card */
.pix-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: rgba(220, 163, 83, 0.08);
    border: 1px dashed rgba(220, 163, 83, 0.3);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #727c70;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pix-detail:hover {
    background: rgba(220, 163, 83, 0.14);
    border-color: rgba(220, 163, 83, 0.5);
    color: #1c1c1a;
}

.pix-copied-toast {
    display: none;
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #1c1c1a;
    color: #fcfdfa;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
}

.pix-copied-toast.show {
    display: block;
    animation: toast-in 0.3s ease forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translate(-50%, 4px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* === SEÇÃO RSVP — TEXTURA E BOTÃO === */
.rsvp-bg {
    background-color: #1c1c1a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23f)' opacity='0.15'/%3E%3C/svg%3E");
}

.btn-rsvp {
    position: relative;
    overflow: hidden;
    background: #dca353;
    color: #fcfdfa;
    padding: 1.25rem 3rem;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.btn-rsvp::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #1c1c1a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-rsvp:hover::before {
    width: 300%;
    height: 400%;
}

.btn-rsvp:hover {
    color: #fcfdfa;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* === EDITORIAL QUOTES FOR RSVP === */
.quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 6rem;
    line-height: 0;
    color: #dca353;
    opacity: 0.2;
    position: absolute;
    pointer-events: none;
    user-select: none;
}

.quote-left { top: 1.5rem; left: 0; }
.quote-right { bottom: -1rem; right: 0; transform: rotate(180deg); }

/* === FOOTER MONOGRAM === */
.monogram-footer {
    font-family: 'Alex Brush', cursive;
    font-size: 7rem;
    color: #1c1c1a;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 1;
}

.reveal.active .monogram-footer {
    opacity: 0.22;
    transform: scale(1);
}

/* Linha decorativa do footer */
.footer-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 200px;
    margin: 0 auto 1.5rem;
}

.footer-divider::before,
.footer-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(220, 163, 83, 0.4));
}

.footer-divider::after {
    background: linear-gradient(to left, transparent, rgba(220, 163, 83, 0.4));
}

.footer-divider span {
    color: #dca353;
    font-size: 0.6rem;
    opacity: 0.7;
}

/* === LOADER ANIMATIONS === */
.loader-bee-container {
    animation: loader-bee-float 4s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes loader-bee-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -15px) rotate(5deg);
    }
    50% {
        transform: translate(-5px, -25px) rotate(-5deg);
    }
    75% {
        transform: translate(-15px, -10px) rotate(2deg);
    }
}

@keyframes animate-progress-ink {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(-20%); }
    100% { transform: translateX(100%); }
}

.animate-progress-ink {
    animation: animate-progress-ink 3s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* === BOTÕES DE CALENDÁRIO COM IDENTIDADE DE MARCA === */

/* --- Apple Calendar --- */
.btn-cal-apple {
    background-color: #000000;
    color: #ffffff;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
}

.btn-cal-apple:hover {
    background-color: #1d1d1f;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-cal-apple:active {
    transform: translateY(0);
}

/* --- Google Calendar --- */
.btn-cal-google {
    background-color: #ffffff;
    color: #3c4043;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 4px rgba(60, 64, 67, 0.12);
    transition: box-shadow 0.28s ease, background 0.28s ease, transform 0.2s ease;
}

.btn-cal-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 14px rgba(60, 64, 67, 0.20);
    transform: translateY(-2px);
    color: #3c4043;
}

.btn-cal-google:active {
    transform: translateY(0);
}
