/* StrongDads Law — hero-route UI
 * Dusk charcoal + champagne gold · bond art · big readable type · mobile-first
 * JACOB LOCK: futuristic dad+kid bond · hope path · not cream · not VoltFind
 */
:root {
  --bg: #0f141c;
  --bg2: #161d28;
  --cream: #1c2432;
  --paper: #1e2736;
  --glass: rgba(15, 20, 28, 0.88);
  --stroke: rgba(240, 224, 178, 0.16);
  --stroke2: rgba(232, 197, 71, 0.45);
  --navy: #f2f5fa;
  --navy2: #f0e0b2;
  --steel: #a8b4c8;
  --gold: #e0b84a;
  --gold2: #f0d060;
  --champagne: #f5e6c0;
  --text: #f4f6fa;
  --muted: #a8b4c8;
  --good: #45c98a;
  --good-bg: rgba(69, 201, 138, 0.14);
  --bad: #f07167;
  --bad-bg: rgba(240, 113, 103, 0.14);
  --mixed: #e8b04a;
  --mixed-bg: rgba(232, 176, 74, 0.14);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(232,197,71,.06);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-body: 1.08rem;
  --fs-h1: clamp(2rem, 5.5vw, 3.1rem);
  --fs-h3: clamp(1.25rem, 3vw, 1.55rem);
  --tap: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); min-height: 100%; line-height: 1.55;
}
body {
  background:
    radial-gradient(ellipse 90% 55% at 8% -12%, rgba(224,184,74,.18), transparent 52%),
    radial-gradient(ellipse 70% 45% at 95% 0%, rgba(80,120,200,.12), transparent 48%),
    linear-gradient(180deg, #161d28 0%, var(--bg) 40%, #0a0e14 100%);
  min-height: 100vh;
}
a { color: var(--gold2); text-decoration: none; }
a:hover { color: var(--champagne); text-decoration: underline; }

.app { max-width: 1120px; margin: 0 auto; padding: 0 16px 72px; }

/* —— Topbar —— */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(15,20,28,.97), rgba(15,20,28,.9));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
  margin: 0 -16px; padding-left: 16px; padding-right: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(145deg, #2a3344, #121820);
  border: 1px solid var(--stroke2);
  display: grid; place-items: center;
  color: var(--gold); font-size: 1.15rem; font-weight: 800;
  box-shadow: 0 0 24px rgba(224,184,74,.25);
}
.brand strong { display: block; font-size: 1.15rem; letter-spacing: .02em; color: var(--text); }
.brand small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; max-width: 260px; line-height: 1.3; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; }
.nav button, .ghost-btn {
  min-height: var(--tap);
  background: var(--paper); border: 1px solid var(--stroke); color: var(--text);
  border-radius: 999px; padding: 10px 16px; font-size: .95rem; cursor: pointer; font-family: inherit;
}
.nav button:hover, .ghost-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(224,184,74,.08); }
.nav button.active { background: var(--gold); color: #121820; border-color: var(--gold); font-weight: 800; }

.disclaimer-strip {
  background: rgba(224,184,74,.1); border: 1px dashed var(--stroke2);
  color: var(--champagne); font-size: .9rem; text-align: center;
  padding: 10px 14px; border-radius: 14px; margin: 14px 0;
}

/* —— Hero + motion —— */
.hero {
  margin: 18px 0 22px; padding: 28px 24px; border-radius: 22px;
  background: linear-gradient(145deg, #1e2736 0%, #161d28 55%, #121820 100%);
  border: 1px solid var(--stroke); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero.hero-bond {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; align-items: stretch; padding: 0;
  background: #0f141c; border: 1px solid var(--stroke2);
  box-shadow: 0 0 48px rgba(224,184,74,.14), var(--shadow);
}
@media (max-width: 860px) {
  .hero.hero-bond { grid-template-columns: 1fr; }
}
.hero-bond .hero-copy { padding: clamp(22px, 4vw, 36px); position: relative; z-index: 2; }
.hero-bond .hero-visual {
  margin: 0; position: relative; background: #0a0e14; overflow: hidden; min-height: 260px;
}
.hero-bond .hero-visual img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  min-height: 280px; max-height: 480px;
  animation: kenburns 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.02) translate(0,0); }
  to { transform: scale(1.12) translate(-2%, -1%); }
}
.hero-bond .hero-visual figcaption {
  position: absolute; left: 14px; bottom: 12px; z-index: 3;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(245,230,192,.8); font-weight: 700; text-shadow: 0 2px 10px #000;
}
/* cinematic scan / constellation motion overlay */
.hero-fx {
  pointer-events: none; position: absolute; inset: 0; z-index: 1; overflow: hidden;
}
.hero-fx .scan {
  position: absolute; left: -20%; right: -20%; height: 28%;
  background: linear-gradient(180deg, transparent, rgba(224,184,74,.07), transparent);
  animation: scanY 7s linear infinite;
}
@keyframes scanY {
  0% { top: -30%; }
  100% { top: 110%; }
}
.hero-fx .orbit {
  position: absolute; width: 220%; height: 220%; left: -60%; top: -60%;
  border: 1px solid rgba(224,184,74,.12);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.hero-fx .orbit:nth-child(2) { width: 160%; height: 160%; left: -30%; top: -30%; animation-duration: 28s; border-color: rgba(160,190,255,.1); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-fx .nodes {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(224,184,74,.55) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 40%, rgba(224,184,74,.4) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 75%, rgba(240,208,96,.45) 0 1.5px, transparent 3px),
    radial-gradient(circle at 85% 70%, rgba(160,190,255,.35) 0 2px, transparent 3px);
  animation: pulseNodes 4s ease-in-out infinite alternate;
}
@keyframes pulseNodes { from { opacity: .45; } to { opacity: 1; } }

.hero-kicker {
  display: inline-block; color: var(--gold2); border: 1px solid rgba(224,184,74,.4);
  background: rgba(224,184,74,.12); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 12px; font-size: var(--fs-h1); line-height: 1.12; font-weight: 850;
  background: linear-gradient(105deg, #fff 10%, var(--champagne) 45%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p, .hero-territory { color: var(--muted); margin: 0 0 14px; font-size: 1.08rem; }
.hero-territory { color: var(--champagne); font-weight: 650; letter-spacing: .02em; }
.hero-hope { color: var(--text); font-size: 1.15rem; margin: 0 0 18px; max-width: 38rem; line-height: 1.5; }

.search-box {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch;
  background: rgba(30,39,54,.9); border: 1px solid var(--stroke); border-radius: 16px;
  padding: 10px; box-shadow: var(--shadow);
}
.search-box:focus-within { box-shadow: 0 0 0 2px rgba(224,184,74,.4), var(--shadow); }
.search-box input {
  flex: 1; min-width: 160px; min-height: var(--tap); background: transparent; border: 0; outline: 0; color: var(--text);
  font-size: 1.15rem; padding: 10px 12px; font-family: inherit;
}
.primary-btn {
  min-height: var(--tap);
  background: linear-gradient(135deg, #2a3648, #1a2230);
  color: #fff; border: 1px solid var(--stroke); border-radius: 14px; padding: 12px 20px; font-weight: 800;
  cursor: pointer; font-family: inherit; font-size: 1rem;
}
.primary-btn:hover { filter: brightness(1.08); border-color: var(--gold); }
.primary-btn.amber, .primary-btn.gold {
  background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #121820; border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(224,184,74,.3);
}
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.suggest span { color: var(--muted); font-size: .9rem; }
.chip {
  border: 1px solid var(--stroke); background: var(--paper);
  color: var(--text); border-radius: 999px; padding: 10px 14px; font-size: .92rem;
  cursor: pointer; font-family: inherit; min-height: 42px;
}
.chip:hover, .chip.active { background: var(--gold); color: #121820; border-color: var(--gold); font-weight: 700; }
.chip.filter-chip { font-weight: 650; }
.chip.filter-chip.on { background: var(--good); border-color: var(--good); color: #062016; }
.chip.district-chip.on { background: var(--gold); border-color: var(--gold); color: #121820; }

.panel {
  background: var(--paper); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.panel h3 { margin: 0 0 8px; color: var(--text); font-size: var(--fs-h3); }
.panel .sub { color: var(--muted); font-size: 1rem; margin: 0 0 14px; }

/* Territory search — big & easy */
.territory-panel {
  margin: 0 0 18px; padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke2);
  background:
    linear-gradient(160deg, rgba(30,39,54,.95), rgba(15,20,28,.92)),
    url("../img/bond-tile.png");
  background-size: cover; background-position: center;
  box-shadow: 0 0 40px rgba(224,184,74,.1), var(--shadow);
}
.territory-panel h3 { margin: 0 0 6px; font-size: 1.35rem; color: var(--champagne); }
.territory-panel .sub { margin-bottom: 12px; }
.territory-search {
  width: 100%; min-height: var(--tap); font-size: 1.12rem;
  border: 1px solid var(--stroke2); border-radius: 14px;
  background: rgba(10,14,20,.75); color: var(--text);
  padding: 12px 16px; font-family: inherit; margin-bottom: 12px;
}
.territory-search:focus { outline: none; box-shadow: 0 0 0 2px rgba(224,184,74,.45); }
.territory-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px;
}
.territory-btn {
  min-height: 56px; padding: 12px 14px; border-radius: 14px; text-align: left;
  border: 1px solid var(--stroke); background: rgba(30,39,54,.85); color: var(--text);
  cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 700;
  transition: .15s ease;
}
.territory-btn small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.territory-btn:hover, .territory-btn.on {
  border-color: var(--gold); background: rgba(224,184,74,.16); color: var(--champagne);
  box-shadow: 0 0 20px rgba(224,184,74,.2);
}
.territory-btn.hidden { display: none; }

.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 10px; }
.lawyer-card {
  background: linear-gradient(160deg, #243044, #1a2230);
  border: 1px solid var(--stroke); border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow); transition: .2s ease; display: flex; flex-direction: column; gap: 10px;
}
.lawyer-card:hover { transform: translateY(-3px); border-color: rgba(224,184,74,.4); }
.lawyer-card.featured {
  background-image: linear-gradient(160deg, rgba(36,48,68,.94), rgba(20,26,36,.92)), url("../img/bond-tile.png");
  background-size: cover; background-position: center;
  border-color: var(--stroke2);
  box-shadow: 0 0 0 1px rgba(224,184,74,.25), var(--shadow);
}
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatar {
  width: 52px; height: 52px; border-radius: 14px; background: #121820; color: var(--gold);
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; flex-shrink: 0;
  border: 1px solid var(--stroke2);
}
.badge {
  display: inline-block; border-radius: 999px; padding: 5px 10px; font-size: .78rem; font-weight: 750;
  letter-spacing: .03em; text-transform: uppercase;
}
.badge.featured { background: rgba(224,184,74,.22); color: var(--gold2); }
.badge.pro { background: rgba(160,190,255,.12); color: #c5d4f0; }
.badge.essential, .badge.unclaimed { background: rgba(168,180,200,.12); color: var(--steel); }
.badge.free-consult { background: var(--good-bg); color: var(--good); text-transform: none; letter-spacing: 0; font-size: .85rem; }
.badge.award-pill {
  background: linear-gradient(135deg, #1a2230, #2a3648); color: var(--champagne);
  text-transform: none; font-weight: 650; border: 1px solid var(--stroke2);
}
.badge.district { background: rgba(224,184,74,.1); color: var(--champagne); text-transform: none; font-size: .78rem; border: 1px solid rgba(224,184,74,.25); }
.badge.district.unknown { opacity: .7; border-style: dashed; }
.badge.district.more { background: transparent; color: var(--muted); }
.district-badges, .district-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.district-tag {
  font-size: .78rem; color: var(--champagne); background: rgba(224,184,74,.12);
  border: 1px solid rgba(224,184,74,.28); padding: 4px 9px; border-radius: 8px;
}
.meta { color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 8px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.card-actions a, .card-actions button { font-size: .95rem; }

.results-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 12px; }
.filter-bar, .district-filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px; background: var(--cream); border-radius: 16px; border: 1px solid var(--stroke); margin-bottom: 14px;
}
.filter-bar .hint { color: var(--muted); font-size: .9rem; flex: 1; min-width: 160px; }
.sort-select {
  border: 1px solid var(--stroke); border-radius: 12px; padding: 12px 12px; background: var(--paper);
  color: var(--text); font-family: inherit; font-size: 1rem; min-height: var(--tap);
}

.signals { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .82rem; padding: 4px 9px; border-radius: 8px; background: rgba(168,180,200,.1); color: var(--steel);
}
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.mixed { background: var(--mixed-bg); color: var(--mixed); }

.honesty-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
@media (max-width: 640px) { .honesty-box { grid-template-columns: 1fr; } }
.honesty-col { border-radius: 12px; padding: 14px; border: 1px solid var(--stroke); }
.honesty-col.good { background: var(--good-bg); border-color: rgba(69,201,138,.3); }
.honesty-col.bad { background: var(--bad-bg); border-color: rgba(240,113,103,.3); }
.honesty-col h4 { margin: 0 0 8px; font-size: 1rem; }
.review {
  border: 1px solid var(--stroke); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: var(--cream);
  font-size: 1.02rem;
}
.review.bad { border-color: rgba(240,113,103,.35); background: var(--bad-bg); }
.review.good { border-color: rgba(69,201,138,.3); }
.review .who { font-size: .85rem; color: var(--muted); margin-top: 6px; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.price-card {
  border: 1px solid var(--stroke); border-radius: 16px; padding: 18px; background: var(--cream);
}
.price-card.featured { border-color: var(--stroke2); background: linear-gradient(160deg, #2a3344, #3a3220); }
.price { font-size: 1.75rem; font-weight: 800; color: var(--champagne); margin: 8px 0; }
.price-card ul { margin: 0; padding-left: 18px; color: var(--steel); font-size: 1rem; }
.claim-form { display: grid; gap: 12px; max-width: 520px; }
.claim-form label { display: grid; gap: 6px; font-size: .95rem; color: var(--muted); }
.claim-form input, .claim-form select, .claim-form textarea {
  border: 1px solid var(--stroke); border-radius: 12px; padding: 12px 14px;
  font-family: inherit; font-size: 1.05rem; background: var(--paper); color: var(--text); min-height: var(--tap);
}

.awards-hero {
  border-radius: 20px; padding: 24px; margin-bottom: 16px;
  background-image: linear-gradient(135deg, rgba(15,20,28,.82), rgba(26,34,48,.7)), url("../img/bond-tile.png") !important;
  background-size: cover !important; background-position: center !important;
  color: #fff; border: 1px solid rgba(224,184,74,.4); box-shadow: var(--shadow);
}
.awards-hero h3 { margin: 0 0 8px; color: var(--champagne); font-size: 1.4rem; }
.awards-hero p { margin: 0; color: rgba(255,255,255,.85); font-size: 1.02rem; }
.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.award-card {
  border: 1px solid var(--stroke); border-radius: 14px; padding: 16px; background: var(--paper);
}
.award-card .seal {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #121820; color: var(--gold); font-weight: 800; margin-bottom: 8px;
  border: 2px solid var(--gold);
}

.events-section { margin-top: 8px; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.event-card {
  border: 1px solid var(--stroke); border-radius: 16px; padding: 16px;
  background: linear-gradient(160deg, #222b3c, #1a2230);
}
.event-card.bond-tile {
  background-image: linear-gradient(160deg, rgba(34,43,60,.94), rgba(15,20,28,.92)), url("../img/bond-tile.png");
  background-size: cover; background-position: center;
}
.event-card.tbd { opacity: .92; border-style: dashed; }
.event-card .when { font-size: .82rem; color: var(--gold); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.event-card h4 { margin: 8px 0; color: var(--text); font-size: 1.1rem; }
.event-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.pill-tbd { background: var(--mixed-bg); color: var(--mixed); font-size: .75rem; padding: 3px 8px; border-radius: 999px; font-weight: 700; }

.admin-wrap { max-width: 1000px; margin: 0 auto; padding: 24px 0; }
.admin-lock { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.meter {
  height: 14px; border-radius: 999px; background: rgba(168,180,200,.12); overflow: hidden; margin: 8px 0 16px;
}
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, #2a3648, var(--gold)); border-radius: 999px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat {
  background: var(--cream); border: 1px solid var(--stroke); border-radius: 12px; padding: 14px;
}
.stat strong { display: block; font-size: 1.5rem; color: var(--champagne); }
.stat span { font-size: .85rem; color: var(--muted); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.admin-table th, table.admin-table td { border-bottom: 1px solid var(--stroke); padding: 10px 6px; text-align: left; }
table.admin-table th { color: var(--muted); font-weight: 650; }

.footer {
  margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--stroke);
  color: var(--muted); font-size: .95rem; text-align: center;
}
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: #1a2230; color: #fff; padding: 14px 20px; border-radius: 14px;
  border: 1px solid var(--stroke2); box-shadow: var(--shadow); z-index: 100; font-size: 1rem;
  max-width: calc(100% - 32px);
}
.profile-hero .avatar { width: 72px; height: 72px; font-size: 1.4rem; }
.cap-note { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }

@media (max-width: 640px) {
  html { font-size: 16px; }
  .nav { width: 100%; }
  .nav button { flex: 1 1 auto; text-align: center; }
  .topbar { flex-wrap: wrap; }
  .hero-bond .hero-visual img { max-height: 280px; min-height: 220px; }
  .territory-grid { grid-template-columns: 1fr 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .primary-btn, .ghost-btn, .chip { width: auto; }
  .search-box { flex-direction: column; }
  .search-box .primary-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bond .hero-visual img, .hero-fx .scan, .hero-fx .orbit, .hero-fx .nodes { animation: none !important; }
}

.unlock-wrap .unlock-fomo { background:rgba(224,184,74,.15); border:1px dashed var(--stroke2); padding:10px 12px; border-radius:12px; margin-bottom:12px; color:var(--champagne); font-weight:700; }
.unlock-lead-box { border:1px solid var(--stroke2); border-radius:16px; padding:14px; background:rgba(10,14,20,.7); margin:14px 0; }
.blur-row { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--stroke); font-size:1.02rem; }
.blur-row em { color:var(--muted); font-style:normal; min-width:70px; }
.unlock-blur { filter: blur(5px); user-select:none; color:var(--text); }
.unlock-mask { font-family:var(--mono); color:var(--gold2); letter-spacing:.08em; }

.state-tab-strip {
  display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto;
  padding: 8px 2px 14px; margin-bottom: 8px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.state-tab-strip .state-tab {
  flex: 0 0 auto; min-height: 44px; font-weight: 800;
  cursor: pointer; pointer-events: auto;
}
.state-tab-strip .state-tab.on {
  background: var(--gold); color: #121820; border-color: var(--gold);
}
