/* Switchgear Builders Austin — responsive, dependency-free site styles. */
:root {
  color-scheme: light;
  --navy: #0B2545;
  --ink: #102942;
  --ink-soft: #344c61;
  --steel: #44627d;
  --steel-dark: #244660;
  --paper: #fff;
  --wash: #f3f6f9;
  --line: #d7e0e8;
  --accent: #B31942;
  --accent-hover: #901133;
  --max-width: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.site-container { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .65rem 1rem; background: #fff; color: var(--navy); font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Header and native mobile menu */
.site-header { position: relative; z-index: 40; background: var(--navy); color: #fff; }
.site-header::after, .site-footer::before { content: ""; display: block; height: 9px; background: linear-gradient(to bottom, var(--accent) 0 33.333%, #fff 33.333% 66.666%, #28598a 66.666% 100%); }
.utility-bar { background: var(--navy); border-bottom: 1px solid rgb(255 255 255 / 15%); }
.utility-bar__inner { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .3rem; }
.utility-bar__note { display: flex; align-items: center; gap: .55rem; color: #d4e0eb; font-size: .64rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; line-height: 1.2; }
.utility-bar__dash { width: 18px; height: 3px; flex: none; background: var(--accent); }
.header-phone { flex: none; padding: .35rem .7rem; background: #fff; color: var(--accent); font-size: .75rem; text-decoration: none; white-space: nowrap; }
.header-phone span { color: #38536b; margin-right: .6rem; }
.header-phone strong { font-size: .8rem; letter-spacing: .02em; }
.header-phone:hover { background: #edf3f8; }
.header-main { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .68rem; color: #fff; line-height: 1; text-decoration: none; flex: none; }
.brand__mark { display: block; width: 39px; color: #fff; }
.brand__wordmark { display: flex; flex-direction: column; gap: .27rem; white-space: nowrap; }
.brand__wordmark strong { font-size: 1.06rem; font-weight: 900; letter-spacing: -.045em; }
.brand__wordmark > span { font-size: .64rem; font-weight: 800; letter-spacing: .12em; }
.brand__wordmark b { color: #fff; }
.desktop-nav { display: none; align-items: center; justify-content: center; gap: clamp(1rem, 1.8vw, 1.7rem); margin-left: auto; }
.desktop-nav a { position: relative; padding: .4rem 0; color: #fff; font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover { text-decoration: underline; text-underline-offset: .4em; }
.desktop-nav .is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.65rem; height: 3px; background: var(--accent); }
.header-cta { display: none; flex: none; align-items: center; padding: .85rem 1rem; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-cta span { padding-left: .7rem; color: #fff; }
.header-cta:hover { background: var(--accent-hover); }
.mobile-nav summary { display: flex; align-items: center; gap: .6rem; list-style: none; cursor: pointer; color: #fff; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav__icon { display: inline-block; position: relative; width: 22px; height: 14px; border-block: 2px solid currentColor; }
.mobile-nav__icon::after { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 2px; background: currentColor; }
.mobile-nav__panel { position: absolute; z-index: 40; top: 100%; left: 0; right: 0; max-height: min(calc(100vh - 146px), 35rem); overflow-y: auto; padding: .5rem var(--gutter) 1rem; background: #fff; color: var(--navy); border-top: 1px solid var(--line); box-shadow: 0 15px 25px rgb(11 37 69 / 18%); }
.mobile-nav__panel a { display: flex; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid #e4eaf0; font-weight: 700; text-decoration: none; }
.mobile-nav__panel a:hover, .mobile-nav__panel .is-active, .mobile-nav__panel a:last-child { color: var(--accent); }

/* Full-bleed photograph with a navy scrim; the image is never stretched. */
.hero { position: relative; display: grid; min-height: clamp(540px, 48vw, 690px); overflow: hidden; isolation: isolate; background: var(--navy); color: #fff; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgb(11 37 69 / 96%) 0%, rgb(11 37 69 / 89%) 38%, rgb(11 37 69 / 66%) 72%, rgb(11 37 69 / 44%) 100%); pointer-events: none; }
.hero__content { position: relative; z-index: 2; display: flex; align-items: center; width: 100%; }
.hero__inner { width: min(100%, var(--max-width)); margin-inline: auto; padding: 1.75rem var(--gutter) 4.75rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; color: #e4edf5; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.hero__eyebrow, .section-kicker { margin: 0; color: var(--steel-dark); font-size: .68rem; font-weight: 800; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; }
.hero__eyebrow { display: flex; align-items: center; gap: .75rem; margin-top: clamp(3rem, 6vw, 5.5rem); color: #fff; }
.eyebrow-line { width: 30px; height: 3px; background: var(--accent); flex: none; }
.hero h1 { max-width: 18ch; margin: 1.05rem 0 1.25rem; color: #fff; font-size: clamp(2.65rem, 5.1vw, 5.15rem); font-weight: 900; line-height: 1.01; letter-spacing: -.05em; overflow-wrap: break-word; }
.hero__description { max-width: 37rem; margin: 0; color: #f0f5fa; font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.7; }
.hero__actions { display: flex; align-items: flex-start; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 54px; padding: .85rem 1.2rem; border: 0; border-radius: 0; font-weight: 800; font-size: .84rem; line-height: 1.3; text-align: left; text-decoration: none; }
.button span { font-size: 1.1rem; }
.button--accent { background: var(--accent); color: #fff; }
.button--accent:hover { background: var(--accent-hover); }
.hero__phone { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem .85rem; background: #fff; color: var(--accent); font-size: .8rem; font-weight: 800; text-decoration: none; }
.hero__phone:hover { background: #edf3f8; text-decoration: underline; }
.hero__figure { position: absolute; z-index: 0; inset: 0; min-width: 0; height: 100%; margin: 0; overflow: hidden; }
.hero__figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* The specification/assurance rail */
.assurance-strip { border-bottom: 1px solid var(--line); background: #fff; }
.assurance-strip__inner { display: grid; gap: 1.4rem; padding-block: 1.8rem; }
.assurance-strip__intro { margin: 0; }
.assurance-strip__intro span { display: block; margin-bottom: .55rem; color: var(--accent); font-size: .65rem; font-weight: 800; letter-spacing: .14em; }
.assurance-strip__intro strong { display: block; font-size: 1.15rem; line-height: 1.2; letter-spacing: -.03em; }
.assurance-badges { display: flex; flex-wrap: wrap; gap: .7rem; }
.assurance-badge { display: flex; align-items: center; gap: .65rem; min-width: 147px; min-height: 62px; padding: .55rem .75rem; border: 1px solid #b5c5d1; line-height: 1.1; }
.assurance-badge__symbol { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--navy); font-size: .78rem; font-weight: 900; letter-spacing: -.04em; }
.assurance-badge__flag { display: grid; place-items: center; width: 36px; height: 28px; border-top: 3px solid var(--accent); border-bottom: 3px solid var(--navy); font-size: .63rem; font-weight: 900; letter-spacing: .04em; }
.assurance-badge strong, .assurance-badge small { display: block; font-size: .76rem; font-weight: 800; }
.assurance-badge small { margin-top: .25rem; color: #4a6172; font-size: .67rem; font-weight: 600; }
.assurance-strip__note { max-width: 16rem; margin: 0; color: #4a6172; font-size: .78rem; line-height: 1.5; }

/* Long-form editorial content; these named classes are available to article HTML. */
.content-layout { display: grid; gap: 3rem; padding-block: clamp(4rem, 7vw, 7.5rem); }
.article-body { min-width: 0; max-width: 800px; color: #344c61; font-size: 1.025rem; line-height: 1.78; overflow-wrap: break-word; }
.article-body > :first-child, .article-body .article-section > :first-child { margin-top: 0; }
.article-body > :last-child, .article-body .article-section > :last-child { margin-bottom: 0; }
.article-body .article-section { margin-block: 0 3.25rem; }
.article-body .article-section:last-child { margin-bottom: 0; }
.article-body h2, .article-body h3, .article-body h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.035em; }
.article-body h2 { margin: 3.5rem 0 1.2rem; font-size: clamp(1.8rem, 3.1vw, 2.65rem); }
.article-body h3 { margin: 2rem 0 .8rem; font-size: 1.28rem; }
.article-body h4 { margin: 1.5rem 0 .6rem; font-size: 1rem; }
.article-body p { margin: 0 0 1.3rem; }
.article-body a { color: var(--steel-dark); font-weight: 700; }
.article-body a:hover { color: var(--accent); }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem; padding-left: 1.4rem; }
.article-body li { padding-left: .2rem; margin-bottom: .5rem; }
.article-body li::marker { color: var(--accent); }
.article-body .section-kicker { display: block; margin: 0 0 .8rem; }
.article-body .key-points { margin: 1.7rem 0 2rem; padding: 1.35rem 1.5rem 1.35rem 2.6rem; background: var(--wash); border-left: 4px solid var(--accent); }
.article-body div.key-points, .article-body section.key-points { padding: 1.35rem 1.5rem; }
.article-body .key-points > :last-child { margin-bottom: 0; }
.article-body blockquote { margin: 2rem 0; padding: .2rem 0 .2rem 1.5rem; border-left: 3px solid var(--accent); color: var(--ink); font-size: 1.2rem; font-weight: 700; }
.article-body table { width: 100%; border-collapse: collapse; color: var(--ink); font-size: .88rem; line-height: 1.5; }
.article-body .table-wrap { max-width: 100%; overflow-x: auto; }
.article-body .spec-table { max-width: 100%; overflow-x: auto; margin: 1.5rem 0 2rem; }
.article-body table caption { padding: .75rem 0; text-align: left; color: var(--steel-dark); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.article-body th, .article-body td { min-width: 135px; padding: .95rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--navy); color: white; font-size: .73rem; letter-spacing: .03em; }
.article-body tbody th { background: #edf2f6; color: var(--ink); }
.article-body tr:nth-child(even) td { background: #f7f9fb; }
.project-aside { align-self: start; padding: 1.6rem; border: 1px solid var(--line); background: var(--wash); }
.project-aside__rule { width: 34px; height: 4px; margin-bottom: 1.55rem; background: var(--accent); }
.project-aside h2 { margin: .75rem 0; font-size: 1.6rem; line-height: 1.08; letter-spacing: -.04em; }
.project-aside p:not(.section-kicker) { color: #4b6274; font-size: .88rem; line-height: 1.65; }
.text-link { display: inline-block; color: var(--accent); font-size: .8rem; font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .2rem; }
.text-link:hover { color: var(--accent-hover); }
.text-link span { margin-left: .5rem; }
.project-aside__meta { display: grid; gap: .35rem; margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid #cad7e1; }
.project-aside__meta span { margin-top: .65rem; color: #4b6274; font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.project-aside__meta strong { color: #344c61; font-size: .82rem; line-height: 1.45; }

/* Related links are independent of sitewide navigation. */
.related-section { padding-block: clamp(3.5rem, 6vw, 6rem); border-top: 1px solid var(--line); background: #fff; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-heading h2, .quote-section h2 { margin: .7rem 0 0; color: var(--ink); font-size: clamp(2.15rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.05em; }
.section-heading > p { max-width: 21rem; margin: 0; color: #4b6274; font-size: .9rem; }
.accent-dot { color: var(--accent); }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1px; margin: 0; padding: 1px; list-style: none; background: #cbd7e2; }
.related-grid li { min-width: 0; background: #fff; }
.related-card { position: relative; display: flex; min-height: 145px; height: 100%; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.4rem; padding: 1.35rem 3.1rem 1.35rem 1.35rem; text-decoration: none; }
.related-card:hover { background: var(--wash); }
.related-card__label { color: var(--steel-dark); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.related-card__title { color: var(--ink); font-size: 1.06rem; font-weight: 800; line-height: 1.25; }
.related-card__arrow { position: absolute; top: 1.2rem; right: 1.3rem; color: var(--accent); font-size: 1.25rem; }

/* Quote form: native email-client handoff, not a hosted submission. */
.quote-section { scroll-margin-top: 1rem; padding-block: clamp(4rem, 7vw, 7rem); border-top: 1px solid var(--line); background: #fff; color: var(--ink); }
.quote-section__inner { display: grid; gap: 2.5rem; }
.section-kicker--light { color: var(--steel-dark); }
.quote-section h2 { max-width: 14ch; }
.quote-section__intro > p:not(.section-kicker) { max-width: 32rem; margin: 1.25rem 0 0; color: #4b6274; font-size: 1rem; }
.quote-section__call { display: grid; gap: .55rem; margin-top: 2.5rem; }
.quote-section__call > span { color: var(--steel-dark); font-size: .65rem; font-weight: 800; letter-spacing: .13em; }
.quote-section__call a { width: fit-content; color: var(--accent); font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 800; text-decoration: none; }
.quote-section__call a:hover { color: var(--accent-hover); text-decoration: underline; }
.quote-section__call a span { margin-left: .5rem; }
.quote-form-wrap { padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--line); border-top: 4px solid var(--accent); background: #fff; color: var(--ink); box-shadow: 0 14px 36px rgb(11 37 69 / 7%); }
.quote-form__eyebrow { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1.75rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); color: var(--steel-dark); font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.quote-form__eyebrow span { color: #4b6274; }
.quote-form { display: grid; gap: 1.05rem; }
.quote-form__row { display: grid; gap: 1.05rem; }
.form-field { min-width: 0; }
.form-field label { display: block; margin-bottom: .35rem; font-size: .76rem; font-weight: 800; }
.form-field label span { color: var(--accent); }
.form-field input, .form-field textarea { display: block; width: 100%; min-width: 0; padding: .75rem .8rem; border: 1px solid #93a8b9; border-radius: 0; background: #fff; color: var(--ink); font-size: 1rem; }
.form-field input { min-height: 48px; }
.form-field textarea { min-height: 128px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: 1px; }
.form-field textarea::placeholder { color: #536a7b; opacity: 1; }
.form-note, .form-alternative { margin: 0; color: #4b6274; font-size: .75rem; line-height: 1.5; }
.form-alternative { overflow-wrap: anywhere; }
.form-alternative a { color: var(--steel-dark); font-weight: 700; }
.quote-form__submit { width: 100%; }

/* Footer and persistent conversion affordance */
.site-footer { background: var(--navy); color: #fff; }
.footer-main { display: grid; gap: 2.3rem; padding-block: 3.5rem; }
.brand--footer, .brand--footer .brand__mark, .brand--footer .brand__wordmark b { color: #fff; }
.footer-brand p { max-width: 18rem; margin: 1.2rem 0 0; color: #d0deea; font-size: .88rem; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; min-width: 0; }
.footer-column h2 { margin: 0 0 .45rem; color: #bdcfdf; font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-column a, .footer-column > span { color: #e2ebf3; font-size: .86rem; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.footer-column a:hover { color: #fff; text-decoration: underline; }
.footer-column .footer-contact__phone { padding: .55rem .7rem; background: #fff; color: var(--accent); font-size: 1.05rem; font-weight: 800; }
.footer-column .footer-contact__phone:hover { background: #edf3f8; color: var(--accent-hover); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.2rem; padding-bottom: 6rem; border-top: 1px solid rgb(255 255 255 / 24%); color: #c5d6e5; font-size: .72rem; }
.floating-quote { position: fixed; z-index: 30; right: 0; bottom: max(1rem, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .8rem; padding: .85rem 1.05rem; background: var(--accent); color: #fff; box-shadow: 0 4px 18px rgb(0 0 0 / 24%); font-size: .75rem; font-weight: 800; line-height: 1.2; text-decoration: none; }
.floating-quote:hover { background: var(--accent-hover); }
.floating-quote span { font-size: 1rem; }

@media (min-width: 450px) {
  /* This supplied image contains screenshot arrows near its edges; zoom proportionally. */
  .hero__figure img[src$="/hero-07-optimized.jpg"] { transform: scale(1.7); }
}
@media (min-width: 600px) {
  .hero__actions { flex-direction: row; align-items: center; gap: 1rem; }
  .assurance-strip__inner { grid-template-columns: 1fr auto; align-items: center; }
  .assurance-strip__note { grid-column: 1 / -1; max-width: none; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .assurance-strip__inner { grid-template-columns: 1.1fr auto 1fr; gap: 2rem; }
  .assurance-strip__note { grid-column: auto; margin-left: auto; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(3rem, 7vw, 7rem); }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quote-section__inner { grid-template-columns: 1fr 1.05fr; align-items: start; gap: clamp(3rem, 7vw, 7rem); }
  .footer-main { grid-template-columns: 1.5fr .8fr .8fr 1.25fr; gap: 2rem; }
}
@media (min-width: 1150px) {
  .desktop-nav, .header-cta { display: flex; }
  .mobile-nav { display: none; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero::before { background: linear-gradient(90deg, rgb(11 37 69 / 96%) 0%, rgb(11 37 69 / 87%) 55%, rgb(11 37 69 / 76%) 100%); }
}
@media (max-width: 599px) {
  .hero { min-height: 540px; }
  .hero::before { background: linear-gradient(180deg, rgb(11 37 69 / 91%) 0%, rgb(11 37 69 / 86%) 52%, rgb(11 37 69 / 76%) 100%); }
  .hero__inner { padding-block: 1.5rem 3.5rem; }
  .hero__eyebrow { margin-top: 3rem; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 3.5rem); }
}
@media (max-width: 420px) {
  .utility-bar__note { max-width: 115px; font-size: .58rem; }
  .utility-bar__dash, .header-phone span { display: none; }
  .brand__mark { width: 34px; }
  .brand__wordmark strong { font-size: .94rem; }
  .brand__wordmark > span { font-size: .57rem; }
  .header-main { gap: .7rem; }
  .mobile-nav summary { gap: .35rem; font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
