/* Low Volt NYC — "quiet professional" theme (v6)
   v4's palette with the brand blue folded back in: a muted steel navy
   (derived from the original #2382ff) carries the wordmark, bolt, and
   H1/H2 headings. Warm paper, graphite, and brass are unchanged.
   Pure CSS, no dependencies. System font stack. Mobile-first. */

:root {
  --bg: #f2f0ea;             /* warm paper — softer than white */
  --bg-alt: #e9e6dd;
  --bg-card: #f8f6f0;
  --border: #ddd9cd;
  --border-strong: #c9c4b5;
  --text: #23262b;           /* deep graphite */
  --text-muted: #575c64;
  --ink-fill: #23262b;       /* graphite surfaces (buttons, call bar) */
  --ink-fill-hover: #33373e;
  --on-ink: #f4f2ee;         /* off-white text on graphite */
  --brass: #a8813f;          /* muted brass — thin rules, markers, icon strokes */
  --brass-text: #6f5526;     /* brass as *text* on paper (AA) */
  --brass-soft: #c9a35f;     /* brass on graphite surfaces */
  --navy: #1e4e79;           /* steel navy — brand blue muted for paper (7.6:1 AA/AAA) */
  --brand-blue: #2382ff;     /* original vivid brand blue — decoration-only nod */
  --accent: #ffb020;         /* v3 amber — CTA fills (call banner, primary button) */
  --accent-deep: #e69500;    /* v3 amber — bolt icon, hovers, hairlines on amber */
  --accent-text: #96600a;    /* v3 amber as text on paper (AA) — NYC, kickers */
  --accent-ink: #14100a;     /* text on amber fills */
  --max-width: 68rem;
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--brass-text);
}

a:hover {
  color: var(--text);
  text-decoration-color: var(--brand-blue); /* small nod to the original brand blue */
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.85rem, 5.5vw, 2.9rem);
  font-weight: 750;
  color: var(--navy);
}

h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 700;
  color: var(--navy);
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
}

p {
  margin: 0 0 1em;
}

.muted {
  color: var(--text-muted);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 240, 234, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.9rem;
  flex-wrap: wrap;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--navy);
}

.brand .bolt {
  color: var(--accent-deep);
  flex: none;
}

.brand span.nyc {
  color: var(--accent-deep);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  box-shadow: 0 1px 0 0 var(--brass);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--ink-fill);
  color: var(--on-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
}

.header-phone svg {
  color: var(--brass-soft);
}

.header-phone:hover {
  background: var(--ink-fill-hover);
  color: var(--on-ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent-deep);
}

.btn-primary svg {
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--accent-ink);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--text);
}

.btn-xl {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  padding: 1.1rem 2rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero .kicker {
  display: inline-block;
  color: var(--brass-text);
  font-weight: 650;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.3rem;
}

.hero h1 {
  max-width: 46rem;
}

.hero p.lede {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 2.25rem;
}

.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
}

.trust-strip svg {
  color: var(--brass);
  flex: none;
}

/* ---------- Sections ---------- */

section {
  padding: 4rem 0;
}

main > section + section,
main > .trust-strip + section {
  border-top: 1px solid var(--border);
}

.section-kicker {
  color: var(--brass-text);
  font-weight: 650;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 0.5rem;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 1.4rem;
  height: 1px;
  background: var(--brass);
  vertical-align: 0.28em;
  margin-right: 0.55rem;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 120ms ease;
}

.card:hover {
  border-color: var(--brass);
  color: var(--text);
}

.card .icon {
  color: var(--brass);
  margin-bottom: 0.9rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

.card .more {
  color: var(--brass-text);
  font-weight: 650;
  font-size: 0.92rem;
}

/* ---------- Process strip ---------- */

.process {
  list-style: none;
  counter-reset: step;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  position: relative;
}

.process li {
  counter-increment: step;
  position: relative;
  padding-left: 3.4rem;
}

.process li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--brass-text);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brass);
}

/* connecting line: vertical on mobile */
.process li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.2rem - 0.5px);
  top: 2.6rem;
  bottom: -1.5rem;
  width: 1px;
  background: var(--border-strong);
}

.process strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.process span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Why us ---------- */

.claims {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.claims li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--brass);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.claims strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.claims span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Service area / NYC map ---------- */

.area-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
}

.nyc-map {
  display: block;
  margin: 0 auto;
  max-width: 24rem;
  width: 100%;
  height: auto;
}

/* ---------- Contact / CTA band ---------- */

.cta-band {
  text-align: center;
  background: var(--bg-alt);
}

.cta-band .lede {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 2.25rem 0 2.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.site-footer .phone {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

/* ---------- Service pages ---------- */

.page-hero {
  padding: 3.5rem 0 2.75rem;
}

.page-hero .breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.page-hero .breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  color: var(--text);
}

.page-hero p.lede {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 44rem;
}

article.service-body {
  padding: 3rem 0;
  max-width: 46rem;
}

article.service-body h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

article.service-body ul {
  padding-left: 1.25rem;
  color: var(--text);
}

article.service-body li {
  margin-bottom: 0.4rem;
}

article.service-body li::marker {
  color: var(--brass);
}

.inline-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent-deep);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2.25rem 0 0;
}

.inline-cta p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* ---------- 404 ---------- */

.page-404 {
  min-height: 55vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.page-404 .wrap {
  width: 100%;
}

/* ---------- Sticky mobile call bar ---------- */

.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--accent-deep);
  box-shadow: 0 -2px 10px rgba(35, 38, 43, 0.18);
}

.mobile-call-bar svg {
  color: var(--accent-ink);
}

.mobile-call-bar:hover {
  color: var(--accent-ink);
}

@media (max-width: 767.98px) {
  .mobile-call-bar {
    display: flex;
  }

  body {
    padding-bottom: 4rem; /* keep footer clear of the fixed call bar */
  }
}

/* ---------- Utilities ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--text);
  color: var(--on-ink);
  padding: 0.5rem 1rem;
  z-index: 100;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .claims {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer .wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .trust-strip li {
    font-size: 0.95rem;
  }
}

@media (min-width: 720px) {
  /* process strip goes horizontal with a connecting line */
  .process {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .process li {
    padding-left: 0;
    padding-top: 3.3rem;
  }

  .process li::before {
    top: 0;
    left: 0;
  }

  .process li:not(:last-child)::after {
    left: 2.7rem;
    right: -1rem;
    top: calc(1.2rem - 0.5px);
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

@media (min-width: 800px) {
  .area-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 520px) {
  .site-nav {
    display: none; /* small screens: brand + phone CTA only */
  }
}

/* ---------- Quote form (cta-band) ---------- */

.quote-form {
  max-width: 34rem;
  margin: 0 auto 2rem;
  text-align: left;
}

.quote-form label {
  display: block;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form .btn {
  width: 100%;
  justify-content: center;
  border: 1px solid var(--accent-deep);
  cursor: pointer;
}

.qf-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.qf-status {
  margin: 0.75rem 0 0;
  font-weight: 650;
  min-height: 1.4em;
}

.qf-status.ok { color: var(--navy); }
.qf-status.err { color: #8a2e2e; }

.qf-or {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

@media (min-width: 640px) {
  .qf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* ---------- Footer legal line (privacy / terms) ---------- */

.footer-legal {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.footer-legal p {
  margin: 0;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--text);
  text-decoration: underline;
}
