/* 24 Hour Roadside Hawks — design system
   Palette sourced from the original site's own CSS (catalog.json > palette).
   Their hues only. Lightness adjusted ONLY where WCAG AA fails; noted inline. */

:root {
  /* --- their exact colors --- */
  --navy:        #000033;  /* 147 uses on original */
  --red:         #ff0000;  /* 104 uses */
  --blue:        #0000cd;  /* 48 uses */
  --white:       #ffffff;
  --black:       #000000;
  --gray-300:    #e7e7e7;
  --gray-400:    #d4d4d4;
  --gray-500:    #aeaeae;
  --gray-600:    #777777;

  /* --- AA-safe variants (lightness only, hue preserved) --- */
  --navy-deep:   #00001f;  /* layering below navy */
  --navy-soft:   #0d0d4d;  /* raised surfaces on navy */
  --navy-line:   #23235c;  /* hairlines on navy */
  --red-action:  #d40000;  /* white text on pure red = 4.0:1, fails AA. This = 5.3:1 */
  --red-text:    #ff4747;  /* pure red on navy = 4.5:1 borderline for body copy */

  --ink:         #14142e;
  --ink-soft:    #4a4a63;
  --paper:       #ffffff;
  --paper-alt:   #f6f6fa;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* System stack on purpose: zero font downloads. Speed is the product. */

  --wrap: 1180px;
  --r: 14px;
  --shadow: 0 2px 8px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,51,.10);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.12), 0 24px 60px rgba(0,0,51,.18);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red-action); color: #fff; padding: 12px 20px; font-weight: 700;
}
.skip:focus { left: 0; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--red-text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- demo strip (sales shell, not part of the customer product) ---------- */
.demobar { background: #0a0a12; color: #d8d8ea; font-size: .9rem; }
.demobar-in { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 0; }
.demobar-in > span { margin-right: auto; }
.demobar b { color: #fff; }
.demobar-a {
  color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap;
  border: 1px solid #33334d; padding: 7px 15px; border-radius: 999px;
}
.demobar-a:hover { border-color: #7a7aa0; }
.demobar-b { background: var(--red-action); border-color: var(--red-action); }
.demobar-b:hover { background: var(--red); border-color: var(--red); }
.demobar-x {
  appearance: none; background: transparent; border: 0; color: #7a7aa0;
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px;
}
.demobar-x:hover { color: #fff; }
@media (max-width: 620px) { .demobar-in > span { font-size: .84rem; } }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}
.hdr-in { display: flex; align-items: center; gap: 14px; min-height: 66px; }
/* min-width:0 so the brand can shrink instead of forcing the row wider than the viewport */
.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; min-width: 0; }
.brand b {
  color: var(--white); font-size: 1.03rem; font-weight: 800;
  letter-spacing: .02em; line-height: 1.15; text-transform: uppercase;
}
.brand span { color: var(--red-text); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.nav { display: none; gap: 26px; }
.nav a { color: #d8d8ea; text-decoration: none; font-size: .93rem; font-weight: 600; }
.nav a:hover { color: var(--white); }

.call-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--red-action); color: var(--white);
  font-weight: 800; font-size: 1.02rem; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; white-space: nowrap;
}
.call-btn:hover { background: var(--red); }
.call-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

@media (min-width: 900px) { .nav { display: flex; } }

/* Narrow phones: brand + nowrap call button overflow 390px. Shrink both to fit. */
@media (max-width: 620px) {
  .wrap { padding-inline: 16px; }
  .brand b { font-size: .8rem; letter-spacing: .01em; }
  .brand span { font-size: .58rem; letter-spacing: .12em; }
  .hdr .call-btn { padding: 10px 15px; font-size: .92rem; gap: 7px; }
  .hdr .call-btn svg { width: 16px; height: 16px; }
}

/* ---------- subnav (all pages, so nothing is orphaned) ---------- */
.subnav { background: var(--navy-soft); border-bottom: 1px solid var(--navy-line); }
.subnav-in { display: flex; gap: 4px; overflow-x: auto; padding: 0; scrollbar-width: thin; }
.subnav-in a {
  color: #c8c8e0; text-decoration: none; font-size: .87rem; font-weight: 600;
  padding: 13px 14px; white-space: nowrap; border-bottom: 3px solid transparent;
}
.subnav-in a:hover { color: #fff; }
.subnav-in a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }

/* ---------- interior page hero ---------- */
.pghero { position: relative; background: var(--navy-deep); color: var(--white); overflow: hidden; }
.pghero-img { position: absolute; inset: 0; }
.pghero-img img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.pghero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,31,.6), rgba(0,0,31,.88)); }
.pghero-in { position: relative; z-index: 2; padding: 52px 0 46px; }
.pghero h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 900; letter-spacing: -.022em; line-height: 1.06; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gtile { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 10px; background: var(--navy-deep); }
.gtile img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gtile:hover img { transform: scale(1.05); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy-deep); color: var(--white); overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: .40; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,31,.55) 0%, rgba(0,0,31,.80) 55%, var(--navy-deep) 100%);
}
.hero-in { position: relative; z-index: 2; padding: 62px 0 54px; }

