:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --accent: #e84a5f;
    --accent-dark: #c0392b;
    --bg: #f8fafc;
    --white: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --green: #16a34a;
    --green-bg: #f0fdf4;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}
.logo-icon { font-size: 1.5rem; }
.logo-text span { color: var(--primary); }
.main-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: .95rem;
    transition: color .2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--primary); }

/* ── Hamburger ─────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 150;
    opacity: 0;
    transition: opacity .3s;
}
.menu-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
    z-index: 201;
}

/* ── Hero ──────────────────────── */
.hero {
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 50%, #e8f5e9 100%);
    padding: 70px 0 60px;
    text-align: center;
}
.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.25;
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 20px;
}
.hero-badge {
    display: inline-block;
    background: var(--green-bg);
    color: var(--green);
    font-weight: 600;
    font-size: .85rem;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}

/* ── Search ────────────────────── */
.search-section {
    padding: 0 0 50px;
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 50%, #e8f5e9 100%);
}
.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,115,232,.15), 0 10px 25px rgba(0,0,0,.08);
}
.search-box .search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    pointer-events: none;
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-top: 6px;
    overflow: hidden;
    display: none;
    z-index: 50;
}
.search-results.active { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text);
    transition: background .15s;
    border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f1f5f9; }
.search-result-item .result-city { font-weight: 600; }
.search-result-item .result-state { color: var(--text-light); font-size: .85rem; }
.search-no-results {
    padding: 16px 20px;
    color: var(--text-light);
    text-align: center;
}

/* ── City Pages Grid on Home ──── */
.cities-section { padding: 60px 0; }
.cities-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}
.cities-section .section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 36px;
}
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.city-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: var(--text);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.city-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.city-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--green-bg);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.city-card-info .city-name { font-weight: 600; }
.city-card-info .city-centers { color: var(--text-light); font-size: .85rem; }

/* ── How It Works ─────────────── */
.how-section {
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
}
.how-section h2 { text-align: center; font-size: 1.8rem; margin-bottom: 40px; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    text-align: center;
}
.step-card {
    padding: 24px 16px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
}
.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-card p { color: var(--text-light); font-size: .9rem; }

/* ── FAQ ───────────────────────── */
.faq-section { padding: 60px 0; }
.faq-section h2 { text-align: center; font-size: 1.8rem; margin-bottom: 8px; }
.faq-section .section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 36px; }
.faq-grid { display: grid; gap: 14px; max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}
.faq-answer {
    display: none;
    padding: 0 20px 16px;
    color: var(--text-light);
    font-size: .95rem;
    line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── Breadcrumbs ───────────────── */
.breadcrumbs {
    padding: 14px 0;
    font-size: .85rem;
    color: var(--text-light);
}
.breadcrumbs span { color: var(--text); font-weight: 500; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ── City Hero (individual page) ── */
.city-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}
.city-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.city-hero p { opacity: .9; font-size: 1.05rem; }

/* ── Center Cards ──────────────── */
.centers-list { padding: 40px 0 60px; }
.center-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.center-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.center-card h2 { font-size: 1.2rem; font-weight: 700; }
.center-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.center-info-item { display: flex; flex-direction: column; gap: 2px; }
.center-info-label { font-size: .8rem; text-transform: uppercase; font-weight: 600; color: var(--text-light); letter-spacing: .5px; }
.center-info-value { font-size: .95rem; }
.center-info-value a { color: var(--primary); text-decoration: none; }
.center-info-value a:hover { text-decoration: underline; }
.center-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
    border: none;
    font-family: inherit;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: var(--white); color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: #e8f0fe; }

/* ── CTA ───────────────────────── */
.cta-section {
    background: var(--primary-dark);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}
.cta-section h2 { font-size: 1.8rem; margin-bottom: 8px; }
.cta-section p { opacity: .9; margin-bottom: 20px; font-size: 1.05rem; }
.cta-section .search-box { margin-top: 16px; }
.cta-section .search-box input {
    border: 2px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.15);
    color: var(--white);
}
.cta-section .search-box input::placeholder { color: rgba(255,255,255,.7); }
.cta-section .search-box input:focus {
    border-color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.2);
}

/* ── Page Header ───────────────── */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}
.page-header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 6px; }
.page-header p { opacity: .9; font-size: 1rem; }

/* ── City Content ──────────────── */
.city-content { padding: 40px 0 60px; }
.city-overview { margin-bottom: 36px; }
.city-overview h2 { font-size: 1.4rem; margin-bottom: 12px; }
.city-overview p { color: var(--text-light); line-height: 1.8; font-size: 1.02rem; }

/* ── ZIP Links Section ─────────── */
.zip-links-section {
    margin-top: 40px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.zip-links-section h2 { font-size: 1.2rem; margin-bottom: 6px; }
.zip-links-section p { color: var(--text-light); font-size: .95rem; margin-bottom: 16px; }
.zip-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.zip-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: .9rem;
    transition: border-color .2s, background .2s, transform .2s;
}
.zip-link-pill:hover {
    border-color: var(--primary);
    background: #e8f0fe;
    transform: translateY(-1px);
}
.zip-link-pill .zip-count { color: var(--text-light); font-size: .8rem; font-weight: 400; }

/* ── Footer ────────────────────── */
.site-footer {
    background: var(--text);
    color: #cbd5e1;
    padding: 50px 0 24px;
    font-size: .9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 36px;
}
.footer-col h3 { color: var(--white); margin-bottom: 10px; font-size: 1.1rem; }
.footer-col h4 { color: var(--white); margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col a { color: #94a3b8; text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: .85rem;
}

/* ── Responsive ────────────────── */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .menu-close { display: block; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -4px 0 24px rgba(0,0,0,.12);
        z-index: 151;
        padding: 64px 28px 28px;
        transition: right .3s ease;
        overflow-y: auto;
    }
    .main-nav.open { right: 0; }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav ul li { border-bottom: 1px solid var(--border); }
    .main-nav a {
        display: block;
        padding: 14px 0;
        font-size: 1.05rem;
        font-weight: 600;
    }

    .site-header .container {
        height: 56px;
        padding: 0 16px;
    }
    .logo { font-size: 1.05rem; }
    .logo-icon { font-size: 1.2rem; }

    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 1rem; }
    .hero { padding: 44px 0 36px; }
    .city-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .center-card-header { flex-direction: column; }
    .center-info-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .cta-section h2 { font-size: 1.4rem; }
    .search-box input { font-size: 1rem; padding: 14px 44px 14px 16px; }
    .city-hero h1, .page-header h1 { font-size: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.35rem; }
    .hero { padding: 32px 0 24px; }
    .hero p { font-size: .9rem; }
    .container { padding: 0 12px; }
    .city-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .page-header h1 { font-size: 1.3rem; }
    .center-card { padding: 16px; }
    .btn { padding: 8px 14px; font-size: .85rem; }
    .faq-question { font-size: .9rem; padding: 14px 16px; }
    .center-info-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .search-box input { font-size: .95rem; }
}
