/* === CUSTOM STYLES === */

:root {
    --terra-900: #431C0C;
    --terra-700: #8B3A1F;
    --terra-600: #A04524;
    --terra-500: #C25A33;
    --terra-400: #D4734B;
    --terra-300: #E0946E;
    --terra-200: #EDBB99;
    --terra-100: #F5DCC4;
    --terra-50:  #FBF0E6;
    --sand-900:  #3A322B;
    --sand-700:  #6E6055;
    --sand-500:  #9E8E82;
    --sand-300:  #C8B8AA;
    --sand-200:  #E8DFD5;
    --sand-100:  #F5F0EA;
    --sand-50:   #FBF8F4;
    --sand-25:   #FDFCFA;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

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

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(139, 58, 31, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--terra-500);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: var(--terra-500);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 100%;
}

/* === SERVICE CARDS === */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--terra-500);
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

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

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

/* === SELECTION === */
::selection {
    background: var(--terra-200);
    color: var(--terra-900);
}
