/* ============================================================
   ROCKETS AUTO ELECTRICS + AIR CONDITIONING — tokens & globals
   Electric-blue chrome + flame orange on near-black.
   Palette taken from the Rockets business-card logo.
   ============================================================ */

@import "tokens/fonts.css";

:root {
  /* ---- Dark base (near-black blue, like the card) ---- */
  --navy-900: #05080e;
  --navy-800: #0a1220;
  --navy-700: #10203a;
  --navy-600: #183253;
  --navy-500: #1f4372;

  /* ---- Flame accent — spark / energy (from the rocket flame) ---- */
  --amber-500: #ff7a1f;
  --amber-400: #ff9648;
  --amber-600: #e85f00;

  /* ---- Electric blue — sampled from the Rockets logo wordmark ---- */
  --blue-500: #2ba6ef;
  --blue-600: #0d82d6;
  --blue-700: #0a66ad;
  --blue-800: #084f88;

  --red-600: #e0312b;     /* emergency / urgent only */
  --red-700: #c0211c;
  --red-100: #fdeceb;

  --green-600: #1f9d57;
  --green-100: #e6f6ed;

  /* ---- Neutrals ---- */
  --white: #ffffff;
  --paper: #f6f8fb;       /* page background */
  --mist:  #eef2f7;       /* alt section */
  --line:  #dde4ec;       /* hairline borders */
  --line-strong: #c3cedb;

  --ink-900: #0c1622;     /* headings on light */
  --ink-700: #2c3a4b;     /* body on light */
  --ink-500: #5a6b7e;     /* muted */
  --ink-300: #8b9aab;     /* faint */

  /* ---- Semantic aliases ---- */
  --bg-page: var(--paper);
  --bg-surface: var(--white);
  --bg-dark: var(--navy-800);
  --text-strong: var(--ink-900);
  --text-body: var(--ink-700);
  --text-muted: var(--ink-500);
  --accent: var(--amber-500);
  --accent-ink: var(--navy-900);   /* text sitting on amber */
  --surge: var(--blue-500);
  --emergency: var(--red-600);

  /* ---- Type ---- */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  /* ---- Radii ---- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* ---- Shadow ---- */
  --shadow-sm: 0 1px 2px rgba(12,22,34,.06), 0 1px 1px rgba(12,22,34,.04);
  --shadow-md: 0 8px 24px rgba(12,22,34,.10), 0 2px 6px rgba(12,22,34,.06);
  --shadow-lg: 0 24px 60px rgba(7,16,29,.18), 0 6px 16px rgba(7,16,29,.08);
  --shadow-amber: 0 10px 30px rgba(255,122,31,.38);
  --shadow-blue: 0 10px 30px rgba(13,130,214,.42);

  /* ---- Spacing scale ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  --maxw: 1200px;
  --nav-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: 1.02;
  margin: 0;
  font-weight: 700;
  letter-spacing: .01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---- Display scale ---- */
.display-xl { font-size: clamp(44px, 7vw, 88px); line-height: .96; text-transform: uppercase; letter-spacing: .005em; }
.display-lg { font-size: clamp(36px, 5vw, 60px); line-height: 1; text-transform: uppercase; }
.display-md { font-size: clamp(28px, 3.4vw, 42px); text-transform: uppercase; }
.display-sm { font-size: clamp(22px, 2.6vw, 30px); text-transform: uppercase; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  font-size: 15px;
  color: var(--amber-600);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.eyebrow.on-dark { color: var(--amber-500); }

.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-body); line-height: 1.55; }

/* ============================================================
   Layout helpers
   ============================================================ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-7) 0; }
.bg-mist { background: var(--mist); }
.bg-dark { background: var(--bg-dark); color: #c9d6e4; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }

.grid { display: grid; gap: var(--s-5); }
.flex { display: flex; }
.center { display: flex; align-items: center; justify-content: center; }

.section-head { max-width: 640px; }
.section-head .display-md { margin: 10px 0 14px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  font-size: 17px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: linear-gradient(180deg, #38aef2, #0a72c4); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: linear-gradient(180deg, #4bb8f5, #0d80d6); box-shadow: 0 14px 38px rgba(13,130,214,.55); }

.btn-emergency { background: var(--red-600); color: #fff; box-shadow: 0 10px 30px rgba(224,49,43,.35); }
.btn-emergency:hover { background: var(--red-700); }

.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }

.btn-ghost { background: transparent; color: var(--text-strong); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-900); background: rgba(12,22,34,.04); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-lg { font-size: 19px; padding: 17px 32px; }
.btn-block { width: 100%; }

/* ============================================================
   Cards & chips
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: var(--s-5); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--mist);
  color: var(--ink-700);
  border: 1px solid var(--line);
}
.chip svg { width: 15px; height: 15px; }
.chip-amber { background: rgba(255,180,0,.16); color: var(--amber-600); border-color: rgba(255,180,0,.35); }
.chip-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.chip-green { background: var(--green-100); color: var(--green-600); border-color: rgba(31,157,87,.3); }

/* icon tile */
.icon-tile {
  width: 56px; height: 56px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  color: var(--amber-500);
  flex: none;
}
.icon-tile svg { width: 28px; height: 28px; }
.icon-tile.amber { background: var(--amber-500); color: var(--navy-900); }
.icon-tile.sm { width: 44px; height: 44px; }
.icon-tile.sm svg { width: 22px; height: 22px; }

/* divider accent */
.accent-rule { width: 64px; height: 5px; background: var(--amber-500); border-radius: var(--r-pill); }

