/*
  File: public/css/city-page.css  (repo root: /Users/michael/Visual Studio Projects/Doorshack)
  What this is: the styles for the service areas page, public/service-areas/index.html. Promoted on 2026-11-20 at Michael's instruction from
  prototypes/development/city-pages/2026-11-17-template-and-elk-grove/css/city-page.css, which also styles the city and area pages (those rules are not used
  by this page yet). Same method as home.css: mobile first, breakpoints at 640px and 1000px, rem units, the live site's colours and system fonts.
*/

:root {
  --navy: #13263c;
  --deep: #0b1b30;
  --yellow: #ffc72c;
  --ink: #15171c;
  --body: #2b2f38;
  --muted: #555b66;
  --cream: #faf8f4;
  --rule: #e7e4dd;
  --field: #bdb7ab;
  --link: #1c3f7a;
  --badge-bg: #fff4cc;
  --badge-ink: #5c4400;
  --on-navy: #d5dee8;
  --pad: clamp(1.25rem, 4vw, 2rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  background: #fff; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: 75rem; margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 30; padding: 0.75rem 1rem; background: var(--navy); color: #fff; font-weight: 700; }
.skip:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem;
  border: 1px solid transparent; border-radius: 0.5rem; background: var(--yellow); color: var(--navy);
  font: inherit; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--navy); filter: brightness(0.96); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--field); font-weight: 600; }
.btn-ghost:hover { color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Header ---------- */
.hdr { background: #fff; border-bottom: 1px solid var(--rule); }
.hdr .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-top: 0.7rem; padding-bottom: 0.6rem; }
.logo { display: block; line-height: 0; margin-right: auto; }
.logo img { width: auto; height: 2.5rem; }
.nav { order: 3; flex: 1 0 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding-top: 0.5rem; border-top: 1px solid var(--rule); }
.nav a { color: var(--ink); font-size: 0.95rem; font-weight: 700; text-decoration: none; line-height: 1.7; }
.hdr-actions { display: flex; align-items: center; gap: 0.9rem; }
.hdr-actions .phone { color: var(--ink); font-weight: 600; text-decoration: none; }
.hdr-actions .btn { min-height: 2.6rem; padding: 0 1.1rem; font-size: 0.95rem; }

/* ---------- Breadcrumb ---------- */
.crumbs { padding-top: 1rem; font-size: 0.875rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 1.5rem; padding-bottom: 3rem; align-items: start; }
.eyebrow { margin-bottom: 0.7rem; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--link); }
.hero h1 { font-size: clamp(2rem, 8.4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 1.1rem; text-wrap: balance; }
.answer { max-width: 40rem; font-size: 1.12rem; color: var(--body); }
.answer + .answer { margin-top: 0.8rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.badges li { padding: 0.45rem 0.85rem; border-radius: 999px; background: var(--badge-bg); color: var(--badge-ink); font-size: 0.875rem; font-weight: 600; }

/* ---------- Quote box ---------- */
.quote { border: 1px solid var(--rule); border-radius: 1rem; padding: 1.5rem; background: var(--cream); }
.quote h2 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.quote .big { margin: 0.2rem 0 0.15rem; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); line-height: 1.1; }
.quote .sub { margin-bottom: 1.1rem; font-size: 0.9rem; color: var(--muted); }
.quote .empty { margin: 0.4rem 0 1.1rem; font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.quote form { display: flex; flex-direction: column; gap: 0.9rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; font-weight: 600; }
.field input { font: inherit; font-weight: 400; padding: 0.7rem 0.85rem; border: 1px solid var(--field); border-radius: 0.5rem; background: #fff; color: var(--ink); }
.field .req { font-weight: 400; color: var(--muted); }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--body); }
.consent input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; }
.quote .note, .note { font-size: 0.85rem; color: var(--muted); }
.quote .note { margin-top: 0.9rem; }
.notice { padding: 0.6rem 0.8rem; border: 1px dashed var(--field); border-radius: 0.5rem; background: #fff; font-size: 0.85rem; color: var(--muted); }

/* ---------- Sections ---------- */
.sec { padding-top: 3rem; padding-bottom: 3rem; }
.sec h2 { font-size: clamp(1.6rem, 5.6vw, 2.25rem); margin-bottom: 0.5rem; }
.sec .lead { margin-bottom: 1.5rem; color: var(--muted); font-size: 1.05rem; max-width: 46rem; }
.band { background: var(--cream); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 1.25rem; }
.two h3 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.ticks { display: flex; flex-direction: column; gap: 0.6rem; padding-left: 1.3rem; list-style: disc; font-size: 1.02rem; }
.ticks.muted { color: var(--body); }
.triggers { margin-top: 1.75rem; }
.triggers h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }

/* Doors table */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--rule); border-radius: 0.75rem; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: 0.95rem; }
caption { text-align: left; padding: 0.9rem 1.1rem; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--rule); }
thead tr { background: var(--cream); text-align: left; }
th, td { padding: 0.9rem 1.1rem; text-align: left; vertical-align: top; }
tbody tr { border-top: 1px solid var(--rule); }
tbody th { font-weight: 700; color: var(--navy); }
td.price { font-weight: 700; white-space: nowrap; }
.scroll-hint { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }

/* Upgrades */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.card { border: 1px solid var(--rule); border-radius: 0.75rem; padding: 1.25rem; background: #fff; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.card ul { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.95rem; }
.card li { display: flex; justify-content: space-between; gap: 0.75rem; }
.card li b { white-space: nowrap; }

/* How it works */
.how { background: var(--navy); color: #fff; }
.how h2 { color: #fff; }
.how .lead { color: var(--on-navy); }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.steps li { border-top: 2px solid var(--yellow); padding-top: 0.9rem; }
.steps .n { margin-bottom: 0.3rem; font-size: 0.9rem; font-weight: 700; color: var(--yellow); }
.steps h3 { margin-bottom: 0.3rem; font-size: 1.1rem; color: #fff; letter-spacing: 0; }
.steps p { font-size: 0.95rem; color: var(--on-navy); }

/* Local, county */
.local-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.25rem; }
.local-card { border: 1px solid var(--rule); border-radius: 0.75rem; padding: 1.25rem; background: #fff; }
.local-card .label { margin-bottom: 0.3rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; color: var(--link); }
.local-card .value { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.prose { margin-top: 1.25rem; max-width: 46rem; font-size: 1.05rem; color: var(--body); }
.prose + .prose { margin-top: 0.8rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.pill-list a, .pill-list span { display: inline-block; border: 1px solid var(--rule); border-radius: 999px; padding: 0.55rem 1rem; font-size: 0.95rem; color: var(--ink); text-decoration: none; background: #fff; }
.pill-list .pending { color: var(--muted); border-style: dashed; }

/* FAQ */
.faq-wrap { max-width: 55rem; margin: 0 auto; padding: 3rem var(--pad); }
.faq-wrap h2 { font-size: clamp(1.6rem, 5.6vw, 2.25rem); margin-bottom: 1.5rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
details { background: #fff; border: 1px solid var(--rule); border-radius: 0.75rem; padding: 1.1rem 1.3rem; }
summary { font-weight: 700; font-size: 1.05rem; cursor: pointer; color: var(--navy); }
details p { margin-top: 0.7rem; color: var(--body); }

/* Call to action band */
.cta { padding-top: 3rem; padding-bottom: 3rem; }
.cta-band { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between; padding: 2rem; border-radius: 1rem; background: var(--yellow); color: var(--navy); }
.cta-band h2 { font-size: clamp(1.5rem, 5.2vw, 2.1rem); margin-bottom: 0.4rem; }
.cta-band p { font-size: 1.05rem; color: var(--navy); }
.cta-band .btn { background: var(--navy); color: #fff; }
.cta-band .btn:hover { color: #fff; }

/* Nearby cities */
.nearby { padding-bottom: 3rem; }
.nearby h2 { font-size: 1.5rem; margin-bottom: 0.9rem; }

/* Footer */
.ftr { background: var(--ink); color: #c9ccd2; }
.ftr .wrap { display: flex; flex-wrap: wrap; gap: 1.75rem 2.5rem; justify-content: space-between; padding-top: 2.25rem; padding-bottom: 2.25rem; font-size: 0.9rem; }
.ftr .brand { margin-bottom: 0.4rem; font-size: 1.25rem; font-weight: 800; color: #fff; }
.ftr h2 { margin-bottom: 0.4rem; font-size: 0.95rem; color: #fff; letter-spacing: 0; }
.ftr a { color: var(--yellow); }
.ftr address { font-style: normal; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  html { font-size: 112.5%; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .local-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
  .nav { flex: 1 1 auto; order: 0; border-top: 0; padding-top: 0; justify-content: center; gap: 1.5rem; }
  .hdr-actions { order: 2; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1000px) {
  html { font-size: clamp(18px, calc(0.7vw + 10px), 26px); }
  .hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; padding-top: 2rem; padding-bottom: 4rem; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
  .sec { padding-top: 4rem; padding-bottom: 4rem; }
  .cta-band { padding: 3rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Small additions ---------- */
.local-card .label { text-transform: uppercase; }
.ftr nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.4rem; }
.ftr p + p { margin-top: 0.15rem; }
.cards + .note { margin-top: 0.9rem; }
.local-grid:empty { display: none; }

/* ---------- Added 2026-11-18: how-it-works call to action, why section, service areas ---------- */
.how-cta { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.how-cta p { margin-bottom: 0.9rem; font-size: 1.1rem; font-weight: 600; color: #fff; }
.how-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; }
.how-cta .phone-link { color: #fff; font-size: 1.1rem; font-weight: 700; }
.how-cta .phone-link:hover { color: var(--yellow); }
.why-points { margin-top: 1.1rem; max-width: 46rem; }
.why-about { margin-top: 1.1rem; }
.zone-title { margin-top: 1.75rem; font-size: 1.2rem; }
.zone-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 0.9rem; }
.zone-list > li { border: 1px solid var(--rule); border-radius: 0.75rem; padding: 1rem 1.25rem; background: #fff; }
.zone-name { font-weight: 700; color: var(--navy); }
.zone-list .pill-list { margin-top: 0.6rem; }
@media (min-width: 640px) { .zone-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .zone-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Added 2026-11-18: door price rows, product photo, contact buttons, guide and trust sections ---------- */
.price-rows { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.6rem 0 1.1rem; }
.price-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule); font-size: 1rem; color: var(--ink); }
.price-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.price-rows b { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.hero-figure { margin-top: 1.75rem; max-width: 36rem; }
.hero-figure img { width: 100%; height: auto; border-radius: 0.5rem 0.5rem 0 0; border: 1px solid var(--rule); }
.hero-figure figcaption { padding: 0.5rem 0.75rem; border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 0.5rem 0.5rem; background: var(--cream); font-size: 0.8rem; color: var(--muted); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { color: var(--navy); background: #fff; }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { color: #fff; background: var(--navy); }
.pending-btn { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.2rem; border: 1px dashed currentColor; border-radius: 0.5rem; font-size: 0.95rem; opacity: 0.85; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.cta-band .pending-btn { color: var(--navy); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem 2rem; margin-top: 1.25rem; max-width: 62rem; }
.guide-item { border-left: 3px solid var(--yellow); padding-left: 1rem; }
.guide-item h3 { margin-bottom: 0.4rem; font-size: 1.2rem; }
.guide-item p { color: var(--body); font-size: 1.02rem; max-width: 46rem; }
.guide-item p + p { margin-top: 0.5rem; }
@media (min-width: 1000px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sec .lead.after { margin-top: 0.8rem; }

@media (max-width: 639px) { th, td { padding: 0.7rem 0.55rem; } table { font-size: 0.9rem; } caption { padding: 0.7rem 0.55rem; } }

@media (max-width: 639px) { table { min-width: 40rem; } }

/* ---------- Added 2026-11-19: responsibility callout ---------- */
.responsibility { margin-top: 1.75rem; padding: 1.1rem 1.25rem; border-left: 4px solid var(--yellow); border-radius: 0 0.5rem 0.5rem 0; background: #fff; max-width: 52rem; }
.responsibility h3 { margin-bottom: 0.35rem; font-size: 1.2rem; }
.responsibility p { color: var(--body); font-size: 1.02rem; }

/* ---------- Added 2026-11-19: county page ---------- */
.county-hero { padding-top: 1.5rem; padding-bottom: 2.5rem; }
.county-hero h1 { font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 1.1rem; max-width: 22ch; text-wrap: balance; }
.county-hero .answer { max-width: 46rem; }
.county-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1.6rem; }
.county-actions .pending-btn { color: var(--navy); }
.city-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7rem; margin-top: 1.1rem; }
.city-grid li { border: 1px solid var(--rule); border-radius: 0.6rem; padding: 0.75rem 1rem; background: #fff; font-weight: 600; color: var(--navy); }
.city-grid li a { display: block; text-decoration: none; color: var(--navy); }
.city-grid li a:hover { text-decoration: underline; }
@media (min-width: 560px) { .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .city-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.city-group-title { margin-top: 1.75rem; font-size: 1.25rem; }
.city-group-title + nav .city-grid { margin-top: 0.7rem; }

/* ---------- Added 2026-11-19: service areas page ---------- */
.area-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.25rem; }
.area-cards li { border: 1px solid var(--rule); border-radius: 0.75rem; padding: 1.25rem; background: #fff; }
.area-cards h3 { margin-bottom: 0.5rem; font-size: 1.35rem; }
.area-cards h3 a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 0.18em; text-underline-offset: 0.2em; }
.area-cards h3 a::after { content: " \2192"; }
.area-cards h3 a:hover { text-decoration-color: var(--navy); }
.area-cards p { color: var(--body); font-size: 1rem; }
.area-cards p + p { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 900px) { .area-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
