/* Location pages. Mobile-first: these are overwhelmingly phone searches,
   so the base rules are the small-screen rules and the media query adds
   width, never takes it away. */

:root {
  --ink: #14181f;
  --muted: #5b6472;
  --line: #e3e7ed;
  --accent: #1b4d3e;
  --accent-ink: #ffffff;
  --bg: #ffffff;
  --panel: #f7f9fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

header.site {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
header.site .brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
/* The firm name is a licensing requirement, not decoration. It stays
   visible at every breakpoint and is never collapsed into a menu. */
header.site .firm {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Language switcher. Pushed to the end of the header row so it is reachable
   with a thumb on mobile, and never collapsed behind a menu - a switcher
   nobody can find is the same as no switcher. */
header.site .lang-switch {
  margin-left: auto;
  font-size: .82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: .4rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
header.site .lang-switch:hover,
header.site .lang-switch:focus-visible { border-color: var(--accent); }

nav.crumbs {
  padding: .75rem 1.15rem;
  font-size: .85rem;
  color: var(--muted);
}
nav.crumbs a { color: var(--muted); }
nav.crumbs span[aria-current] { color: var(--ink); }

main {
  padding: 0 1.15rem 3rem;
  max-width: 46rem;
  margin: 0 auto;
}

h1 {
  font-size: 1.7rem;
  line-height: 1.25;
  margin: .8rem 0 .5rem;
  letter-spacing: -.01em;
}
h2 {
  font-size: 1.15rem;
  margin: 2.2rem 0 .7rem;
  letter-spacing: -.005em;
}
h3 {
  font-size: .95rem;
  margin: 1.4rem 0 .4rem;
  color: var(--muted);
  font-weight: 600;
}

p.lede {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

section.snapshot table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}
section.snapshot th[scope="row"] {
  text-align: left;
  font-weight: 500;
  padding: .55rem .5rem .55rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
section.snapshot td {
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}
section.snapshot td.note {
  color: var(--muted);
  font-size: .8rem;
  text-align: right;
  padding-left: .5rem;
}

p.source {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .8rem;
  line-height: 1.5;
}

section.read p { margin: 0 0 .9rem; }

section.cta {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem;
  margin-top: 2.2rem;
}
section.cta h2 { margin-top: 0; }

form.lead { display: grid; gap: .75rem; margin-top: 1rem; }
form.lead label {
  display: grid;
  gap: .3rem;
  font-size: .85rem;
  font-weight: 500;
}
form.lead input,
form.lead select,
form.lead textarea {
  font: inherit;
  font-size: 16px; /* 16px prevents iOS zoom-on-focus */
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
form.lead textarea { resize: vertical; }
form.lead button {
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 8px;
  padding: .85rem 1rem;
  min-height: 48px; /* comfortable thumb target */
  cursor: pointer;
}
form.lead button[disabled] { opacity: .6; cursor: progress; }

/* Honeypot. Off-screen rather than display:none so bots that skip hidden
   fields still fill it. */
form.lead p.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

form.lead p.status { margin: 0; font-size: .88rem; min-height: 1.2em; }
form.lead p.status.ok { color: var(--accent); }
form.lead p.status.err { color: #a3262b; }

p.direct { font-size: .9rem; margin: 1rem 0 0; }

section.nearby ul,
ul.area-list {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: .4rem .8rem;
}
section.nearby li a,
ul.area-list li a {
  display: block;
  padding: .35rem 0;
  font-size: .92rem;
}

a { color: var(--accent); }

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.4rem 1.15rem 2.4rem;
  max-width: 46rem;
  margin: 0 auto;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.55;
}
footer.site p { margin: 0 0 .7rem; }
footer.site .legal strong { color: var(--ink); }

@media (min-width: 44rem) {
  main { padding-top: .5rem; }
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.3rem; }
  section.cta { padding: 1.6rem; }
  form.lead { grid-template-columns: 1fr 1fr; }
  form.lead label:nth-of-type(4),
  form.lead label:nth-of-type(5),
  form.lead button,
  form.lead p.status { grid-column: 1 / -1; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f5;
    --muted: #9aa4b2;
    --line: #2a3039;
    --accent: #6ec2a4;
    --accent-ink: #0e1a15;
    --bg: #10141a;
    --panel: #161c24;
  }
  form.lead input,
  form.lead select,
  form.lead textarea { background: #0d1218; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- service-area directory ------------------------------------------------
   The filter is an enhancement over a list that is already complete in the
   HTML, so these styles must never depend on JavaScript having run. */

main.directory { max-width: 52rem; }

.finder {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  padding: .8rem 0 .9rem;
  margin-bottom: .4rem;
  border-bottom: 1px solid var(--line);
}
.finder label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .35rem;
}
.finder input[type="search"] {
  width: 100%;
  font: inherit;
  font-size: 16px; /* keeps iOS from zooming the page on focus */
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  min-height: 48px;
}
.finder input[type="search"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.filter-count {
  margin: .5rem 0 0;
  font-size: .8rem;
  color: var(--muted);
  min-height: 1.1em;
}

.county-group { margin-bottom: 1.6rem; }
.county-group h2 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin: 1.4rem 0 .5rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.county-group h2 .count {
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .05rem .45rem;
}

ul.area-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
li.area-row { border-bottom: 1px solid var(--line); }
li.area-row a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  padding: .8rem .1rem;   /* generous row height for thumbs */
  min-height: 48px;
  text-decoration: none;
  color: var(--ink);
}
li.area-row a:hover .area-name,
li.area-row a:focus-visible .area-name { color: var(--accent); }
.area-name { font-weight: 500; }
.area-meta {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.no-results {
  padding: 1.2rem 0;
  color: var(--muted);
  font-size: .92rem;
}

section.selling {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-top: 2.2rem;
}
section.selling h2 { margin-top: 0; }

@media (min-width: 40rem) {
  ul.area-list { grid-template-columns: 1fr 1fr; column-gap: 1.6rem; }
}
