/* ═══════════════════════════════════════════════════
   dogbreederlicensing.org — main.css
   ═══════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────── */
:root {
    --primary: #1a5276;
    --primary-dark: #0e3650;
    --accent: #2e86c1;
    --accent-light: #d6eaf8;
    --success: #27ae60;
    --warning: #e67e22;
    --danger: #c0392b;
    --text: #2c3e50;
    --text-light: #5d6d7e;
    --bg: #fafafa;
    --white: #ffffff;
    --border: #dce1e5;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 8px;
    --max-w: 1200px;
    --max-w-narrow: 900px;
}

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

/* ── Base ────────────────────────────────────────── */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

/* ── Skip Link (a11y) ────────────────────────────── */
.skip-link {
    position: absolute; left: -9999px; top: auto;
    padding: 8px 16px; background: var(--primary); color: #fff;
    font-size: 14px; z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ── Header ──────────────────────────────────────── */
.site-header { background: var(--primary); }
.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
.logo span { color: var(--accent-light); }

.main-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    margin-left: 26px;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active { color: #fff; }

/* Hamburger */
.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    padding: 6px; flex-direction: column; gap: 5px;
}
.nav-toggle-bar {
    display: block; width: 24px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 24px 68px;
    text-align: center;
}
.hero h1 {
    font-size: 36px; font-weight: 800;
    max-width: 800px; margin: 0 auto 14px;
    line-height: 1.2;
}
.hero p {
    font-size: 18px; max-width: 640px;
    margin: 0 auto 28px; opacity: 0.9;
}

/* State finder select */
.state-finder { max-width: 480px; margin: 0 auto; position: relative; }
.state-finder select {
    width: 100%; padding: 15px 20px; font-size: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.12);
    color: #fff; appearance: none; cursor: pointer;
}
.state-finder select option { color: var(--text); background: var(--white); }
.state-finder::after {
    content: '▾'; position: absolute; right: 18px; top: 50%;
    transform: translateY(-50%); color: #fff; pointer-events: none; font-size: 18px;
}

/* ── Containers ──────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }

/* ── Quick Facts ─────────────────────────────────── */
.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px; margin: -36px auto 44px;
    position: relative; z-index: 2;
}
.fact-card {
    background: var(--white); border-radius: 10px;
    padding: 24px 20px; box-shadow: var(--shadow);
    border-top: 4px solid var(--accent); text-align: center;
}
.fact-card .number { font-size: 34px; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.fact-card .label { font-size: 13px; color: var(--text-light); font-weight: 500; }

/* ── Sections ────────────────────────────────────── */
section, .content-section { margin-bottom: 48px; }
section h2, .content-section h2 {
    font-size: 26px; font-weight: 700; color: var(--primary); margin-bottom: 14px;
}
section h3, .content-section h3 {
    font-size: 19px; font-weight: 600; margin: 20px 0 8px;
}
section p, .content-section p {
    font-size: 16px; line-height: 1.7; margin-bottom: 12px;
}

/* ── Page Header (state pages, guides) ───────────── */
.page-header {
    margin: 24px 0 28px; padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-light);
}
.page-header h1 { font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1.2; margin-bottom: 8px; }
.page-header .meta { font-size: 14px; color: var(--text-light); }
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 4px;
    font-size: 12px; font-weight: 600; text-transform: uppercase; margin-right: 10px;
}
.badge-required { background: #d5f5e3; color: #1e8449; }
.badge-not-required { background: #f2f3f4; color: var(--text-light); }

/* ── Breadcrumb ──────────────────────────────────── */
.breadcrumb {
    max-width: var(--max-w-narrow); margin: 18px auto 0; padding: 0 24px;
    font-size: 13px; color: var(--text-light);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ── Summary Box ─────────────────────────────────── */
.summary-box {
    background: var(--accent-light); border-left: 4px solid var(--accent);
    padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 28px; font-size: 16px; line-height: 1.7;
}

/* ── TOC ─────────────────────────────────────────── */
.toc {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 22px; margin-bottom: 32px;
}
.toc h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 8px; }
.toc ol { padding-left: 18px; }
.toc li { margin-bottom: 5px; }
.toc a { color: var(--accent); font-size: 15px; font-weight: 500; }

/* ── License Card ────────────────────────────────── */
.license-card {
    background: var(--white); border: 1px solid var(--border); border-radius: 10px;
    padding: 22px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.license-card h4 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.license-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.license-meta dt { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-light); letter-spacing: 0.3px; }
.license-meta dd { font-size: 15px; font-weight: 500; margin: 0 0 6px; }
.license-card p { font-size: 15px; color: var(--text-light); line-height: 1.6; margin: 0; }

/* ── State Grid ──────────────────────────────────── */
.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 10px; margin-top: 16px;
}
.state-link {
    display: flex; align-items: center;
    padding: 11px 14px; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius);
    text-decoration: none; color: var(--text);
    font-size: 14px; font-weight: 500; transition: all 0.2s;
}
.state-link:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(46,134,193,0.15);
    transform: translateY(-1px);
}
.state-link .indicator {
    width: 9px; height: 9px; border-radius: 50%;
    margin-right: 9px; flex-shrink: 0;
}
.state-link .indicator.licensed { background: var(--success); }
.state-link .indicator.no-license { background: var(--text-light); }

