/* ==========================================================================
   San Jose Custom Railing: "South Bay Modern" design system
   Rounded cards, sentence-case geometric headings (Manrope) over DM Sans,
   white header, deep navy + bay teal + California-poppy gold.
   Mobile-first; breakpoints 480 / 768 / 1024 / 1280.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000; font-display: swap;
}

:root {
  --navy: #0f2a36;         /* footer, dark panels, headings */
  --navy-2: #163745;
  --text: #1c2b33;
  --muted: #52626b;        /* 6.3:1 on white */
  --white: #ffffff;
  --mist: #f4f8f9;         /* alternate bands */
  --sky: #e8f3f6;          /* tinted panels */
  --line: #dbe4e8;
  --line-dark: rgba(255,255,255,.14);
  --teal: #0e6f8a;         /* primary buttons: white text 5.7:1 */
  --teal-dk: #0b5870;
  --link: #0b5f78;         /* links: 7.2:1 on white */
  --teal-hi: #7fd0e6;      /* accents on navy */
  --gold: #e5a823;         /* California poppy accent; navy text 7.1:1 */
  --gold-text: #9a6a00;
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(15,42,54,.06), 0 8px 24px rgba(15,42,54,.08);
  --shadow-lg: 0 24px 60px rgba(15,42,54,.22);
  --wrap: 1180px;
  --gut: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1.03rem/1.7 var(--body);
  padding-bottom: 76px; /* room for the floating mobile call bar */ }
@media (min-width: 768px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(11,95,120,.35); }
a:hover { color: var(--teal-dk); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sj-ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.sj-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sj-narrow { max-width: 820px; }
@media (min-width: 768px) { :root { --gut: 32px; } }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 .55em; letter-spacing: -.02em; color: var(--navy); }
h1 { font-weight: 800; font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.sj-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px;
  background: var(--sky); color: var(--teal-dk); font: 700 .8rem/1 var(--body); letter-spacing: .02em; }
.sj-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
strong { font-weight: 700; }

/* ---------- buttons ---------- */
.sj-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 14px 24px; font: 700 1rem/1 var(--display); letter-spacing: 0; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--r-sm); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.sj-btn:hover { transform: translateY(-1px); }
.sj-btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); box-shadow: 0 6px 16px rgba(14,111,138,.28); }
.sj-btn-primary:hover { background: var(--teal-dk); border-color: var(--teal-dk); color: #fff; }
.sj-btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.sj-btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.sj-btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.sj-btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.sj-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.cta-row-center { justify-content: center; }

/* ---------- utility bar + header ---------- */
.sj-util-bar { display: none; background: var(--teal-dk); color: #e6f4f8; font-size: .84rem; }
@media (min-width: 768px) { .sj-util-bar { display: block; } }
.sj-util-inner { display: flex; justify-content: center; align-items: center; gap: 16px; min-height: 36px; }
.sj-util-bar p { margin: 0; display: flex; align-items: center; gap: 10px; }
.sj-util-bar span { color: var(--gold); }

.sj-site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px);
  box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(15,42,54,.06); }
.sj-header-inner { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.sj-brand { display: flex; align-items: center; margin-right: auto; }
.sj-brand-logo { height: 42px; width: auto; }
@media (min-width: 1024px) { .sj-brand-logo { height: 46px; } }
.sj-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.sj-main-nav { display: none; }
.sj-main-nav > a, .sj-has-drop > a { color: var(--navy); text-decoration: none; font: 600 .95rem/1 var(--body);
  padding: 10px 0; display: block; }
.sj-main-nav > a:hover, .sj-has-drop > a:hover { color: var(--teal); }
.sj-has-drop > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .55; }
.sj-has-drop { position: relative; }
.sj-drop { list-style: none; margin: 0; padding: 10px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); min-width: 260px; box-shadow: var(--shadow-lg); }
.sj-drop a { display: block; padding: 9px 12px; color: var(--text); text-decoration: none; font-size: .95rem; border-radius: 8px; }
.sj-drop a:hover { background: var(--sky); color: var(--teal-dk); }
.sj-call-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--navy);
  text-decoration: none; font: 800 1rem/1 var(--display); padding: 0 18px; min-height: 48px; border-radius: 999px; }
