/* =============================================================
   GOODMAN ATOMIC APPLIANCE SERVICE — style.css
   Retro-futurist atomic-era design system
   ============================================================= */

/* ─── 1. ROOT VARIABLES + RESET ──────────────────────────────── */
:root {
  --cream:      #f4e7c5;
  --cream-deep: #e9d6a6;
  --teal:       #3a8791;
  --teal-deep:  #2b6a73;
  --red:        #c12a1e;
  --red-deep:   #9c1f16;
  --navy:       #16304e;
  --orange:     #e5642a;
  --gold:       #ffd27a;
  --ink:        #1b2433;
  --crt:        #7dffa0;
  --crt-bg:     #06140c;
  --amber:      #e8980a;
  --amber-bg:   #0d0800;

  --font-d: 'Passion One', sans-serif;
  --font-s: 'Yellowtail', cursive;
  --font-b: 'Barlow', sans-serif;
  --font-t: 'VT323', monospace;

  --wrap: 1140px;
  --edge: 3px solid var(--navy);

  --speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.957 0 0 0 0 0.906 0 0 0 0 0.773 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: var(--font-b);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  animation: screenPower .9s ease-out backwards;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }


/* ─── 2. PAGE POWER-ON ANIMATION ─────────────────────────────── */
@keyframes screenPower {
  0%   { opacity: 0; filter: brightness(0) saturate(0); }
  4%   { opacity: 1; filter: brightness(4) saturate(0) blur(1px); }
  8%   { filter: brightness(.35) saturate(0); }
  16%  { filter: brightness(1.4) saturate(.3); }
  32%  { filter: brightness(1.05) saturate(.8); }
  100% { filter: none; }
}


/* ─── 3. ACCESSIBILITY ───────────────────────────────────────── */
.skip {
  position: absolute;
  top: -120px;
  left: 1rem;
  background: var(--navy);
  color: var(--cream);
  padding: .5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-family: var(--font-b);
  font-weight: 700;
  z-index: 9999;
  transition: top .2s;
}
.skip:focus { top: 0; }

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


/* ─── 4. TYPOGRAPHY ──────────────────────────────────────────── */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-d);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: .02em;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.3rem; }

p { max-width: 68ch; }

.script {
  font-family: var(--font-s);
  font-size: 1.9rem;
  color: var(--red);
  transform: rotate(-2deg);
  display: inline-block;
}

/* Hero script override — cream on teal bg */
.hero .script {
  color: var(--cream);
  text-shadow: 1px 2px 0 var(--navy), 0 0 12px rgba(22,48,78,.4);
  font-size: 2rem;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: .9;
}

strong { font-weight: 700; }

.mono, .crt-text {
  font-family: var(--font-t);
  font-size: 1.05rem;
}

/* ─── 5. BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-d);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .62rem 1.6rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform .12s, box-shadow .12s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:active { transform: translateY(2px) !important; }

/* Red variant */
.btn-red {
  background: var(--red);
  color: var(--cream);
  border-color: var(--red-deep);
  box-shadow: 0 4px 0 var(--red-deep), 0 6px 14px rgba(193,42,30,.35);
}
.btn-red:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--red-deep), 0 10px 20px rgba(193,42,30,.4);
}
.btn-red:active { box-shadow: 0 2px 0 var(--red-deep); }

/* Cream variant */
.btn-cream {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 4px 0 var(--navy), 0 6px 14px rgba(22,48,78,.2);
}
.btn-cream:hover {
  background: var(--cream-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--navy), 0 10px 20px rgba(22,48,78,.25);
}
.btn-cream:active { box-shadow: 0 2px 0 var(--navy); }

/* Navy variant */
.btn-navy {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--ink);
  box-shadow: 0 4px 0 var(--ink), 0 6px 14px rgba(27,36,51,.4);
}
.btn-navy:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink), 0 10px 20px rgba(27,36,51,.45);
}
.btn-navy:active { box-shadow: 0 2px 0 var(--ink); }

/* Amber CRT variant */
.btn-amber {
  background: var(--amber);
  color: var(--amber-bg);
  border-color: var(--amber);
  box-shadow: 0 4px 0 #9c6505, 0 6px 14px rgba(232,152,10,.4), 0 0 10px rgba(232,152,10,.3);
  font-family: var(--font-t);
  font-size: 1.25rem;
  letter-spacing: .1em;
}
.btn-amber:hover {
  background: #f5aa15;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #9c6505, 0 10px 20px rgba(232,152,10,.5), 0 0 18px rgba(232,152,10,.4);
}
.btn-amber:active { box-shadow: 0 2px 0 #9c6505; }

/* Green CRT variant */
.btn-crt {
  background: var(--crt);
  color: var(--crt-bg);
  border-color: var(--crt);
  box-shadow: 0 4px 0 #2d8a4a, 0 6px 14px rgba(125,255,160,.3), 0 0 10px rgba(125,255,160,.2);
  font-family: var(--font-t);
  font-size: 1.25rem;
  letter-spacing: .1em;
}
.btn-crt:hover {
  background: #98ffb8;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2d8a4a, 0 10px 20px rgba(125,255,160,.4);
}
.btn-crt:active { box-shadow: 0 2px 0 #2d8a4a; }


/* ─── 6. TOP STRIP + HEADER ──────────────────────────────────── */
.strip {
  background: var(--navy);
  color: var(--cream);
  font-size: .82rem;
  font-family: var(--font-b);
  padding: .38rem 0;
}
.strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.strip a { color: var(--gold); font-weight: 600; }
.strip a:hover { text-decoration: underline; }

header.site {
  position: sticky;
  top: 0;
  background: var(--cream);
  border-bottom: var(--edge);
  z-index: 400;
  box-shadow: 0 2px 10px rgba(22,48,78,.12);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: .4rem;
}

.logo-link { flex-shrink: 0; display: flex; align-items: center; }

.logo-img {
  height: 72px;
  width: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}
.brand .g {
  font-family: var(--font-s);
  font-size: 2rem;
  color: var(--navy);
}
.brand .a {
  font-family: var(--font-d);
  font-size: 1.5rem;
  color: var(--red);
  text-transform: uppercase;
  font-style: italic;
}
.brand-logo {
  height: 48px;
  width: 48px;
  margin-left: 4px;
  flex-shrink: 0;
}
/* Footer brand variant */
.brand-foot .g { color: var(--cream); }
.brand-foot .a { color: var(--gold); }
.brand-logo-foot { height: 56px; width: 56px; }

.head-phone {
  font-family: var(--font-d);
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: .02em;
  line-height: 1;
}
.head-phone span {
  display: block;
  font-family: var(--font-b);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal);
}

.head-cta { margin-left: auto; }

/* Hamburger button */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 8px;
  margin-left: auto;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Main nav */
nav.main {
  display: flex;
  align-items: center;
  gap: .2rem;
  margin-left: auto;
}

nav.main a,
nav.main .drop-toggle {
  font-family: var(--font-d);
  font-size: 1.08rem;
  letter-spacing: .02em;
  color: var(--navy);
  padding: .4rem .7rem;
  border-radius: 6px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: .2rem;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
nav.main a:hover,
nav.main .drop-toggle:hover,
nav.main a.active,
nav.main .drop-toggle[aria-expanded="true"] {
  background: var(--navy);
  color: var(--cream);
}

/* Dropdown */
.has-drop { position: relative; }

.drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--cream);
  border: var(--edge);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(22,48,78,.2);
  padding: .4rem 0;
  z-index: 500;
}
.drop-menu.open { display: block; }

