/* ==========================================================================
   Rev Roadside Hawaii — styles.css
   Dark automotive/tech design system with electric "volt" accent
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0f1c;            /* page background */
  --bg-raised: #101828;     /* cards / raised surfaces */
  --bg-raised-2: #16203a;   /* hover surfaces */
  --line: rgba(148, 163, 184, 0.16);
  --text: #eef2f8;
  --text-muted: #9aa7bd;
  --text-faint: #6b7893;

  --volt: #b7f13d;          /* primary electric accent */
  --volt-strong: #a2e522;
  --volt-ink: #10190a;      /* text on volt */
  --cyan: #52c7f2;          /* secondary accent, used sparingly */

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1120px;
  --shadow-card: 0 10px 30px rgba(2, 6, 18, 0.45);
  --mobile-bar-h: 64px;
}

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { padding-left: 1.2em; }

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--volt); color: var(--volt-ink); }

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--volt);
  color: var(--volt-ink);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-volt {
  background: var(--volt);
  color: var(--volt-ink);
  box-shadow: 0 6px 22px rgba(183, 241, 61, 0.22);
}
.btn-volt:hover { background: var(--volt-strong); color: var(--volt-ink); }

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: rgba(238, 242, 248, 0.35);
}
.btn-outline:hover { border-color: var(--volt); color: var(--volt); }

.btn-lg { padding: 1.1rem 2rem; font-size: 1.06rem; }
.btn-sm { padding: 0.65rem 1.15rem; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 28, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .brand-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--volt);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.4rem 0;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--volt);
}

.header-cta { display: inline-flex; gap: 0.6rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  background:
    radial-gradient(52rem 30rem at 82% -12%, rgba(183, 241, 61, 0.09), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, rgba(82, 199, 242, 0.07), transparent 60%);
}
.hero::after {
  /* subtle horizon line — a quiet nod to the island skyline */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 241, 61, 0.35), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto auto;
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: 0.4rem;
  align-items: center;
}
.hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
.hero-actions { grid-column: 1; grid-row: 2; align-self: start; }
.hero-grid .hero-visual { grid-column: 2; grid-row: 1 / span 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 12px rgba(183, 241, 61, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero .lede {
  font-size: clamp(1.05rem, 1.9vw, 1.2rem);
  color: var(--text-muted);
  max-width: 34em;
  margin-bottom: 1.4rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.4rem; }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero-note li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(183, 241, 61, 0.07);
  border: 1px solid rgba(183, 241, 61, 0.28);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
}
.hero-note svg { width: 15px; height: 15px; color: var(--volt); flex: none; }

.hero-visual { position: relative; }
.hero-visual .visual-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: var(--shadow-card);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 8vw, 5.5rem) 0; }
.section-alt { background: #111b31; border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(183, 241, 61, 0.35); transform: translateY(-2px); }
.card h3 { margin-top: 1rem; }
.card p { color: var(--text-muted); font-size: 0.97rem; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  color: var(--volt);
  font-weight: 600;
  font-size: 0.94rem;
  font-family: var(--font-display);
}
.card .card-link svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.card .card-link:hover { text-decoration: none; }
.card .card-link:hover svg { transform: translateX(3px); }

.card-art {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1.15rem;
  background: #0d1526;
}
.card-art img { width: 100%; height: auto; display: block; transition: transform 0.35s ease; }
.card:hover .card-art img { transform: scale(1.04); }

.icon-chip {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(183, 241, 61, 0.1);
  border: 1px solid rgba(183, 241, 61, 0.25);
  color: var(--volt);
}
.icon-chip svg { width: 23px; height: 23px; }

/* ---------- Split feature (EV charging) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  box-shadow: var(--shadow-card);
}
.split-media img { width: 100%; height: auto; object-fit: contain; }
.split-body .checklist { margin: 1.4rem 0 1.8rem; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-muted);
}
.checklist svg {
  width: 19px;
  height: 19px;
  color: var(--volt);
  flex: none;
  margin-top: 0.2em;
}
.checklist strong { color: var(--text); font-weight: 600; }

/* ---------- How it works ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 0.4rem; }
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(183, 241, 61, 0.55);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Why choose ---------- */
.feature-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row .icon-chip { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.feature-row .icon-chip svg { width: 20px; height: 20px; }
.feature-row h3 { font-size: 1.06rem; margin-bottom: 0.15rem; }
.feature-row p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Service page art thumbs ---------- */
.service-art {
  width: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  align-self: start;
  background: #0d1526;
}
.service-art img { width: 100%; display: block; }

/* ---------- Areas served ---------- */
.map-frame { padding: 1.4rem; }
.map-frame img { width: 100%; height: auto; }
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}
.area-tags li {
  border: 1px solid var(--line);
  background: var(--bg-raised);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.94rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
}
.area-tags li.tag-accent { border-color: rgba(183, 241, 61, 0.4); color: var(--volt); }

/* ---------- Reviews ---------- */
.review-placeholder {
  border: 1.5px dashed rgba(148, 163, 184, 0.3);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.015);
}
.review-placeholder svg { width: 34px; height: 34px; margin: 0 auto 0.8rem; color: var(--text-faint); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.8rem; max-width: 780px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--volt);
  line-height: 1;
  transition: transform 0.2s ease;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.25rem; color: var(--text-muted); font-size: 0.98rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(183, 241, 61, 0.3);
  background:
    radial-gradient(38rem 18rem at 85% 0%, rgba(183, 241, 61, 0.13), transparent 65%),
    var(--bg-raised);
  padding: clamp(2.2rem, 6vw, 3.6rem);
  text-align: center;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 0.4rem; }