.sj-call-btn:hover { background: #f0b93c; color: var(--navy); }
.sj-call-num { display: none; }
@media (min-width: 420px) { .sj-call-num { display: inline; } }
.sj-nav-burger { width: 46px; height: 46px; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.sj-nav-burger span { width: 20px; height: 2px; border-radius: 2px; background: var(--navy); display: block; }
/* mobile menu */
.sj-nav-toggle:checked ~ .sj-main-nav { display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); padding: 8px var(--gut) 20px; box-shadow: 0 18px 30px rgba(15,42,54,.14);
  max-height: calc(100vh - 110px); overflow: auto; }
.sj-nav-toggle:checked ~ .sj-main-nav > a, .sj-nav-toggle:checked ~ .sj-main-nav .sj-has-drop > a {
  padding: 15px 0; border-bottom: 1px solid var(--line); }
.sj-nav-toggle:checked ~ .sj-main-nav .sj-drop { display: none; }
@media (min-width: 1024px) {
  .sj-main-nav { display: flex; align-items: center; gap: 24px; margin-right: 8px; }
  .sj-nav-burger { display: none; }
  .sj-drop { display: none; position: absolute; left: -14px; top: calc(100% + 14px); }
  .sj-has-drop::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
  .sj-has-drop:hover .sj-drop, .sj-has-drop:focus-within .sj-drop { display: block; }
}

/* ---------- hero ---------- */
.sj-hero { position: relative; background: var(--navy) center/cover no-repeat; color: #fff; isolation: isolate; }
.sj-hero.sj-has-bg::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(15,42,54,.93) 0%, rgba(15,42,54,.8) 46%, rgba(14,111,138,.32) 100%); }
.sj-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px; z-index: -1;
  background: var(--white); border-radius: 28px 28px 0 0; }