.has-drop:hover .drop-menu { display: block; }

.drop-menu a {
  display: block;
  padding: .45rem 1rem;
  font-family: var(--font-b);
  font-size: .95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
  color: var(--ink);
}
.drop-menu a:hover { background: var(--navy); color: var(--cream); }


/* ─── 7. HOMEPAGE HERO ───────────────────────────────────────── */
.hero {
  background: var(--teal) var(--speckle);
  color: var(--cream);
  border-bottom: var(--edge);
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
  padding-block: 56px 64px;
  position: relative;
  z-index: 2;
}

.hero-text { color: var(--cream); }

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.7rem, 7vw, 4.9rem);
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--navy);
  line-height: 1;
  letter-spacing: .01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero .script {
  color: var(--cream);
  text-shadow: 2px 2px 0 var(--navy);
  margin-bottom: 6px;
}

.hero p.lead {
  font-size: 1.2rem;
  max-width: 34em;
  margin-top: 18px;
  font-weight: 500;
  opacity: 1;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  background: var(--navy);
  color: var(--cream);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
}


/* ─── 7a. INNER PAGE HERO ────────────────────────────────────── */
.hero-inner {
  background-color: var(--navy);
  background-image: var(--speckle);
  background-blend-mode: overlay;
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero-inner .wrap {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-inner-text { color: var(--cream); }

.hero-inner h1 {
  color: var(--cream);
  text-shadow: 2px 3px 0 rgba(0,0,0,.4);
  margin-bottom: .6rem;
}

.hero-inner .lead { color: var(--cream-deep); opacity: .9; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-b);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gold);
  margin-bottom: .8rem;
  opacity: .85;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: .6; }

/* Inner icon circle */
.inner-icon {
  width: 160px;
  height: 160px;
  background: var(--teal);
  border-radius: 50%;
  border: 4px solid var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  box-shadow: 0 0 30px rgba(58,135,145,.4), 0 8px 24px rgba(0,0,0,.3);
}
.inner-icon svg { width: 80px; height: 80px; color: var(--cream); }


/* ─── 8. DISPATCH PANEL ──────────────────────────────────────── */
.dispatch-panel {
  position: relative;
  margin-top: 10px;
  height: 120px;
  border-radius: 10px;
  border: 3px solid var(--navy);
  background: linear-gradient(160deg, #f8eccd 0%, #ede0b4 55%, #e3d2a4 100%);
  box-shadow: 6px 6px 0 var(--navy);
  cursor: pointer;
  display: flex;
  overflow: hidden;
  transition: box-shadow .15s;
}

.dispatch-panel:hover {
  box-shadow: 8px 8px 0 var(--navy);
}

/* Rust/wear dashed inner border */
.dispatch-panel::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 7px;
  border: 2px dashed rgba(138,74,38,.38);
  pointer-events: none;
  z-index: 10;
}

/* Speckle texture overlay */
.dispatch-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--speckle);
  opacity: .22;
  pointer-events: none;
  border-radius: 10px;
}

/* Metal brackets spanning the sign-panel gap */
.dp-bracket {
  position: absolute;
  top: -18px;
  width: 12px;
  height: 28px;
  background: linear-gradient(to right, #999, #ddd, #aaa, #ddd, #999);
  border: 1.5px solid #666;
  border-radius: 2px;
  z-index: 11;
  box-shadow: 1px 0 3px rgba(0,0,0,.3);
}
.dp-bracket-l { left: 20px; }
.dp-bracket-r { right: 20px; }

/* CRT screen section (left ~65%) */
.dp-screen-wrap {
  flex: 0 0 64%;
  padding: 8px 6px 8px 10px;
  display: flex;
  position: relative;
  z-index: 1;
}

.dp-screen {
  flex: 1;
  background: #1e2a28;
  border-radius: 6px;
  border: 3px solid var(--navy);
  position: relative;
  overflow: hidden;
}

/* Convex CRT highlight */
.dp-screen::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 8%;
  right: 8%;
  height: 35%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.18) 0%, transparent 70%);
  z-index: 3;
  pointer-events: none;
}

