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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(201, 107, 79, 0.2);
    color: #963f31;
}

/* Eyebrow utility */
.eyebrow {
    display: block;
}

/* ==================== HERO ANIMATIONS ==================== */
.hero-eyebrow {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-title {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.hero-cta {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

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

/* ==================== SERVICES GRID ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: rgba(220, 207, 191, 0.4);
    border: 1px solid rgba(220, 207, 191, 0.4);
}

.service-card {
    background-color: #faf9f7;
    padding: 3rem 2.5rem;
    transition: background-color 0.4s ease;
}

.service-card:hover {
    background-color: #fff;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-card {
        padding: 3.5rem 2.5rem;
    }
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== NAVBAR ==================== */
#navbar {
    background-color: transparent;
}

#navbar.scrolled {
    background-color: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .menu-line {
    background-color: #1a1a1a;
}

/* ==================== MOBILE MENU ==================== */
.mobile-link {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ==================== FORM ==================== */
select option {
    color: #1a1a1a;
    background-color: #fff;
}

/* ==================== IMAGE PLACEHOLDERS ==================== */
img {
    max-width: 100%;
    height: auto;
}

/* ==================== FOCUS STYLES ==================== */
:focus-visible {
    outline: 2px solid #c96b4f;
    outline-offset: 2px;
}

/* ==================== UTILITY ==================== */
@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;
    }
}
