/* ===== BASE & RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ===== NAV ===== */
.nav-fixed {
    background: rgba(253, 251, 245, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(237, 219, 159, 0.3);
    transition: box-shadow 0.3s ease;
}
.nav-scrolled {
    box-shadow: 0 4px 30px rgba(61, 43, 31, 0.08);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ee7647;
    border-radius: 1px;
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #c94218; }

/* ===== HERO SCROLL INDICATOR ===== */
@keyframes scrollLine {
    0% { top: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 200%; opacity: 0; }
}
.animate-scroll-line {
    animation: scrollLine 1.8s ease-in-out infinite;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ee7647, #f39e74);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    border-radius: 3px 3px 0 0;
}
.service-card:hover::before { transform: scaleX(1); }

/* ===== AREA CARDS ===== */
.area-card {
    position: relative;
    cursor: pointer;
}
.area-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}
.area-card:hover::after { border-color: rgba(255,255,255,0.3); }

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 6rem;
    color: #fce4d3;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

/* ===== CONTACT FORM ===== */
select option { color: #3d2b1f; }

/* ===== MOBILE MENU ===== */
.mobile-link { display: block; padding: 8px 0; }

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s 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; }
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
    outline: 2px solid #ee7647;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== MOBILE MENU ANIMATION ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .nav-fixed { background: rgba(253, 251, 245, 0.95); }
}