/* Scanlines */
.dp-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.22) 2px,
    rgba(0,0,0,.22) 4px
  );
  z-index: 2;
  pointer-events: none;
}

.dp-screen-inner {
  background: radial-gradient(ellipse at 30% 30%, #0f2a19, #030a06);
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 7px 9px;
}

.dp-crt {
  font-family: var(--font-t);
  font-size: .95rem;
  color: var(--crt);
  text-shadow: 0 0 5px rgba(125,255,160,.7);
  position: relative;
  z-index: 1;
  line-height: 1.35;
  white-space: nowrap;
}
.dp-crt .tl::before { content: '> '; }

/* Controls section (right ~36%) */
.dp-ctrl {
  flex: 0 0 36%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  position: relative;
  z-index: 1;
}

.dp-nameplate {
  font-family: var(--font-d);
  font-size: .64rem;
  letter-spacing: .07em;
  text-align: center;
  color: var(--navy);
  background: linear-gradient(to bottom, #f8eccd, #e3d2a4);
  border: 1.5px solid var(--navy);
  border-radius: 3px;
  padding: 2px 7px;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 1px 1px 0 rgba(22,48,78,.3);
}

.dp-switches {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dp-switch {
  position: relative;
  width: 28px;
  height: 28px;
}

.dp-sw-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8d8d8 0%, #888 60%, #bbb 100%);
  border: 1.5px solid #555;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.4), 0 1px 3px rgba(0,0,0,.4);
}

.dp-sw-base {
  position: absolute;
  inset: 5px;
  background: radial-gradient(circle at 50% 35%, #3a3a3a, #0a0a0a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.dp-sw-knob {
  width: 2px;
  height: 7px;
  background: white;
  border-radius: 1px;
  position: absolute;
  bottom: 50%;
  left: calc(50% - 1px);
  transform-origin: 50% 100%;
  transition: transform .2s ease;
}

/* OFF: knob upper-left; ON: knob upper-right */
.dp-sw-off .dp-sw-knob { transform: rotate(-42deg); }
.dp-sw-on  .dp-sw-knob { transform: rotate(42deg); }

/* Hover: toggle positions */
.dispatch-panel:hover .dp-sw-off .dp-sw-knob { transform: rotate(42deg); }
.dispatch-panel:hover .dp-sw-on  .dp-sw-knob { transform: rotate(-42deg); }

.dp-lamps {
  display: flex;
  gap: 7px;
  align-items: flex-end;
}

.dp-lamp-grp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.dp-lamp-bezel {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8d8d8, #777, #aaa);
  border: 1.5px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.3), 0 1px 2px rgba(0,0,0,.4);
}

.dp-lamp {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

/* PWR: green, steady pulse */
.dp-lamp-pwr {
  background: #22cc44;
  box-shadow: 0 0 5px #22cc44, 0 0 10px rgba(34,204,68,.5);
  animation: lampPulse 2.5s ease-in-out infinite;
}

/* LINE: amber, blinks */
.dp-lamp-line {
  background: #553300;
  animation: lampAmber 3.8s steps(1) infinite;
}

/* BUSY: red, blinks offset */
.dp-lamp-busy {
  background: #440000;
  animation: lampRed 3.8s steps(1) infinite 1.9s;
}

@keyframes lampPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 5px #22cc44, 0 0 10px rgba(34,204,68,.5); }
  50%       { opacity: .55; box-shadow: 0 0 2px #22cc44; }
}

@keyframes lampAmber {
  0%, 50%, 100% { background: #553300; box-shadow: none; }
  55%, 70%      { background: var(--amber); box-shadow: 0 0 5px var(--amber), 0 0 10px rgba(232,152,10,.5); }
}

@keyframes lampRed {
  0%, 50%, 100% { background: #440000; box-shadow: none; }
  55%, 70%      { background: #cc2222; box-shadow: 0 0 5px #cc2222, 0 0 10px rgba(204,34,34,.5); }
}

.dp-lamp-lbl {
  font-family: var(--font-t);
  font-size: .5rem;
  color: var(--navy);
  opacity: .7;
  letter-spacing: .05em;
}

@keyframes ledBlink {
  0%, 90%, 100% { opacity: 1; }
  92%           { opacity: .1; }
  94%           { opacity: 1; }
  96%           { opacity: .1; }
  98%           { opacity: 1; }
}


/* ─── 9. SIGN COLUMN ─────────────────────────────────────────── */
.sign {
  position: relative;
  justify-self: center;
  width: min(100%, 540px);
}

.sign img {
  border-radius: 18px;
  border: 4px solid var(--navy);
  box-shadow: 10px 12px 0 rgba(22,48,78,.55);
  max-width: 100%;
  display: block;
  transform: rotate(2deg);
  animation: sway 7s ease-in-out infinite;
}

@keyframes sway {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%       { transform: rotate(1deg) translateY(-8px); }
}

/* Star bursts */
.burst {
  position: absolute;
  pointer-events: none;
  animation: twinkle 3.2s ease-in-out infinite;
  color: var(--gold);
}
.burst.b1 { width: 54px; left: -22px; top: -26px; }
.burst.b2 { width: 34px; right: -12px; bottom: 8px; animation-delay: 1.3s; color: var(--cream); }
.burst.b3 { width: 26px; right: 22%; top: -30px; animation-delay: .6s; color: var(--orange); }

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50%       { transform: scale(.72) rotate(18deg); opacity: .65; }
}


/* ─── 10. ATOM DECORATION ────────────────────────────────────── */
.atom {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -185px;
  opacity: .18;
  pointer-events: none;
  z-index: 1;
}

.atom .orbit-a,
.atom .orbit-b,
.atom .orbit-c {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.atom .orbit-a { animation: orb-cw 32s linear infinite; }
.atom .orbit-b { animation: orb-cw 50s linear infinite; }
.atom .orbit-c { animation: orb-ccw 68s linear infinite; }

@keyframes orb-cw  { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orb-ccw { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }


/* ─── 11. SECTIONS ───────────────────────────────────────────── */
section { padding-block: 68px; }

.sec-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.sec-head p { margin-inline: auto; opacity: .8; }
.sec-head .script { margin-top: .3rem; }

/* Left-aligned sec-head variant */
.sec-head-left {
  text-align: left;
}
.sec-head-left p { margin-inline: 0; }

.band-cream { background: var(--cream); }
.band-navy  { background: var(--navy); color: var(--cream); }
.band-red   { background: var(--red);  color: var(--cream); }
.band-white { background: #fff; }

.band-navy .sec-head h2,
.band-navy h2,
.band-navy h3 { color: var(--cream); }
.band-navy p  { color: var(--cream-deep); opacity: .9; }
.band-navy .script { color: var(--gold); }

.band-red .sec-head h2,
.band-red h2  { color: var(--gold); }
.band-red p   { opacity: .9; }


/* ─── 12. SERVICE CARDS ──────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  grid-auto-rows: 1fr;
}

.card {
  background: var(--cream);
  border: var(--edge);
  border-radius: 16px;
  padding: 1.8rem 1.5rem 1.6rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 0 var(--teal), 0 8px 20px rgba(0,0,0,.08);
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}

/* Corner fold */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(225deg, var(--cream-deep) 50%, transparent 50%);
  border-left: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 var(--red), 0 14px 32px rgba(193,42,30,.18);
}

@keyframes scanFlicker {
  0%, 100% { opacity: 0; }
  50%       { opacity: .04; }
}

.card:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(22,48,78,.06) 3px,
    rgba(22,48,78,.06) 4px
  );
  pointer-events: none;
  animation: scanFlicker .15s linear infinite;
}

.card .ico {
  width: 62px;
  height: 62px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--cream);
  flex-shrink: 0;
}

.card .ico svg { width: 30px; height: 30px; }

.card h3 { margin-bottom: .5rem; }
.card p  { font-size: .92rem; opacity: .85; max-width: 100%; text-wrap: pretty; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
  font-weight: 700;
  color: var(--teal-deep);
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.card-link:hover { color: var(--red); }


/* ─── 13. STEPS ──────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: steps;
  grid-auto-rows: 1fr;
}

.step {
  border-top: 4px solid var(--red);
  padding-top: 1.4rem;
  counter-increment: steps;
  display: flex;
  flex-direction: column;
}

.step::before {
  content: counter(steps, decimal-leading-zero);
  font-family: var(--font-d);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: .4rem;
}

.step h3 { margin-bottom: .5rem; }
.step p  { font-size: .92rem; opacity: .85; max-width: 100%; text-wrap: pretty; }


/* ─── 14. BRANDS ─────────────────────────────────────────────── */
#brands .sec-head { text-align: left; }

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.brands li {
  padding: 7px 15px;
  font-family: var(--font-b);
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--cream-deep);
  border: 2px solid var(--navy);
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s, color .15s;
  cursor: default;
}
.brands li:hover { background: var(--navy); color: var(--cream); }

li.brands-more {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
li.brands-more:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.brands-fine {
  margin-top: 18px;
  font-size: .88rem;
  opacity: .6;
  max-width: 52em;
}


/* ─── 15. WARRANTY ───────────────────────────────────────────── */
.warranty .wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
}

.seal {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 6px solid var(--navy);
  outline: 4px solid var(--red);
  outline-offset: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  background: var(--cream-deep);
  font-family: var(--font-d);
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.seal .seal-num {
  font-size: 3rem;
  line-height: 1;
  color: var(--red);
}
.seal .seal-label {
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--navy);
  margin-top: .2rem;
}


/* ─── 16. DISPATCHER DUO PANELS ──────────────────────────────── */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.panel {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.8rem;
  border-radius: 16px;
  border: var(--edge);
  box-shadow: 6px 6px 0 rgba(0,0,0,.35);
}

.panel .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Green CRT panel */
@keyframes crtFlicker {
  0%   { opacity: 1; }
  92%  { opacity: 1; }
  93%  { opacity: .88; }
  94%  { opacity: 1; }
  97%  { opacity: .92; }
  100% { opacity: 1; }
}

.panel.term {
  background: var(--crt-bg);
  color: var(--crt);
  font-family: var(--font-t);
  position: relative;
  overflow: hidden;
  animation: crtFlicker 8s steps(1) infinite;
  border-color: var(--crt);
  box-shadow: 6px 6px 0 rgba(125,255,160,.35), 0 8px 24px rgba(0,0,0,.5);
}

.panel.term::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.2) 3px,
    rgba(0,0,0,.2) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.panel.term > * { position: relative; z-index: 1; }

.panel.term h3 {
  color: var(--crt);
  text-shadow: 0 0 10px rgba(125,255,160,.7);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.panel.term p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--crt);
  opacity: .9;
  max-width: 100%;
}

.panel.term p::before { content: '> '; }

.panel.term .bignum {
  font-size: 3.5rem;
  color: var(--crt);
  text-shadow: 0 0 20px rgba(125,255,160,.8);
  line-height: 1;
  margin-bottom: .5rem;
}

.panel.term .crt-bignum {
  font-family: var(--font-t);
  font-size: 3rem;
  color: var(--crt);
  text-shadow: 0 0 20px rgba(125,255,160,.8);
  line-height: 1;
  margin: .5rem 0 .4rem;
}
.panel.amber-crt .crt-bignum {
  font-family: var(--font-t);
  font-size: 3rem;
  color: var(--amber);
  text-shadow: 0 0 20px rgba(232,152,10,.8);
  line-height: 1;
  margin: .5rem 0 .4rem;
}

.cursor::after {
  content: "█";
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Amber CRT panel */
@keyframes amberFlicker {
  0%   { opacity: 1; }
  88%  { opacity: 1; }
  89%  { opacity: .84; }
  90%  { opacity: 1; }
  94%  { opacity: .9; }
  95%  { opacity: 1; }
  100% { opacity: 1; }
}

.panel.amber-crt {
  background: var(--amber-bg);
  color: var(--amber);
  font-family: var(--font-t);
  position: relative;
  overflow: hidden;
  animation: amberFlicker 9.3s steps(1) infinite;
  border-color: var(--amber);
  box-shadow: 6px 6px 0 rgba(232,152,10,.35), 0 8px 24px rgba(0,0,0,.5);
}

.panel.amber-crt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.2) 3px,
    rgba(0,0,0,.2) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.panel.amber-crt > * { position: relative; z-index: 1; }

.panel.amber-crt h3 {
  color: var(--amber);
  text-shadow: 0 0 10px rgba(232,152,10,.7);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.panel.amber-crt p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--amber);
  opacity: .9;
  max-width: 100%;
}

.panel.amber-crt > p::before { content: '> '; }

.panel.amber-crt .bignum {
  font-family: var(--font-d);
  font-size: 3.5rem;
  color: var(--amber);
  text-shadow: 0 0 20px rgba(232,152,10,.8);
  line-height: 1;
  margin-bottom: .5rem;
}

.amber-cursor::after {
  content: "█";
  animation: amberBlink 1.1s steps(1) infinite;
}

@keyframes amberBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}


