/* ===================================================================
   electricalswitchgearremoval.com — "Cubicle & Bus"
   See ../ideas.md. Replication of the Texas site's orange-on-charcoal
   livery and hero/form layout, differentiated by typeface pairing,
   a deeper orange + bus-copper secondary, and the cell-gap divider motif.

   HARD RULES reflected here:
     - dark theme site-wide; safety orange signature
     - quote form sits INSIDE the hero, beside the copy, orange top border
     - ONE round orange floating call button, bottom right
     - square corners (max 2px) except the call button
     - zero JavaScript: FAQ is details/summary
   =================================================================== */

:root {
  --shell: #161616;
  --shell-2: #1e1e1e;
  --shell-3: #232323;
  --ink: #e8e4df;
  --ink-dim: #a9a29a;
  --ink-faint: #7d766e;
  --orange: #dc5a1e;
  --orange-lit: #f07a3c;
  --copper: #b87333;
  --line: #333030;
  --line-soft: #2a2727;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--orange-lit); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin-top: 8px; }
h3 { font-size: 1.3rem; font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 600; }
h4 { font-size: 1.05rem; font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 600; }

h1 em, h2 em { font-style: italic; color: var(--orange); }

p { margin: 0 0 15px; }

/* ------------------------------------------------ cell-gap divider motif */
.cellrule {
  height: 10px;
  background-image: repeating-linear-gradient(
    to right,
    var(--copper) 0 2px,
    transparent 2px 14px
  );
  opacity: 0.55;
}

/* ------------------------------------------------------------- masthead */
.mast {
  background: #101010;
  border-bottom: 1px solid var(--line);
}

.mast__in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  flex: 0 0 auto;
  min-width: 0;
}
.brand:hover { text-decoration: none; }

.brand__txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  padding-top: 1px;
}

.brand img { flex: 0 0 auto; }

.brand__sm {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 4px;
}

.brand__lg {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.72rem;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--orange);
}

.mast__tag {
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
}

/* ------------------------------------------------------------------ nav */
.nav {
  background: var(--shell-2);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav__in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 2px;
  white-space: nowrap;
}

.nav a {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 11px 12px;
  border-bottom: 3px solid transparent;
  transition: color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}

.nav a:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--line); }
.nav a[aria-current='page'] { color: #fff; border-bottom-color: var(--orange); }

/* -------------------------------------------------------------- crumbs */
.crumbs {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 13px 0 0;
}
.crumbs a { color: var(--ink-dim); }
.crumbs span { margin: 0 7px; opacity: 0.4; }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }

.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(15, 15, 15, 0.96) 0%, rgba(15, 15, 15, 0.9) 44%, rgba(15, 15, 15, 0.66) 100%);
}

.hero__in {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px 46px;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 34px;
  align-items: start;
}

.hero__kick {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.hero__lede {
  font-size: 1.12rem;
  color: var(--ink);
  max-width: 46ch;
  margin-bottom: 20px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }

.hero__promise { display: grid; gap: 7px; }

.chip {
  position: relative;
  padding-left: 16px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}

.chip::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--orange);
}

/* --------------------------------------------------------------- buttons */
.btn,
.btn-out {
  display: inline-block;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out);
}

