/* Switchgear Builders Ohio — responsive commercial redesign.
   Retains the existing layout classes; no scripts or image changes required. */
:root {
  color-scheme: light;
  --navy: #0B2545;
  --red: #B31942;
  --red-hover: #8d1434;
  --ink: #172b40;
  --ink-deep: #0B2545;
  --slate: #334a60;
  --steel: #607386;
  --orange: #B31942; /* Legacy component variable, now the red accent. */
  --paper: #fff;
  --wash: #f4f7fa;
  --line: #d6dfe8;
  --muted: #465b6e;
  --container: 1420px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
::selection { background: #f4c8d4; color: var(--navy); }
.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: 10px; z-index: 100; transform: translateY(-180%); padding: 12px 16px; background: #fff; color: var(--navy); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

/* Navy identity, high-contrast navigation, and a red phone on white. */
.site-header { background: var(--navy); color: #fff; }
.site-header::after, .site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(to bottom, var(--red) 0 2px, #fff 2px 4px, var(--navy) 4px 6px);
}
.utility-bar { background: var(--navy); color: #fff; border-bottom: 1px solid #ffffff3d; }
.utility-bar__inner { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 6px; }
.utility-bar p, .utility-bar a { margin: 0; line-height: 1.3; text-decoration: none; }
.utility-bar p { min-width: 0; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.utility-bar a { flex: 0 0 auto; padding: 8px 10px; background: #fff; color: var(--red); font-size: 12px; font-weight: 800; white-space: nowrap; }
.utility-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.utility-phone-label { display: none; color: var(--navy); font-weight: 400; margin-right: 7px; }
.utility-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--red); vertical-align: 1px; }
.header-inner { padding-top: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; color: #fff; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden; color: #fff; background: var(--red); font-size: 23px; font-weight: 800; font-style: italic; line-height: 1; }
.brand-mark::before { content: ""; position: absolute; width: 4px; height: 70px; right: 3px; top: -15px; transform: rotate(29deg); background: #fff; opacity: .85; }
.brand-mark span { position: relative; transform: translateX(-2px); }
.brand-type { display: flex; flex-direction: column; gap: 4px; line-height: 1; letter-spacing: .065em; white-space: nowrap; }
.brand-type strong { font-size: 14px; font-weight: 800; }
.brand-type > span { font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.brand-type b { padding: 1px 3px; color: var(--red); background: #fff; }
.primary-nav { display: flex; align-items: center; justify-content: flex-start; gap: 24px; margin: 12px -18px 0; padding: 0 18px; overflow-x: auto; scrollbar-width: thin; }
.primary-nav a { position: relative; flex: 0 0 auto; padding: 13px 0 16px; color: #fff; text-decoration: none; white-space: nowrap; font-size: 13px; font-weight: 700; }
.primary-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 7px; left: 0; width: 100%; height: 4px; background: linear-gradient(to bottom, #fff 0 2px, var(--red) 2px 4px); }
.header-quote { display: none; flex: 0 0 auto; padding: 16px 20px; color: #fff; background: var(--red); text-decoration: none; font-size: 13px; font-weight: 700; }
.header-quote span { margin-left: 22px; color: #fff; }
.header-quote:hover { background: var(--red-hover); }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .floating-quote:focus-visible { outline-color: #fff; }

/* Persistent quote action; works without JavaScript. */
.floating-quote { position: fixed; z-index: 20; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 13px 15px; color: #fff; background: var(--red); box-shadow: 0 4px 16px #0b25454d; text-decoration: none; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.floating-quote:hover { background: var(--red-hover); }
.floating-quote:focus-visible { box-shadow: 0 0 0 7px var(--navy); }

/* The existing image fills the entire hero using cover, never stretching. */
.hero { position: relative; isolation: isolate; display: flex; min-height: 500px; overflow: hidden; background: var(--navy); }
.hero__visual { position: absolute; z-index: 0; inset: 0; overflow: hidden; background: var(--navy); pointer-events: none; }
.hero__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__visual-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 37, 69, .94), rgba(11, 37, 69, .80)); }
.hero__content { position: relative; z-index: 1; display: flex; align-items: center; width: 100%; color: #fff; }
.hero__content-inner { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; padding: 64px 0 125px; }
.eyebrow, .section-kicker, .small-label { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: #fff; }
.eyebrow span { flex: 0 0 28px; width: 28px; height: 3px; background: var(--red); }
.hero h1 { max-width: 850px; margin: 25px 0 23px; font-size: clamp(2.65rem, 10vw, 4.7rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; overflow-wrap: anywhere; }
.hero__summary { max-width: 620px; margin: 0; color: #fff; font-size: 16px; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 52px; padding: 16px 20px; border: 0; border-radius: 0; text-decoration: none; font-size: 13px; font-weight: 800; cursor: pointer; }
.button--orange, .button--dark { color: #fff; background: var(--red); }
.button--orange:hover, .button--dark:hover { background: var(--red-hover); }
.button--dark span { color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 18px; color: var(--navy); font-size: 13px; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link--light { color: #fff; }
.text-link span { color: var(--red); font-size: 17px; text-decoration: none; }
.text-link--light span { color: #fff; }
.hero__index { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 45px 0 0; color: #e0e9f2; font-size: 10px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; }
.hero__index-line { width: 36px; height: 1px; background: #e0e9f2; }
.hero__visual-caption { position: absolute; right: 18px; bottom: 25px; display: flex; align-items: center; gap: 10px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1.5; }
.caption-mark { color: #fff; font-size: 30px; font-weight: 400; line-height: 1; }
.hero__corner { display: none; }

/* White content sections with subtle architectural dividers. */
.assurance { background: #fff; border-bottom: 1px solid var(--line); }
.assurance__grid { display: grid; grid-template-columns: 1fr; padding-block: 8px; }
.assurance__item { display: flex; gap: 18px; padding: 18px 0; }
.assurance__item + .assurance__item { border-top: 1px solid var(--line); }
.assurance__number { min-width: 22px; padding-top: 3px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.assurance__item strong, .assurance__item div > span { display: block; }
.assurance__item strong { font-size: 14px; line-height: 1.3; }
.assurance__item div > span { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.section-pad { padding-block: clamp(72px, 9vw, 140px); }
.page-content { background: #fff; }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.content-aside { align-self: start; min-width: 0; }
.section-kicker { color: #465b6e; }
.section-kicker > span { display: inline-block; margin-right: 9px; color: var(--red); font-size: 17px; line-height: .5; }
.aside-title { margin: 20px 0 24px; font-size: clamp(30px, 3vw, 43px); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.aside-rule { width: 55px; height: 3px; background: var(--red); }
.aside-copy { max-width: 550px; margin: 25px 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.aside-category { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.small-label { color: #465b6e; }
.aside-category strong { font-size: 14px; line-height: 1.4; }
.related-card { max-width: 550px; margin-top: 28px; padding: 22px; background: var(--wash); border-left: 3px solid var(--red); }
.related-card .small-label { display: block; margin-bottom: 12px; }
.related-card a { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; font-weight: 700; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.related-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.related-card a span { color: var(--red); }
.article-content { min-width: 0; max-width: 800px; color: #344b60; font-size: 16px; line-height: 1.8; overflow-wrap: break-word; }
.article-content > :first-child { margin-top: 0; }
.article-content > :first-child > h2:first-child { margin-top: 0; }
.article-content > :last-child { margin-bottom: 0; }
.article-content h2, .article-content h3, .article-content h4 { color: var(--navy); line-height: 1.16; letter-spacing: -.035em; }
.article-content h2 { margin: 1.5em 0 .55em; font-size: clamp(28px, 3vw, 40px); }
.article-content h3 { margin: 1.6em 0 .5em; font-size: clamp(20px, 2vw, 25px); }
.article-content h4 { margin: 1.5em 0 .5em; font-size: 18px; }
.article-content p { margin: 0 0 1.35em; }
.article-content ul, .article-content ol { padding-left: 1.3em; margin-bottom: 1.5em; }
.article-content li { padding-left: .25em; margin: .4em 0; }
.article-content li::marker { color: var(--red); }
.article-content a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.article-content th, .article-content td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }

/* Specifications */
.specs { background: #fff; border-top: 1px solid var(--line); }
.specs-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.specs-intro h2 { margin: 26px 0 22px; font-size: clamp(38px, 10vw, 68px); letter-spacing: -.05em; line-height: 1.05; }
.specs-intro > p:not(.section-kicker) { max-width: 440px; margin: 0 0 30px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.specs-table-wrap { min-width: 0; padding: 25px 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 35px #0b25450d; }
.specs-table-heading { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 18px; border-bottom: 2px solid var(--navy); color: #465b6e; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; font-size: 13px; }
.specs-table th { width: 39%; padding-right: 16px; color: var(--navy); font-weight: 700; }
.specs-table td { color: var(--muted); }
.specs-note { margin: 19px 0 0; color: #465b6e; font-size: 12px; line-height: 1.6; }

/* Quote area remains white, with clearly labeled form controls. */
.quote-section { position: relative; overflow: hidden; background: #fff; color: var(--ink); border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.quote-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; }
.section-kicker--light { color: #465b6e; }
.section-kicker--light > span { color: var(--red); }
.quote-intro { min-width: 0; }
.quote-intro h2 { margin: 27px 0 23px; color: var(--navy); font-size: clamp(40px, 10vw, 74px); letter-spacing: -.05em; line-height: 1.05; }
.quote-intro h2 > span { color: var(--red); }
.quote-intro > p:not(.section-kicker):not(.quote-side-note) { max-width: 440px; color: var(--muted); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.quote-intro > p a { color: var(--red); text-underline-offset: 3px; }
.quote-call { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 32px; }
.quote-call > span { color: #465b6e; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.quote-call a { color: var(--red); font-size: 23px; font-weight: 700; text-decoration: none; }
.quote-call a:hover { text-decoration: underline; text-underline-offset: 4px; }
.quote-call a span { color: var(--red); }
.quote-side-note { margin: 35px 0 0; color: #465b6e; font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1.7; }
.form-card { min-width: 0; padding: 24px 20px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 35px #0b25450d; }
.form-card__heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.form-card__heading h3 { margin: 11px 0 0; color: var(--navy); font-size: 29px; line-height: 1.15; letter-spacing: -.04em; }
.form-card__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; background: var(--wash); color: var(--red); font-size: 20px; }
.form-note { margin: 20px 0 26px; padding: 13px 15px; border-left: 3px solid var(--red); background: var(--wash); color: #344b60; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: auto; }
.field label { color: var(--navy); font-size: 13px; font-weight: 700; }
.field label span { color: var(--red); }
.field input, .field textarea { width: 100%; border: 1px solid #9bacbc; border-radius: 0; background: #fff; color: var(--ink); padding: 13px 14px; font-size: 16px; line-height: 1.4; }
.field input { min-height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #526477; opacity: 1; }
.field input:focus, .field textarea:focus { border-color: var(--red); }
.form-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-bottom .button { max-width: 100%; }
.form-bottom > span { color: #465b6e; font-size: 12px; }

/* Footer uses the same navy as the header. */
.site-footer { background: var(--navy); color: #fff; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 35px; padding-block: 58px; }
.brand--footer .brand-mark { color: #fff; background: var(--red); }
.brand--footer .brand-type b { color: var(--red); background: #fff; }
.footer-brand-block p { max-width: 300px; margin: 25px 0 0; color: #e0e9f2; font-size: 14px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 17px; min-width: 0; }
.footer-col .small-label { color: #e0e9f2; }
.footer-col nav { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #fff; font-size: 14px; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact > a:first-of-type { padding: 8px 10px; color: var(--red); background: #fff; font-size: 19px; font-weight: 700; }
.footer-contact > a + a { margin-top: -6px; }
.footer-provisional { margin-top: -7px; color: #e0e9f2; font-size: 12px; line-height: 1.5; }
.photo-credit { margin: 0 0 20px; max-width: 920px; color: #e0e9f2; font-size: 12px; line-height: 1.6; }
.photo-credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom { display: flex; flex-direction: column; gap: 12px; padding: 22px 0 90px; border-top: 1px solid #ffffff4d; color: #e0e9f2; font-size: 10px; font-weight: 700; letter-spacing: .09em; line-height: 1.5; }
.footer-bottom span span { padding: 0 5px; color: #fff; }

@media (min-width: 401px) {
  .form-card { padding: clamp(25px, 4vw, 50px); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 25px; }
  .footer-brand-block { grid-column: 1 / -1; }
}

@media (min-width: 701px) {
  .container { width: min(calc(100% - 60px), var(--container)); }
  .utility-bar__inner { min-height: 44px; }
  .utility-phone-label { display: inline; }
  .header-inner { min-height: 83px; display: flex; align-items: center; gap: 28px; padding-top: 0; }
  .brand-mark { width: 43px; height: 43px; flex-basis: 43px; font-size: 25px; }
  .brand-type strong { font-size: 15px; }
  .primary-nav { justify-content: center; gap: clamp(20px, 2.5vw, 40px); margin: 0 0 0 auto; padding: 0; overflow: visible; }
  .primary-nav a { padding: 14px 0; }
  .primary-nav a[aria-current="page"]::after { bottom: 5px; }
  .floating-quote { top: 50%; bottom: auto; transform: translateY(-50%); writing-mode: vertical-rl; padding: 18px 13px; }
  .hero { min-height: 600px; }
  .hero__content-inner { width: min(calc(100% - 60px), var(--container)); padding: 100px 0 125px; }
  .hero h1 { font-size: clamp(3.5rem, 5.2vw, 5.55rem); }
  .hero__summary { font-size: 17px; }
  .hero__actions { gap: 26px; margin-top: 36px; }
  .hero__index { margin-top: 65px; }
  .hero__visual-caption { right: 5%; bottom: 35px; }
  .assurance__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 0; }
  .assurance__item, .assurance__item + .assurance__item { padding: 26px 22px; border-top: 0; border-left: 1px solid var(--line); }
  .assurance__item:last-child { border-right: 1px solid var(--line); }
  .content-grid { grid-template-columns: minmax(200px, .8fr) minmax(0, 1.7fr); gap: clamp(50px, 8vw, 160px); }
  .aside-title { margin-top: 29px; }
  .aside-copy { max-width: 280px; margin-bottom: 40px; }
  .specs-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(50px, 8vw, 140px); }
  .specs-intro h2 { font-size: clamp(38px, 4.7vw, 68px); }
  .specs-table-wrap { padding: 30px clamp(22px, 3.5vw, 48px); }
  .quote-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(50px, 8vw, 140px); }
  .quote-intro h2 { font-size: clamp(45px, 5vw, 74px); }
  .quote-call { margin-top: 51px; }
  .quote-side-note { margin-top: 74px; }
  .footer-top { grid-template-columns: 1.4fr .65fr 1fr; gap: 40px; padding-block: 68px; }
  .footer-brand-block { grid-column: auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; gap: 20px; padding-bottom: 22px; }
}

@media (min-width: 1024px) {
  .header-quote { display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  .site-header::after, .site-footer::before { border-block: 1px solid CanvasText; }
  .primary-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
  .floating-quote, .button, .header-quote { border: 1px solid ButtonText; }
}