/* ─── 17. SERVICE AREA ───────────────────────────────────────── */
.area .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.states {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.state-block {
  border: 1px solid rgba(244,231,197,.3);
  border-radius: 10px;
  overflow: hidden;
}

.state-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.state-summary::-webkit-details-marker { display: none; }

.state-block[open] .state-summary {
  border-bottom: 1px solid rgba(244,231,197,.2);
}

.state-abbr {
  font-family: var(--font-d);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  min-width: 46px;
  flex-shrink: 0;
}

.state-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.state-info strong {
  font-size: .95rem;
  font-weight: 700;
  color: var(--cream);
}

.state-counties {
  font-size: .78rem;
  color: var(--gold);
  opacity: .8;
}

.state-cities {
  padding: 10px 16px 12px;
  font-size: .82rem;
  line-height: 1.65;
  opacity: .82;
}

/* ZIP checker */
.area-right {
  position: sticky;
  top: 100px;
}

.zip-checker {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(244,231,197,.25);
  border-radius: 14px;
  padding: 1.6rem;
}

.zip-checker h3 {
  color: var(--gold);
  margin-bottom: .5rem;
  font-size: 1.5rem;
}

.zip-checker p {
  font-size: .9rem;
  opacity: .8;
  margin-bottom: 1rem;
}

.zip-row {
  display: flex;
  gap: .5rem;
}

.zip-input {
  flex: 1;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(244,231,197,.4);
  border-radius: 8px;
  padding: .6rem .9rem;
  font-family: var(--font-b);
  font-size: 1rem;
  color: var(--cream);
  outline: none;
}
.zip-input::placeholder { color: rgba(244,231,197,.4); }
.zip-input:focus { border-color: var(--gold); }

.zip-result {
  margin-top: .9rem;
  font-size: .92rem;
  font-weight: 600;
  min-height: 1.4em;
  color: var(--cream);
}

.zip-result .zip-book-btn {
  display: inline-block;
  margin-top: .5rem;
}

/* chips defined in hero section above */


/* ─── 18. BOOKING FORM ───────────────────────────────────────── */
.book .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.book-info h2 { margin-bottom: .8rem; }

form.req {
  background: var(--cream);
  border: var(--edge);
  border-radius: 16px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  box-shadow: 8px 8px 0 var(--navy);
}

form.req .full { grid-column: 1 / -1; }

.field-group { display: flex; flex-direction: column; gap: .3rem; }

label {
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--navy);
  white-space: nowrap;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  height: 48px;
  background: white;
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 0 .8rem;
  font-family: var(--font-b);
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.4;
}

