:root {
    /* Color Palette - Forest Growth */
    --primary: #2D7D4D;
    /* Forest Green (70%) */
    --primary-dark: #1F5234;
    --accent: #F98B45;
    /* Orange CTA (5%) */
    --accent-hover: #E67A2E;
    --white: #FFFFFF;
    /* Base (20%) */
    --black: #1A1A1A;
    /* Contrast (5%) */
    --gray-light: #F9FAFB;
    --gray-border: #E5E7EB;
    --text-main: #1A1A1A;
    --text-muted: #4B5563;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--black);
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 6vw, 2.75rem);
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 2.5rem 0;
    }
}

/* Sticky Header */
header.sticky-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-border);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.05em;
}

.nav-link-item {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.nav-cta {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

/* Header Navigation */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Nav Overlay */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        gap: 1.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
        width: 100%;
        text-align: center;
        color: var(--text-main);
        font-weight: 600;
    }

    .nav-cta {
        margin-top: 1rem;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    text-align: center;
}

.btn-orange {
    background-color: var(--accent);
    color: var(--white);
    border: none;
}

.btn-orange:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 139, 69, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Components */
.bg-forest {
    background-color: var(--primary);
    color: var(--white);
}

.bg-forest h2 {
    color: var(--white);
}

.bg-forest p {
    color: rgba(255, 255, 255, 0.9);
}

/* Accessibility: High-contrast replacements for orange text on green background */
.bg-forest h3,
.bg-forest a[style*="color: var(--accent)"] {
    color: #FFD2B3 !important;
    /* Lighter Peach for better contrast */
}

.bg-forest a:hover {
    color: var(--white) !important;
}

.card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    padding: 2.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--gray-border);
    padding: 2rem 0;
}

.faq-answer {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 800px;
}

/* Accordion / Details */
.seo-accordion {
    border-bottom: 1px solid var(--gray-border);
    padding: 1rem 0;
}

.seo-accordion summary {
    list-style: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.seo-accordion summary::-webkit-details-marker {
    display: none;
}

.seo-accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.seo-accordion[open] summary::after {
    content: '-';
}

.accordion-content {
    padding: 0 0 1.5rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Case Studies */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.case-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 4px solid var(--primary);
}

.case-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(45, 125, 77, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.metric-pill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.metric-pill {
    background: var(--gray-light);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.metric-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.case-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-border);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .btn {
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
    }

    /* Fixed overlapping in specialization summaries */
    .seo-accordion summary {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .results-grid p[style*="font-size: 3rem"] {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero-split h1 {
        font-size: 2.25rem;
    }

    .section-padding {
        padding: 2rem 0;
    }
}