/* Siding Compass: one stylesheet, no framework. */
:root {
  --ink: #0e2338;
  --text: #2c3b4b;
  --muted: #5d6b7a;
  --bg: #ffffff;
  --bg-2: #f3f5f8;
  --line: #dfe5ec;
  --accent: #c94a0b;       /* white text on it = 4.7:1 */
  --accent-dark: #a63c08;
  --link: #1c5a96;
  --ok: #1f7a4d;
  --radius: 10px;
  --font: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -.022em; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); line-height: 1.15; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 44rem; }
.kicker { font-size: .95rem; font-weight: 600; color: var(--accent); margin: 0 0 .9rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 76px 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 8px; font: 700 1rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.nav .btn { padding: 10px 18px; color: #fff; font-size: .95rem; }

/* Home hero: real photo, copy left, form right */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,20,34,.92) 0%, rgba(8,20,34,.78) 48%, rgba(8,20,34,.35) 100%); }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero .lede { color: #d3dde7; }
.hero .kicker { color: #ffb185; }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checks svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
  .hero::before { background: linear-gradient(180deg, rgba(8,20,34,.86) 0%, rgba(8,20,34,.9) 100%); }
}

/* Interior page header band */
.page-head { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 36px 0 40px; }
.page-head h1 { margin-bottom: .35em; }
.page-head .lede { margin-bottom: 0; }

/* Short-answer box (what a skimmer or an AI should lift) */
.answer { border-left: 4px solid var(--accent); background: #fff; padding: 4px 0 4px 22px; max-width: 46rem; }
.answer p { font-size: 1.08rem; color: var(--ink); }
.answer p:last-child { margin-bottom: 0; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-5 { grid-template-columns: 1fr 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps > div { border-top: 3px solid var(--ink); padding-top: 18px; }
.steps > div::before { counter-increment: step; content: "0" counter(step); display: block; font-weight: 800; font-size: 2.1rem; color: var(--accent); line-height: 1; margin-bottom: 14px; letter-spacing: -.03em; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 26px; } }

.town-card { display: block; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.town-card:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--text); }
.town-card h3 { margin: 0 0 14px; }
.town-card .big { font-weight: 800; font-size: 2.3rem; color: var(--ink); line-height: 1; letter-spacing: -.03em; margin: 0 0 4px; }
.town-card .go { color: var(--accent); font-weight: 700; font-size: .92rem; margin: 14px 0 0; }

.rule-card { display: flex; gap: 14px; }
.rule-card svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.rule-card h3 { margin-bottom: .3em; }

/* Town stats strip */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 1.6rem 0 .5rem; }
.stat { padding: 16px 18px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .num { font-weight: 800; font-size: 1.6rem; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.stat .lbl { font-size: .84rem; color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* Prose pages */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.4rem; font-size: clamp(1.4rem, 2.3vw, 1.8rem); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .5em; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.sticky { position: sticky; top: 94px; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } .sticky { position: static; } }

table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); }
.table-wrap { overflow-x: auto; margin: 1rem 0 .5rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq details > div { padding: 0 0 18px; }
.faq details > div p { margin: 0; }

/* Breadcrumb */
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.1rem; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 7px; }

/* Quote form */
.quote-card { background: #fff; color: var(--text); border-radius: 12px; padding: 28px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(8, 20, 34, .18); }
.quote-card h2, .quote-card h3 { font-size: 1.45rem; margin-bottom: .25em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; color: var(--ink); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #c3ccd6; border-radius: 7px; padding: 11px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--link); outline: none; box-shadow: 0 0 0 3px rgba(28, 90, 150, .18); }
textarea { min-height: 84px; resize: vertical; }
.consent { font-size: .76rem; color: var(--muted); line-height: 1.5; margin: 10px 0 0; }
.form-error { color: #b42318; font-size: .9rem; display: none; margin: 8px 0 0; }
.form-error.show { display: block; }
.quote-card .btn { width: 100%; padding: 15px 20px; font-size: 1.05rem; }
.hp { position: absolute; left: -5000px; }

/* CTA band */
.cta-band { background: var(--ink); color: #c9d4df; border-radius: 12px; padding: 44px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d4df; padding: 60px 0 32px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer .fine { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 36px; padding-top: 20px; font-size: .82rem; color: #9fb0c1; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

.sources { font-size: .88rem; color: var(--muted); padding-left: 1.2rem; }
.sources li { margin-bottom: 6px; }

/* Small phones: keep the brand and header button on one line */
.brand, .nav .btn { white-space: nowrap; }
@media (max-width: 440px) {
  .brand { font-size: 1.06rem; gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
  .nav .btn { padding: 9px 13px; font-size: .88rem; }
  .quote-card { padding: 22px 18px; }
}