/* ============================================================
   Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  font-weight: 600; font-size: 14px; color: var(--ink-700);
}
.field label .req { color: var(--red-600); }
.input, .textarea, .select {
  font-family: var(--font-body); font-size: 16px; color: var(--ink-900);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 13px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(255,180,0,.18);
}
.textarea { resize: vertical; min-height: 110px; }
.field-error .input, .field-error .textarea, .field-error .select { border-color: var(--red-600); }
.err-msg { color: var(--red-700); font-size: 13.5px; font-weight: 500; }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
  flex: 1 1 auto; min-width: 120px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  padding: 12px 14px; background: #fff; text-align: center;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
  font-size: 15px; color: var(--ink-700);
  transition: all .14s ease;
}
.radio-pill:hover { border-color: var(--ink-500); }
.radio-pill.active { border-color: var(--amber-500); background: rgba(255,180,0,.12); color: var(--navy-900); box-shadow: inset 0 0 0 1px var(--amber-500); }
.radio-pill .sub { display: block; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12.5px; color: var(--ink-500); margin-top: 3px; }
.radio-pill.urgent.active { border-color: var(--red-600); background: var(--red-100); box-shadow: inset 0 0 0 1px var(--red-600); color: var(--red-700); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(8,15,27,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(90,150,220,.14);
  color: #fff;
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: var(--s-5); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
  font-size: 16px; color: #c9d6e4; padding: 10px 14px; border-radius: var(--r-sm);
  transition: background .15s ease, color .15s ease; position: relative;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: var(--blue-500); }
.nav-link.active:hover { color: var(--blue-500); }
.nav-cta { margin-left: 10px; }
.nav-menu-btn { display: none; background: none; border: none; color: #fff; padding: 8px; }
.nav-menu-btn svg { width: 28px; height: 28px; }

/* dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .16s ease; border: 1px solid var(--line);
}
.has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm);
  color: var(--ink-700); font-weight: 500; font-size: 15.5px;
}
.drop a:hover { background: var(--mist); color: var(--navy-900); }
.drop a svg { width: 20px; height: 20px; color: var(--amber-600); flex: none; }

/* logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 64px; width: auto; display: block; }
.footer-logo { display: inline-flex; }
.footer-logo img { height: 66px; width: auto; display: block; }

/* topbar (above nav, optional) */
.topbar { background: var(--navy-900); color: #9fb0c2; font-size: 14px; }
.topbar-inner { display: flex; align-items: center; gap: 22px; height: 38px; }
.topbar a { color: #cdd9e6; display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.topbar a:hover { color: var(--amber-500); }
.topbar svg { width: 15px; height: 15px; color: var(--amber-500); }
.topbar .spacer { margin-left: auto; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; background: var(--navy-900); color: #fff; overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(43,166,239,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,166,239,.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(120% 90% at 75% 0%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 640px; height: 640px; right: -120px; top: -180px;
  background: radial-gradient(circle, rgba(43,166,239,.24), transparent 62%);
  pointer-events: none;
}
.hero-glow.flame { background: radial-gradient(circle, rgba(255,122,31,.20), transparent 60%); }
.hero-inner { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   Misc
   ============================================================ */
.stat-num { font-family: var(--font-display); font-size: clamp(40px, 5vw, 60px); color: var(--amber-500); line-height: 1; font-weight: 700; }
.stat-label { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 600; color: #9fb0c2; margin-top: 6px; }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; }
.list-check li svg { width: 22px; height: 22px; color: var(--green-600); flex: none; margin-top: 2px; }

.image-slot-styled {
  --slot-radius: var(--r-lg);
  width: 100%; height: 100%; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
}

/* breadcrumb */
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #9fb0c2; font-weight: 500; }
.crumbs a:hover { color: var(--amber-500); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }

/* footer */
.footer { background: var(--navy-900); color: #9fb0c2; padding: var(--s-9) 0 var(--s-5); }
.footer h4 { font-size: 18px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; color: #fff; }
.footer a { color: #9fb0c2; display: block; padding: 6px 0; font-size: 15.5px; }
.footer a:hover { color: var(--amber-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: var(--s-7); padding-top: var(--s-5); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13.5px; color: #6f8298; }

/* sticky mobile call bar */
.callbar { display: none; }

/* responsive */
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #0b1526; padding: 12px; gap: 2px; border-bottom: 1px solid rgba(90,150,220,.16);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .2s ease; box-shadow: var(--shadow-lg); }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { font-size: 19px; padding: 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-menu-btn { display: block; margin-left: auto; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: none; padding: 0 0 0 16px; }
  .drop a { color: #c9d6e4; }
  .drop a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .topbar { display: none; }
  .section { padding: var(--s-8) 0; }
  .callbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; }
  .callbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; font-size: 16px; }
  .callbar svg { width: 19px; height: 19px; }
  .callbar .c-call { background: var(--blue-600); color: #fff; }
  .callbar .c-sos { background: var(--red-600); color: #fff; }
  body { padding-bottom: 54px; }
}

/* ---- Grid responsiveness (layouts use inline template columns) ---- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr) !important; }
  .steps-grid, .stats-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .hero-cols, .why-cols, .emer-cols { grid-template-columns: 1fr !important; }
  .logo-img { height: 52px; }
}
@media (max-width: 620px) {
  .grid, .steps-grid, .stats-grid, .gallery-grid, .footer-grid, .list-check { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .loc-row { flex-direction: column; align-items: stretch; }
  .loc-row .btn { width: 100%; }
  .logo-img { height: 46px; }
}