.sj-hero-inner { display: grid; gap: 32px; padding-top: 44px; padding-bottom: 72px; }
@media (min-width: 1024px) {
  .sj-hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); align-items: center;
    padding-top: 80px; padding-bottom: 104px; gap: 56px; }
}
.sj-hero .sj-eyebrow { background: rgba(229,168,35,.16); color: #ffd57a; }
.sj-hero h1 { color: #fff; max-width: 18ch; }
.sj-h1-sub { display: block; margin-top: 12px; font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 600;
  letter-spacing: -.01em; color: var(--teal-hi); line-height: 1.3; }
.sj-sr-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sj-rule { display: none; }
.sj-hero-sub { color: #dbe7ec; font-size: 1.08rem; max-width: 54ch; margin-top: 14px; }
@media (min-width: 768px) { .sj-hero-sub { font-size: 1.15rem; } }

/* ---------- forms ---------- */
.sj-intake-form { background: var(--white); color: var(--text); padding: 26px 24px 22px; border-radius: 18px;
  display: grid; gap: 10px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.4); }
.sj-form-title { font: 800 1.45rem/1.1 var(--display); letter-spacing: -.02em; color: var(--navy); margin: 0; }
.sj-form-title::before { content: "Free estimate"; display: block; margin-bottom: 8px; font: 700 .75rem/1 var(--body);
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.sj-form-sub { margin: 0 0 6px; color: var(--muted); font-size: .92rem; }
.sj-intake-form input, .sj-intake-form select, .sj-intake-form textarea { width: 100%; font: 400 1rem/1.3 var(--body);
  color: var(--text); background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; min-height: 50px; }
.sj-intake-form input:focus, .sj-intake-form select:focus, .sj-intake-form textarea:focus {
  outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(14,111,138,.14); }
.sj-intake-form ::placeholder { color: #6b7a82; }
.sj-intake-form textarea { resize: vertical; min-height: 78px; }
.sj-intake-form .sj-form-submit { width: 100%; margin-top: 4px; }
.sj-form-fine { margin: 2px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.sj-intake-form .hp { display: none !important; }
.sj-form-embed { max-width: 580px; }
.sj-form-embed .sj-intake-form, .sj-mid-form .sj-intake-form { box-shadow: var(--shadow); border: 1px solid var(--line); }
.sj-mid-form { max-width: 580px; margin: 26px 0 8px; }

/* ---------- trust strip ---------- */
.sj-trust-strip { background: var(--white); position: relative; z-index: 2; }
.sj-trust-strip ul { list-style: none; margin: -8px auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: 1fr; gap: 12px; }
.sj-trust-strip li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.sj-trust-strip .sj-ico { width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: var(--sky); color: var(--teal); }
.sj-trust-strip strong { display: block; font: 700 1rem/1.2 var(--display); color: var(--navy); }
.sj-trust-strip em { font-style: normal; font-size: .86rem; color: var(--muted); }
@media (min-width: 768px) { .sj-trust-strip ul { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ---------- breadcrumbs / page head ---------- */
.sj-crumbs { background: var(--white); font-size: .86rem; border-bottom: 1px solid var(--line); }
.sj-crumbs .sj-wrap { padding-top: 12px; padding-bottom: 12px; color: var(--muted); }
.sj-crumbs a { color: var(--link); text-decoration: none; font-weight: 600; }
.sj-crumbs a:hover { text-decoration: underline; }
.sj-crumb-cur { color: var(--text); font-weight: 600; }
.sj-page-head { background: var(--sky) radial-gradient(circle at 90% 10%, rgba(229,168,35,.18), transparent 40%); color: var(--navy); }
.sj-page-head .sj-wrap { padding-top: 52px; padding-bottom: 44px; }
.sj-page-head h1 { color: var(--navy); font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 28ch; margin: 0; }

/* ---------- content sections ---------- */
.sj-content-sec, .sj-split-sec { padding: 56px 0; }
@media (min-width: 768px) { .sj-content-sec, .sj-split-sec { padding: 76px 0; } }
.sj-content-sec:nth-of-type(even) { background: var(--mist); }
.sj-content-sec h2::after, .sj-split-sec h2::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px;
  background: var(--gold); margin-top: 14px; }
.sj-content-sec h3, .sj-split-sec h3 { margin-top: 1.4em; }
.sj-content-sec ul, .sj-content-sec ol { padding-left: 1.25em; }
.sj-content-sec li { margin: .4em 0; }
.sj-content-sec ul li::marker { color: var(--teal); }
.sj-split-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) {
  .sj-split-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
  .sj-split-inner.reverse .sj-split-media { order: -1; }
}
.sj-split-sec.alt-bg { background: var(--mist); }
.sj-split-media { position: relative; }
.sj-split-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); }
.sj-split-media::before { content: ""; position: absolute; width: 96px; height: 96px; right: -12px; top: -12px; z-index: -1;
  border-radius: 20px; background: radial-gradient(var(--gold) 2px, transparent 2.5px) 0 0/14px 14px; opacity: .6; }

/* ---------- content components (used inside section html) ---------- */
.sj-feature-grid { display: grid; gap: 18px; margin: 30px 0 8px; counter-reset: feat; }
.sj-feature { padding: 26px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); counter-increment: feat; position: relative; }
.sj-feature::before { content: counter(feat); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 12px; background: var(--gold); color: var(--navy); font: 800 1.15rem/1 var(--display); }
.sj-feature h3 { margin-top: 0 !important; }
.sj-feature p:last-child { margin-bottom: 0; }
@media (min-width: 768px) { .sj-feature-grid { grid-template-columns: repeat(3, 1fr); } }
.sj-tile-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 30px 0 8px; }
@media (min-width: 480px) { .sj-tile-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sj-tile-grid { grid-template-columns: repeat(3, 1fr); } }
.sj-tile { position: relative; display: block; aspect-ratio: 16/11; overflow: hidden; border-radius: var(--r);
  background: var(--navy-2); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.sj-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.sj-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,42,54,.9) 0%, rgba(15,42,54,.05) 62%); }
