/*
Theme Name: Redwood City Security Shores
Template: premium-commercial
Version: 1.0.0
Description: Redwood City Security site theme, generated by tools/new_site_builder.py from site-builds/redwoodcitysecurity/site.py.
Text Domain: redwood-city-security-shores
*/
/* Shared new-site layout. Per-site tokens set palette and type; hero styles: stack (North), below (Foundry/Sol/Paper),
   formleft (Atlas), overlay (Beacon/Summit/Slate/Terra). */
:root {
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: Arial, Helvetica, sans-serif;
  --head: var(--sans);
  --h1-weight: 700;
  --h2-weight: 400;
  --radius: 3px;
  --header-bg: var(--bg);
  --header-ink: var(--ink);
  --dark: var(--ink);
  --btn: var(--ink);
  --btn-ink: #fff;
  --btn-hover: var(--brand-dark);
  --ink: #26282b;
  --bg: #f7f5f3;
  --accent: #f1dad3;
  --tint: #efebe8;
  --brand: #9c3d2a;
  --brand-dark: #17181a;
  --line: #e2ddd9;
  --rule: #c8bfba;
  --muted: #58585c;
  --logo-w: 200px;
  --btn: #9c3d2a;
  --btn-ink: #ffffff;
  --btn-hover: #26282b;
  --dark: #26282b;
  --head: Futura, 'Trebuchet MS', Arial, sans-serif;
  --h1-weight: 500;
  --h2-weight: 500;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; letter-spacing: -0.015em; overflow-wrap: break-word; font-family: var(--head); }
button, input, select, textarea { font-family: var(--sans); }
p { margin: 0 0 1em; }
.ns-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ns-skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.ns-skip:focus { left: 8px; }

/* Buttons */
.ns-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px; border: 1px solid var(--ink);
  border-radius: var(--radius); background: var(--btn); border-color: var(--btn); color: var(--btn-ink); font: 700 15px/1.2 var(--sans); text-decoration: none; white-space: nowrap; }
.ns-btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: #fff; }
.ns-btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.ns-btn-ghost:hover { background: var(--ink); color: #fff; }

/* Header */
.ns-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.ns-header-row { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.ns-logo { flex: 0 0 auto; }
.ns-logo img { width: var(--logo-w, 210px); height: auto; }
.ns-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.ns-nav > ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ns-nav > ul > li > a, .ns-sub > summary { display: flex; align-items: center; gap: 6px; padding: 10px 10px; font-size: 15px; color: var(--header-ink); text-decoration: none; cursor: pointer; list-style: none; border-radius: 3px; }
.ns-sub > summary::-webkit-details-marker { display: none; }
.ns-sub > summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--brand); transition: transform .15s; }
.ns-sub[open] > summary::after { transform: rotate(45deg); }
.ns-nav > ul > li > a:hover, .ns-sub > summary:hover { background: var(--accent); }
.ns-has-sub { position: relative; }
.ns-sub > ul { position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; max-height: 70vh; overflow: auto; list-style: none; margin: 0; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); box-shadow: 0 18px 40px rgba(20, 40, 60, .12); }
.ns-sub li a { display: block; padding: 9px 12px; font-size: 15px; text-decoration: none; border-radius: 2px; }
.ns-sub li a:hover { background: var(--bg); }
.ns-sub .ns-sub-hub a { font-weight: 700; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ns-nav-actions { display: flex; align-items: center; gap: 16px; margin: 0; }
.ns-phone { font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--header-ink); }
.ns-menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; cursor: pointer; color: var(--ink); align-items: center; gap: 4px; }
.ns-menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 2px 0; }
.ns-menu-toggle b { font: 700 13px var(--sans); margin-left: 8px; }
.ns-menu-toggle { flex-direction: column; }
.ns-menu-toggle b { margin: 4px 0 0; }

/* Breadcrumbs */
.ns-crumbs { font-size: 13px; padding: 22px 0 0; color: var(--muted); }
.ns-crumbs a { color: var(--muted); }
.ns-crumbs span { margin: 0 4px; }

