/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.01em;
}

.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ee;
}
::-webkit-scrollbar-thumb {
    background: #9fc3a8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4e8056;
}

/* ===== Hero Animations ===== */
.hero-title {
    animation: heroReveal 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    animation: heroReveal 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.15s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-desc {
    animation: heroReveal 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Diagonal Clip ===== */
.clip-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 60% 100%);
}

/* ===== Section Labels ===== */
.section-label {
    display: block;
}

.section-title {
    position: relative;
}

/* ===== Service Cards ===== */
.service-card {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(40, 77, 46, 0.15);
}

/* ===== Gallery ===== */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Stagger delays */
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== Nav Transition ===== */
.nav-scrolled {
    background: rgba(250, 249, 246, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(159, 195, 168, 0.3);
}

.nav-scrolled .nav-link {
    color: #284d2e !important;
}

.nav-scrolled .mobile-nav-link {
    color: #284d2e !important;
}

.nav-scrolled #navbar .font-serif {
    color: #284d2e !important;
}

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    overflow: hidden;
}

/* ===== Reduced Motion ===== */
@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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .hero-title, .hero-subtitle, .hero-desc {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ===== Focus Styles ===== */
a:focus-visible, button:focus-visible {
    outline: 2px solid #4e8056;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== Selection ===== */
::selection {
    background: #c7dfce;
    color: #1a321e;
}
