*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Navigation */
.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.menu-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--forest-900, #1C4532);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 50%;
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    bottom: auto;
    top: 50%;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-link {
    position: relative;
    transition: opacity 0.3s ease;
}

.mobile-link:hover {
    opacity: 0.7;
}

/* Buttons */
.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: #1C4532;
    color: #F5F5F0;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #1C4532;
    transition: all 0.4s ease;
    cursor: pointer;
}

.cta-primary:hover {
    background: #2A6247;
    border-color: #2A6247;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(28, 69, 50, 0.2);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: transparent;
    color: #1C4532;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #1C4532;
    transition: all 0.4s ease;
}

.cta-secondary:hover {
    background: #1C4532;
    color: #F5F5F0;
    transform: translateY(-2px);
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #1C4532;
    transition: height 0.4s ease;
}

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

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Header scroll state */
.header-scrolled {
    box-shadow: 0 2px 20px rgba(28, 69, 50, 0.08);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #1C4532;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F5F0;
}

::-webkit-scrollbar-thumb {
    background: #2A6247;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1C4532;
}

/* Selection */
::selection {
    background: #2A6247;
    color: #F5F5F0;
}

/* 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;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
}

/* Small mobile */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-primary,
    .cta-secondary {
        padding: 14px 28px;
        font-size: 10px;
    }
}
