/* spartanhs.net: the single stylesheet.
   Mobile first. Base rules are the phone layout (home-phone board).
   768px: desktop type and spacing, desktop hero.
   1080px: full desktop layout (home-desktop board), inline nav, two-column sections. */

/* ---------- Tokens (CLAUDE.md section 3) ---------- */

:root {
  --navy: #1B3354;          /* matched to the logo SVGs, 2026-10-24 */
  --ink: #0E1621;
  --paper: #F4F5F3;
  --white: #FFFFFF;
  --steel: #555E69;         /* secondary text, labels */
  --text-2: #3A424C;        /* body text on light grounds */
  --on-navy: #DCE3EC;       /* body text on navy */
  --rule: #D5D9DC;
  --rule-strong: #C9CED3;
  --input-border: #8A939C;
  --photo-ph: #2B333D;      /* photo placeholder ground */
  --amber: #F2B705;         /* fills only, never text on white or paper */
}

/* ---------- Fonts: self-hosted, SIL Open Font License (assets/fonts/OFL.txt) ---------- */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overpass Mono";
  src: url("../fonts/overpass-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Overpass Mono";
  src: url("../fonts/overpass-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Overpass", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
}

svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* The skip link moves focus to <main> (tabindex="-1"). It isn't a control, so no ring around the whole page. */
main:focus {
  outline: none;
}

/* Dark grounds: white focus ring, amber link hover */
.hero-panel :focus-visible,
.quote :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

.repair-band :focus-visible {
  outline-color: var(--ink);
}

.quote .contact-list a:hover,
.site-footer a:hover {
  color: var(--amber);
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--navy);
}

/* Labels and data: Overpass Mono, uppercase */
.label,
.header-phone {
  font-family: "Overpass Mono", monospace;
}

.label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.lead {
  font-size: 18px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 56px 0;
}

