/* Shared stylesheet for the four local-brand starter sites (KingstonSEO, KingstonWebDesigner,
   NiagaraSEO, NiagaraWebDesigner). One file, copied into each site's dist/ at deploy time. */

:root {
  --navy: #123456;
  --navy-ink: #0d2740;
  --paper: #fdfcfa;
  --ink: #1c1c1c;
  --ink-muted: #4a4a4a;
  --line: #dfdad2;
  --accent: #b5651d;
  --max-width: 42rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

header.site-header {
  background: var(--navy);
  color: #fff;
  padding: 1rem 1.25rem;
}
header.site-header .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
header.site-header a.brand {
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
header.site-header a.phone {
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 0.3rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
header.site-header a.phone:hover, header.site-header a.phone:focus {
  background: #fff;
  color: var(--navy);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.dek {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  color: var(--ink-muted);
  margin-top: -0.25rem;
}

h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.3rem;
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
main > h2:first-of-type { border-top: none; padding-top: 0; }

.faq dt {
  font-weight: 700;
  margin-top: 1.25rem;
}
.faq dd {
  margin-left: 0;
}

.price-callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
}

.cta-band {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.cta-band a.tel {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--navy);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 0.3rem;
  text-decoration: none;
  margin-top: 0.75rem;
}
.cta-band a.tel:hover, .cta-band a.tel:focus { background: var(--navy-ink); }

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2.5rem;
}
footer.site-footer .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
footer.site-footer a { color: var(--ink-muted); }

/* Never let a wide element (a code sample, a long URL) force horizontal scroll on the body */
img, table { max-width: 100%; }

/* Dark mode: same content, dark ground, same navy accent per brand rule (never change the navy) */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14181d;
    --ink: #ece7dd;
    --ink-muted: #b6b0a4;
    --line: #333a42;
  }
  header.site-header { background: var(--navy); }
  .price-callout { background: #1b2027; }
}
