/* ── Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

::selection {
    background: rgba(131, 38, 38, 0.15);
    color: #5a1b1b;
}

/* ── Navbar scroll state ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 245, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(131, 38, 38, 0.08);
}

/* ── Hero animations ── */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-desc {
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-ctas {
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-scroll {
    animation: fadeIn 0.8s ease forwards 1.2s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Reveal on scroll ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Mobile menu ── */
.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(2px, 2px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* ── Body lock when mobile menu open ── */
body.menu-locked {
    overflow: hidden;
}

/* ── Form focus styles ── */
input:focus, textarea:focus {
    border-color: rgba(196, 59, 59, 0.5) !important;
}

/* ── Smooth image loading ── */
img {
    display: block;
    max-width: 100%;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #d4a8a8;
    border-radius: 3px;
}

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