.skip-link {
  position: absolute;
  top: -200px;
  left: 16px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  color: var(--white);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 22px;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-accent {
  background: var(--amber);
  color: var(--ink);
}

.btn-accent:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-outline-light {
  border: 1.5px solid var(--white);
  background: transparent;
  color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline {
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

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

.site-header {
  background: var(--white);
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
}

.brand {
  flex: 1 1 0;
  min-width: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}

/* Logo: helmet mark, then the wordmark. Sized by height so they keep their shape. */
.brand-mark,
.brand-wordmark {
  flex: none;
  display: block;
  width: auto;
  max-width: none;
}

.brand-mark {
  height: 36px;
}

.brand-wordmark {
  height: 19px;
}

/* Phones narrower than 360px: a smaller logo so the Quote and menu buttons still fit */
@media (max-width: 359px) {
  .brand-mark {
    height: 30px;
  }

  .brand-wordmark {
    height: 16px;
  }
}

/* Phone number and desktop Quote button, shown from 1080px */
.header-actions {
  display: none;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}

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

.header-quote {
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
}

/* Phone shows "Quote", tablet "Request a quote". The aria-label keeps "Request a quote" as the name at every size. */
.quote-long {
  display: none;
}

.menu-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-btn:hover {
  background: var(--paper);
}

/* Menu panel: full width under the header row, pushes the page down.
   The width and negative margins cancel the .container side padding (16px here, 24px from 768px).
   If the container padding changes, change these to match. */
.site-nav {
  display: none;
  width: calc(100% + 32px);
  margin: 0 -16px;
  border-top: 1px solid var(--rule);
}

.menu-btn[aria-expanded="true"] + .site-nav {
  display: block;
}

/* JavaScript off: the menu button can't open the panel, so hide it and show the panel open.
   Two cases still show a button that does nothing: browsers without the scripting query,
   and site.js failing to load. The footer nav has the same links in both.
   Keep this block above the 768px and 1080px blocks, and don't set display on .site-nav
   in the 768px block, or it overrides this at tablet width. */
@media (scripting: none) {
  .menu-btn {
    display: none;
  }

  .site-nav {
    display: block;
  }
}

.site-nav ul {
  list-style: none;
}

.site-nav li + li {
  border-top: 1px solid var(--rule);
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

/* Color change only. An underline on hover was tried and is an available option. */
.site-nav a:hover {
  color: var(--navy);
}

/* The panel links run edge to edge, so the focus ring is drawn inside them */
.site-nav a:focus-visible {
  outline-offset: -3px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-photo {
  position: relative;
  grid-row: 1;
  grid-column: 1;
  min-height: 280px;
  background: var(--photo-ph);
}

/* Fills the photo area. The crop keeps the end terminal and the rail run on the right. */
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

/* Positioned so it paints above the positioned photo where the two overlap (768px and up) */
.hero-inner {
  position: relative;
  grid-row: 2;
  grid-column: 1;
}

.hero-panel {
  padding: 32px 20px;
  background: var(--navy);
  color: var(--white);
}

.hero-lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--on-navy);
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.btn-group .btn {
  min-height: 52px;
  font-size: 17px;
}

/* ---------- Credentials strip ---------- */

.creds {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.creds-inner {
  padding: 0;
}

.creds-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cred {
  padding: 18px 16px;
}

.cred:nth-child(odd) {
  border-right: 1px solid var(--rule);
}

.cred:nth-child(-n+2) {
  border-bottom: 1px solid var(--rule);
}

.cred dd {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Services ---------- */

.section-intro {
  margin-top: 14px;
  color: var(--text-2);
}

.group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
}

.wbeam {
  flex: none;
  stroke: var(--amber);
}

/* Home: one ruled row per group, name over description */
.service-summary {
  margin-top: 36px;
  list-style: none;
  border-bottom: 1px solid var(--rule-strong);
}

.service-summary li {
  padding: 20px 0;
  border-top: 1px solid var(--rule-strong);
}

.service-summary .group-label {
  font-size: 18px;
  font-weight: 700;
}

.service-summary p {
  color: var(--text-2);
}

/* Services page: one row per item */
.service-list {
  list-style: none;
  border-bottom: 1px solid var(--rule-strong);
}

.service-list li {
  padding: 14px 0;
  border-top: 1px solid var(--rule-strong);
}

.service-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.service-note {
  display: block;
  font-size: 15px;
  color: var(--steel);
}

/* Full services page button under the groups: full width on phone, its own width from 768px.
   Must stay after .btn, which it overrides at equal specificity. */
.more-link {
  display: flex;
  min-height: 52px;
  margin-top: 24px;
  font-size: 17px;
}

/* ---------- Where we work ---------- */

.area {
  background: var(--white);
  border-top: 1px solid var(--rule);
}

.area .lead {
  margin-top: 14px;
}

.nj-block {
  margin-top: 28px;
  border: 2px solid var(--navy);
}

/* State name with the county count under it, at every width */
.nj-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--navy);
  color: var(--white);
}

.nj-mark {
  font-size: 44px;
  font-weight: 800;
  line-height: 0.9;
}

.nj-count {
  font-size: 12px;
  color: var(--on-navy);
}

/* Phones narrower than 360px: a smaller state name so "New Jersey" stays on one line */
@media (max-width: 359px) {
  .nj-mark {
    font-size: 38px;
  }
}

/* PA and DE rows under the New Jersey head */
.state-rows {
  list-style: none;
  border-top: 1px solid var(--rule-strong);
}

.state-rows li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 20px;
}

.state-rows li + li {
  border-top: 1px solid var(--rule-strong);
}

.state-mark {
  flex: 0 0 52px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
}

.state-area {
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
}

/* The 21 counties, on the About page */
.county-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  padding: 16px 20px 20px;
  font-size: 15px;
  color: var(--text-2);
}

.area-sub {
  margin: 32px 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.customer-list {
  padding-left: 18px;
  columns: 2;
  column-gap: 20px;
  color: var(--text-2);
}

.customer-list li {
  break-inside: avoid;
}

/* ---------- After-hours repair band ---------- */

.repair-band {
  background: var(--amber);
  color: var(--ink);
}

/* Band padding is 32px phone and 36px desktop, smaller than the 56/96px section padding.
   Approved exception from the mockup, kept for now so the band stays compact. */
.repair-inner {
  padding-top: 32px;
  padding-bottom: 32px;
}

/* Standard H2 scale (32px phone, 40px desktop); ink instead of navy on the amber ground */
.repair-text h2 {
  color: var(--ink);
}

.repair-text p {
  margin-top: 8px;
}

.repair-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  margin-top: 20px;
  padding: 8px 24px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.repair-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.repair-btn-label {
  font-size: 12px;
  color: var(--rule-strong);
}

.repair-btn-number {
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- About and careers ---------- */

.about .lead {
  margin-top: 14px;
}

.data-strip {
  margin-top: 24px;
  border-top: 1px solid var(--rule-strong);
}

.data-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-strong);
}

.data-item dd {
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}

/* Photo A-01, below the data strip on phones and tablets (desktop placement is in the 1080px block) */
.about-photo {
  margin-top: 28px;
  background: var(--photo-ph);
}

.about-photo img {
  display: block;
  width: 100%;
}

.careers-card {
  margin-top: 32px;
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-top: 4px solid var(--navy);
}

.careers-card h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.careers-card p {
  margin-top: 10px;
  color: var(--text-2);
}

.careers-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 700;
}