/* Select styled to match text inputs */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316304e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(58,135,145,.2);
  outline: none;
}

textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
  padding: .6rem .8rem;
}

.req-submit {
  width: 100%;
  height: 48px;
  justify-content: center;
}

#formNote {
  font-size: .88rem;
  font-weight: 600;
  min-height: 1.4em;
  color: var(--teal-deep);
  margin-top: .3rem;
}
#formNote.error { color: var(--red); }


/* ─── 19. FOOTER ─────────────────────────────────────────────── */
footer.site {
  background: var(--navy);
  color: var(--cream);
  padding-top: 40px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 320px 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  height: 120px;
  width: auto;
  margin-bottom: 1rem;
}

.brand-foot {
  margin-bottom: 1rem;
  display: inline-flex;
}

.foot-col h4 {
  color: var(--gold);
  margin-bottom: .9rem;
  font-size: 1rem;
}

.foot-col p,
.foot-col a,
.foot-col li {
  font-size: .9rem;
  opacity: .82;
  line-height: 1.8;
  color: var(--cream);
}

.foot-col a:hover { color: var(--gold); opacity: 1; text-decoration: underline; }

.foot-nav { display: flex; flex-direction: column; gap: .2rem; }

.copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.2rem;
  font-size: .8rem;
  opacity: .6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}


/* ─── 20. MOBILE BAR + FAB ───────────────────────────────────── */
.bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 3px solid var(--teal);
  z-index: 600;
  padding: .5rem .75rem;
  gap: .5rem;
  align-items: center;
}

.bar .btn { flex: 1; justify-content: center; padding: .55rem; font-size: .95rem; }