.btn {
  background: var(--orange);
  color: #fff;
  border: 1px solid var(--orange);
}
.btn:hover { background: var(--orange-lit); text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn-out {
  background: transparent;
  color: var(--ink);
  border: 1px solid #5a5450;
}
.btn-out:hover { border-color: var(--orange); color: #fff; text-decoration: none; }
.btn-out:active { transform: scale(0.97); }

/* ----------------------------------------------------------- quote form */
.qf {
  background: var(--shell-3);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  padding: 20px 18px 18px;
  border-radius: 2px;
}

.qf__kick {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.qf h2 { font-size: 1.5rem; margin-bottom: 6px; }

.qf__sub {
  font-size: 0.9rem;
  color: var(--ink-dim);
  margin-bottom: 15px;
}

.qf label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 10px 0 4px;
}

.qf input,
.qf select,
.qf textarea {
  width: 100%;
  background: #141414;
  border: 1px solid #3d3a37;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 9px 10px;
  border-radius: 2px;
}

.qf input:focus,
.qf select:focus,
.qf textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

.qf textarea { min-height: 78px; resize: vertical; }

.qf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.qf .btn { width: 100%; margin-top: 15px; }

.qf__alt {
  font-size: 0.86rem;
  color: var(--ink-dim);
  margin: 12px 0 0;
  text-align: center;
}

.qf__hp { position: absolute; left: -9999px; }

/* ---------------------------------------------------------------- bands */
.band { padding: 42px 0; border-top: 1px solid var(--line-soft); }
.band--alt { background: var(--shell-2); }
.band--cta { background: #101010; }

.band > .wrap > h2:first-child { margin-top: 0; }

.lede-lg { font-size: 1.1rem; color: var(--ink); max-width: 68ch; }

/* --------------------------------------------------------------- promise */
.promise4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.promise4 > div {
  background: var(--shell-2);
  padding: 18px 16px;
}

.promise4 h3 {
  font-size: 1.02rem;
  color: #fff;
  margin-bottom: 5px;
}

.promise4 p {
  font-size: 0.88rem;
  color: var(--ink-dim);
  margin: 0;
}

/* ---------------------------------------------------------------- cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}

.card {
  background: var(--shell-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__b { padding: 15px 16px 17px; }
.card__b h3 { margin-bottom: 7px; }
.card__b p { font-size: 0.92rem; color: var(--ink-dim); margin: 0; }

.card__spec {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: 10px;
}

/* text-only card grid */
.tcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tcard {
  background: var(--shell-2);
  padding: 16px 17px;
  transition: background 140ms var(--ease-out);
}

.tcard:hover { background: var(--shell-3); }

.tcard h3 { font-size: 1.05rem; margin-bottom: 5px; }
.tcard h3 a { color: #fff; }
.tcard p { font-size: 0.87rem; color: var(--ink-dim); margin: 0; }

/* --------------------------------------------------------------- inline */
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 0;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 0.97rem;
}

.inline-links a { padding-right: 11px; margin-right: 11px; border-right: 1px solid var(--line); }
.inline-links a:last-child { border-right: 0; }

/* ----------------------------------------------------------------- list */
.speclist { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }

.speclist li {
  position: relative;
  padding-left: 17px;
  color: var(--ink);
}

.speclist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--copper);
}

/* ------------------------------------------------------------------ faq */
.faq { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }

.faq details { background: var(--shell-2); }

.faq summary {
  cursor: pointer;
  padding: 14px 17px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.03rem;
  color: #fff;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+ '; color: var(--orange); font-family: 'IBM Plex Mono', monospace; }
.faq details[open] summary::before { content: '\2212 '; }
.faq details[open] summary { color: var(--orange-lit); }
.faq p { padding: 0 17px 15px; margin: 0; color: var(--ink-dim); font-size: 0.96rem; }

/* --------------------------------------------------------------- figure */
figure { margin: 22px 0; }
figure img { border: 1px solid var(--line); border-radius: 2px; }

figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 8px;
}

/* ------------------------------------------------------------ two-column */
.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: start; }

/* ------------------------------------------------------------------ foot */
.foot { background: #0e0e0e; border-top: 1px solid var(--line); padding: 34px 0 26px; margin-top: 8px; }

.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 26px;
}

.foot h3 {
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.foot p { font-size: 0.89rem; color: var(--ink-faint); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.foot li { font-size: 0.87rem; }
.foot a { color: var(--ink-dim); }
.foot a:hover { color: var(--orange-lit); }

.foot__wide { margin-top: 24px; }
.foot__wide h3 { font-size: 0.9rem; }

.foot__wide ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 5px 18px;
}

.foot__legal {
  margin: 22px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: #5f5952;
}

/* -------------------------------------------------------- call fab (ONE) */
.callfab {
  position: fixed;
  right: 17px;
  bottom: 17px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out);
}

.callfab:hover { background: var(--orange-lit); text-decoration: none; }
.callfab:active { transform: scale(0.94); }
.callfab svg { width: 27px; height: 27px; fill: #fff; }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; gap: 26px; padding: 30px 20px 34px; }
  .promise4 { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .mast__tag { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .qf__row { grid-template-columns: 1fr; }
  .promise4 { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .band { padding: 32px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
