/* ==========================================================================
   San Ramon Custom Railing: "Sharp Industrial" design system
   Square corners, condensed uppercase display type, stone + near-black + copper.
   Mobile-first; breakpoints 480 / 768 / 1024 / 1280.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
}

:root {
  --ink: #15191d;          /* near-black: header, footer, text */
  --ink-2: #1f252b;
  --steel: #3b444d;
  --muted: #555f69;        /* body-secondary on stone: 6.3:1 */
  --stone: #f2efea;        /* page background */
  --stone-2: #e7e2da;      /* alternate bands */
  --paper: #ffffff;
  --line: #d6d0c6;
  --line-dark: rgba(255,255,255,.14);
  --copper: #b45a1f;       /* buttons (white text 4.75:1) */
  --copper-dk: #964818;
  --copper-text: #9a4a17;  /* links on light (5.5:1 on stone) */
  --copper-hi: #e08a4c;    /* accents on dark */
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gut: 20px;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 1rem/1.65 var(--body);
  padding-bottom: 60px; /* room for the mobile call bar */ }
@media (min-width: 768px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--copper-hi); outline-offset: 2px; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 860px; }
@media (min-width: 768px) { :root { --gut: 32px; } }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 78%; line-height: 1.02; margin: 0 0 .5em;
  letter-spacing: -.005em; text-transform: uppercase; color: var(--ink); }