/* ── Alert Boxes ─────────────────────────────────── */
.alert-box {
    background: #fdf2e9; border-left: 4px solid var(--warning);
    padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0;
    margin: 14px 0; font-size: 15px; line-height: 1.6;
}
.alert-box strong { color: var(--warning); }
.alert-danger { background: #fdedec; border-left-color: var(--danger); }
.alert-danger strong { color: var(--danger); }

/* ── Info Lists ──────────────────────────────────── */
.info-list { padding-left: 18px; margin: 10px 0; }
.info-list li { font-size: 15px; line-height: 1.7; margin-bottom: 6px; }

/* ── Resource Links ──────────────────────────────── */
.resource-link {
    display: block; padding: 12px 16px; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius);
    text-decoration: none; color: var(--text); margin-bottom: 8px;
    font-weight: 500; font-size: 15px; transition: all 0.2s;
}
.resource-link:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.resource-link::after { content: ' →'; color: var(--accent); }

/* ── Neighbor Links ──────────────────────────────── */
.neighbor-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.neighbor-link {
    padding: 9px 18px; background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); text-decoration: none; color: var(--text);
    font-weight: 500; font-size: 14px; transition: all 0.2s;
}
.neighbor-link:hover { border-color: var(--accent); background: var(--accent-light); }

/* ── FAQ Accordion ───────────────────────────────── */
.faq-item {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
}
.faq-question {
    padding: 16px 20px; font-weight: 600; font-size: 15px; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    user-select: none;
}
.faq-question::after { content: '+'; font-size: 22px; color: var(--accent); font-weight: 300; }
.faq-question.active::after { content: '−'; }
.faq-answer {
    padding: 0 20px 16px; display: none;
    color: var(--text-light); line-height: 1.7; font-size: 15px;
}
.faq-answer.active { display: block; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
    display: inline-block; padding: 12px 28px;
    background: var(--primary); color: #fff;
    text-decoration: none; border-radius: var(--radius);
    font-weight: 600; font-size: 15px; transition: background 0.2s;
    border: none; cursor: pointer;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-outline {
    background: transparent; border: 2px solid var(--primary); color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ── CTA Section ─────────────────────────────────── */
.cta-section {
    background: var(--accent-light); border-radius: 12px;
    padding: 44px 36px; text-align: center; margin-bottom: 48px;
}
.cta-section h2 { color: var(--primary); margin-bottom: 10px; }
.cta-section p { max-width: 540px; margin: 0 auto 20px; }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 44px 24px 28px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
}
.footer-logo {
    font-size: 18px; font-weight: 700; color: #fff;
    text-decoration: none; display: block; margin-bottom: 10px;
}
.footer-logo span { color: var(--accent-light); }
.footer-about p { font-size: 14px; line-height: 1.6; }
.footer-col h4 {
    color: #fff; font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.footer-col a {
    display: block; color: rgba(255,255,255,0.65);
    text-decoration: none; font-size: 14px; margin-bottom: 7px; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    margin-top: 28px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px; text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.45); margin-bottom: 3px; }

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Nav */
    .nav-toggle { display: flex; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--primary-dark); padding: 12px 24px 16px;
        flex-direction: column;
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { margin: 6px 0; margin-left: 0; font-size: 16px; }
    .site-header { position: relative; }

    /* Hero */
    .hero h1 { font-size: 26px; }
    .hero { padding: 40px 20px 48px; }

    /* Grids */
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .state-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
    .license-meta { grid-template-columns: 1fr; }
    .quick-facts { grid-template-columns: 1fr; }

    /* Page header */
    .page-header h1 { font-size: 24px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 22px; }
    .neighbor-links { flex-direction: column; }
}