.cta-band p { color: var(--text-muted); max-width: 44em; margin: 0 auto 1.6rem; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(2.8rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
  background: radial-gradient(46rem 24rem at 80% -30%, rgba(183, 241, 61, 0.08), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.page-hero p { color: var(--text-muted); max-width: 46em; font-size: 1.08rem; }

/* ---------- Service detail blocks ---------- */
.service-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.service-block + .service-block { margin-top: 1.4rem; }
.service-block.featured { border-color: rgba(183, 241, 61, 0.4); }
.service-block h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 0.4rem; }
.service-block .who {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 1rem 0 1.3rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(82, 199, 242, 0.06);
  border: 1px solid rgba(82, 199, 242, 0.18);
  color: var(--text-muted);
  font-size: 0.96rem;
}
.service-block .who svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 0.2em; }
.service-block .who strong { color: var(--text); }
.service-block p { color: var(--text-muted); }
.featured-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt-ink);
  background: var(--volt);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.9rem;
}

/* ---------- Forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-grid > * { min-width: 0; }
.form-grid .btn { white-space: normal; }

.form-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}
.form-field .req { color: var(--volt); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: #0b1120;
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.15s ease;
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa7bd' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--volt);
}
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: #f87171;
}
.error-msg {
  display: none;
  color: #fca5a5;
  font-size: 0.85rem;
}
.form-field.has-error .error-msg { display: block; }
.form-field .hint { color: var(--text-faint); font-size: 0.85rem; }

.consent-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}
.consent-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--volt);
  flex: none;
}
.consent-row label { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; font-family: var(--font-body); }

.form-status {
  display: none;
  grid-column: 1 / -1;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-weight: 500;
}
.form-status.success {
  display: block;
  background: rgba(183, 241, 61, 0.1);
  border: 1px solid rgba(183, 241, 61, 0.4);
  color: #d9f99d;
}
.form-status.error {
  display: block;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

/* ---------- Emergency aside ---------- */
.emergency-aside {
  background: var(--bg-raised);
  border: 1px solid rgba(183, 241, 61, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.emergency-aside h2 { font-size: 1.25rem; }
.emergency-aside p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #070b15;
  padding: clamp(2.6rem, 6vw, 4rem) 0 0;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
  padding-bottom: 2.4rem;
}
.footer-grid h3 {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-grid a { color: var(--text-muted); font-size: 0.96rem; }
.footer-grid a:hover { color: var(--volt); text-decoration: none; }
.footer-about p { color: var(--text-muted); font-size: 0.95rem; max-width: 30em; }
.footer-phone {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text) !important;
  font-size: 1.02rem !important;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 calc(1.3rem + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.88rem;
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--text-muted); }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 120;
  background: rgba(10, 15, 28, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.7rem;
}
.mobile-bar .btn { flex: 1; padding: 0.85rem 0.5rem; font-size: 0.98rem; }

/* ---------- 404 ---------- */
.error-hero { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.error-hero .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(183, 241, 61, 0.5);
  margin-bottom: 0.5rem;
}
.error-hero p { color: var(--text-muted); max-width: 34em; margin: 0 auto 1.8rem; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-updated { color: var(--text-faint); font-size: 0.9rem; }

/* ---------- Reveal animation (subtle, respects reduced motion) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 0; }
  .hero-copy, .hero-actions { grid-column: auto; grid-row: auto; }
  .hero-grid .hero-visual { grid-column: auto; grid-row: auto; max-width: 560px; margin: 0.2rem 0 1.5rem; }
}

@media (max-width: 800px) {
  .header-cta .btn-outline { display: none; }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 110;
    background: #0a0f1c;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(2, 6, 18, 0.55);
    display: none;
    padding: 0.6rem 0 1.1rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(var(--container), calc(100% - 2.5rem));
    margin-inline: auto;
  }
  .main-nav a {
    display: block;
    padding: 0.8rem 0.2rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  }
  .main-nav a[aria-current="page"] { box-shadow: none; color: var(--volt); }

  .split { grid-template-columns: 1fr; }
  .split.media-last-mobile .split-media { order: 2; }
  .service-block { grid-template-columns: 1fr; }
  .service-block .icon-chip { width: 52px; height: 52px; }
  .service-art { width: 100%; max-width: 360px; }

  .mobile-bar { display: flex; }
  body { padding-bottom: var(--mobile-bar-h); }

  /* Hero: calmer on small screens — the fixed action bar already offers
     "Request Help", so the hero keeps a single primary CTA */
  .hero { padding-top: clamp(2.2rem, 6vw, 3.5rem); padding-bottom: 2.4rem; }
  .hero .hero-cta-secondary { display: none; }
  .hero-ctas { margin-bottom: 1.2rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-inner { gap: 0.6rem; }
  .brand { font-size: 0.98rem; gap: 0.5rem; white-space: nowrap; }
  .brand svg { width: 30px; height: 30px; }
  .grid-3, .grid-4, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .cta-band .hero-ctas .btn { flex: 1 1 100%; }
  .header-cta .btn { padding: 0.7rem 1.05rem; font-size: 0.9rem; }
}