h1 { font-weight: 900; font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-weight: 850; font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.12; }
p { margin: 0 0 1em; }
.eyebrow { font: 700 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--copper-text); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
strong { font-weight: 700; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 14px 24px; font: 800 .95rem/1 var(--display); font-stretch: 85%; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--copper); color: #fff; border-color: var(--copper); }
.btn-primary:hover { background: var(--copper-dk); border-color: var(--copper-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta-row-center { justify-content: center; }

/* ---------- utility bar + header ---------- */
.util-bar { background: #0d1013; color: #c9ced3; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.util-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.util-bar p { margin: 0; display: flex; align-items: center; gap: 8px; }
.util-bar span { color: var(--copper-hi); }
/* Utility bar: trust line only, desktop/tablet only (nothing to show on phones) */
.util-bar { display: none; }
@media (min-width: 768px) { .util-bar { display: block; } }

.site-header { position: sticky; top: 0; z-index: 60; background: var(--ink); border-bottom: 3px solid var(--copper); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo { height: 40px; width: auto; }
@media (min-width: 1024px) { .brand-logo { height: 46px; } }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.main-nav { display: none; }
.main-nav > a, .has-drop > a { color: #eef0f2; text-decoration: none; font: 700 .86rem/1 var(--body);
  letter-spacing: .1em; text-transform: uppercase; padding: 10px 0; display: block; }
.main-nav > a:hover, .has-drop > a:hover { color: var(--copper-hi); }
.has-drop { position: relative; }
.drop { list-style: none; margin: 0; padding: 8px 0; background: var(--paper); border-top: 3px solid var(--copper);
  min-width: 250px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.drop a { display: block; padding: 9px 18px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.drop a:hover { background: var(--stone); color: var(--copper-text); }
.call-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--copper); color: #fff;
  text-decoration: none; font: 800 1rem/1 var(--display); font-stretch: 85%; letter-spacing: .05em;
  padding: 0 16px; min-height: 46px; }
.call-btn:hover { background: var(--copper-dk); color: #fff; }
.call-num { display: none; }
@media (min-width: 420px) { .call-num { display: inline; } }
.nav-burger { width: 46px; height: 46px; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 6px; border: 1px solid var(--line-dark); cursor: pointer; }
.nav-burger span { width: 22px; height: 2px; background: #fff; display: block; }
/* mobile menu */
.nav-toggle:checked ~ .main-nav { display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink); padding: 8px var(--gut) 20px; border-bottom: 3px solid var(--copper);
  max-height: calc(100vh - 110px); overflow: auto; }
.nav-toggle:checked ~ .main-nav > a, .nav-toggle:checked ~ .main-nav .has-drop > a {
  padding: 15px 0; border-bottom: 1px solid var(--line-dark); }
.nav-toggle:checked ~ .main-nav .drop { display: none; }
@media (min-width: 1024px) {
  .main-nav { display: flex; align-items: center; gap: 26px; margin-right: 8px; }
  .nav-burger { display: none; }
  .drop { display: none; position: absolute; left: -18px; top: calc(100% + 14px); }
  .has-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
  .has-drop:hover .drop, .has-drop:focus-within .drop { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink) center/cover no-repeat; color: #fff; isolation: isolate; }
.hero.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13,16,19,.94) 0%, rgba(13,16,19,.82) 48%, rgba(13,16,19,.45) 100%); }
.hero-inner { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); align-items: center;
    padding-top: 84px; padding-bottom: 84px; gap: 56px; }
}
.hero .eyebrow { color: var(--copper-hi); }
.hero h1 { color: #fff; max-width: 17ch; }
.h1-sub { display: block; margin-top: 14px; font-size: clamp(1.05rem, 1.9vw, 1.45rem); font-weight: 700;
  font-stretch: 85%; letter-spacing: .04em; color: #d5dade; line-height: 1.2; }
.sr-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rule { display: block; width: 84px; height: 5px; background: var(--copper-hi); margin: 18px 0 20px; }
.hero-sub { color: #dde1e5; font-size: 1.08rem; max-width: 56ch; }
@media (min-width: 768px) { .hero-sub { font-size: 1.15rem; } }

/* ---------- forms ---------- */
.intake-form { background: var(--paper); color: var(--ink); padding: 26px 22px 20px; border-top: 6px solid var(--copper);
  display: grid; gap: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.28); }
.form-title { font: 900 1.55rem/1 var(--display); font-stretch: 78%; text-transform: uppercase; margin: 0; }
.form-sub { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.intake-form input, .intake-form select, .intake-form textarea { width: 100%; font: 400 1rem/1.3 var(--body);
  color: var(--ink); background: var(--stone); border: 1px solid var(--line); padding: 14px 14px; min-height: 50px; }
.intake-form input:focus, .intake-form select:focus, .intake-form textarea:focus {
  outline: none; border-color: var(--copper); background: #fff; box-shadow: inset 0 -3px 0 var(--copper); }
.intake-form ::placeholder { color: #69737d; }
.intake-form textarea { resize: vertical; min-height: 74px; }
.intake-form .form-submit { width: 100%; margin-top: 4px; }
.form-fine { margin: 2px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.intake-form .hp { display: none !important; }
.form-embed { max-width: 560px; }
.form-embed .intake-form, .mid-form .intake-form { box-shadow: none; border: 1px solid var(--line); border-top: 6px solid var(--copper); }
.mid-form { max-width: 560px; margin: 26px 0 8px; }

/* ---------- trust strip ---------- */
.trust-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-strip ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: 1fr; }
.trust-strip li { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.trust-strip li:last-child { border-bottom: 0; }
.trust-strip .ico { width: 30px; height: 30px; color: var(--copper); }
.trust-strip strong { display: block; font: 800 .95rem/1.1 var(--display); font-stretch: 82%; text-transform: uppercase; letter-spacing: .02em; }
.trust-strip em { font-style: normal; font-size: .82rem; color: var(--muted); }
@media (min-width: 768px) {
  .trust-strip ul { grid-template-columns: repeat(3, 1fr); }
  .trust-strip li { border-bottom: 0; border-right: 1px solid var(--line); padding: 22px 20px; }
  .trust-strip li:last-child { border-right: 0; }
}

/* ---------- breadcrumbs / page head ---------- */
.crumbs { background: var(--stone-2); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.crumbs .wrap { padding-top: 12px; padding-bottom: 12px; color: var(--muted); }
.crumbs a { color: var(--steel); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--copper-text); }
.crumb-cur { color: var(--ink); font-weight: 700; }
.page-head { background: var(--ink) linear-gradient(90deg, rgba(180,90,31,.22), transparent 60%);
  color: #fff; border-bottom: 3px solid var(--copper); }
.page-head .wrap { padding-top: 56px; padding-bottom: 48px; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); max-width: 22ch; margin: 0; }

/* ---------- content sections (numbered) ---------- */
main { counter-reset: sec; }
.content-sec, .split-sec { padding: 56px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .content-sec, .split-sec { padding: 80px 0; } }
.content-sec:nth-of-type(even) { background: var(--paper); }
.content-sec h2, .split-sec h2 { counter-increment: sec; }
.content-sec h2::before, .split-sec h2::before { content: counter(sec, decimal-leading-zero) " /";
  display: block; font: 700 .8rem/1 var(--body); letter-spacing: .16em; color: var(--copper-text); margin-bottom: 14px; }
.content-sec h3, .split-sec h3 { margin-top: 1.4em; }
.content-sec ul, .content-sec ol { padding-left: 1.2em; }
.content-sec li { margin: .35em 0; }
.content-sec ul li::marker { color: var(--copper); }
.split-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) {
  .split-inner { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .split-inner.reverse .split-media { order: -1; }
}
.split-sec.alt-bg { background: var(--paper); }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; position: relative; z-index: 1; }
.split-media::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 3px solid var(--copper); z-index: 0; }

/* ---------- content components (used inside section html) ---------- */
.feature-grid { display: grid; gap: 0; margin: 28px 0 8px; border: 1px solid var(--line); counter-reset: feat; background: var(--paper); }
.feature { padding: 26px 24px; border-bottom: 1px solid var(--line); counter-increment: feat; position: relative; }
.feature:last-child { border-bottom: 0; }
.feature::before { content: counter(feat, decimal-leading-zero); font: 900 2.4rem/1 var(--display); font-stretch: 75%;
  color: var(--copper); display: block; margin-bottom: 12px; }
.feature h3 { margin-top: 0 !important; }
.feature p:last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature { border-bottom: 0; border-right: 1px solid var(--line); }
  .feature:last-child { border-right: 0; }
}
.tile-grid { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--ink); border: 2px solid var(--ink); margin: 28px 0 8px; }
@media (min-width: 480px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--ink-2); color: #fff; text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; opacity: .82; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,16,19,.92) 0%, rgba(13,16,19,.15) 60%); }
.tile span { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font: 900 1.25rem/1.05 var(--display);
  font-stretch: 80%; text-transform: uppercase; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.tile span::after { content: "\2192"; color: var(--copper-hi); font-family: var(--body); font-weight: 700; }
.tile:hover img { transform: scale(1.05); opacity: 1; }
.tile:hover { color: #fff; }
.tile:not(:has(img)) { aspect-ratio: auto; min-height: 120px; }
.steps { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); margin: 28px 0 8px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper); padding: 24px 22px; position: relative; }
.step h3 { margin-top: 0 !important; padding-right: 48px; }
.step p:last-child { margin-bottom: 0; }
.step::after { content: ""; position: absolute; right: 22px; top: 24px; width: 28px; height: 3px; background: var(--copper); }
.band { background: var(--stone-2); border-left: 6px solid var(--copper); padding: 24px 22px; margin: 24px 0; }
.band-dark { background: var(--ink); color: #e6e9ec; }
.band-dark a { color: var(--copper-hi); }
.badge { display: inline-block; border: 1px solid var(--ink); padding: 6px 10px; margin: 0 6px 6px 0;
  font: 700 .74rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: .94rem; background: var(--paper);
  display: block; overflow-x: auto; }
@media (min-width: 768px) { table { display: table; } }
th, td { padding: 12px 14px; text-align: left; border: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font: 800 .82rem/1.2 var(--display); font-stretch: 85%;
  letter-spacing: .08em; text-transform: uppercase; border-color: var(--ink); }
tbody tr:nth-child(even) td { background: #faf8f5; }

/* ---------- service cards (hub) ---------- */
.service-cards-sec { padding: 56px 0; }
.section-title { margin-bottom: 24px; }
.service-cards { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 768px) { .service-cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); padding: 24px; text-decoration: none; color: var(--ink); display: block; }
.card-icon { display: none; }
.card h3 { margin: 0 0 12px; }
.card-link { color: var(--copper-text); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  display: inline-flex; gap: 8px; align-items: center; }
.card:hover { background: var(--stone); }

/* ---------- link grid (Available In / Services in this Area) ---------- */
.link-grid { padding: 48px 0; background: var(--ink); color: #fff; }
.link-grid h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); padding: 10px 16px;
  font: 700 .82rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.chips a:hover { background: var(--copper); border-color: var(--copper); }

/* ---------- FAQ accordion ---------- */
.faqs { padding: 64px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.faq-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: .8fr 1.6fr; gap: 64px; align-items: start; }
  .faq-head { position: sticky; top: 120px; } }
.faq-head p:not(.eyebrow) { color: var(--muted); }
.faq-list { border-top: 2px solid var(--ink); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 20px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: clamp(1.02rem, 1.7vw, 1.2rem); text-transform: none; font-stretch: 90%; letter-spacing: 0; }
.faq-x { width: 28px; height: 28px; flex: none; position: relative; border: 2px solid var(--ink); }
.faq-x::before, .faq-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px;
  background: var(--ink); transform: translate(-50%, -50%); }
.faq-x::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.faq[open] .faq-x { background: var(--copper); border-color: var(--copper); }
.faq[open] .faq-x::before, .faq[open] .faq-x::after { background: #fff; }
.faq[open] .faq-x::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 0 22px; color: var(--steel); max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #e3e7ea; position: relative; overflow: hidden; padding: 64px 0;
  border-top: 6px solid var(--copper); }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background: repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 46px); } /* baluster motif */
