/* ── Base & Typography ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #165020;
    background-color: #fdfcfa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #b7dbb4;
    color: #0b2f14;
}

/* ── Section Shared Styles ── */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #368237;
    background: linear-gradient(135deg, #d9edda 0%, #b7dbb4 100%);
    padding: 0.4em 1em;
    border-radius: 100px;
}

.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: #165020;
}

.section-desc {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #236628;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 24px rgba(22, 80, 32, 0.08);
}

.nav-link {
    position: relative;
}

/* ── Hero ── */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #fdfcfa, transparent);
    pointer-events: none;
}

/* ── 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, #165020, #368237);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px 16px 0 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover .w-14 {
    background-color: #165020 !important;
}

.service-card:hover .w-14 svg path,
.service-card:hover .w-14 svg circle,
.service-card:hover .w-14 svg rect,
.service-card:hover .w-14 svg line {
    stroke: white !important;
}

/* ── Experience Cards ── */
.experience-card {
    position: relative;
}

.experience-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    border-radius: 1rem;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .experience-card {
        transition: none;
    }
}

/* ── Mobile Menu Animation ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #368237;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ── Form Focus States ── */
input:focus,
textarea:focus {
    background-color: #fff;
}

/* ── Responsive Adjustments ── */
@media (max-width: 767px) {
    #hero::after {
        height: 60px;
    }
}

/* ── Print ── */
@media print {
    #navbar,
    #mobile-menu {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .service-card,
    .experience-card {
        break-inside: avoid;
    }
}
