/* ── Base & Typography ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}

::selection {
    background-color: #b92547;
    color: #fefcfb;
}

/* ── Hero Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    animation: fadeUp 0.8s ease-out both;
}

.hero-badge:nth-child(1) { animation-delay: 0.1s; }

h1 {
    animation: fadeUp 0.8s ease-out 0.2s both;
}

h1 + p {
    animation: fadeUp 0.8s ease-out 0.35s both;
}

h1 + p + div {
    animation: fadeUp 0.8s ease-out 0.5s both;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* ── Mobile Menu ── */
.mobile-menu-line {
    transition: all 0.3s ease-in-out;
}

#mobile-menu-btn.active .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .mobile-menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .mobile-menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Nav on scroll ── */
#site-header.scrolled {
    box-shadow: 0 1px 20px rgba(100, 22, 43, 0.08);
}

/* ── Image hover effects ── */
img {
    display: block;
    max-width: 100%;
}

/* ── Button focus states ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #b92547;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #971a3a;
}

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
