/* ===========================================================================
   California Defense Directory — stylesheet
   =========================================================================== */
:root {
  --navy: #0f2742;
  --navy-2: #16355c;
  --navy-3: #1d4373;
  --gold: #c8a24a;
  --gold-2: #b88f33;
  --ink: #1f2a37;
  --muted: #5b6b7c;
  --line: #e4e8ee;
  --bg: #f6f8fb;
  --card: #ffffff;
  --star: #f5a623;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15,39,66,.08);
  --shadow: 0 8px 24px rgba(15,39,66,.10);
  --shadow-lg: 0 18px 50px rgba(15,39,66,.16);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; line-height: 1.18; color: var(--navy); margin: 0 0 .5em; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 34px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 1.5px solid transparent; transition: .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #1a1505; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-2); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-listing { width: 100%; background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-listing:hover { background: var(--navy-3); color: #fff; }
.btn-call { background: var(--gold); color: #1a1505; border-color: var(--gold); }
.btn-call:hover { background: var(--gold-2); color: #fff; }
.btn-disabled { background: #eef1f5; color: #9aa6b2; border-color: #eef1f5; cursor: default; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,39,66,.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.brand:hover { color: #fff; }
.brand-mark { font-size: 1.5rem; }
.brand-text { font-family: "Playfair Display", serif; font-size: 1.18rem; line-height: 1; display: flex; flex-direction: column; }
.brand-sub { font-family: "Inter", sans-serif; font-weight: 600; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a {
  color: #d8e1ec; font-weight: 500; font-size: .95rem; padding: 9px 14px; border-radius: 8px; transition: .15s;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav a.active { color: var(--navy); background: var(--gold); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* ----- Hero ----- */
.hero {
  background:
    linear-gradient(rgba(10,26,46,.86), rgba(10,26,46,.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='%230f2742'/%3E%3Cpath d='M30 8l16 9v18l-16 9-16-9V17z' fill='none' stroke='%2316355c' stroke-width='1'/%3E%3C/svg%3E");
  color: #fff; padding: 84px 0 72px; text-align: center;
}
.hero-eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; margin: 0 0 14px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.3rem); margin-bottom: 18px; }
.hero-lead { color: #c8d4e2; font-size: 1.12rem; max-width: 680px; margin: 0 auto 30px; }
.hero-search { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; }
.hero-search input {
  flex: 1; padding: 15px 18px; border-radius: 11px; border: 0; font-size: 1rem;
  box-shadow: var(--shadow);
}
.hero-search input:focus { outline: 3px solid var(--gold); }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Playfair Display", serif; font-size: 2.2rem; color: var(--gold); }
.hero-stats span { color: #b9c6d6; font-size: .9rem; letter-spacing: .04em; }

/* ----- Sections ----- */
.section { padding: 64px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-head h2 { font-size: 2rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ----- City tiles (home) ----- */
.city-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.city-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: .18s; text-align: left;
  display: flex; flex-direction: column; gap: 4px;
}
.city-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.city-tile-name { font-family: "Playfair Display", serif; font-size: 1.18rem; font-weight: 700; color: var(--navy); }
.city-tile-count { color: var(--gold-2); font-weight: 600; font-size: .9rem; }

/* ----- Steps ----- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; text-align: center; }
.step-num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font-family: "Playfair Display", serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); margin: 0; }

/* ----- CTA band ----- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-3));
  border-radius: 20px; padding: 44px 48px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #c8d4e2; margin: 0; }

/* ----- Page hero ----- */
.page-hero { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; padding: 52px 0 40px; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.page-hero p { color: #c2d0e0; max-width: 760px; margin: 0; }
.crumbs { font-size: .85rem; color: #9fb2c7; margin-bottom: 14px; }
.crumbs a { color: #cdd9e7; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 6px; opacity: .6; }

/* ----- Filter ----- */
.filter-wrap { margin-top: 22px; max-width: 460px; }
#city-filter, .filter-wrap input {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1); color: #fff; font-size: 1rem;
}
#city-filter::placeholder { color: #b6c5d6; }
#city-filter:focus { outline: 2px solid var(--gold); background: rgba(255,255,255,.16); }

/* ----- City list (cities page) ----- */
.city-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.city-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 14px 18px;
  box-shadow: var(--shadow-sm); transition: .15s;
}
.city-row:hover { border-color: var(--gold); transform: translateX(3px); }
.city-row-name { font-weight: 600; color: var(--navy); }
.city-row-count {
  background: var(--bg); color: var(--gold-2); font-weight: 700; font-size: .85rem;
  border-radius: 20px; padding: 3px 12px; min-width: 38px; text-align: center;
}
.no-results { text-align: center; color: var(--muted); padding: 40px 0; font-size: 1.05rem; }

/* ----- Listing card grid ----- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: .18s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-photo { position: relative; aspect-ratio: 16 / 10; background: #e9edf2; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .photo-fallback {
  position: absolute; inset: 0; display: none; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: var(--gold); font-family: "Playfair Display", serif; font-size: 2.6rem; font-weight: 700; letter-spacing: .05em;
}
.card-photo.noimg .photo-fallback { display: grid; }
.card-body { padding: 18px 20px 8px; flex: 1; }
.card-cat {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--gold-2); background: #faf5e8; border-radius: 6px; padding: 3px 9px; margin-bottom: 10px;
}
.card-name { font-size: 1.18rem; margin: 0 0 8px; }
.card-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.card-rating.no-reviews { color: var(--muted); font-size: .88rem; }
.rating-num { font-weight: 700; color: var(--ink); }
.rating-count { color: var(--muted); font-size: .85rem; }
.card-addr { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.card-phone { display: inline-block; color: var(--navy-3); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.card-foot { padding: 0 20px 20px; }

/* ----- Stars ----- */
.stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 1px; }
.stars-bg { color: #d6dce3; }
.stars-fg { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--star); }

/* ----- Pagination ----- */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.pagination button {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-weight: 600; cursor: pointer; transition: .15s; font-size: .95rem;
}
.pagination button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-2); }
.pagination button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination .ellipsis { display: grid; place-items: center; min-width: 28px; color: var(--muted); }

/* ----- FAQ ----- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 24px; font-size: 1.08rem; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: "Playfair Display", serif;
}
.faq-icon { font-size: 1.5rem; color: var(--gold); transition: transform .2s; flex-shrink: 0; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ----- Resources ----- */
.resource-group { margin-bottom: 48px; }
.resource-group > h2 { font-size: 1.6rem; padding-bottom: 12px; border-bottom: 2px solid var(--gold); margin-bottom: 24px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow-sm); transition: .18s; }
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.resource-card h3 { font-size: 1.12rem; display: flex; align-items: baseline; gap: 6px; }
.resource-card .ext { color: var(--gold); font-size: .85rem; }
.resource-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ----- Blog ----- */
.post-list { display: flex; flex-direction: column; gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .18s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card-body { padding: 28px 30px; }
.post-card h2 { font-size: 1.5rem; margin: 6px 0 10px; }
.post-card p { color: var(--muted); margin: 0 0 14px; }
.post-date { color: var(--gold-2); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.read-more { font-weight: 600; }
.post .page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-top: 6px; }
.post-body p { font-size: 1.08rem; color: #38465a; margin: 0 0 1.3em; }
.post-body strong { color: var(--navy); }
.post-cta { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 28px 30px; margin: 36px 0; }
.post-cta h3 { margin-top: 0; }
.post-cta p { color: var(--muted); }
.post-related { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 10px; }
.post-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.post-related a { font-weight: 600; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 16px; font-size: .92rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 1rem; font-family: inherit; color: var(--ink); background: #fcfdfe;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.contact-aside h3 { font-size: 1.12rem; margin-top: 0; }
.contact-aside h3:not(:first-child) { margin-top: 24px; }
.contact-aside p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ----- Nav "Get Listed" CTA ----- */
.nav-cta {
  display: inline-flex !important; align-items: center; gap: 8px;
  background: var(--gold); color: #1a1505 !important; font-weight: 700 !important;
  padding: 9px 18px !important; border-radius: 8px; margin-left: 6px;
  transition: .15s;
}
.nav-cta:hover { background: #fff; color: var(--navy) !important; }
.nav-cta-dot { width: 7px; height: 7px; border-radius: 50%; background: #1a1505; box-shadow: 0 0 0 0 rgba(26,21,5,.5); animation: ncta 2s infinite; }
.nav-cta:hover .nav-cta-dot { background: var(--navy); }
@keyframes ncta { 0% { box-shadow: 0 0 0 0 rgba(26,21,5,.45); } 70% { box-shadow: 0 0 0 7px rgba(26,21,5,0); } 100% { box-shadow: 0 0 0 0 rgba(26,21,5,0); } }

/* ----- Get Listed page ----- */
.gl-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.gl-benefit { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm); }
.gl-benefit-ico { flex-shrink: 0; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--gold); }
.gl-benefit-ico svg { width: 24px; height: 24px; }
.gl-benefit h3 { font-size: 1.12rem; margin: 2px 0 4px; }
.gl-benefit p { color: var(--muted); font-size: .9rem; margin: 0; }

.gl-form { max-width: 880px; margin: 0 auto; }
.gl-form fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px 30px; margin: 0 0 22px; background: #fff; box-shadow: var(--shadow-sm); }
.gl-form legend {
  display: flex; align-items: center; gap: 10px; font-family: "Playfair Display", serif;
  font-size: 1.3rem; font-weight: 700; color: var(--navy); padding: 0 12px 0 8px;
}
.legend-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #1a1505; font-family: "Inter", sans-serif; font-size: .95rem; font-weight: 700; }
.fieldset-sub { color: var(--muted); font-size: .9rem; margin: -4px 0 16px; }
.gl-form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 16px; font-size: .92rem; }
.gl-form input, .gl-form select, .gl-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 1rem; font-family: inherit; color: var(--ink); background: #fcfdfe;
}
.gl-form input:focus, .gl-form select:focus, .gl-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.gl-form textarea { resize: vertical; }
.gl-form label.req > :is(input)::placeholder { color: #aeb8c4; }
label.req::after { content: " *"; color: #c0392b; font-weight: 700; }
.field-hint { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; margin-top: 5px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check {
  display: flex; align-items: center; gap: 11px; margin: 0 !important; font-weight: 500 !important;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  cursor: pointer; transition: .12s; font-size: .9rem; line-height: 1.3;
}
.check:hover { border-color: var(--gold); background: #fff; }
.check > span { flex: 1; }
.check input {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  flex-shrink: 0; width: 20px; height: 20px; margin: 0 !important; cursor: pointer;
  border: 2px solid #cdd5df; border-radius: 6px; background: #fff; transition: .15s;
}
.check input:checked {
  border-color: var(--gold);
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1505' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.check:has(input:checked) { background: #faf5e8; border-color: var(--gold); color: var(--navy); font-weight: 600 !important; }

.hours-list { display: flex; flex-direction: column; gap: 10px; }
.hours-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 14px; align-items: center; }
.hours-day { font-weight: 600; color: var(--navy); }
.hours-row .hours-time { margin-top: 0; }
.hours-closed { display: flex !important; align-items: center; gap: 7px; margin: 0 !important; font-weight: 500 !important; color: var(--muted); white-space: nowrap; }
.hours-closed input { width: auto !important; margin: 0 !important; accent-color: var(--gold); }

.gl-actions { text-align: center; padding: 8px 0 10px; }
.btn-lg { font-size: 1.08rem; padding: 16px 38px; border-radius: 12px; }
.gl-actions-note { color: var(--muted); font-size: .85rem; margin: 14px 0 0; }

/* photo upload */
.photo-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; border: 2px dashed #cdd5df; border-radius: 14px; padding: 30px 20px;
  cursor: pointer; background: #fbfcfe; transition: .15s; margin-bottom: 16px !important; font-weight: 500 !important;
}
.photo-drop:hover, .photo-drop.drag { border-color: var(--gold); background: #faf5e8; }
.photo-drop-ico { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: var(--navy); color: var(--gold); }
.photo-drop-ico svg { width: 27px; height: 27px; }
.photo-drop-text { color: var(--ink); font-size: 1rem; font-weight: 500; }
.photo-drop-text strong { color: var(--navy); }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-grid:empty { display: none; }
.photo-thumb { position: relative; aspect-ratio: 1 / 1; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); background: #e9edf2; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-del {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(15,39,66,.82); color: #fff; font-size: 1.05rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: .15s;
}
.photo-del:hover { background: #c0392b; transform: scale(1.08); }

/* preview overlay */
.preview-overlay { position: fixed; inset: 0; z-index: 200; background: #0a1626; display: flex; flex-direction: column; }
.preview-overlay[hidden] { display: none; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 20px; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1); }
.preview-bar-title { color: #fff; font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.05rem; }
.preview-bar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: #e9eef4; color: var(--navy); }
.btn-ghost-light { background: transparent; color: #d8e1ec; border-color: rgba(255,255,255,.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
#preview-frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* ----- Crime stats dashboard ----- */
.crime-stats { background: linear-gradient(180deg, #0e2440 0%, #11294a 100%); color: #fff; padding: 60px 0; }
.crime-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.crime-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(200,162,74,.18); color: var(--gold);
  font-weight: 700; font-size: .78rem; letter-spacing: .08em; padding: 6px 14px; border-radius: 30px; margin-bottom: 14px;
}
.eyebrow-ico { display: inline-flex; }
.eyebrow-ico svg { width: 15px; height: 15px; }
.crime-head h2 { color: #fff; font-size: 2rem; margin-bottom: 10px; }
.crime-head p { color: #b9c8da; margin: 0; }
.crime-note {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 12px 16px; font-size: .9rem; color: #d4deea; text-align: left;
}
.note-ico { flex-shrink: 0; margin-top: 1px; display: inline-flex; }
.note-ico svg { width: 17px; height: 17px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.stat-card {
  border-radius: 16px; padding: 24px 22px; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.20); border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 4px;
}
.stat-card .stat-ico {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: rgba(255,255,255,.14); margin-bottom: 12px;
}
.stat-card .stat-ico svg { width: 23px; height: 23px; }
.stat-card strong { font-family: "Playfair Display", serif; font-size: 2.3rem; line-height: 1; }
.stat-card .stat-label { font-size: .92rem; font-weight: 600; opacity: .95; }
.stat-trend { font-size: .8rem; font-weight: 600; margin-top: 6px; display: inline-block; }
.stat-trend.bad { color: #f0c9c4; }
.stat-trend.good { color: #c4ddc9; }
.stat-trend.flat, .stat-trend.muted { color: rgba(255,255,255,.74); }
/* Muted, natural earth-tone palette */
.sc-violent { background: linear-gradient(140deg, #8a544c, #6c3f39); }
.sc-property { background: linear-gradient(140deg, #4c647d, #394e63); }
.sc-clear { background: linear-gradient(140deg, #587a60, #3f5c48); }
.sc-pop { background: linear-gradient(140deg, #726856, #564d40); }

.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chart-box {
  background: #fff; border-radius: 16px; padding: 22px 24px 24px; color: var(--ink);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.chart-box h3 { font-size: 1.2rem; margin-bottom: 2px; }
.chart-sub { color: var(--muted); font-size: .85rem; margin: 0 0 14px; }
.chart-canvas { position: relative; height: 280px; }
.chart-wide { grid-column: 1 / -1; }
.chart-wide .chart-canvas { height: 220px; }
.crime-source { color: #8ea2b8; font-size: .78rem; text-align: center; margin: 26px auto 0; max-width: 760px; line-height: 1.6; }

.listings-head { text-align: left; margin: 0 0 26px; max-width: none; }
.listings-head h2 { font-size: 1.7rem; }

/* ----- Footer ----- */
.site-footer { background: var(--navy); color: #c3d0df; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.8fr; gap: 40px; padding: 56px 22px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: #98aabf; font-size: .95rem; max-width: 340px; }
.footer-col h4 { color: #fff; font-family: "Inter", sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer-col a { display: block; color: #b6c5d6; padding: 4px 0; font-size: .94rem; }
.footer-col a:hover { color: var(--gold); }
.footer-disclaimer p { color: #8b9eb4; font-size: .82rem; line-height: 1.7; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { padding-top: 18px; padding-bottom: 18px; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #7e92a8; text-align: center; }

/* ----- Responsive ----- */
/* Large desktop — use more of the available width */
@media (min-width: 1440px) {
  :root { --maxw: 1280px; }
  .card-grid { gap: 28px; }
}
@media (min-width: 1800px) {
  :root { --maxw: 1360px; }
  .section { padding: 76px 0; }
  .chart-canvas { height: 320px; }
}

/* Small desktop / landscape tablet */
@media (max-width: 1000px) {
  .city-tiles { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .city-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Portrait tablet */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--navy); padding: 8px 16px 16px; display: none; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 12px; border-radius: 8px; }
  .nav-cta { margin: 8px 0 0 !important; justify-content: center; padding: 13px !important; }
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 30px; }
  .section { padding: 52px 0; }
  .crime-stats { padding: 50px 0; }
  .gl-benefits { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .city-tiles { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .city-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 22px; }
  .hero { padding: 60px 0 52px; }
  .hero-search { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 24px; flex-direction: column; align-items: flex-start; }
  .stat-cards { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .page-hero { padding: 40px 0 30px; }
  .crime-stats { padding: 44px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head h2, .crime-head h2 { font-size: 1.55rem; }
  .chart-box { padding: 18px 16px 20px; }
  .chart-canvas { height: 300px; }            /* room for bottom legend */
  .chart-wide .chart-canvas { height: 240px; }
  .stat-card strong { font-size: 2rem; }
  .gl-form fieldset { padding: 22px 18px 24px; }
  .form-grid-3 { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .hours-row { grid-template-columns: 1fr; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-bar-actions { width: 100%; }
  .preview-bar-actions .btn { flex: 1; padding: 11px 10px; }
}

/* Small mobile */
@media (max-width: 400px) {
  .city-tiles { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 1.8rem; }
  .chart-canvas { height: 280px; }
}
