/* ===========================================================
   AB Roofing & Timberwork — Site styles (Direction D: Heritage Craft, Dark)
   =========================================================== */

:root {
  --bg:      #1d160e;   /* deep espresso ground */
  --panel:   #241c13;   /* raised panel */
  --panel-2: #2c2317;   /* card hover / alt */
  --darker:  #15100a;   /* footer / trust strip */
  --cream:   #f0e7d6;   /* primary text */
  --tan:     #caa46b;   /* secondary accent / serif highlight */
  --amber:   #c8853b;   /* primary accent / CTA */
  --amber-d: #b5742c;
  --err:     #e0907f;   /* error text / border (form status) */
  --ok:      #7fb985;   /* success text / border (form status) */
  --muted:   #a8997f;   /* body text on dark */
  --muted-2: #8a7c66;
  --line:    #3a3024;   /* hairlines */
  --line-2:  #4a3e2e;

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --cond:  'Barlow Condensed', sans-serif;
  --logo:  'Oswald', sans-serif;

  --maxw: 1280px;
  --pad: 64px;
}

/* ===========================================================
   LIGHT THEME  (toggled via <html data-theme="light"> in site.js)
   Warm paper palette; figures (placeholders, coverage map) stay dark on purpose.
   =========================================================== */
[data-theme="light"] {
  --bg:      #f6f1e8;
  --panel:   #ffffff;
  --panel-2: #f6efe1;
  --darker:  #ece3d2;
  --cream:   #241d15;   /* primary text becomes dark ink */
  --tan:     #9a6a30;
  --amber:   #bf7a2c;
  --amber-d: #a8681f;
  --err:     #b23a2e;
  --ok:      #2e7d46;
  --muted:   #5e564a;
  --muted-2: #8a7d69;
  --line:    #e4dac8;
  --line-2:  #d6c9b1;
}
[data-theme="light"] .site-head { background: rgba(246,241,232,.86); }
[data-theme="light"] .btn--amber { color: #1d160e; }
[data-theme="light"] .btn--amber:hover { background: #cd8a3a; }
[data-theme="light"] .cta { color: #1d160e; }
[data-theme="light"] .btn--dark { background: #241d15; color: #f0e7d6; }
[data-theme="light"] .btn--dark:hover { background: #15100a; }
[data-theme="light"] .ph { background: repeating-linear-gradient(45deg, #e7ddcd, #e7ddcd 11px, #dacdb5 11px, #dacdb5 22px); }
[data-theme="light"] .ph span { background: rgba(255,255,255,.72); color: #8a6a36; }
[data-theme="light"] ::selection { background: var(--amber); color: #1d160e; }
[data-theme="light"] .hero__media .ph,
[data-theme="light"] .split__media .ph { background: repeating-linear-gradient(45deg, #e4dac8, #e4dac8 12px, #d8cbb2 12px, #d8cbb2 24px); }

/* ---------- Header actions + theme toggle ---------- */
.head-right { display: flex; align-items: center; gap: 16px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 52px; flex: 0 0 auto; border: 1px solid var(--line-2); border-radius: 2px; background: transparent; color: var(--cream); cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.theme-toggle:hover { color: var(--tan); border-color: var(--tan); }
.theme-toggle svg { display: block; }
.theme-toggle .i-moon { display: none; }
.theme-switching, .theme-switching * { transition: none !important; }
[data-theme="light"] .theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-moon { display: block; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-y: scroll; scroll-padding-top: 112px; }

body {
  padding-top: 97px; /* reserve space for the fixed header so content doesn't jump when it's injected */
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; margin: 0; }

p { margin: 0; }

::selection { background: var(--amber); color: var(--darker); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }

.eyebrow {
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700; color: var(--amber); margin: 0;
}

.lead { font-size: 19px; line-height: 1.6; color: var(--muted); }

.serif-em { font-style: italic; color: var(--tan); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 15px 26px; border-radius: 2px; text-decoration: none;
  cursor: pointer; border: 0; transition: transform .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--amber { background: var(--amber); color: var(--darker); }
.btn--amber:hover { background: #d8923f; }
.btn--ghost { border: 1.5px solid var(--tan); color: var(--cream); background: transparent; }
.btn--ghost:hover { background: rgba(202,164,107,.12); }
.btn--dark { background: var(--darker); color: var(--cream); }
.btn--lg { padding: 18px 34px; font-size: 17px; }

/* ---------- Logo (The Apex) ---------- */
.logo { display: inline-flex; align-items: center; gap: 16px; font-family: var(--logo); text-decoration: none; }
.logo__chev { display: block; }
.logo__bar { width: 2px; height: 42px; background: var(--tan); opacity: .5; }
.logo__txt { display: flex; flex-direction: column; line-height: .9; }
.logo__ab { font-weight: 700; font-size: 30px; letter-spacing: .01em; color: var(--cream); }
.logo__sub { font-family: var(--cond); font-weight: 600; font-size: 11px; letter-spacing: .18em; color: var(--tan); margin-top: 4px; padding-left: .18em; white-space: nowrap; }

/* ---------- Header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(29,22,14,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__inner { display: flex; align-items: center; justify-content: space-between; padding: 22px var(--pad); max-width: var(--maxw); margin: 0 auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--cream); letter-spacing: .01em; position: relative; padding: 4px 0; transition: color .2s ease; }
.nav a:hover { color: var(--tan); }
.nav a.is-active { color: var(--tan); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--amber); }
.nav a.nav__cta { margin-left: 16px; padding: 14px 28px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 50px; height: 52px; flex: 0 0 auto; background: none; border: 1px solid var(--line-2); border-radius: 2px; color: var(--cream); cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.nav-toggle:hover { color: var(--tan); border-color: var(--tan); }
.nav-toggle svg { display: block; }

/* ---------- Footer ---------- */
.site-foot { background: var(--darker); color: var(--muted); padding: 64px 0 40px; font-size: 14px; border-top: 1px solid var(--line); }
.site-foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.site-foot h4 { font-family: var(--cond); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--tan); margin-bottom: 18px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.site-foot a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.site-foot a:hover { color: var(--cream); }
.site-foot__blurb { max-width: 280px; line-height: 1.65; margin-top: 18px; }
.site-foot__social { display: flex; gap: 12px; margin-top: 22px; }
.site-foot__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); transition: color .2s ease, border-color .2s ease, background .2s ease, transform .15s ease; }
.site-foot__social a:hover { color: var(--darker); background: var(--amber); border-color: var(--amber); transform: translateY(-2px); }
.site-foot__bottom { display: flex; justify-content: space-between; padding-top: 26px; font-size: 13px; color: var(--muted-2); }
.site-foot__legal { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); letter-spacing: .01em; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 600px; }
.hero__body { padding: 92px var(--pad) 80px; display: flex; flex-direction: column; justify-content: center; }
.hero__title { font-size: 88px; }
.hero__stats { display: flex; gap: 34px; margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero__stat .n { font-family: var(--serif); font-size: 30px; color: var(--tan); }
.hero__stat .l { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* page hero (interior pages) */
.phero { position: relative; padding: 88px 0 76px; border-bottom: 1px solid var(--line); overflow: hidden; }
.phero::after { content:""; position:absolute; right:-120px; top:-120px; width:420px; height:420px; border-radius:50%; background: radial-gradient(circle, rgba(200,133,59,.10), transparent 68%); pointer-events:none; }
.phero h1 { font-size: 64px; margin-top: 16px; }
.phero p { margin-top: 22px; max-width: 620px; }
.crumbs { font-size: 13px; letter-spacing: .04em; color: var(--muted-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--tan); }

/* ---------- Placeholder image ---------- */
.ph {
  position: relative; width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, #2a2113, #2a2113 11px, #332817 11px, #332817 22px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ph span {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--tan);
  background: rgba(21,16,10,.7); padding: 6px 11px; border-radius: 3px; font-weight: 600; text-align: center;
}
.ph--tall { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 16 / 10; }
.ph--sq { aspect-ratio: 1 / 1; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 32px 30px 30px; overflow: hidden; transition: transform .18s ease, border-color .2s ease, background .2s ease; }
.svc-card::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 46px; background: var(--amber); transition: width .25s ease; }
.svc-card:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--panel-2); }
.svc-card:hover::before { width: 100%; }
.svc-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.svc-card h3 { font-size: 23px; margin-bottom: 10px; color: var(--cream); }
.svc-card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.svc-card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--amber); text-decoration: none; }

/* ---------- Trust strip ---------- */
.trust { background: var(--darker); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 44px var(--pad); max-width: var(--maxw); margin: 0 auto; flex-wrap: wrap; }
.trust__item { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 19px; }
.trust__dot { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; flex: none; }

/* ---------- Chips (areas) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 14px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; background: var(--panel); color: var(--cream); text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.chip:hover { border-color: var(--amber); color: var(--tan); }

/* ---------- Reviews ---------- */
.review { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 30px 28px; }
.review__stars { color: var(--amber); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.review__q { font-size: 16px; line-height: 1.6; color: var(--cream); margin-bottom: 18px; }
.review__a { font-weight: 700; font-size: 14px; }
.review__a span { color: var(--tan); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta { background: var(--amber); color: var(--darker); }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 72px var(--pad); max-width: var(--maxw); margin: 0 auto; flex-wrap: wrap; }
.cta h2 { font-size: 44px; }
.cta p { margin-top: 12px; font-size: 17px; opacity: .85; }
.cta .btn--dark:hover { background: #000; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.split__media { position: relative; min-height: 360px; }
.split__body { padding: 80px var(--pad); display: flex; flex-direction: column; justify-content: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--tan); text-transform: uppercase; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--cream);
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 13px 15px; transition: border-color .2s ease, background .2s ease;
  width: 100%; min-width: 0; box-sizing: border-box; max-width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: var(--panel-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.form-note { font-size: 13px; color: var(--muted-2); }

/* radio cards (service select on quote) */
.opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.opt { position: relative; cursor: pointer; }
/* a full-width option (e.g. "General Quote") that spans the whole grid row */
.opt--wide { grid-column: 1 / -1; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: block; text-align: center; padding: 14px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); font-size: 14px; font-weight: 600; color: var(--muted); transition: all .18s ease; }
.opt input:checked + span { border-color: var(--amber); color: var(--cream); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--amber); }
.opt input:focus-visible + span { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }

/* inline status banner for the JS-driven quote submit (success / error) */
.q-status { border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; font-size: 15px; color: var(--cream); }
.q-status[hidden] { display: none; }
.q-status.err { background: var(--panel-2); border: 1px solid var(--err); color: var(--err); }
.q-status.ok  { background: rgba(127,185,133,.10); border: 1px solid var(--ok); color: var(--ok); }

/* ---------- Misc page bits ---------- */
.kicker-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; gap: 24px; flex-wrap: wrap; }
.link-amber { color: var(--amber); font-weight: 700; text-decoration: none; font-size: 15px; }
.link-amber:hover { color: #d8923f; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: var(--muted); }
.feature-list .tick { flex: 0 0 auto; margin-top: 3px; color: var(--amber); }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-band .cell { padding: 48px 32px; border-right: 1px solid var(--line); }
.stat-band .cell:last-child { border-right: 0; }
.stat-band .n { font-family: var(--serif); font-size: 48px; color: var(--amber); line-height: 1; }
.stat-band .l { font-size: 13px; color: var(--muted); margin-top: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

/* projects gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.proj { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; display: block; }
.proj .ph { transition: transform .4s ease; }
.proj:hover .ph { transform: scale(1.04); }
.proj img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.proj:hover img { transform: scale(1.04); }
.proj__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 22px 18px; background: linear-gradient(to top, rgba(21,16,10,.92), transparent); }
.proj__cap .t { font-family: var(--serif); font-size: 21px; color: var(--cream); }
.proj__cap .m { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--tan); margin-top: 4px; }
.proj__tag { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--amber); color: var(--darker); padding: 5px 10px; border-radius: 100px; }

/* filter pills */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter { font-size: 13px; font-weight: 600; letter-spacing: .03em; padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: all .18s ease; }
.filter:hover { color: var(--cream); border-color: var(--line-2); }
.filter.is-active { background: var(--amber); border-color: var(--amber); color: var(--darker); }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.step { padding: 34px 28px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step__n { font-family: var(--logo); font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--amber); }
.step h3 { font-size: 21px; margin: 14px 0 10px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* two-col prose */
.prose-2 { columns: 2; column-gap: 48px; }
.prose-2 p { margin-bottom: 18px; break-inside: avoid; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq__item { padding: 26px 4px; border-bottom: 1px solid var(--line); }
.faq__q { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--cream); margin-bottom: 10px; }
.faq__a { color: var(--muted); font-size: 15.5px; line-height: 1.68; }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; }
.info-card { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-card:last-child { border-bottom: 0; }
.info-card .ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--amber); }
.info-card .k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--tan); font-weight: 700; }
.info-card .v { font-size: 17px; color: var(--cream); margin-top: 3px; }
.info-card .v a { text-decoration: none; }
.info-card .v a:hover { color: var(--tan); }

/* ---------- Animations ----------
   Entrance reveals are intentionally NON-hiding: content is always visible.
   (Opacity/transform transitions can freeze in non-focused preview/capture
   contexts, which risked leaving sections blank. Reliability first.) */
.reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .hero__title { font-size: 70px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .site-foot__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-band .cell:nth-child(2) { border-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
}

/* Nav collapses to a hamburger early — the full desktop nav needs ~1050px to fit */
@media (max-width: 1024px) {
  body { padding-top: 71px; } /* header is shorter once its padding shrinks */
  html { scroll-padding-top: 86px; }
  .site-head__inner { padding: 14px var(--pad); }
  .nav { position: fixed; inset: 71px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; transform: translateY(-140%); transition: transform .3s ease; z-index: 40; }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a.nav__cta { margin: 16px 0 0; padding: 15px 26px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  /* Stack the quote/contact form + sidebar so the form gets full width on tablets */
  .quote-grid { grid-template-columns: 1fr !important; max-width: 680px !important; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  :root { --pad: 24px; }
  /* Collapse any inline multi-column layouts to a single column on phones */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="columns:3"], [style*="columns: 3"] { columns: 1 !important; }
  .hero { grid-template-columns: 1fr; }
  .hero__media { min-height: 300px; }
  .hero__title { font-size: 56px; }
  .split { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .opt-grid { grid-template-columns: repeat(2, 1fr); }
  .prose-2 { columns: 1; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .site-foot__top { grid-template-columns: 1fr 1fr; }
  .cta__inner { padding: 48px var(--pad); }
  .cta h2 { font-size: 34px; }
  .phero h1 { font-size: 46px; }
  .hero__title { font-size: 52px; }
  .trust__inner { gap: 16px 24px; }
  .section { padding: 64px 0; }
}

@media (max-width: 520px) {
  .gallery { gap: 12px; }
  .site-foot__top { grid-template-columns: 1fr; gap: 28px; }
  .site-foot__bottom { flex-direction: column; gap: 8px; }
  .trust__item { font-size: 16px; }
  .hero__stats { flex-wrap: wrap; gap: 20px; }
}


/* ==========================================================================
   Page-specific styles ported from the static preview's per-page <style>
   blocks (were inline in preview/areas.html + preview/locations/index.html;
   dropped during the Craft template port, leaving those pages unstyled).
   ========================================================================== */
/* from preview: areas.html */
.map-legend { display:flex; gap:20px 22px; flex-wrap:wrap; align-items:center; margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
    .lg-item { display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--muted); font-weight:600; }
    .lg-dot { width:13px; height:13px; border-radius:50%; box-shadow:0 0 0 3px rgba(255,255,255,.04); }
    .lg-item b { color:var(--cream); font-weight:700; }
    .map-frame { border:1px solid var(--line); border-radius:12px; overflow:hidden; background:linear-gradient(180deg, #1a130b 0%, #15100a 100%); }
    .map-frame svg { display:block; width:100%; height:auto; }
    .map-note { margin-top:16px; font-size:12.5px; color:var(--muted-2); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
    .town:hover .town-dot { r:7; }
    .town:hover .town-label { fill:var(--cream); font-weight:700; }
    .town-dot { transition:r .12s ease; }
    .region-summary { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-top:8px; }
    .region-summary .rs { display:flex; flex-direction:column; gap:6px; padding:20px 20px 18px; border:1px solid var(--line); border-radius:8px; background:var(--panel); }
    .region-summary .rs-name { font-family:var(--serif); font-size:19px; color:var(--cream); }
    .region-summary .rs-count { font-family:var(--cond); text-transform:uppercase; letter-spacing:.12em; font-size:12px; color:var(--tan); }
    @media (max-width:1000px){ .region-summary { grid-template-columns:repeat(2,1fr); } }
    @media (max-width:520px){ .region-summary { grid-template-columns:1fr; } }

/* from preview: index.html */
.loc-region { margin-bottom: 56px; }
    .loc-region__head { display:flex; align-items:baseline; justify-content:space-between; gap:16px; padding-bottom:18px; margin-bottom:26px; border-bottom:1px solid var(--line); }
    .loc-region__head h2 { font-size:30px; }
    .loc-region__head span { font-family:var(--cond); text-transform:uppercase; letter-spacing:.14em; font-size:13px; color:var(--tan); white-space:nowrap; }
    .loc-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
    .loc-card { display:flex; flex-direction:column; gap:4px; padding:22px 22px 20px; border:1px solid var(--line); border-radius:8px; background:var(--panel); text-decoration:none; transition:transform .16s ease, border-color .2s ease, background .2s ease; }
    .loc-card:hover { transform:translateY(-3px); border-color:var(--line-2); background:var(--panel-2); }
    .loc-card__name { font-family:var(--serif); font-size:22px; color:var(--cream); }
    .loc-card__pc { font-family:ui-monospace,Menlo,monospace; font-size:12px; letter-spacing:.06em; color:var(--muted-2); }
    .loc-card__go { font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--amber); margin-top:10px; }
    @media (max-width:1100px){ .loc-grid{ grid-template-columns:repeat(3,1fr); } }
    @media (max-width:820px){ .loc-grid{ grid-template-columns:repeat(2,1fr); } }


/* /locations hub — per-town service chips (added with the serviceAreas unification) */
.loc-card__name { text-decoration:none; }
.loc-card__svcs { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.loc-card__svcs a { font-size:11.5px; font-weight:600; letter-spacing:.02em; color:var(--tan); border:1px solid var(--line); border-radius:5px; padding:3px 8px; text-decoration:none; transition:border-color .16s ease, color .16s ease, background .16s ease; }
.loc-card__svcs a:hover { border-color:var(--amber); color:var(--amber); background:rgba(255,255,255,.03); }
