:root {
    --navy: #0F1A33;
    --navy-2: #121A2E;
    --charcoal: #1A1F2E;
    --gold: #C9A84C;
    --gold-light: #E8C96A;
    --ink: #1C2333;
    --text: #3A4256;
    --muted: #6B7385;
    --line: #E3E6EC;
    --paper: #F7F6F2;
    --white: #FFFFFF;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(11, 17, 32, 0.08);
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
}
img { max-width: 100%; height: auto; }
a { color: #8A6D1F; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.4em; border-radius: 999px; font-weight: 600; text-decoration: none;
    border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
    cursor: pointer; font-size: 1rem; font-family: var(--sans);
}
.btn-sm { padding: .45em 1.1em; font-size: .92rem; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.dark .btn-outline { color: var(--white); }
.dark .btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }

/* Top bar + header */
.topbar { background: var(--navy); color: #C8CEDB; font-size: .88rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar strong { color: var(--gold-light); font-weight: 600; }
.topbar-phone { color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { display: block; height: 76px; width: auto; }
@media (max-width: 520px) { .brand-logo { height: 48px; } }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem; }
.main-nav a:not(.btn):hover, .main-nav a.active { color: #8A6D1F; }

.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 24px; height: 2px; background: var(--navy); }
.mobile-nav nav {
    position: absolute; right: 0; top: 100%; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; width: 230px; display: flex; flex-direction: column;
}
.mobile-nav nav a { padding: 10px 12px; text-decoration: none; color: var(--ink); border-radius: 8px; }
.mobile-nav nav a:hover { background: var(--paper); }

@media (max-width: 920px) {
    .main-nav { display: none; }
    .mobile-nav { display: block; }
}

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #24366A 0%, var(--navy) 60%); color: #D5DAE5; padding: 72px 0 80px; }
.hero h1 { color: var(--white); max-width: 16em; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero .lead { font-size: 1.15rem; max-width: 40em; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; display: block; }
.hero-phone { display: inline-block; margin-top: 18px; font-size: 1.6rem; font-weight: 700; color: var(--white); text-decoration: none; font-family: var(--serif); }
.page-hero { padding: 56px 0 56px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--navy); color: #C8CEDB; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 46em; margin-bottom: 36px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card .card-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.card-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.tag-live { background: #E7F4EA; color: #1F6B35; }
.tag-soon { background: #FBF3DC; color: #7A5D12; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--gold); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: .55em; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 58px; }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
    background: var(--gold); color: var(--navy); font-weight: 700; display: grid; place-items: center;
}
.steps strong { display: block; color: var(--ink); }

/* Facility (jail / court) blocks */
.facility { border-left: 4px solid var(--gold); }
.facility dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.facility dt { font-weight: 600; color: var(--ink); }
.facility dd { margin: 0; }
.map-embed { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); background: var(--paper); }
.city-list { columns: 2; padding-left: 1.1em; }

/* License pending */
.pending-panel { background: #FFFBEF; border: 1px solid #EED9A0; border-radius: var(--radius); padding: 32px; margin: 0 0 8px; }
.pending-badge { display: inline-block; background: var(--navy); color: var(--gold-light); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: #8A6D1F; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.form input, .form select, .form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #CDD2DC; border-radius: 10px; font: inherit; background: var(--white); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(201, 168, 76, .35); border-color: var(--gold); }
.form .hp { position: absolute; left: -9999px; }
.field-error { color: #B42318; font-size: .85rem; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; }
.alert-error { background: #FEF3F2; color: #912018; border: 1px solid #FECDCA; }
.alert-success { background: #ECFDF3; color: #05603A; border: 1px solid #ABEFC6; }

.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; }

/* Footer */
.site-footer { background: var(--navy); color: #AEB6C7; padding: 56px 0 24px; font-size: .95rem; }
.site-footer a { color: #D5DAE5; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer h3 { color: var(--white); font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .muted { color: #8C95A8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 0 12px -10px; }
.footer-phone { font-size: 1.2rem; font-weight: 700; color: var(--gold-light) !important; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 20px; font-size: .82rem; color: #8C95A8; }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 720px) {
    .call-bar {
        display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; text-align: center;
        background: var(--gold); color: var(--navy); font-weight: 700; padding: 14px 16px; text-decoration: none;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
    }
    body:has(.call-bar) { padding-bottom: 54px; }
    .topbar-phone { display: none; }
}

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr.unread td { background: #FFFBEF; }
.table-wrap { overflow-x: auto; }
