:root {
    --primary: #15803d;
    --primary-dark: #166534;
    --accent: #ca8a04;
    --accent-hover: #b45309;
    --bg-main: #fafaf9;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 1.125rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Header & Navigation */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 90;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary);
}

.burger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Mobile Nav Open */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
        gap: 1.5rem;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .burger-btn {
        display: block;
    }
}

/* Layout Blocks */
.section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section with custom SVG background pattern */
.hero-sec {
    position: relative;
    background-color: #0f172a;
    color: #ffffff;
    padding: 6rem 2rem;
    overflow: hidden;
}

.hero-sec::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C300,100 900,0 1200,80 L1200,120 L0,120 Z' fill='%23fafaf9'/%3E%3C/svg%3E");
    background-size: cover;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 5;
}

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

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1.125rem;
}

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

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

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

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

.hero-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
}

/* Stats Section */
.stats-sec {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 3rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Process Section */
.process-sec {
    background-color: var(--bg-main);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    position: relative;
}

.process-num {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: var(--border);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.service-card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-body h3 {
    margin-bottom: 1rem;
}

.service-card-body p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Feature Row */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.feature-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-list i {
    color: var(--primary);
    margin-top: 0.25rem;
}

/* Pricing Row */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: stretch;
}

.price-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 20px -5px rgba(21,128,61,0.15);
}

.price-badge {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
    border-radius: 9999px;
    font-weight: bold;
}

.price-card h3 {
    margin-bottom: 1rem;
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem 0;
}

.price-value span {
    font-size: 1rem;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
    text-align: left;
}

.price-features li {
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.price-features i {
    color: var(--primary);
}

/* Lead Form Section */
.form-sec {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.form-container {
    max-width: 650px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1.125rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--bg-main);
}

.form-control:focus {
    outline: 2px solid var(--primary);
    background-color: #ffffff;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input {
    margin-top: 0.35rem;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    display: none;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    display: block;
}

/* Trust Layer (Global) */
.trust-layer {
    background-color: #f1f5f9;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.trust-layer-container {
    max-width: 900px;
    margin: 0 auto;
}

.trust-layer h3 {
    margin-bottom: 1rem;
}

.trust-layer p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.trust-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-main);
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

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

.footer-brand h4 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.footer-nav h5 {
    color: white;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

/* Map frame styling */
.map-responsive {
    overflow: hidden;
    padding-bottom: 400px;
    position: relative;
    height: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 1.5rem;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    background-color: #1e293b;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.4);
    z-index: 1000;
    display: none;
}

.cookie-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.cookie-content p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.cookie-btns {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

@media (max-width: 576px) {
    .cookie-btns {
        flex-direction: column;
    }
}

/* Accessibility Focus style */
*:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
}