/* ---------- Quote request ---------- */

.quote {
  background: var(--navy);
  color: var(--white);
}

.quote h2 {
  color: var(--white);
}

.quote-info p {
  margin-top: 14px;
  color: var(--on-navy);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.contact-item-wide {
  grid-column: 1 / -1;
}

.contact-list dd {
  font-weight: 700;
}

/* 44px tap area, with the text at the top so a link and a plain value side by side line up */
.contact-list a {
  display: inline-flex;
  align-items: flex-start;
  min-height: 44px;
}

/* Contact list on the navy band. The Privacy page uses the same list on a light ground, with the
   default navy links and steel labels. The amber hover is with the other dark-ground rules above. */
.quote .contact-list {
  margin-top: 24px;
}

.quote .contact-list dt {
  color: var(--on-navy);
}

.quote .contact-list a {
  color: var(--white);
}

/* Email and Call buttons in place of the form. Stacked and full width on phone, a row from 768px. */
.quote-direct {
  margin-top: 28px;
}

/* ---------- Text pages (privacy, services, not found) ---------- */

.legal h1,
.svc-page h1,
.not-found h1 {
  color: var(--navy);
}

/* Not-found page: the page is short, so main stretches and the footer sits at the bottom of the screen */
.not-found-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.not-found-page main {
  flex: 1 0 auto;
}

/* W-beam mark beside the Services heading, as on the home guide rail group */
.svc-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Ruled rows: heading over text on phone, heading column and text column from 1080px */
.legal-list,
.svc-list {
  margin-top: 32px;
  border-bottom: 1px solid var(--rule-strong);
}

.legal-item,
.svc-item {
  padding: 24px 0;
  border-top: 1px solid var(--rule-strong);
}

/* Even line lengths, so a two-line heading doesn't leave one word on its own */
.legal-item h2,
.svc-item h2 {
  text-wrap: balance;
}

.legal-body {
  margin-top: 12px;
  color: var(--text-2);
}

.legal-body p + p {
  margin-top: 12px;
}

.svc-body {
  margin-top: 12px;
}

.svc-body > p {
  color: var(--text-2);
}

/* The group's own rule closes the list, so the list needs no bottom rule of its own */
.svc-body .service-list {
  margin-top: 16px;
  border-bottom: 0;
}

/* Photos S-01 and S-02 in the guide rail row: after the list on phones, two across from 768px,
   stacked under the heading from 1080px */
.svc-photos {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.svc-photos img {
  display: block;
  width: 100%;
  background: var(--photo-ph);
}

.svc-actions {
  margin-top: 40px;
}

/* About page: description spaced as on the home About section, at a readable line length.
   The not-found page uses the same spacing. */
.about-page .lead,
.not-found .lead {
  max-width: 720px;
  margin-top: 14px;
}

/* About page: credentials as rows, label over value, at every width.
   The surrounding row's rules frame the list, so it has rules only between items. */
.data-rows {
  margin-top: 0;
  border-top: 0;
}

.data-rows .data-item {
  display: block;
  border-bottom: 0;
}

.data-rows .data-item:first-child {
  padding-top: 0;
}

.data-rows .data-item + .data-item {
  border-top: 1px solid var(--rule-strong);
}

.data-rows dd {
  margin-top: 4px;
  text-align: left;
}

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

.site-footer {
  padding: 40px 0 24px;
  background: var(--ink);
  color: var(--rule-strong);
  font-size: 15px;
}

.site-footer a {
  color: var(--white);
}

/* Footer logo: the header's two SVG files at the header's size, turned white on the ink ground */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  flex: none;
  display: block;
  width: auto;
  max-width: none;
  filter: brightness(0) invert(1);
}

.footer-mark {
  height: 36px;
}

.footer-wordmark {
  height: 19px;
}

.footer-wbeam {
  margin-top: 12px;
}

.footer-wbeam + p {
  margin-top: 8px;
}

.footer-nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  margin-top: 24px;
}

/* 44px rows at every width (the desktop mockup had 32px) so footer links suit touch screens */
.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  text-decoration: none;
}

.footer-contact {
  list-style: none;
  margin-top: 20px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-contact a[href^="tel:"] {
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--photo-ph);
  font-size: 13px;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--rule-strong);
}

