/* ==========================================================
   LYNN CICHOCKI — Fairview Navy / Green Executive Glass System
   Adapted from Rizzo Development template
   ========================================================== */

:root {
    /* Fairview Navy foundation */
    --navy-900: #0c1a38;
    --navy-800: #121f42;
    --navy-700: #192857;
    --navy-600: #1e3468;
    --navy-500: #2a4580;

    /* Fairview Green accents */
    --green-900: #3a6b1a;
    --green-700: #5a9a2a;
    --green-500: #A9EB63;
    --green-400: #BFEF85;
    --green-300: #D4F3A7;
    --green-200: #DEFF8D;
    --green-glow: rgba(169, 235, 99, 0.20);

    /* Blue accents */
    --blue-600: #1958D8;
    --blue-500: #2E96FF;
    --blue-400: #66C5FF;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F8F9FC;
    --warm-gray: #E2E5EC;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-dark: #1A1A1A;
    --text-dark-secondary: #4A4A4A;

    /* Glass tokens */
    --glass-bg: rgba(18, 31, 66, 0.55);
    --glass-bg-strong: rgba(18, 31, 66, 0.70);
    --glass-bg-light: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(169, 235, 99, 0.12);
    --glass-border-strong: rgba(169, 235, 99, 0.25);
    --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    --glass-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.35);
    --glass-blur: blur(20px);
    --glass-blur-strong: blur(32px);
    --glass-sat: saturate(150%);

    /* Light glass */
    --lglass-bg: rgba(25, 40, 87, 0.03);
    --lglass-border: rgba(25, 40, 87, 0.08);
    --lglass-shadow: 0 4px 24px rgba(25, 40, 87, 0.06);

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --h1: clamp(2.5rem, 5vw, 4rem);
    --h2: clamp(1.75rem, 3.5vw, 2.5rem);
    --h3: clamp(1.05rem, 1vw + 0.8rem, 1.25rem);

    /* Spacing */
    --section-pad: clamp(80px, 10vw, 120px);

    /* Radius */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;

    /* Motion */
    --ease: cubic-bezier(.2,.8,.2,1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 640px) {
    :root { --glass-blur: blur(12px); --glass-blur-strong: blur(16px); }
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--navy-900);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green-500); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-400); }

.green-text { color: var(--green-500); }
.blue-text { color: var(--blue-500); }

/* ─── Skip Link ─── */
.skip-link {
    position: absolute; top: -100%; left: 16px; z-index: 10000;
    background: var(--green-500); color: var(--navy-900);
    padding: 12px 24px; border-radius: 0 0 8px 8px;
    font-weight: 600; font-size: 14px; text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; color: var(--navy-900); }

/* ─── Container ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================
   NAV — Rizzo-style sticky glass nav
   ========================================================== */
nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(12, 26, 56, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-brand {
    font-size: 18px; font-weight: 700; color: var(--white);
    text-decoration: none; letter-spacing: -0.02em;
}
.nav-brand span { color: var(--green-500); }

.nav-links {
    display: flex; gap: 28px; list-style: none; align-items: center;
}
.nav-links a {
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    padding: 8px 0; position: relative; transition: color 0.2s;
    text-decoration: none;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
    height: 2px; background: var(--green-500); border-radius: 1px;
}

.nav-cta {
    background: var(--green-500) !important; color: var(--navy-900) !important;
    padding: 8px 20px !important; border-radius: 8px; font-weight: 600 !important;
    font-size: 13px !important; transition: all 0.2s !important;
    white-space: nowrap;
}
.nav-cta:hover {
    background: var(--green-400) !important; color: var(--navy-900) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(169, 235, 99, 0.3);
}

.nav-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.1); }

/* Hamburger */
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 40px; height: 40px; padding: 8px;
    flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle-bar {
    display: block; width: 100%; height: 2px; background: var(--white);
    border-radius: 2px; transition: var(--transition);
}

/* ==========================================================
   MOBILE DRAWER
   ========================================================== */
.mobile-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
    width: min(85vw, 380px);
    background: var(--navy-800);
    border-left: 1px solid rgba(255,255,255,0.06);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.mobile-drawer.open { transform: translateX(0); }

.md-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.md-header-brand {
    font-size: 16px; font-weight: 700; color: var(--white); text-decoration: none;
}
.md-header-brand span { color: var(--green-500); }
.md-close {
    background: none; border: none; color: var(--text-secondary);
    cursor: pointer; padding: 8px; border-radius: 8px;
    transition: color 0.2s;
}
.md-close:hover { color: var(--white); }

.md-scroll { flex: 1; overflow-y: auto; padding: 20px; }
.md-nav { display: flex; flex-direction: column; gap: 4px; }
.md-link {
    display: block; padding: 14px 16px; color: var(--text-secondary);
    font-size: 15px; font-weight: 500; border-radius: var(--r-sm);
    transition: all 0.2s; text-decoration: none;
}
.md-link:hover, .md-link.active {
    color: var(--white); background: rgba(255,255,255,0.04);
}

