/* ========== BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(132, 22, 50, 0.15);
    color: #841632;
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(250, 247, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(132, 22, 50, 0.08);
    box-shadow: 0 1px 20px rgba(132, 22, 50, 0.06);
}

/* ========== MOBILE MENU ========== */
.menu-line {
    transition: all 0.3s ease;
}

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

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

#mobileMenu.open {
    transform: translateX(0);
}

.mobile-link {
    opacity: 1;
}

/* ========== HERO ========== */
.hero-eyebrow {
    opacity: 1;
    animation: fadeSlideUp 0.8s ease forwards;
}

.hero-headline {
    opacity: 1;
    animation: fadeSlideUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-subhead {
    opacity: 1;
    animation: fadeSlideUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-ctas {
    opacity: 1;
    animation: fadeSlideUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

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

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ========== SECTION LABEL ========== */
.section-label {
    letter-spacing: 0.2em;
}

/* ========== SERVICE CARDS ========== */
.service-card {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion preference */
@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;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 3.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 4.5rem;
    }
}