/* ---------- 768px and up: desktop type and spacing ---------- */

@media (min-width: 768px) {
  h2 {
    font-size: 40px;
  }

  .lead {
    font-size: 19px;
  }

  .container {
    padding: 0 24px;
  }

  .section {
    padding: 96px 0;
  }

  /* Header: still the menu button below 1080px, full quote label */
  .brand {
    min-height: 76px;
    gap: 12px;
  }

  .brand-mark {
    height: 44px;
  }

  .brand-wordmark {
    height: 24px;
  }

  .header-inner {
    column-gap: 16px;
  }

  .header-quote {
    padding: 0 18px;
  }

  .quote-short {
    display: none;
  }

  .quote-long {
    display: inline;
  }

  .site-nav {
    width: calc(100% + 48px);
    margin: 0 -24px;
  }

  .site-nav a {
    padding: 0 24px;
  }

  /* Hero: photo fills the section, navy panel bottom left */
  .hero {
    grid-template-rows: auto 1fr auto;
    min-height: 600px;
  }

  .hero-photo {
    grid-row: 1 / -1;
    min-height: 0;
  }

  .hero-inner {
    grid-row: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 0;
  }

  .hero-panel {
    max-width: 720px;
    padding: 40px 40px 36px;
  }

  .hero-lead {
    max-width: 560px;
    margin-top: 20px;
  }

  .btn-group {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 28px;
  }

  .btn-group .btn {
    min-height: 48px;
    font-size: 16px;
  }

  /* Credentials: 2 x 2 until 1080px */
  .creds-inner {
    padding: 0 24px;
  }

  .cred {
    padding: 22px 24px;
  }

  .cred:nth-child(odd) {
    padding-left: 0;
  }

  .cred dd {
    font-size: 16px;
  }

  /* Services */
  .section-intro {
    margin-top: 20px;
  }

  .service-summary {
    margin-top: 40px;
  }

  .service-summary li {
    padding: 24px 0;
  }

  .service-summary .group-label {
    font-size: 19px;
  }

  .service-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 24px;
    padding: 16px 0;
  }

  .service-name {
    font-size: 19px;
  }

  .more-link {
    display: inline-flex;
    min-height: 48px;
    margin-top: 32px;
    font-size: 16px;
  }

  /* Where we work */
  .area .lead {
    margin-top: 20px;
  }

  .nj-head {
    gap: 16px;
    padding: 24px;
  }

  .nj-mark {
    font-size: 64px;
  }

  .state-rows li {
    gap: 16px;
    padding: 16px 24px;
  }

  .state-mark {
    flex-basis: 64px;
    font-size: 40px;
  }

  .county-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 16px;
    padding: 20px 24px 24px;
  }

  .area-sub {
    margin: 40px 0 12px;
  }

  .customer-list {
    column-gap: 32px;
  }

  /* Repair band: text and button in one row where they fit (about 1060px and up).
     Narrower, the button wraps below the text. */
  .repair-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 48px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .repair-text p {
    margin-top: 6px;
  }

  .repair-btn {
    display: inline-flex;
    gap: 14px;
    min-height: 56px;
    margin-top: 0;
  }

  .repair-btn-number {
    font-size: 26px;
  }

  /* About: label over value, two across */
  .about .lead {
    margin-top: 28px;
  }

  .data-strip {
    display: flex;
    margin-top: 28px;
    border-bottom: 1px solid var(--rule-strong);
  }

  .data-item {
    flex: 1 1 0;
    display: block;
    padding: 16px;
    border-bottom: 0;
  }

  .data-item:first-child {
    padding-left: 0;
  }

  .data-item dd {
    font-size: 20px;
    text-align: left;
  }

  .careers-card {
    margin-top: 48px;
    padding: 32px;
  }

  .careers-card h3 {
    font-size: 26px;
  }

  .careers-card p {
    margin-top: 12px;
  }

  .careers-link {
    margin-top: 12px;
  }

  /* Quote */
  .quote-info p {
    max-width: 480px;
    margin-top: 20px;
  }

  /* Text pages */
  .legal-list,
  .svc-list {
    margin-top: 48px;
  }

  .legal-item,
  .svc-item {
    padding: 32px 0;
  }

  .svc-actions {
    margin-top: 48px;
  }

  .svc-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-page .lead,
  .not-found .lead {
    margin-top: 28px;
  }

  /* About page: the credentials stay as rows, not the two-across strip */
  .data-rows {
    display: block;
    margin-top: 0;
    border-bottom: 0;
  }

  .data-rows .data-item {
    padding: 16px 0;
  }

  .data-rows .data-item:first-child {
    padding-top: 0;
  }

  /* Footer: three columns */
  .site-footer {
    padding: 56px 0 28px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
    gap: 40px;
  }

  .footer-nav ul {
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  .footer-nav a {
    font-size: 15px;
  }

  .footer-contact {
    margin-top: 0;
  }

  .footer-bottom {
    margin-top: 40px;
    padding-top: 12px;
  }
}