.flag {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--red); color: var(--white);
  font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:.25 } }

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 6.4vw, 4rem);
  line-height: 1.04; font-weight: 900; letter-spacing: -.022em;
}
.hero h1 em { color: var(--red-text); font-style: normal; }
.hero-sub { margin: 0 0 32px; font-size: clamp(1.04rem, 2.1vw, 1.28rem); color: #cfcfe4; max-width: 40ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-tel {
  display: inline-flex; flex-direction: column; text-decoration: none;
  background: var(--red-action); color: var(--white);
  padding: 15px 30px; border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.cta-tel small { font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; opacity: .92; }
.cta-tel strong { font-size: clamp(1.5rem, 4.6vw, 2rem); font-weight: 900; letter-spacing: -.01em; line-height: 1.15; }
.cta-tel:hover { background: var(--red); }

.cta-ghost {
  display: inline-flex; align-items: center; text-decoration: none;
  color: var(--white); border: 2px solid rgba(255,255,255,.35);
  padding: 16px 26px; border-radius: var(--r); font-weight: 700;
}
.cta-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.07); }

/* ---------- trust strip ---------- */
.strip { background: var(--navy); border-top: 1px solid var(--navy-line); }
.strip-in { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--navy-line); }
.strip-i { background: var(--navy); padding: 20px 22px; }
.strip-i b { display: block; color: var(--white); font-size: 1.02rem; font-weight: 800; }
.strip-i span { color: #a8a8c8; font-size: .87rem; }
@media (min-width: 700px) { .strip-in { grid-template-columns: repeat(4, 1fr); } }

/* ---------- sections ---------- */
.sec { padding: 68px 0; }
.sec-alt { background: var(--paper-alt); }
.sec-navy { background: var(--navy); color: var(--white); }

.eyebrow {
  font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-action); margin: 0 0 12px;
}
.sec-navy .eyebrow { color: var(--red-text); }