.fab {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 58px;
  height: 58px;
  background: var(--crt-bg);
  border: 2px solid var(--crt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 600;
  box-shadow: 0 0 14px rgba(125,255,160,.3), 0 4px 12px rgba(0,0,0,.4);
  transition: box-shadow .2s, transform .15s;
  font-family: var(--font-t);
  font-size: 1.6rem;
  color: var(--crt);
  text-shadow: 0 0 8px var(--crt);
}

.fab::before {
  content: '';
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--crt);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--crt);
  animation: ledBlink 2.4s ease-in-out infinite;
}

.fab:hover {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(125,255,160,.5), 0 6px 16px rgba(0,0,0,.4);
}


/* ─── 21. CHAT OVERLAY ───────────────────────────────────────── */
@keyframes chatBoot {
  0%   { transform: scaleY(.03); filter: brightness(4); }
  8%   { transform: scaleY(.03); filter: brightness(2); }
  15%  { transform: scaleY(1);   filter: brightness(2.5); }
  25%  { filter: brightness(1.4); }
  100% { filter: brightness(1); transform: scaleY(1); }
}

.chat {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 360px;
  height: 520px;
  flex-direction: column;
  background: var(--crt-bg);
  border: 2px solid var(--crt);
  border-radius: 12px;
  overflow: hidden;
  z-index: 700;
  box-shadow: 0 0 30px rgba(125,255,160,.25), 0 20px 60px rgba(0,0,0,.6);
}

.chat.open {
  display: flex;
  animation: chatBoot .4s ease-out both;
}

/* Scanlines overlay */
.chat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.18) 3px,
    rgba(0,0,0,.18) 4px
  );
  pointer-events: none;
  z-index: 10;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(125,255,160,.2);
  flex-shrink: 0;
  position: relative;
  z-index: 11;
}

.chat-title {
  font-family: var(--font-t);
  font-size: 1.1rem;
  color: var(--crt);
  text-shadow: 0 0 8px rgba(125,255,160,.7);
  letter-spacing: .1em;
}

.chat-close {
  background: none;
  border: 1px solid rgba(125,255,160,.4);
  color: var(--crt);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  font-family: var(--font-t);
  cursor: pointer;
}
.chat-close:hover { background: rgba(125,255,160,.15); }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  position: relative;
  z-index: 11;
  scrollbar-width: thin;
  scrollbar-color: rgba(125,255,160,.3) transparent;
}

.chat-log::-webkit-scrollbar { width: 4px; }
.chat-log::-webkit-scrollbar-thumb { background: rgba(125,255,160,.3); border-radius: 2px; }

.msg {
  font-family: var(--font-t);
  font-size: 1rem;
  line-height: 1.4;
  max-width: 90%;
  padding: .4rem .8rem;
  border-radius: 6px;
}

.msg.bot {
  color: var(--crt);
  text-shadow: 0 0 6px rgba(125,255,160,.4);
  align-self: flex-start;
}
.msg.bot::before { content: '> '; }

.msg.me {
  background: rgba(125,255,160,.18);
  color: var(--crt);
  align-self: flex-end;
  border: 1px solid rgba(125,255,160,.3);
}

.msg.warn {
  color: var(--amber);
  border: 1px dashed rgba(232,152,10,.5);
  background: rgba(232,152,10,.06);
  font-size: .9rem;
}

.chat-opts {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .3rem 1rem;
  position: relative;
  z-index: 11;
}

.chat-opt {
  font-family: var(--font-t);
  font-size: .95rem;
  color: var(--crt-bg);
  background: rgba(125,255,160,.85);
  border: 1px solid var(--crt);
  border-radius: 4px;
  padding: .2rem .7rem;
  cursor: pointer;
  transition: background .12s;
}
.chat-opt:hover { background: var(--crt); }

.chat-input-row {
  display: flex;
  border-top: 1px solid rgba(125,255,160,.2);
  flex-shrink: 0;
  position: relative;
  z-index: 11;
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--crt);
  font-family: var(--font-t);
  font-size: 1.05rem;
  padding: .7rem 1rem;
  caret-color: var(--crt);
}
.chat-input::placeholder { color: rgba(125,255,160,.35); }
.chat-input:focus { outline: none; }

.chat-send {
  background: none;
  border: none;
  border-left: 1px solid rgba(125,255,160,.2);
  color: var(--crt);
  padding: .7rem 1rem;
  font-family: var(--font-t);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .12s;
}
.chat-send:hover { background: rgba(125,255,160,.1); }

/* Chat mobile fullscreen */
@media (max-width: 640px) {
  .chat {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border-top: 3px solid var(--crt);
  }
}


/* ─── 22. SCROLL-RISE ────────────────────────────────────────── */
@keyframes rise {
  from { opacity: .001; transform: translateY(22px); }
  to   { opacity: 1;   transform: translateY(0); }
}

.rise {
  opacity: .001;
}

.rise.risen {
  animation: rise .55s ease-out both;
}