.cta-inner { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .cta-inner { grid-template-columns: 1.4fr 1fr; } .cta-actions { justify-content: flex-end; } }
.cta-band .eyebrow { color: var(--copper-hi); }
.cta-band h2 { color: #fff; }
.cta-band a:not(.btn) { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- blog ---------- */
.post-meta { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.toc { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--ink); padding: 22px 24px; }
.toc-h { font: 900 1.1rem/1 var(--display); font-stretch: 80%; text-transform: uppercase; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin: 6px 0; }
.callout { background: var(--ink); color: #e3e7ea; padding: 26px 24px; border-left: 6px solid var(--copper); }
.callout strong { color: #fff; }
.callout-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.callout .btn-ghost { color: #fff; border-color: rgba(255,255,255,.75); }
.callout .btn-ghost:hover { background: #fff; color: var(--ink); }
.keep-reading, .related-guides { padding: 56px 0; background: var(--stone-2); }
.post-cards, .guide-cards { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 768px) { .post-cards, .guide-cards { grid-template-columns: repeat(3, 1fr); } }
.post-card, .guide-card { background: var(--paper); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.post-card img, .guide-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.pc-title, .guide-card span { font: 800 1.08rem/1.15 var(--display); font-stretch: 85%; text-transform: uppercase; padding: 18px 18px 6px; }
.pc-read { color: var(--copper-text); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: 0 18px 18px; margin-top: auto; }
.post-card:hover .pc-title { color: var(--copper-text); }
.blog-cta { padding: 56px 0; background: var(--paper); border-top: 6px solid var(--copper); }

/* ---------- map (disabled by default) ---------- */
.map-band iframe { display: block; filter: grayscale(1) contrast(1.05); }
.map-cap { padding: 14px var(--gut); font-size: .9rem; }

/* ---------- modal (pure CSS :target) ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 200; padding: 20px; background: rgba(13,16,19,.82);
  align-items: flex-start; justify-content: center; overflow: auto; }
.modal:target { display: flex; }
.modal-card { position: relative; width: 100%; max-width: 480px; margin: 6vh auto; }
.modal-close { position: absolute; top: 8px; right: 12px; z-index: 2; font-size: 2rem; line-height: 1;
  color: var(--muted); text-decoration: none; }
.modal-close:hover { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9c0c7; font-size: .93rem; }
.footer-cols { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 44px; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr .8fr; } }
.foot-logo { height: 40px; width: auto; margin-bottom: 16px; }
.foot-h { font: 900 1rem/1 var(--display); font-stretch: 82%; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--copper); display: inline-block; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 9px; }
.site-footer a { color: #d8dde2; text-decoration: none; }
.site-footer a:hover { color: var(--copper-hi); }
.foot-call { display: inline-flex; align-items: center; gap: 8px; font: 900 1.45rem/1 var(--display); font-stretch: 85%;
  color: #fff !important; }
.foot-hours { display: flex; align-items: center; gap: 8px; }
.counties { color: #9aa3ac; }
.sub-foot { border-top: 1px solid var(--line-dark); font-size: .8rem; color: #8f99a3; }
.sub-foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 18px; }
.sub-foot p { margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.sub-foot a { color: #c3cad1; }

/* ---------- mobile call bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr;
  height: 60px; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(0,0,0,.2); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font: 900 1rem/1 var(--display); font-stretch: 85%; letter-spacing: .08em; text-transform: uppercase; }
.mb-call { background: var(--copper); color: #fff; }
.mb-quote { background: var(--ink); color: #fff; }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Sections that hold grids/tables use the full container width */
.content-sec .narrow:has(.feature-grid, .tile-grid, .steps, table) { max-width: var(--wrap); }
.content-sec .narrow:has(.feature-grid, .tile-grid, .steps, table) > p,
.content-sec .narrow:has(.feature-grid, .tile-grid, .steps, table) > ul { max-width: 860px; }

/* Blog: byline + table of contents sit tight under the page head */
.content-sec:has(.post-meta) { padding: 18px 0; background: var(--paper); }
.content-sec:has(.toc) { padding: 36px 0 8px; border-bottom: 0; background: var(--stone); }
.content-sec:has(.callout) { padding: 8px 0 40px; border-bottom: 0; }
.page-head h1 { max-width: 28ch; }

/* Keep nav labels and the phone button on one line; tighten nav between 1024 and 1279px */
.main-nav > a, .has-drop > a, .call-btn { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .main-nav { gap: 18px; }
  .main-nav > a, .has-drop > a { font-size: .8rem; letter-spacing: .07em; }
  .brand-logo { height: 38px; }
}