.sj-tile span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font: 700 1.08rem/1.2 var(--display);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sj-tile span::after { content: "\2192"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font: 700 1rem/1 var(--body); }
.sj-tile:hover img { transform: scale(1.06); }
.sj-tile:hover { color: #fff; }
.sj-tile:not(:has(img)) { aspect-ratio: auto; min-height: 112px; background: var(--navy) linear-gradient(135deg, var(--teal-dk), var(--navy)); }
.sj-steps { display: grid; gap: 16px; margin: 30px 0 8px; counter-reset: step; }
@media (min-width: 768px) { .sj-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sj-steps { grid-template-columns: repeat(3, 1fr); } }
.sj-step { background: var(--white); padding: 24px 22px 22px; border-radius: var(--r); border: 1px solid var(--line);
  position: relative; counter-increment: step; }
.sj-step::before { content: "Step " counter(step); display: inline-block; margin-bottom: 12px; padding: 5px 11px; border-radius: 999px;
  background: var(--sky); color: var(--teal-dk); font: 700 .78rem/1 var(--body); letter-spacing: .03em; }
.sj-step h3 { margin-top: 0 !important; }
.sj-step p:last-child { margin-bottom: 0; }
.sj-band { background: var(--sky); border-radius: var(--r); padding: 24px 24px; margin: 24px 0; border: 1px solid #cfe5ec; }
.band-dark { background: var(--navy); color: #e3edf1; border-color: var(--navy); }
.band-dark a { color: var(--teal-hi); }
.band-dark h3 { color: #fff; }
.sj-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 13px 7px 10px; margin: 0 6px 8px 0; font: 600 .84rem/1 var(--body); color: var(--navy); }
.sj-badge::before { content: "\2713"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-size: .7rem; font-weight: 800; }
table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 20px 0 26px; font-size: .95rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: block; overflow-x: auto; }
@media (min-width: 768px) { table { display: table; } }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--sky); color: var(--navy); font: 700 .9rem/1.3 var(--display); }
tbody tr:hover td { background: #fafcfd; }

/* ---------- service cards (hub) ---------- */
.service-cards-sec { padding: 56px 0; }
.section-title { margin-bottom: 24px; }
.service-cards { display: grid; gap: 16px; }
@media (min-width: 768px) { .service-cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); padding: 24px; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); display: block; transition: transform .15s, box-shadow .15s; }
.card-icon { display: none; }
.card h3 { margin: 0 0 10px; }
.card-link { color: var(--link); font-weight: 700; font-size: .92rem; display: inline-flex; gap: 8px; align-items: center; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- link grid (Available In / Services in this Area) ---------- */
.sj-link-grid { padding: 48px 0; background: var(--sky); }
.sj-link-grid h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.sj-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sj-chips a { color: var(--navy); text-decoration: none; background: var(--white); border: 1px solid #cfe5ec; border-radius: 999px;
  padding: 10px 18px; font: 600 .92rem/1 var(--body); }
.sj-chips a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- FAQ accordion ---------- */
.sj-faqs { padding: 64px 0; background: var(--mist); }
.sj-faq-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .sj-faq-grid { grid-template-columns: .8fr 1.6fr; gap: 56px; align-items: start; }
  .sj-faq-head { position: sticky; top: 120px; } }
.sj-faq-head p:not(.sj-eyebrow) { color: var(--muted); }
.sj-faq-list { display: grid; gap: 10px; }
.sj-faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; }
.sj-faq[open] { box-shadow: var(--shadow); border-color: #c4dbe3; }
.sj-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 18px 0; }
.sj-faq summary::-webkit-details-marker { display: none; }
.sj-faq summary h3 { margin: 0; font-size: clamp(1rem, 1.6vw, 1.12rem); }
.sj-faq-x { width: 32px; height: 32px; flex: none; position: relative; border-radius: 50%; background: var(--sky); }
.sj-faq-x::before { content: ""; position: absolute; left: 50%; top: 44%; width: 8px; height: 8px;
  border-right: 2px solid var(--teal-dk); border-bottom: 2px solid var(--teal-dk); transform: translate(-50%, -50%) rotate(45deg); transition: transform .2s; }