/* ---------- 1080px and up: full desktop layout ---------- */
/* site.js uses the same 1080px value to reset the phone menu. Change both together. */

@media (min-width: 1080px) {
  /* Header: inline nav and phone, no menu button */
  .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    column-gap: 24px;
  }

  .brand {
    flex: none;
  }

  .menu-btn,
  .header-quote-mobile {
    display: none;
  }

  .site-nav {
    display: block;
    width: auto;
    margin: 0;
    border-top: 0;
  }

  .site-nav ul {
    display: flex;
    gap: 28px;
  }

  .site-nav li + li {
    border-top: 0;
  }

  .site-nav a {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
  }

  /* Inline nav links have no padding, so the ring goes back outside the text */
  .site-nav a:focus-visible {
    outline-offset: 2px;
  }

  .header-actions {
    display: flex;
  }

  /* Credentials: four across */
  .creds-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cred:nth-child(-n+2) {
    border-bottom: 0;
  }

  .cred:nth-child(odd) {
    padding-left: 24px;
  }

  .cred:first-child {
    padding-left: 0;
  }

  .cred:not(:last-child) {
    border-right: 1px solid var(--rule);
  }

  /* Services: heading column, then the group rows with the button under them */
  .services-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-rows: auto auto 1fr auto;
    column-gap: 48px;
  }

  .services-inner > h2 {
    grid-column: 1;
    grid-row: 1;
  }

  .services-inner > .section-intro {
    grid-column: 1;
    grid-row: 2;
    max-width: 340px;
  }

  .services-inner > .more-link {
    grid-column: 2;
    grid-row: 4;
    justify-self: start;
  }

  .service-summary {
    grid-column: 2;
    grid-row: 1 / 4;
    margin-top: 0;
  }

  /* Where we work: text column, NJ block column */
  .area-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 56px;
  }

  .area-inner > h2 {
    grid-column: 1;
    grid-row: 1;
  }

  .area-inner > .lead {
    grid-column: 1;
    grid-row: 2;
    max-width: 520px;
  }

  .area-inner > .area-sub {
    grid-column: 1;
    grid-row: 3;
  }

  .area-inner > .customer-list {
    grid-column: 1;
    grid-row: 4;
  }

  .nj-block {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: start;
    margin-top: 0;
  }

  /* About: main column; careers card column with the photo under the card */
  .about-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    align-items: start;
  }

  .about-main {
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .careers-card {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }

  .about-photo {
    grid-column: 2;
    grid-row: 2;
    margin-top: 24px;
  }

  /* Quote: heading and text on the left. On the right, the buttons and then the contact list, while
     the form is off. Phones and tablets show the same order in one column. */
  .quote-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 48px;
    align-items: start;
  }

  .quote-info {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .quote-info p {
    max-width: 380px;
  }

  .quote-direct {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }

  .quote .contact-list {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 36px;
  }

  /* Text pages: heading column, text column */
  .legal-item,
  .svc-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 48px;
  }

  .legal-body,
  .svc-body {
    margin-top: 0;
  }

  /* Guide rail row: the photos sit under the heading, and the text column spans both rows.
     The 1fr row takes the text column's extra height, so the photos stay right under the heading. */
  .svc-item-photos {
    grid-template-rows: auto 1fr;
  }

  .svc-item-photos .svc-body {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .svc-photos {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Read by screen readers, not shown */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Windows high contrast replaces the header's white, which would hide the navy logo. Keep a white ground
   behind the logo images only, so the link's focus ring stays under the system's control.
   The footer's white logo gets its ink ground back the same way, or a light theme would hide it.
   High contrast also drops background fills, so the filled buttons get a border there; without it they
   read as plain text. The outline buttons already have one. */
@media (forced-colors: active) {
  .brand-mark,
  .brand-wordmark {
    forced-color-adjust: none;
    background: var(--white);
  }

  .footer-logo img {
    forced-color-adjust: none;
    background: var(--ink);
  }

  .btn-primary,
  .btn-accent,
  .repair-btn {
    border: 1px solid currentColor;
  }
}

/* No animation or transitions are used. This guards against any added later. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
