/* Switchgear Builders Texas — shared static site system. */
:root {
  --ink: #193047;
  --ink-deep: #0b2545;
  --steel: #365873;
  --steel-muted: #dbe4ed;
  --paper: #ffffff;
  --fog: #ffffff;
  --line: #d6dfe8;
  --muted: #506477;
  --accent: #b31942;
  --action: #b31942;
  --accent-dark: #8f1233;
  --shell: 1360px;
  --gutter: clamp(22px, 4.7vw, 76px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { 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:focus { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px 16px; background: white; color: var(--ink); }
.overline { margin: 0; font-size: .68rem; line-height: 1.35; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* Utility line and one shared set of navigation links. */
.utility-bar { background: var(--ink-deep); color: #fff; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .61rem; font-weight: 700; letter-spacing: .11em; }
.utility-inner a { display: inline-block; margin-left: 8px; padding: 3px 6px; background: #fff; color: var(--accent); text-decoration: none; white-space: nowrap; }
.utility-slash { padding: 0 5px; color: #fff; }
.site-header { background: var(--ink-deep); color: #fff; border-bottom: 1px solid #405a75; }
.header-inner { min-height: 100px; display: flex; align-items: center; gap: 32px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; color: #fff; }
.brand-mark path:last-child { fill: #fff; }
.brand-type { display: flex; flex-direction: column; gap: 4px; font-size: .76rem; line-height: .96; font-weight: 900; letter-spacing: .1em; }
.brand-type strong { font-size: 1rem; letter-spacing: .035em; }
.brand-type b { color: #fff; }
.primary-nav { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 2.8vw, 46px); flex: 1; }
.primary-nav a { position: relative; text-decoration: none; font-size: .84rem; font-weight: 700; padding-block: 12px; }
.primary-nav a::after { position: absolute; content: ""; left: 0; bottom: 4px; width: 0; height: 2px; background: var(--accent); box-shadow: 0 -1px 0 #fff; transition: width .15s; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { width: 100%; }
.header-phone { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; background: #fff; color: var(--accent); text-decoration: none; white-space: nowrap; }
.header-phone span { color: var(--ink-deep); font-size: .6rem; font-weight: 800; letter-spacing: .12em; }
.header-phone strong { color: var(--accent); font-size: .96rem; }
.site-header a:focus-visible, .site-footer a:focus-visible { outline-color: #fff; }
.menu-checkbox, .menu-toggle { display: none; }

/* Full-width photographic hero; content aligns with the shared shell. */
.hero.shell { width: 100%; }
.hero { position: relative; display: flex; align-items: center; min-height: clamp(500px, 43vw, 680px); padding-top: clamp(56px, 6.2vw, 100px); padding-bottom: clamp(55px, 5.7vw, 90px); background: var(--ink-deep); color: #fff; }
.hero::after, h2::after { content: ""; position: absolute; z-index: 2; height: 6px; background: linear-gradient(to bottom, var(--accent) 0 2px, #fff 2px 4px, var(--ink-deep) 4px 6px); pointer-events: none; }
.hero::after { right: 0; bottom: 0; left: 0; }
h2 { position: relative; }
h2::after { top: calc(100% + 7px); left: 0; width: min(132px, 100%); }
.hero-copy { position: relative; z-index: 1; width: min(100% - (var(--gutter) * 2), var(--shell)); min-width: 0; margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 25px; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .15em; line-height: 1.45; text-transform: uppercase; }
.eyebrow span, .orange-rule { display: inline-block; width: 25px; height: 3px; flex: 0 0 25px; background: var(--accent); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { max-width: 13ch; margin: 0; color: #fff; font-size: clamp(3.15rem, 5.5vw, 6rem); line-height: .99; letter-spacing: -.055em; font-weight: 800; }
.hero-intro { max-width: 56ch; margin: 25px 0 0; color: #fff; font-size: clamp(1rem, 1.1vw, 1.14rem); line-height: 1.7; }
.trust-markers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.trust-markers span { padding: 8px 10px; border: 1px solid #c6d4e2; background: rgba(11, 37, 69, .8); color: #fff; font-size: .68rem; line-height: 1.25; }
.trust-markers b { color: #fff; font-size: .67rem; letter-spacing: .04em; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 32px; }
.button { min-height: 56px; display: inline-flex; justify-content: center; align-items: center; gap: 22px; border: 0; padding: 17px 22px; background: var(--action); color: #fff; font-size: .82rem; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.button-primary { background: var(--action); color: #fff; }
.button:hover { background: var(--accent-dark); }
.button span { font-size: 1rem; line-height: 1; }
.text-call { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; background: #fff; color: var(--accent); font-size: .81rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.text-call span { margin-left: 7px; color: var(--accent-dark); }
.hero a:focus-visible { outline-color: #fff; }
.hero-ref { display: flex; justify-content: space-between; gap: 12px; max-width: 490px; margin-top: clamp(35px, 4vw, 64px); padding-top: 15px; border-top: 1px solid #c6d4e2; color: #fff; font-size: .59rem; line-height: 1.4; font-weight: 800; letter-spacing: .13em; }
.hero-photo { position: absolute; z-index: 0; inset: 0; margin: 0; min-width: 0; }
.hero-photo-frame { position: absolute; inset: 0; overflow: hidden; background: var(--ink-deep); }
.hero-photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 37, 69, .96) 0%, rgba(11, 37, 69, .91) 48%, rgba(11, 37, 69, .80) 100%); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-corner, .photo-label { display: none; }
.hero-photo figcaption { position: absolute; z-index: 2; right: var(--gutter); bottom: 12px; max-width: 28em; padding: 5px 8px; background: rgba(11, 37, 69, .92); color: #fff; font-size: .65rem; line-height: 1.4; }
.hero-photo figcaption a { color: #fff; text-underline-offset: 2px; }
.hero > .photo-placeholder { position: absolute; z-index: 0; inset: 0; background: var(--ink-deep); }
.hero > .photo-placeholder > span { display: none; }
.capability-band { background: #fff; color: var(--ink-deep); border-bottom: 1px solid var(--line); }
.capability-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.capability-inner p { display: flex; align-items: center; gap: 14px; margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .09em; }
.band-mark { display: block; width: 22px; height: 3px; flex: 0 0 22px; background: var(--accent); font-size: 0; line-height: 0; }
.capability-inner > span { font-size: .64rem; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.capability-inner i { color: var(--accent); font-style: normal; padding-inline: 7px; }

/* Body, technical table, and related routes. */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .4fr); align-items: start; gap: clamp(50px, 8vw, 135px); padding-top: clamp(65px, 7vw, 115px); padding-bottom: clamp(65px, 7vw, 115px); }
.article-content { min-width: 0; }
.article-section { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 20px; padding: 0 0 48px; }
.article-section + .article-section { border-top: 1px solid var(--line); padding-top: 45px; }
.article-section:last-child { padding-bottom: 0; }
.section-index { padding-top: 8px; color: #9caeb4; font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.section-copy h2, .section-topline h2 { margin: 0 0 19px; color: var(--ink-deep); font-size: clamp(1.65rem, 2.4vw, 2.4rem); line-height: 1.13; letter-spacing: -.04em; }
.section-copy p { max-width: 72ch; margin: 0 0 18px; color: #3f535c; font-size: 1rem; line-height: 1.8; }
.section-copy p:last-child { margin-bottom: 0; }
.project-sidebar { min-width: 0; }
.spec-card { padding: 30px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--ink-deep); }
.spec-card .overline { color: #576d76; }
.spec-card h2 { margin: 17px 0 24px; font-size: 1.54rem; line-height: 1.13; letter-spacing: -.035em; }
.spec-card table { width: 100%; border-collapse: collapse; text-align: left; }
.spec-card tr { border-top: 1px solid #cfdadd; }
.spec-card th, .spec-card td { padding: 15px 0; vertical-align: top; font-size: .79rem; line-height: 1.5; }
.spec-card th { width: 39%; padding-right: 14px; color: #314751; font-weight: 800; }
.spec-card td { color: #526771; }
.spec-note { margin: 13px 0 0; color: #586d76; font-size: .72rem; line-height: 1.6; }
.sidebar-note { position: relative; padding: 34px 0 0 20px; margin: 10px 0 0 9px; }
.note-line { position: absolute; left: 0; top: 35px; height: 90px; width: 2px; background: var(--accent); }
.sidebar-note .overline { color: #526b76; }
.sidebar-note p:not(.overline) { margin: 14px 0; color: #50656e; font-size: .9rem; line-height: 1.65; }
.sidebar-note a { font-size: .8rem; font-weight: 800; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.sidebar-note a span { color: var(--accent-dark); }
.related-block { border-top: 1px solid var(--line); padding: 47px 0 95px; }
.section-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.section-topline .overline { color: #586e77; }
.section-topline h2 { margin-bottom: 30px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.related-card { min-height: 150px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; align-items: end; gap: 16px; padding: 24px 26px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, background .15s; }
.related-card:hover { background: #f4f7fa; border-color: #a9bacb; }
.related-number { align-self: start; grid-column: 1 / -1; color: #667c84; font-size: .62rem; letter-spacing: .13em; font-weight: 800; }
.related-title { max-width: 28ch; font-size: 1.22rem; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.related-arrow { color: var(--accent-dark); font-size: 1.45rem; }

/* Quote area and mailto form. */
.quote-section { padding: clamp(70px, 8vw, 125px) 0; background: #fff; color: var(--ink); }
.quote-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); align-items: start; gap: clamp(50px, 9vw, 150px); }
.quote-copy .overline { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.quote-copy h2 { margin: 25px 0; font-size: clamp(3rem, 5.4vw, 5.6rem); line-height: .99; letter-spacing: -.055em; }
.quote-copy h2 span { color: var(--accent); }
.quote-copy > p:not(.overline) { max-width: 45ch; color: #3f535c; line-height: 1.75; }
.quote-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; margin-top: 60px; }
.quote-contact span { color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .13em; }
.quote-contact a { color: var(--ink-deep); font-size: .95rem; text-underline-offset: 4px; overflow-wrap: anywhere; }
.quote-contact a[href^="tel:"] { color: var(--accent); font-weight: 800; }
.form-panel { padding: clamp(24px, 3.7vw, 48px); background: #fff; color: var(--ink); border: 1px solid var(--line); }
.form-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.form-heading .overline { color: #59717b; }
.form-heading h3 { margin: 9px 0 0; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.035em; }
.form-heading > span { color: var(--accent-dark); font-size: 1.8rem; }
.form-help { margin: 18px 0 24px; color: #536872; font-size: .81rem; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; color: #2b414b; font-size: .77rem; font-weight: 800; }
.field label span { color: var(--accent); }
.field input, .field textarea { display: block; width: 100%; min-height: 48px; border: 1px solid #b5c5ca; border-radius: 0; padding: 11px 12px; background: #fff; color: #14262e; font-size: 1rem; }
.field textarea { min-height: 125px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #718b95; }
.required-note { margin: 14px 0; color: #5b7079; font-size: .7rem; }
.form-submit { width: 100%; }

/* Footer and always-available right-side quote CTA. */
.site-footer { background: var(--ink-deep); color: #fff; }
.footer-main { display: flex; justify-content: space-between; gap: 40px; padding-top: 65px; padding-bottom: 60px; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-size: .99rem; font-weight: 900; line-height: 1.05; letter-spacing: .04em; }
.footer-brand small { font-size: .66rem; letter-spacing: .13em; }
.footer-brand-box { display: grid; place-items: center; width: 42px; height: 42px; border: 3px solid #fff; font-size: 1.5rem; }
.footer-main > div > p:not(.overline) { margin: 19px 0 0; color: #d2e0ef; font-size: .83rem; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-contact .overline { margin-bottom: 7px; color: #d2e0ef; }
.footer-contact a { font-size: .9rem; text-underline-offset: 4px; overflow-wrap: anywhere; }
.footer-contact a[href^="tel:"] { padding: 5px 8px; background: #fff; color: var(--accent); font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 25px; border-top: 1px solid #536e89; color: #d2e0ef; font-size: .61rem; font-weight: 700; letter-spacing: .1em; }
.footer-bottom b { color: #fff; }
.floating-quote { position: fixed; z-index: 20; right: 0; top: 48%; display: flex; align-items: center; gap: 12px; padding: 17px 13px; background: var(--action); box-shadow: 0 5px 20px #12232a35; color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .02em; text-decoration: none; writing-mode: vertical-rl; }
.floating-quote:hover { background: var(--accent-dark); }

@media (max-width: 1050px) {
  .header-inner { gap: 20px; }
  .brand-type strong { font-size: .88rem; }
  .brand-type { font-size: .66rem; }
  .primary-nav { gap: 20px; }
  .header-phone span { font-size: .56rem; }
  .header-phone strong { font-size: .85rem; }
  .hero { gap: 42px; }
  h1 { font-size: clamp(3rem, 6vw, 4.7rem); }
}
@media (max-width: 800px) {
  :root { --gutter: 24px; }
  body { padding-right: 42px; }
  .site-header, .site-footer { box-shadow: 42px 0 0 var(--ink-deep); }
  .utility-inner { min-height: 32px; font-size: .55rem; }
  .header-inner { min-height: 76px; justify-content: space-between; }
  .header-phone { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .menu-checkbox { display: block; position: absolute; right: 0; top: 0; width: 72px; height: 76px; opacity: 0; z-index: 3; cursor: pointer; }
  .menu-checkbox:focus-visible + .menu-toggle { outline: 3px solid #fff; outline-offset: 4px; }
  .menu-toggle { display: flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 800; cursor: pointer; }
  .menu-close-text { display: none; }
  .menu-lines { display: flex; flex-direction: column; gap: 5px; }
  .menu-lines i { display: block; width: 21px; height: 2px; background: #fff; }
  .menu-checkbox:checked + .menu-toggle .menu-open-text { display: none; }
  .menu-checkbox:checked + .menu-toggle .menu-close-text { display: inline; }
  .primary-nav { display: none; position: absolute; z-index: 5; top: 100%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); padding: 12px var(--gutter) 20px; background: var(--ink-deep); color: #fff; box-shadow: 42px 0 0 var(--ink-deep), 0 12px 15px #0b254533; }
  .menu-checkbox:checked ~ .primary-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a { padding: 16px 0; border-bottom: 1px solid #536e89; }
  .primary-nav a::after { bottom: 0; }
  .hero { padding-top: 54px; padding-bottom: 50px; box-shadow: 42px 0 0 var(--ink-deep); }
  .hero h1 { max-width: 15ch; font-size: clamp(3rem, 9vw, 5rem); }
  .hero-intro { max-width: 70ch; }
  .hero-ref { margin-top: 32px; }
  .content-layout { gap: 45px; grid-template-columns: 1fr; }
  .project-sidebar { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; }
  .sidebar-note { margin-top: 0; }
  .quote-layout { grid-template-columns: 1fr; gap: 45px; }
  .quote-contact { margin-top: 30px; }
  .floating-quote { top: 38%; right: 0; bottom: auto; width: 42px; justify-content: center; padding: 14px 10px; writing-mode: vertical-rl; font-size: .72rem; }
}
@media (max-width: 540px) {
  :root { --gutter: 20px; }
  .utility-inner { justify-content: flex-end; }
  .utility-inner > span:first-child { display: none; }
  .brand-type strong { font-size: .85rem; }
  .brand-type { font-size: .62rem; }
  .hero { padding-top: 45px; }
  .hero h1 { font-size: clamp(2.75rem, 11vw, 4rem); }
  .hero-actions { gap: 20px; }
  .hero-actions .button { width: 100%; }
  .capability-inner { min-height: 70px; }
  .capability-inner > span { display: none; }
  .capability-inner p { font-size: .7rem; }
  .article-section { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 37px; }
  .article-section + .article-section { padding-top: 37px; }
  .section-copy h2 { font-size: 1.6rem; }
  .section-copy p { font-size: .96rem; line-height: 1.75; }
  .project-sidebar { grid-template-columns: 1fr; }
  .sidebar-note { padding-top: 25px; }
  .sidebar-note .note-line { top: 26px; }
  .section-topline { display: block; }
  .section-topline h2 { margin-top: 12px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { min-height: 125px; }
  .related-block { padding-bottom: 70px; }
  .quote-copy h2 { font-size: clamp(3rem, 12vw, 4rem); }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .footer-main { flex-direction: column; padding-top: 50px; padding-bottom: 45px; }
  .footer-bottom { flex-direction: column; gap: 9px; padding-bottom: 75px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
