/* ========== 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 {
    background-color: #1B4332;
    color: #FDFBF7;
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.97);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
    backdrop-filter: blur(8px);
}

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

#navbar.scrolled .nav-logo-text {
    color: #1B4332;
}

#navbar.scrolled .nav-logo-sub {
    color: #4a7a63;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4A84B;
    transition: width 0.3s ease;
}

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

/* ========== HERO ========== */
.clip-diagonal {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* ========== SERVICES ========== */
.service-card {
    transition: transform 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}

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

/* ========== PROCESS ========== */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -2rem;
    width: 2rem;
    height: 1px;
    background: #b9d1c6;
}

.process-step:last-child::after {
    display: none;
}

@media (max-width: 1023px) {
    .process-step::after {
        display: none;
    }
}

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

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

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

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ========== FORM ========== */
select option {
    background: #FDFBF7;
    color: #1B4332;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .process-step::after {
        display: none;
    }
}
