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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

/* ═══════════════ NAVBAR ═══════════════ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(113, 23, 50, 0.08), 0 4px 30px rgba(113, 23, 50, 0.06);
}

#navbar.scrolled .font-serif {
    color: #711732 !important;
}

/* ═══════════════ MOBILE MENU ═══════════════ */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

/* ═══════════════ FLOATING CARDS ═══════════════ */
.floating-card-1 {
    animation: float1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 7s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(-0.5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ═══════════════ SCROLL REVEAL ═══════════════ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Default visible state for progressive enhancement */
.reveal {
    transform: translateY(0);
    opacity: 1;
}

/* ═══════════════ REDUCED MOTION ═══════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        animation: none;
    }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 767px) {
    #hero {
        min-height: 100vh;
        padding-top: 100px;
    }

    .font-serif.text-5xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .font-serif.text-4xl {
        font-size: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero {
        padding-top: 120px;
    }
}

/* ═══════════════ FOCUS STYLES ═══════════════ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #711732;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ═══════════════ SELECTION ═══════════════ */
::selection {
    background: rgba(113, 23, 50, 0.15);
    color: #711732;
}

/* ═══════════════ SCROLLBAR ═══════════════ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf8f0;
}

::-webkit-scrollbar-thumb {
    background: #f9d0d9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ec7491;
}