.sj-faq-x::after { content: none; }
.sj-faq[open] .sj-faq-x { background: var(--gold); }
.sj-faq[open] .sj-faq-x::before { top: 56%; transform: translate(-50%, -50%) rotate(-135deg); border-color: var(--navy); }
.sj-faq-a { padding: 0 0 20px; color: #34444c; max-width: 70ch; }

/* ---------- CTA band ---------- */
.sj-cta-band { background: var(--teal-dk) linear-gradient(120deg, var(--navy) 0%, var(--teal-dk) 70%, var(--teal) 100%);
  color: #dcebf0; position: relative; overflow: hidden; padding: 68px 0; }
.sj-cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%;
  border: 60px solid rgba(229,168,35,.12); pointer-events: none; }
.sj-cta-inner { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .sj-cta-inner { grid-template-columns: 1.4fr 1fr; } .sj-cta-actions { justify-content: flex-end; } }
.sj-cta-band .sj-eyebrow { background: rgba(229,168,35,.16); color: #ffd57a; }
.sj-cta-band h2 { color: #fff; }
.sj-cta-band a:not(.sj-btn) { color: #fff; }
.sj-cta-band .sj-btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy); box-shadow: none; }
.sj-cta-band .sj-btn-primary:hover { background: #f0b93c; border-color: #f0b93c; }
.sj-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- blog ---------- */
.sj-post-meta { font-size: .9rem; color: var(--muted); margin: 0; }
.sj-toc { background: var(--sky); border-radius: var(--r); padding: 22px 26px; }
.sj-toc-h { font: 800 1.05rem/1 var(--display); margin: 0 0 12px; color: var(--navy); }
.sj-toc ol { margin: 0; padding-left: 1.3em; }
.sj-toc li { margin: 6px 0; }
.sj-callout { background: var(--navy); color: #dbe7ec; padding: 26px 26px; border-radius: var(--r); }
.sj-callout strong { color: #fff; }
.sj-callout-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sj-callout .sj-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.sj-callout .sj-btn-ghost:hover { background: #fff; color: var(--navy); }
.sj-keep-reading, .related-guides { padding: 56px 0; background: var(--mist); }
.sj-post-cards, .guide-cards { display: grid; gap: 18px; }
@media (min-width: 768px) { .sj-post-cards, .guide-cards { grid-template-columns: repeat(3, 1fr); } }
.sj-post-card, .guide-card { background: var(--white); text-decoration: none; color: var(--text); display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.sj-post-card img, .guide-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.sj-pc-title, .guide-card span { font: 700 1.05rem/1.3 var(--display); color: var(--navy); padding: 18px 18px 6px; }
.sj-pc-read { color: var(--link); font-weight: 700; font-size: .88rem; padding: 0 18px 18px; margin-top: auto; }
.sj-post-card:hover .sj-pc-title { color: var(--teal); }
.sj-blog-cta { padding: 56px 0; background: var(--sky); }

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

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

/* ---------- footer ---------- */
.sj-site-footer { background: var(--navy); color: #b9c9d0; font-size: .95rem; }
.sj-footer-cols { display: grid; gap: 36px; padding-top: 60px; padding-bottom: 44px; }
@media (min-width: 768px) { .sj-footer-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sj-footer-cols { grid-template-columns: 1.4fr 1fr 1fr .9fr; } }
.sj-foot-logo { height: 40px; width: auto; margin-bottom: 16px; }
.sj-foot-h { font: 800 1.02rem/1 var(--display); color: #fff; margin: 0 0 16px; }
.sj-foot-h::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--gold); margin-top: 10px; }
.sj-site-footer ul { list-style: none; margin: 0; padding: 0; }
.sj-site-footer li { margin: 0 0 9px; }
.sj-site-footer a { color: #d7e4e9; text-decoration: none; }
.sj-site-footer a:hover { color: var(--gold); }
.sj-foot-call { display: inline-flex; align-items: center; gap: 8px; font: 800 1.4rem/1 var(--display); color: #fff !important; }
.sj-foot-hours { display: flex; align-items: center; gap: 8px; }
.sj-counties { color: #9fb3bb; }
.sj-sub-foot { border-top: 1px solid var(--line-dark); font-size: .84rem; color: #9fb3bb; }
.sj-sub-foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 18px; }
.sj-sub-foot p { margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.sj-sub-foot p:first-child { display: block; }
.sj-sub-foot a { color: #c9d8de; }

/* ---------- mobile call bar (floating pill) ---------- */
.sj-mobile-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: grid; grid-template-columns: 1fr 1fr;
  height: 56px; margin-bottom: env(safe-area-inset-bottom); border-radius: 999px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,42,54,.35); }
.sj-mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font: 800 .95rem/1 var(--display); white-space: nowrap; }
.sj-mb-call { background: var(--gold); color: var(--navy); }
.sj-mb-quote { background: var(--teal); color: #fff; }
@media (min-width: 768px) { .sj-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 */
.sj-content-sec .sj-narrow:has(.sj-feature-grid, .sj-tile-grid, .sj-steps, table, .sj-estimator) { max-width: var(--wrap); }
.sj-content-sec .sj-narrow:has(.sj-feature-grid, .sj-tile-grid, .sj-steps, table, .sj-estimator) > p,
.sj-content-sec .sj-narrow:has(.sj-feature-grid, .sj-tile-grid, .sj-steps, table, .sj-estimator) > ul { max-width: 820px; }

/* Blog: byline + table of contents sit tight under the page head */
.sj-content-sec:has(.sj-post-meta) { padding: 18px 0; background: var(--white); }
.sj-content-sec:has(.sj-toc) { padding: 30px 0 8px; background: var(--white); }
.sj-content-sec:has(.sj-callout) { padding: 8px 0 40px; }

/* Keep nav labels and the phone button on one line; tighten nav between 1024 and 1279px */
.sj-main-nav > a, .sj-has-drop > a, .sj-call-btn { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .sj-main-nav { gap: 16px; }
  .sj-main-nav > a, .sj-has-drop > a { font-size: .88rem; }
  .sj-brand-logo { height: 38px; }
}
@media (min-width: 1024px) and (max-width: 1179px) {
  .sj-main-nav { gap: 12px; }
  .sj-main-nav > a, .sj-has-drop > a { font-size: .82rem; }
  .sj-brand-logo { height: 34px; }
  .sj-call-btn { padding: 0 14px; font-size: .92rem; }
}
@media (min-width: 1024px) { .sj-brand { flex-shrink: 0; } .sj-brand-logo { max-width: none; } }

/* ---------- railing price estimator (static/js/estimator.js) ---------- */
.sj-estimator { margin: 30px 0 8px; }
.sj-est-fallback { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.sj-est-grid { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
@media (min-width: 1024px) { .sj-est-grid { grid-template-columns: 1.35fr 1fr; overflow: visible; } }
.sj-est-steps { padding: 8px 22px 22px; margin: 0; }
.sj-est-steps fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 20px 0; }
.sj-est-steps fieldset:last-child { border-bottom: 0; }
.sj-est-steps legend { font: 800 1.05rem/1 var(--display); color: var(--navy);
  display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; float: left; width: 100%; }
.sj-est-steps legend + * { clear: both; }
.sj-est-steps legend span { background: var(--gold); color: var(--navy); width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .85rem; }
.sj-est-opts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sj-est-opts-wide { grid-template-columns: 1fr; }
@media (min-width: 768px) { .sj-est-opts-wide { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.sj-est-opt { position: relative; cursor: pointer; }
.sj-est-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sj-est-opt span { display: block; height: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--mist); padding: 12px 14px; }
.sj-est-opt strong { display: block; font-size: .96rem; }
.sj-est-opt em { display: block; font-style: normal; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.sj-est-opt input:checked + span { border: 2px solid var(--teal); background: #fff; padding: 11px 13px; box-shadow: 0 0 0 4px rgba(14,111,138,.12); }
.sj-est-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.sj-est-sec { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin-bottom: 12px; }
.sj-est-sec label:first-child, .sj-est-inline { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.sj-est-steps input[type=number] { width: 120px; font: 600 1rem/1 var(--body); padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--mist); min-height: 46px; }
.sj-est-steps input[type=number]:focus { outline: none; border-color: var(--teal); background: #fff; }
.sj-est-check { display: flex; align-items: center; gap: 10px; font-size: .94rem; margin: 6px 0; cursor: pointer; }
.sj-est-check input { width: 20px; height: 20px; accent-color: var(--teal); }
.sj-est-add, .sj-est-del { background: var(--white); border: 1px dashed #9fb3bb; border-radius: var(--r-sm); padding: 10px 14px; font: 700 .86rem/1 var(--body);
  cursor: pointer; color: var(--navy); margin: 4px 0 14px; }
.sj-est-del { border-style: solid; margin: 0; padding: 8px 10px; }
.sj-est-add:hover, .sj-est-del:hover { border-color: var(--teal); color: var(--teal-dk); }
.sj-est-result { background: var(--navy); color: #dbe7ec; padding: 26px 24px; }
@media (min-width: 1024px) { .sj-est-result { position: sticky; top: 96px; align-self: start; border-radius: 0 18px 18px 0; } }
.sj-est-kicker { font: 700 .8rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.sj-est-total { font: 800 clamp(1.9rem, 3.6vw, 2.6rem)/1.05 var(--display); letter-spacing: -.02em; color: #fff; margin: 0 0 6px; }
.sj-est-total span { font-size: .5em; color: #9fb3bb; vertical-align: middle; }
.sj-est-perft { color: #9fb3bb; font-size: .9rem; margin: 0 0 16px; }
.sj-est-lines, .sj-est-notes { list-style: none; margin: 0 0 14px; padding: 0; font-size: .88rem; }
.sj-est-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-dark); }
.sj-est-lines b { color: #fff; white-space: nowrap; }
.sj-est-notes li { padding: 8px 12px; background: rgba(255,255,255,.06); border-radius: 8px; margin: 6px 0; color: #cfdde3; }
.sj-est-promise { font: 700 1rem/1.3 var(--display); color: var(--teal-hi); margin: 14px 0 16px; }
.sj-est-send { display: grid; gap: 8px; border-top: 1px solid var(--line-dark); padding-top: 16px; }
.sj-est-send-h { font: 800 1.02rem/1.1 var(--display); color: #fff; margin: 0 0 4px; }
.sj-est-send input { width: 100%; font: 400 1rem/1.3 var(--body); padding: 13px; border: 1px solid #2c4d5b; border-radius: var(--r-sm); background: #0a1f28; color: #fff; min-height: 48px; }
.sj-est-send input::placeholder { color: #8fa5ae; }
.sj-est-send input:focus { outline: none; border-color: var(--teal-hi); }
.sj-est-fine { font-size: .8rem; color: #9fb3bb; margin: 4px 0 0; }
.sj-est-fine a { color: var(--teal-hi); }

/* Mobile overflow guards: grid children may shrink below their content (tables scroll inside) */
.sj-split-inner > *, .sj-hero-inner > *, .sj-faq-grid > *, .sj-cta-inner > *, .sj-est-grid > *, .sj-footer-cols > * { min-width: 0; }
@media (max-width: 1023px) { .sj-split-media { margin-right: 12px; } }

/* Spam protection: honeypot field kept off-screen (not display:none, so naive bots still fill it) */
.sj-hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sj-intake-form, .sj-est-send { position: relative; }
/* Cloudflare Turnstile widget spacing */
.cf-turnstile { min-height: 65px; margin: 2px 0 4px; }

/* ---------- mobile header: logo + round call icon + menu, never wider than the screen ---------- */
@media (max-width: 767px) {
  .sj-header-inner { gap: 10px; min-height: 66px; }
  .sj-brand { min-width: 0; flex: 1 1 auto; }
  .sj-brand-logo { height: auto; width: 100%; max-width: 230px; max-height: 40px; object-fit: contain; object-position: left center; }
  .sj-call-btn { width: 46px; min-height: 46px; padding: 0; justify-content: center; flex: none; }
  .sj-call-btn .sj-ico { width: 22px; height: 22px; }
  .sj-call-num { display: none !important; }
  .sj-nav-burger { flex: none; }
}
