﻿/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #D97706; /* Warm Amber */
    --primary-hover: #B45309;
    --secondary: #1E3A8A; /* Trusted Navy Blue */
    --secondary-light: #E0E7FF;
    --bg-main: #FDFBF7; /* Soft Warm Cream */
    --bg-card: #FFFFFF;
    --text: #1F2937;
    --text-muted: #4B5563;
    --border-color: #E5E7EB;
    --success: #10B981;
    --font: 'Plus Jakarta Sans', sans-serif;
    --shadow-soft: 0 4px 20px rgba(30, 58, 138, 0.05);
    --shadow-md: 0 10px 30px rgba(30, 58, 138, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Base Layout & Sections */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 16px;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px auto;
}

/* Header & Navigation */
header {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding: 16px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
}

.logo img {
    width: 32px;
    height: 32px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
}

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

.cta-btn-nav {
    background-color: var(--secondary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.cta-btn-nav:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top right, #FEF3C7 0%, var(--bg-main) 60%);
    padding: 100px 0 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
}

.hero-image img {
    box-shadow: var(--shadow-md);
}

/* Stats Section */
.stats {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

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

.stat-card p {
    color: var(--text-muted);
    font-weight: 500;
}

/* About Section */
.about {
    background-color: var(--bg-main);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    color: var(--secondary);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Programs Section */
.programs {
    background-color: var(--bg-card);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.program-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.program-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.program-card h3 {
    color: var(--secondary);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.program-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Section */
.lead-form-section {
    background: radial-gradient(circle at bottom left, #EFF6FF 0%, var(--bg-main) 70%);
}

.form-wrapper {
    background-color: var(--bg-card);
    max-width: 650px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    border: 1px solid rgba(30, 58, 138, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s ease;
    background-color: var(--bg-main);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
}

.form-checkbox input {
    width: auto;
    margin-top: 4px;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

.form-wrapper button {
    width: 100%;
    margin-top: 20px;
}

/* Success Message Area */
#form-result {
    margin-top: 20px;
    display: none;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

#form-result.success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    display: block;
}

#form-result.error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
    display: block;
}

/* FAQ Section */
.faq {
    background-color: var(--bg-card);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    margin-top: 12px;
    transition: max-height 0.5s ease-in-out;
}

/* Footer & Compliance pages layout */
footer {
    background-color: var(--secondary);
    color: #fff;
    padding: 60px 0 30px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
    max-width: 320px;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Legal Pages Styling */
.legal-container {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 48px;
    border: 1px solid var(--border-color);
}

.legal-card h1 {
    color: var(--secondary);
    margin-bottom: 32px;
    font-size: 2.25rem;
}

.legal-card h2 {
    color: var(--secondary);
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.legal-card p, .legal-card ul {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.legal-card ul {
    padding-left: 20px;
}

.map-container {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Cookie Consent Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary);
    color: #fff;
    padding: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cookie-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.cookie-btn-accept {
    background-color: var(--primary);
    color: #fff;
}

.cookie-btn-accept:hover {
    background-color: var(--primary-hover);
}

.cookie-btn-decline {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
    .hero-grid, .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image {
        order: -1;
    }
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    nav {
        display: none; /* Simplification mobile-first for clean design context */
    }
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }
    .legal-card {
        padding: 24px;
    }
}