h2 { font-size: clamp(1.7rem, 3.7vw, 2.5rem); line-height: 1.13; font-weight: 900; letter-spacing: -.02em; margin: 0 0 16px; }
.lede { font-size: 1.09rem; color: var(--ink-soft); max-width: 62ch; margin: 0 0 38px; }
.sec-navy .lede { color: #c2c2dc; }

/* ---------- services ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gray-400); }
.card-img { aspect-ratio: 16/10; background: var(--navy-deep); overflow: hidden; flex: none; }
/* aspect-ratio on the img too: the width/height attrs must never win and skew row alignment */
.card-img img { width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-b { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 9px; font-size: 1.14rem; font-weight: 800; line-height: 1.25; }
.card p { margin: 0 0 16px; color: var(--ink-soft); font-size: .96rem; flex: 1; }
.card-call { color: var(--red-action); font-weight: 800; text-decoration: none; font-size: .93rem; }
.card-call:hover { text-decoration: underline; }

/* ---------- price table ---------- */
.ptable { border: 1px solid var(--gray-300); border-radius: var(--r); overflow: hidden; background: var(--white); }
.prow { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-bottom: 1px solid var(--gray-300); }
.prow:last-child { border-bottom: 0; }
.prow-hi { background: #fff7f7; border-left: 5px solid var(--red); }
.pname { flex: 1; min-width: 0; }
.pname b { display: block; font-size: 1.06rem; font-weight: 800; margin-bottom: 4px; }
.pname span { color: var(--ink-soft); font-size: .93rem; }
.pprice { flex: none; text-align: right; color: var(--ink-soft); font-size: .88rem; white-space: nowrap; }
.pprice b { display: block; color: var(--red-action); font-size: 1.72rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.pprice small { display: block; font-size: .76rem; color: var(--ink-soft); }
@media (max-width: 560px) {
  .prow { flex-direction: column; gap: 10px; }
  .pprice { text-align: left; }
  .pprice b { font-size: 1.5rem; }
}

/* ---------- policy rules block (on navy) ---------- */
.rules { display: grid; gap: 2px; background: var(--navy-line); border: 1px solid var(--navy-line); border-radius: var(--r); overflow: hidden; }
.rules p { margin: 0; background: var(--navy); padding: 20px 22px; color: #c2c2dc; font-size: .98rem; }
.rules b { color: var(--white); }

/* ---------- numbered steps ---------- */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.stepc { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--r); padding: 24px; }
.stepn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--red-action); color: #fff; font-weight: 900; margin-bottom: 14px;
}
.stepc h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 800; }
.stepc p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- hours ---------- */
.hours { width: 100%; border-collapse: collapse; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: 11px 4px; border-bottom: 1px solid var(--gray-300); font-size: .98rem; }
.hours th { font-weight: 700; text-transform: capitalize; }
.hours td { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; font-weight: 800; color: var(--ink); }

.addr { background: var(--paper-alt); border: 1px solid var(--gray-300); border-radius: var(--r); padding: 26px; }
.addr h3 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-action); }
.addr p { margin: 0 0 10px; font-size: 1.06rem; }

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

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.split img { border-radius: var(--r); box-shadow: var(--shadow); }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 18px; height: 10px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

/* ---------- policy callout ---------- */
.note {
  background: var(--white); border: 1px solid var(--gray-300);
  border-left: 5px solid var(--red); border-radius: 10px;
  padding: 20px 22px; margin: 0 0 16px;
}
.note p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.note b { color: var(--ink); }

/* ---------- areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  background: var(--navy-soft); color: #dcdcf0; border: 1px solid var(--navy-line);
  padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
}

/* ---------- faq ---------- */
.faq { max-width: 860px; }
.q { border-bottom: 1px solid var(--gray-300); }
.q summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-weight: 700; font-size: 1.04rem; color: var(--ink);
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 3px solid var(--red-action); border-bottom: 3px solid var(--red-action);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.q[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.q p { margin: 0 0 22px; color: var(--ink-soft); }

/* ---------- final cta ---------- */
.final { background: var(--red-action); color: var(--white); text-align: center; padding: 66px 0; }
.final h2 { margin-bottom: 12px; }
.final p { margin: 0 0 28px; font-size: 1.1rem; opacity: .95; }
.final .cta-tel { background: var(--white); color: var(--red-action); }
.final .cta-tel:hover { background: var(--gray-300); }
.final .cta-row { justify-content: center; }

/* ---------- footer ---------- */
.ft { background: var(--navy-deep); color: #9a9ac0; padding: 54px 0 26px; font-size: .93rem; }
.ft-grid { display: grid; grid-template-columns: 1fr; gap: 34px; margin-bottom: 38px; }
@media (min-width: 800px) { .ft-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.ft h4 { color: var(--white); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; }
.ft a { color: #c4c4e0; text-decoration: none; }
.ft a:hover { color: var(--white); text-decoration: underline; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft-tel { color: var(--white); font-weight: 800; font-size: 1.16rem; text-decoration: none; }
.ft-bot {
  border-top: 1px solid var(--navy-line); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .85rem;
}

/* watermark — deliberately near-invisible, per PRD §10 */
.wm { color: #9a9ac0; opacity: .30; font-size: 10px; text-decoration: none; letter-spacing: .04em; }
.wm:hover { opacity: .75; }

/* ---------- sticky mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--red-action); display: flex;
  padding: max(10px, env(safe-area-inset-bottom)) 14px 10px;
}
.callbar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--white); text-decoration: none; font-weight: 900; font-size: 1.12rem; padding: 12px;
}
.callbar svg { width: 20px; height: 20px; fill: currentColor; }
body { padding-bottom: 74px; }
@media (min-width: 900px) { .callbar { display: none; } body { padding-bottom: 0; } }