/* Hero: image above the headline, form card to the right */
.ns-hero { padding: 0 0 clamp(48px, 7vw, 96px); }
.ns-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: 36px; }
.ns-hero-media { margin: 0 0 30px; aspect-ratio: 16 / 7; overflow: hidden; background: var(--accent); border-radius: var(--radius); }
.ns-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.ns-eyebrow { font: 700 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.ns-hero h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; font-weight: var(--h1-weight); letter-spacing: -0.03em; max-width: 13em; }
.ns-lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; max-width: 38em; margin: 22px 0 0; }
.ns-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.ns-hero-form { background: #fff; border-radius: var(--radius); border-top: 4px solid var(--btn); border-bottom: 1px solid var(--line); padding: 26px 24px 28px; position: sticky; top: 108px;
  --pcq-width: 100%; --pcq-font: var(--sans); --pcq-heading-size: 22px; --pcq-heading-weight: 700; --pcq-text: var(--ink);
  --pcq-border: #9fb0bd; --pcq-control-radius: 2px; --pcq-button-background: var(--btn); --pcq-button-text: var(--btn-ink); --pcq-button-hover: var(--btn-hover); --pcq-button-radius: var(--radius); --pcq-heading-font: var(--head);
  --pcq-focus: var(--brand); --pcq-field-text: var(--ink); --pcq-status-background: var(--accent); }
.ns-hero-form .pcq-grid { gap: 14px 14px; }
.ns-hero-form .pcq-field label { font-size: 12px; margin-bottom: 5px; }
.ns-hero-form .pcq-field input, .ns-hero-form .pcq-field select { min-height: 44px; font-size: 15px; padding: 9px 10px; }
.ns-hero-form .pcq-submit { width: 100%; }
.ns-hero-form .pcq-required { margin-bottom: 12px; }

