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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(181, 108, 79, 0.2);
    color: inherit;
}

/* ========== NAVIGATION ========== */
#site-header {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#site-header.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#menu-icon.active #bar1 {
    transform: rotate(45deg);
    top: 0;
}

#menu-icon.active #bar2 {
    opacity: 0;
}

#menu-icon.active #bar3 {
    transform: rotate(-45deg);
    bottom: 0;
    width: 24px;
}

/* ========== SERVICES GRID ========== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(181, 108, 79, 0.3), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ========== FORM FOCUS STATES ========== */
input:focus,
textarea:focus {
    outline: none;
}

/* ========== SMOOTH SCROLL OFFSET ========== */
section[id] {
    scroll-margin-top: 80px;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 767px) {
    section[id] {
        scroll-margin-top: 60px;
    }
}