/* ─── 23. RESPONSIVE BREAKPOINTS ─────────────────────────────── */
@media (max-width: 980px) {
  /* Header */
  .menu-btn { display: flex; }

  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: var(--edge);
    flex-direction: column;
    align-items: flex-start;
    padding: .75rem 1.25rem 1rem;
    gap: .2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    z-index: 300;
  }

  nav.main.open { display: flex; }

  .head-cta { display: none; }
  .head-phone { display: none; }

  /* Hero */
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .sign {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  /* Cards */
  .cards { grid-template-columns: repeat(2, 1fr); }

  /* Steps */
  .steps { grid-template-columns: 1fr; grid-auto-rows: auto; }

  /* Duo panels */
  .duo { grid-template-columns: 1fr; }

  /* Inner hero */
  .hero-inner .wrap { grid-template-columns: 1fr; }
  .inner-icon { display: none; }

  /* Area */
  .area .wrap { grid-template-columns: 1fr; }
  .area-right { position: static; }

  /* Book */
  .book .wrap { grid-template-columns: 1fr; }

  /* Warranty */
  .warranty .wrap { grid-template-columns: 1fr; }

  /* Footer */
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }

  section { padding-block: 50px; }

  .cards { grid-template-columns: 1fr; }

  .seal { width: 130px; height: 130px; }
  .seal .seal-num { font-size: 2.2rem; }

  .foot-grid { grid-template-columns: 1fr; }

  .bar { display: flex; }

  .fab { display: none; }

  /* Extra bottom padding so bar doesn't cover content */
  body { padding-bottom: 68px; }

  form.req { grid-template-columns: 1fr; }

  .warranty .wrap { text-align: center; }
  .seal { margin-inline: auto; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }

  .logo-img { height: 64px; }
  .brand-logo { height: 40px; width: 40px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* ─── 24. SYMPTOMS SECTION ───────────────────────────────────── */
.symptoms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.symptoms li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  background: var(--cream);
  border: 2px solid var(--navy);
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: .92rem;
  line-height: 1.4;
}

.symptoms li::before {
  content: '✓';
  font-family: var(--font-d);
  font-size: 1.1rem;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: .05rem;
}

@media (max-width: 640px) {
  .symptoms { grid-template-columns: 1fr; }
}


/* ─── 25. SYM-GRID (service page symptoms) ───────────────────── */
.sym-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sym-card {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  background: var(--cream);
  border: 2px solid var(--navy);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.sym-card h3 {
  font-size: 1rem;
  margin-bottom: .3rem;
}

.sym-card p {
  font-size: .88rem;
  line-height: 1.5;
  margin: 0;
}

.sym-ico {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sym-ico svg {
  width: 24px;
  height: 24px;
  color: var(--cream);
}

@media (max-width: 768px) {
  .sym-grid { grid-template-columns: 1fr; }
}


/* ─── UTILITY CLASSES ────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-gold    { color: var(--gold); }
.text-teal    { color: var(--teal); }
.text-red     { color: var(--red); }
.text-cream   { color: var(--cream); }
.text-navy    { color: var(--navy); }
.text-amber   { color: var(--amber); }

.mt-sm  { margin-top: .5rem; }
.mt-md  { margin-top: 1rem; }
.mt-lg  { margin-top: 1.8rem; }
.mb-sm  { margin-bottom: .5rem; }
.mb-md  { margin-bottom: 1rem; }
.mb-lg  { margin-bottom: 1.8rem; }

.flex   { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: .5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.8rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

.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;
}

.divider {
  border: none;
  border-top: 2px solid rgba(22,48,78,.12);
  margin-block: 2rem;
}

.tag {
  display: inline-block;
  font-family: var(--font-d);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .2rem .7rem;
  border-radius: 50px;
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--navy);
}

/* Phone-number styling in content */
.tel-link {
  font-family: var(--font-d);
  color: var(--red);
  font-size: 1.3em;
  letter-spacing: .02em;
  white-space: nowrap;
}
.tel-link:hover { color: var(--red-deep); text-decoration: underline; }

/* Atom SVG fill helpers */
.atom-nucleus { fill: var(--gold); }
.atom-ring    { fill: none; stroke: var(--gold); stroke-width: 2; }
.atom-dot     { fill: var(--gold); }


/* ─── AREA PATCH: collapsed city lists, readable ZIP field ───── */
.state-summary { min-height: 64px; }
.state-static .state-summary { cursor: default; }
.state-counties { font-size: .88rem; opacity: 1; }
.state-info strong { font-size: 1.05rem; }
.state-toggle {
  margin-left: auto;
  flex-shrink: 0;
  font-size: .82rem;
  font-weight: 700;
  color: var(--cream);
  border: 1px solid rgba(244,231,197,.45);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.state-toggle::after { content: " \25BE"; }
.state-block[open] .state-toggle::after { content: " \25B4"; }
.state-toggle .t-hide { display: none; }
.state-block[open] .state-toggle .t-show { display: none; }
.state-block[open] .state-toggle .t-hide { display: inline; }
.state-summary:hover .state-toggle { background: var(--cream); color: var(--navy); }
.state-cities { font-size: .92rem; line-height: 1.6; opacity: 1; padding: 14px 16px 16px; }
.state-cities p { max-width: none; margin: 0; }
.state-cities p + p { margin-top: 10px; }
.state-cities strong { color: var(--gold); }
.zip-row { align-items: stretch; }
.zip-input {
  min-width: 0;
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
  font-weight: 600;
}
.zip-input::placeholder { color: rgba(22,48,78,.6); }
.zip-btn { flex-shrink: 0; }
@media (max-width: 480px) {
  .state-toggle .t-show, .state-toggle .t-hide { font-size: .78rem; }
  .state-counties { font-size: .82rem; }
}

/* Brand wordmark: both words share one baseline, emblem stays centered */
.brand { align-items: baseline; }
.brand .brand-logo { align-self: center; }

/* Header: breathing room between phone number and Request service button */
@media (min-width: 981px) {
  .head-cta { display: flex; align-items: center; gap: 22px; flex-shrink: 0; white-space: nowrap; }
  .head-inner { gap: 1.1rem; }
}

/* Hero: keep the sign near the top so it is visible on first screen (desktop only) */
@media (min-width: 981px) {
  .hero .wrap { align-items: start; }
  .hero .sign { margin-top: 8px; }
}

/* Brands: two full-width rows on desktop (11 brands, then 9 brands + "all other") */
.brands li.brands-break { display: none; }
@media (min-width: 1100px) {
  .brands li { flex: 1 1 auto; text-align: center; padding: 7px 10px; font-size: .86rem; }
  .brands li.brands-break { display: block; flex: 0 0 100%; height: 0; padding: 0; border: 0; margin-top: -10px; background: none; }
  .brands li.brands-more { flex-grow: 2; }
}

/* Service area: the three state rows share one height and width */
.states .state-block { width: 100%; }
.states .state-summary { min-height: 68px; box-sizing: border-box; }

/* Hero: main buttons hang under the sign as one unit */
.sign-col { position: relative; width: min(100%, 540px); justify-self: center; margin-inline: auto; }
.sign-col .sign { width: 100%; }
.hero-cta.sign-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
  position: relative;
}
.sign-cta .btn { width: 100%; justify-content: center; white-space: nowrap; font-size: 1.02rem; padding-inline: 10px; }
/* two metal hangers between the sign and the buttons */
.sign-cta::before, .sign-cta::after {
  content: "";
  position: absolute;
  top: -30px;
  width: 7px;
  height: 34px;
  border-radius: 3px;
  background: linear-gradient(90deg, #5e696d, #e6ecee 45%, #7a868a);
  border: 1.5px solid var(--navy);
  z-index: 0;
}
.sign-cta::before { left: 22%; }
.sign-cta::after { right: 22%; }
.sign-cta .btn { position: relative; z-index: 1; }
@media (max-width: 520px) {
  .hero-cta.sign-cta { grid-template-columns: 1fr; }
  .sign-cta::before, .sign-cta::after { display: none; }
}

/* Hero: sign and its hanging buttons tilt and sway together as one unit */
.sign-col .sign img { transform: none; animation: none; }
.sign-col { transform: rotate(2deg); transform-origin: 50% 0; animation: sway 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .sign-col { animation: none; }
}

/* Hero: start the copy and the sign closer to the header (desktop) */
@media (min-width: 981px) {
  .hero { padding-top: 0; }
  .hero .wrap { padding-top: 34px; }
  .hero .script { margin-top: 0; }
}

/* Hero: sign sits slightly lower than the headline (desktop) */
@media (min-width: 981px) {
  .hero .sign-col { margin-top: 56px; }
}

/* Mobile: tidy top strip (two centered lines, no broken phrases) and less empty space above the headline */
.strip span { white-space: nowrap; }
@media (max-width: 640px) {
  .strip { font-size: .78rem; padding: .3rem 0; }
  .strip .wrap { flex-direction: column; gap: 1px; text-align: center; }
}
@media (max-width: 980px) {
  .hero { padding-top: 0; }
  .hero .wrap { padding-top: 26px; }
}

/* Hero headline: cream part on the first line, gold part on the second */
.hero h1 em { display: block; }
@media (min-width: 981px) {
  .hero h1 { font-size: clamp(2.5rem, 4.3vw, 3.5rem); }
}

/* Mobile hero: compact copy so the sign comes up sooner */
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(1.8rem, 9.1vw, 2.5rem); }
  .hero p.lead { font-size: 1rem; line-height: 1.45; margin-top: 10px; }
  .hero .chips { margin-top: 16px; gap: 7px 8px; }
  .hero .chips li { font-size: .85rem; padding: 4px 12px; }
  .hero .wrap { gap: 22px; padding-top: 20px; }
}

/* Service cards: the whole tile is clickable when it has a link */
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 3; cursor: pointer; }
.card:has(.card-link) { cursor: pointer; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }
.card-link:focus-visible { outline: none; }