/* Sections */
.ns-section { padding: clamp(56px, 8vw, 104px) 0; }
.ns-tone-light { background: var(--bg); }
.ns-tone-white { background: #fff; }
.ns-tone-dark { background: var(--dark); color: #eef0f2; }
.ns-tone-dark h2, .ns-tone-dark h3, .ns-tone-dark .ns-eyebrow, .ns-tone-dark a { color: #fff; }
.ns-tone-dark .ns-card { border-top-color: rgba(255, 255, 255, .25); }
.ns-tone-dark .ns-card-label { color: #b9cad6; }
.ns-tone-tint { background: var(--tint); }
.ns-tone-blue { background: var(--accent); }
.ns-head { margin-bottom: clamp(32px, 4vw, 52px); }
.ns-head-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.ns-head h2, .ns-prose h2, .ns-faq h2, .ns-cta h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; font-weight: var(--h2-weight); }
.ns-head-lead { margin: 0; font-size: 17px; max-width: 30em; }
.ns-grid { display: grid; gap: 28px 32px; }
.ns-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ns-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ns-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ns-card { border-top: 1px solid var(--rule); padding-top: 18px; }
.ns-card-label { font: 700 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.ns-card h3 { font-size: 24px; line-height: 1.2; font-weight: var(--h2-weight); margin: 0 0 12px; }
.ns-card p { font-size: 16px; margin: 0 0 16px; }
.ns-more { display: inline-block; font-weight: 700; font-size: 14px; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid currentColor; }

/* Prose */
.ns-prose-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ns-prose-main h2 { margin-bottom: 24px; }
.ns-prose-main p, .ns-prose-main li { max-width: 40em; }
.ns-prose-main ul { padding-left: 1.2em; }
.ns-prose-main li { margin-bottom: .5em; }
.ns-aside { background: #fff; border-top: 4px solid var(--brand); padding: 24px 24px 18px; }
.ns-tone-white .ns-aside { background: var(--bg); }
.ns-aside h3 { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.ns-aside ul { margin: 0; padding-left: 1.1em; }
.ns-aside li { margin-bottom: 8px; font-size: 16px; }

/* FAQ */
.ns-faq-inner { max-width: 820px; }
.ns-faq h2 { margin-bottom: 28px; }
.ns-q { border-bottom: 1px solid var(--rule); }
.ns-q summary { cursor: pointer; padding: 20px 4px 20px 30px; font-size: 18px; position: relative; list-style: none; }
.ns-q summary::-webkit-details-marker { display: none; }
.ns-q summary::before { content: "\25B6"; position: absolute; left: 4px; top: 23px; font-size: 11px; transition: transform .15s; }
.ns-q[open] summary::before { transform: rotate(90deg); }
.ns-a { padding: 0 4px 18px 30px; }

/* Link grid */
.ns-link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; }
.ns-link-grid a { display: flex; justify-content: space-between; padding: 16px 2px; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 18px; }
.ns-link-grid a::after { content: "\2192"; color: var(--brand); }

/* CTA band */
.ns-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ns-cta h2 { max-width: 16em; }
.ns-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }

/* Footer */
.ns-footer { background: var(--dark); color: #d3dee6; padding: 64px 0 28px; font-size: 15px; }
.ns-footer a { color: #fff; text-decoration: none; }
.ns-footer a:hover { text-decoration: underline; color: #fff; }
.ns-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.ns-foot-brand img { width: var(--logo-w, 210px); margin-bottom: 18px; }
.ns-foot-brand p { max-width: 24em; }
.ns-foot-phone { font-size: 20px; font-weight: 700; }
.ns-foot-col h2 { font: 700 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #9fb4c3; margin: 4px 0 16px; }
.ns-foot-col ul { list-style: none; margin: 0; padding: 0; }
.ns-foot-col li { margin-bottom: 10px; }
.ns-foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 13px; color: #9fb4c3; }
.ns-foot-base p { margin: 0; }
.ns-404 h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; }


/* Hero style: below (copy, then image) */
.ns-hs-below .ns-hero-media { margin: 30px 0 0; aspect-ratio: 16 / 9; }
.ns-hs-below .ns-hero-copy { padding-top: 12px; }
/* Hero style: formleft (Atlas) */
.ns-hs-formleft .ns-hero-grid { grid-template-columns: 380px minmax(0, 1fr); }
.ns-hs-formleft .ns-hero-media { margin: 30px 0 0; aspect-ratio: 16 / 9; box-shadow: 18px 18px 0 var(--accent); }
/* Hero style: overlay (full-bleed photo behind the headline) */
.ns-hs-overlay { position: relative; padding: 0; color: #fff; isolation: isolate; }
.ns-hs-overlay .ns-hero-bg { position: absolute; inset: 0; z-index: -1; margin: 0; }
.ns-hs-overlay .ns-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.ns-hs-overlay .ns-hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--overlay, linear-gradient(90deg, rgba(10, 20, 35, .82) 0%, rgba(10, 20, 35, .55) 55%, rgba(10, 20, 35, .25) 100%)); }
.ns-hs-overlay .ns-hero-grid { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); align-items: center; }
.ns-hs-overlay h1, .ns-hs-overlay .ns-eyebrow, .ns-hs-overlay .ns-lead, .ns-hs-overlay .ns-crumbs, .ns-hs-overlay .ns-crumbs a { color: #fff; }
.ns-hs-overlay .ns-crumbs { padding-top: 22px; opacity: .9; }
.ns-hs-overlay .ns-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .8); }
.ns-hs-overlay .ns-btn-ghost:hover { background: #fff; color: var(--ink); }
.ns-hs-overlay .ns-hero-form { color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.ns-hs-overlay.ns-hero-card .ns-hero-copy { position: relative; }

/* Long words never widen a column (e.g. "manufacturing" in a slab face at 320px). */
.ns-hero-grid > *, .ns-grid > *, .ns-prose-grid > *, .ns-head-row > * { min-width: 0; }
.ns-hero h1, .ns-section h2, .ns-card h3 { hyphens: auto; -webkit-hyphens: auto; }

/* Responsive */
@media (max-width: 1100px) {
  .ns-nav > ul > li > a, .ns-sub > summary { padding: 10px 7px; font-size: 14px; }
  .ns-phone { display: none; }
  .ns-logo img { width: 180px; }
}
@media (max-width: 960px) {
  .ns-menu-toggle { display: flex; }
  .ns-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; max-height: calc(100vh - 84px); overflow: auto; gap: 8px; }
  .ns-nav.is-open { display: flex; }
  .ns-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .ns-nav > ul > li { border-bottom: 1px solid var(--line); }
  .ns-nav > ul > li > a, .ns-sub > summary { padding: 14px 4px; font-size: 16px; justify-content: space-between; }
  .ns-sub > ul { position: static; box-shadow: none; border: 0; padding: 0 0 10px 10px; min-width: 0; max-height: none; background: transparent; }
  .ns-nav-actions { justify-content: space-between; padding-top: 12px; }
  .ns-phone { display: inline; }
  .ns-hero-grid, .ns-hs-formleft .ns-hero-grid { grid-template-columns: 1fr; }
  .ns-hs-formleft .ns-hero-form { order: 2; }
  .ns-hs-formleft .ns-hero-media { box-shadow: none; }
  .ns-hero-form { position: static; }
  .ns-head-row, .ns-prose-grid { grid-template-columns: 1fr; gap: 18px; }
  .ns-cols-3, .ns-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ns-foot-grid { grid-template-columns: 1fr 1fr; }
  .ns-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .ns-header-row { min-height: 72px; }
  .ns-logo img { width: 160px; }
  .ns-hero-media { aspect-ratio: 4 / 3; margin-bottom: 22px; }
  .ns-hero-form { padding: 22px 16px 24px; }
  .ns-cols-2, .ns-cols-3, .ns-cols-4 { grid-template-columns: 1fr; }
  .ns-foot-grid { grid-template-columns: 1fr; }
  .ns-hero-actions .ns-btn, .ns-cta-actions .ns-btn { flex: 1 1 100%; }
  .ns-link-grid { grid-template-columns: 1fr; }
  .ns-hero h1 { font-size: clamp(30px, 9.4vw, 40px); }
}

/* Turnstile needs 300px; small phones (portfolio fix, 14 live themes). */
@media (max-width: 374px) { .pcq-verification .cf-turnstile { zoom: .72; } }

/* Plain hero (privacy policy): copy only. */
.ns-hero-grid.ns-no-form { grid-template-columns: minmax(0, 1fr); }
.ns-no-form .ns-hero-copy { max-width: 820px; }

/* Service-area menu: state > region > city, each level alphabetical. */
.ns-sub > ul.ns-grouped { min-width: 300px; }
.ns-grouped .ns-state { padding: 6px 0 4px; }
.ns-state-label { display: block; padding: 10px 12px 4px; font: 700 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.ns-region-label { display: block; padding: 6px 12px 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ns-region ul { list-style: none; margin: 0; padding: 0; }
.ns-region li a { padding: 4px 12px; font-size: 14px; }
.ns-grouped .ns-state + .ns-state { border-top: 1px solid var(--line); margin-top: 4px; }
@media (min-width: 961px) {
  .ns-sub > ul.ns-grouped { width: min(760px, 92vw); left: auto; right: -40px; max-height: 82vh; }
  .ns-regions:has(> .ns-region-flat:only-child) { columns: auto; }
  .ns-region-flat ul { columns: 4 140px; column-gap: 12px; }
  .ns-regions { columns: 3 200px; column-gap: 12px; }
  .ns-region { break-inside: avoid; }
}

/* Site-specific */
.ns-hs-below { background: linear-gradient(90deg, #efe4df 0%, #efe4df 62%, var(--bg) 62%); }
.ns-hero-form { border-top: 4px solid #9c3d2a; }
.ns-eyebrow { color: #9c3d2a; letter-spacing: .18em; }
.ns-tone-dark .ns-eyebrow { color: #e38c79; }
.ns-hero h1 { letter-spacing: .01em; }
