/* =========================================
   1. CSS Variables & Reset (Emerald Theme)
   ========================================= */
:root {
    --primary-color: #064e3b;       /* Deep Emerald Green */
    --primary-light: #10b981;       /* Vibrant Emerald */
    --accent-color: #f59e0b;        /* Warm Amber for CTAs */
    --accent-hover: #d97706;        /* Darker Amber */
    --bg-color: #f0fdf4;            /* Very Light Mint/Green Tint */
    --card-bg: #ffffff;             /* Pure White */
    --text-primary: #022c22;        /* Very Dark Green/Black */
    --text-secondary: #334155;      /* Slate Gray */
    --border-color: #a7f3d0;        /* Light Emerald Border */
    --shadow-soft: 0 10px 40px -10px rgba(6, 78, 59, 0.08);
    --shadow-hover: 0 20px 50px -12px rgba(6, 78, 59, 0.15);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. Typography & Links
   ========================================= */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-top: 1rem; }
h3 { font-size: 1.25rem; color: var(--text-primary); font-weight: 700; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* =========================================
   3. Layout Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================
   4. Header & Navigation
   ========================================= */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: none;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-cta {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600 !important;
    border: none;
}

.nav-cta:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* =========================================
   5. Hero Section
   ========================================= */
.hero {
    background: linear-gradient(160deg, var(--primary-color) 0%, #065f46 100%);
    color: white;
    padding: 6rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: #a7f3d0;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(167, 243, 208, 0.3);
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* =========================================
   6. Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
    border-bottom: none;
}

.btn-large {
    padding: 1.15rem 3rem;
    font-size: 1.15rem;
}

/* =========================================
   7. Main Content & Cards
   ========================================= */
.main-content {
    padding: 5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: -4rem; /* Overlap hero */
    position: relative;
    z-index: 10;
}

.content-card {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.content-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.process-step {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.process-step:hover {
    background-color: white;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-soft);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(16, 185, 129, 0.15);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.process-step p {
    font-size: 0.95rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* =========================================
   8. FAQ Section
   ========================================= */
.faq-section {
    background-color: var(--card-bg);
    padding: 3.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.faq-container {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    background-color: white;
}

.faq-item.active {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.faq-question:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.4s ease;
    background-color: var(--bg-color);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* =========================================
   9. Contact Section
   ========================================= */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #065f46 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-section h2 {
    color: white;
}

.contact-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    margin-bottom: 3.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.contact-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: #a7f3d0;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-card p, .contact-card a {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0;
    text-decoration: none;
    border-bottom: none;
}

.contact-card a:hover {
    color: var(--accent-color);
}

.contact-cta-wrapper {
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

/* =========================================
   10. Footer
   ========================================= */
.footer {
    background-color: #022c22;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 3rem 0;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

/* =========================================
   11. Animations
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   12. Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hero {
        padding: 4rem 0 6rem;
    }

    .main-content {
        margin-top: -2rem;
        padding: 3rem 1rem;
    }

    .content-card, .faq-section {
        padding: 2rem 1.5rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }
}