.md-cta-bar {
    padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.06);
}
.md-cta {
    display: block; text-align: center; padding: 14px;
    background: var(--green-500); color: var(--navy-900);
    font-weight: 700; font-size: 15px; border-radius: var(--r-sm);
    text-decoration: none; transition: all 0.2s;
}
.md-cta:hover { background: var(--green-400); color: var(--navy-900); }

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { padding: var(--section-pad) 0; }
.section-dark { background: var(--navy-800); }
.section-header { max-width: 640px; margin-bottom: 48px; }
.section-eyebrow {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--green-500); margin-bottom: 12px;
}
.section-header h2 {
    font-size: var(--h2); font-weight: 800; line-height: 1.15;
    letter-spacing: -0.02em; margin-bottom: 16px;
}
.section-desc {
    font-size: 17px; color: var(--text-secondary); line-height: 1.7;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    position: relative; padding: clamp(100px, 12vw, 160px) 0 var(--section-pad);
    overflow: hidden;
}
.hero-ambient {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(25, 88, 216, 0.12) 0%, transparent 70%),
                radial-gradient(ellipse 60% 50% at 70% 80%, rgba(169, 235, 99, 0.06) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--green-500); margin-bottom: 20px;
}
.hero h1 {
    font-size: var(--h1); font-weight: 800; line-height: 1.08;
    letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero-sub {
    font-size: 18px; color: var(--text-secondary); line-height: 1.7;
    max-width: 580px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Proof stats row */
.proof-row {
    display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 40px;
}
.proof-chip {
    display: flex; flex-direction: column;
}
.proof-val {
    font-size: 28px; font-weight: 800; color: var(--green-500);
    letter-spacing: -0.02em; line-height: 1;
}
.proof-label {
    font-size: 12px; color: var(--text-muted); margin-top: 4px;
    text-transform: uppercase; letter-spacing: 0.05em;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--r-sm);
    font-size: 15px; font-weight: 600; border: none;
    cursor: pointer; transition: all 0.25s var(--ease);
    text-decoration: none;
}
.btn-green {
    background: var(--green-500); color: var(--navy-900);
}
.btn-green:hover {
    background: var(--green-400); color: var(--navy-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(169, 235, 99, 0.3);
}
.btn-ghost {
    background: transparent; color: var(--white);
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover {
    border-color: var(--green-500); color: var(--green-500);
    transform: translateY(-2px);
}

/* ==========================================================
   GLASS CARDS
   ========================================================== */
.glass-surface {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur) var(--glass-sat);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-sat);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-inset), var(--glass-shadow);
    border-radius: var(--r-md);
    padding: 28px;
    transition: all 0.3s var(--ease);
}
.glass-surface:hover {
    border-color: var(--glass-border-strong);
    box-shadow: var(--glass-inset), var(--glass-shadow-hover);
    transform: translateY(-3px);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card-icon {
    width: 44px; height: 44px; border-radius: var(--r-sm);
    background: var(--green-glow);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; font-size: 20px;
}

.card h3 {
    font-size: var(--h3); font-weight: 700; margin-bottom: 8px;
}
.card p {
    color: var(--text-secondary); font-size: 14px; line-height: 1.6;
}

/* ==========================================================
   STATS
   ========================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.stat {
    text-align: center; padding: 28px 16px;
}
.stat-number {
    font-size: 40px; font-weight: 800; color: var(--green-500);
    letter-spacing: -0.02em; line-height: 1;
}
.stat-label {
    font-size: 13px; color: var(--text-secondary); margin-top: 8px;
    text-transform: uppercase; letter-spacing: 0.04em;
}

/* ==========================================================
   FORMS
   ========================================================== */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.form-input, .form-textarea {
    width: 100%; padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-sm); color: var(--text-primary);
    font-size: 15px; font-family: var(--font);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus {
    outline: none; border-color: var(--green-500);
    box-shadow: 0 0 0 3px var(--green-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert {
    padding: 16px 20px; border-radius: var(--r-sm);
    margin-bottom: 24px; font-size: 14px;
}
.alert-success {
    background: rgba(169, 235, 99, 0.1);
    border: 1px solid rgba(169, 235, 99, 0.3);
    color: var(--green-500);
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px 0; text-align: center;
}
footer p { font-size: 13px; color: var(--text-muted); }
footer a { color: var(--text-secondary); text-decoration: none; }
footer a:hover { color: var(--green-500); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-top: 8px; }

/* ==========================================================
   ABOUT PAGE
   ========================================================== */
.about-content {
    max-width: 720px;
}
.about-content p {
    color: var(--text-secondary); font-size: 16px; line-height: 1.8;
    margin-bottom: 20px;
}
.about-content strong { color: var(--text-primary); }

/* ==========================================================
   CTA SECTION
   ========================================================== */
.cta-section {
    text-align: center; padding: var(--section-pad) 0;
    position: relative;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(169, 235, 99, 0.04) 0%, transparent 70%);
}
.cta-section h2 {
    font-size: var(--h2); font-weight: 800; margin-bottom: 16px;
    letter-spacing: -0.02em; position: relative;
}
.cta-section p {
    font-size: 17px; color: var(--text-secondary); line-height: 1.7;
    max-width: 520px; margin: 0 auto 32px; position: relative;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
    .hero-sub { font-size: 16px; }
    .proof-row { gap: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .nav-inner { padding: 0 16px; }
    .stat-number { font-size: 32px; }
    .proof-val { font-size: 24px; }
}