/* Chat terminal stays pinned to the screen until closed with the X.
   (A leftover filter on <body> used to turn every fixed element into a page-anchored one.) */
body { filter: none; }
.chat { position: fixed; max-height: calc(100dvh - 3rem); max-width: calc(100vw - 1.5rem); }
@media (max-width: 640px) {
  .chat { inset: 0; width: 100%; height: 100dvh; max-height: none; max-width: none; border-radius: 0; z-index: 900; }
}

/* Chat terminal: tighter log, input field that reads as "type here" */
.chat .chat-log { gap: .15rem; }
.chat .msg { padding: .12rem .8rem; line-height: 1.3; }
.chat .msg.me { padding: .25rem .8rem; margin-block: .25rem; }
.chat .chat-opts { padding: .45rem 1rem .3rem; }
.chat .chat-input-row {
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  border-top: 2px solid var(--crt);
  background: #0b2415;
}
.chat input.chat-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  background: #020a05;
  color: var(--crt);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 0 12px;
  font-family: var(--font-t);
  font-size: 1.15rem;
  caret-color: var(--gold);
  box-shadow: 0 0 0 0 rgba(255,210,122,.5);
  animation: chatInputPulse 2.2s ease-in-out infinite;
}
.chat input.chat-input::placeholder { color: var(--gold); opacity: .85; }
.chat input.chat-input:focus { outline: none; border-color: var(--crt); animation: none; box-shadow: 0 0 10px rgba(125,255,160,.45); }
@keyframes chatInputPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,210,122,.0); }
  50%      { box-shadow: 0 0 0 4px rgba(255,210,122,.28); }
}
.chat .chat-send {
  background: var(--crt);
  color: var(--crt-bg);
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
}
.chat .chat-send:hover { background: #a6ffbf; }

/* Service icons: painted retro badges instead of line icons */
.card .ico.ico-img { width: 96px; height: 96px; background: none; border: 0; border-radius: 0; margin-bottom: .9rem; }
.card .ico.ico-img img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 0 rgba(22,48,78,.35)); transition: transform .2s; }
.card:hover .ico.ico-img img { transform: rotate(-6deg) scale(1.06); }
.inner-icon.inner-icon-img { width: 200px; height: 200px; background: none; border: 0; box-shadow: none; }
.inner-icon.inner-icon-img img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 0 rgba(0,0,0,.25)); }
@media (max-width: 640px) {
  .inner-icon.inner-icon-img { width: 150px; height: 150px; }
}

/* Service pages: buttons sit evenly between the intro text and the chips */
.hero-inner .hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-inner .hero-btns + .chips { margin-top: 26px; }
