/* Popular Demand Towing
   Built from the business's own world, not a template:
   - their logo: chrome lettering, purple script "Demand", crown, tow chain and hook
   - their photos: mostly night tows under amber light bars
   - the 559 and California car culture: the phone number is a CA license plate
   Type: Barlow (modeled on California highway signs), Barlow Condensed for
   chrome headings, Yellowtail as the one script accent. */
:root {
  --night: #0d0a14;
  --night-2: #151020;
  --night-3: #1d1630;
  --purple: #7b3fe4;
  --purple-hi: #b28cff;
  --purple-deep: #2a1257;
  --amber: #ffa21a;       /* light-bar amber: things you tap to call or text */
  --amber-hi: #ffb94d;
  --text: #ece8f4;
  --muted: #a9a2b9;
  --line: #2c2440;
  --plate-ink: #1a2a6c;   /* CA plate characters */
  --plate-red: #c4122f;   /* CA plate script */
  --chrome: linear-gradient(180deg, #ffffff 0%, #e6e6ee 36%, #8e8e9c 50%, #f5f5f9 66%, #bdbdc9 100%);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 18px/1.6 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, table { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.ico { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* The real logo carries the chrome at the top of the page; all headings are plain white
   so the logo and the plate stay the two loud things. */
h1, h2 { font-family: var(--head); font-weight: 800; font-style: italic; line-height: 1; color: #fff; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); color: #fff; }
h3 { font-family: var(--head); font-weight: 800; line-height: 1.1; font-size: 1.45rem; }
.script {
  font-family: var(--script); font-weight: 400; font-style: normal;
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--purple-hi); -webkit-text-fill-color: var(--purple-hi);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 10px; border: 0; cursor: pointer;
  font: 800 1.15rem/1 var(--head); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.btn--amber { background: var(--amber); color: #1a1200; }
.btn--amber:hover { background: var(--amber-hi); }
.btn--chrome { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px #c9c6d3; }
.btn--chrome:hover { box-shadow: inset 0 0 0 2px #fff; color: #fff; }
.btn--sm { padding: .6rem 1rem; font-size: 1.05rem; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.35rem; }
.is-busy { opacity: .7; pointer-events: none; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 60; background: rgba(13, 10, 20, .95); border-bottom: 1px solid var(--line); }
.header__inner { width: min(1280px, 100% - 32px); margin-inline: auto; min-height: 84px; display: flex; align-items: center; gap: 2rem; }
/* The logo sits on black; "lighten" drops that black into the page background */
.logo { display: block; flex: none; line-height: 0; }
.logo img { width: auto; mix-blend-mode: lighten; }
.header .logo img { height: 72px; }
.header .logo { transition: opacity .2s ease; }
.header.logo-hidden .logo { opacity: 0; pointer-events: none; }
/* With JS: the header floats over the hero photo, see-through while the big hero logo
   is on screen, then solid with its own logo once you scroll past it. */
.js .header { position: fixed; left: 0; right: 0; transition: background-color .2s ease, border-color .2s ease; }
.js .header.logo-hidden { background: transparent; border-bottom-color: transparent; }
.js .hero__photo { height: calc(clamp(420px, 76vh, 740px) + 84px); }
.js .hero__head { padding-top: calc(84px + clamp(.4rem, 1.6vw, 1rem)); }
.logo--lg img { height: auto; width: min(320px, 78vw); }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; font: 600 1.1rem/1 var(--head); color: var(--muted); }
.nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero__photo { position: relative; height: clamp(420px, 76vh, 740px); overflow: hidden; background: var(--night-2); }
.hero__photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__photo::before { /* painted under .hero__head so the logo blends with the photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 10, 20, .92) 0%, rgba(13, 10, 20, .72) 32%, rgba(13, 10, 20, .2) 52%, rgba(13, 10, 20, 0) 60%, rgba(13, 10, 20, .1) 72%, var(--night) 100%);
}
/* Logo + headline sit in the sky above the truck. No z-index here on purpose: a stacking
   context would stop the logo's black background from blending into the photo. */
.hero__head { position: absolute; top: 0; left: 0; right: 0; padding: clamp(.8rem, 2.4vw, 1.6rem) 20px 0; display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: clamp(150px, 20vw, 260px); height: auto; mix-blend-mode: lighten; }
.hero__head h1 {
  margin-top: .2rem; max-width: 24em; text-wrap: balance;
  font-size: clamp(1.75rem, 2.8vw, 2.25rem); line-height: 1.1; text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

/* the license plate */
/* Everything inside the plate is sized from --pw (the plate's own width). Percent padding
   would be relative to the whole page and squeeze the number on wide screens. */
.plate {
  --pw: min(520px, 90vw);
  position: relative; z-index: 2; display: grid; justify-items: center; align-content: center;
  width: var(--pw); aspect-ratio: 2 / 1; margin: calc(var(--pw) * -.25) auto 0;
  padding: calc(var(--pw) * .04) calc(var(--pw) * .06) calc(var(--pw) * .03); border-radius: 16px; text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #f1f2f6 60%, #e2e4ec 100%);
  box-shadow: inset 0 0 0 3px #c9ccd6, inset 0 0 0 7px #fff, inset 0 0 0 9px #9aa0b2, 0 24px 50px -18px rgba(0, 0, 0, .8);
  transform: rotate(-2deg); transition: transform .2s ease;
}
.plate:hover { transform: rotate(-1deg) scale(1.015); }
.plate::before, .plate::after { /* bolts */
  content: ""; position: absolute; top: 9%; width: 4.2%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #9aa0b2 60%, #6b7082);
}
.plate::before { left: 21%; }
.plate::after { right: 21%; }
.plate__state { font: calc(var(--pw) * .08)/1 var(--script); color: var(--plate-red); }
.plate__num {
  font: 600 calc(var(--pw) * .165)/1 var(--head); color: var(--plate-ink);
  letter-spacing: .02em; margin-top: .1em; white-space: nowrap;
}
.plate__frame { margin-top: .5em; font: 700 calc(var(--pw) * .027)/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--plate-ink); opacity: .75; }
.plate__sticker {
  position: absolute; top: 7%; right: 4.5%; padding: .3em .45em; border-radius: 4px;
  background: var(--purple); color: #fff; font: 800 calc(var(--pw) * .026)/1 var(--head); letter-spacing: .08em; transform: rotate(4deg);
}
.plate__hint { margin-top: .9rem; font: 600 1rem/1 var(--head); color: var(--muted); }

.hero__copy { width: min(760px, 100% - 40px); margin: clamp(1.2rem, 3vw, 1.8rem) auto 0; }
.hero__sub { margin: 0 auto; max-width: 36em; color: var(--muted); }
.hero__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Chain + hook divider ---------- */
.chain {
  position: relative; height: 46px; width: min(1160px, 100% - 40px); margin: 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 22'%3E%3Cg fill='none' stroke='%23a9a7b6' stroke-width='3'%3E%3Crect x='3' y='4' width='27' height='14' rx='7'/%3E%3Crect x='26' y='9' width='28' height='4' rx='2'/%3E%3C/g%3E%3C/svg%3E") repeat-x left 4px / 42px 17px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.chain__hook { position: absolute; left: 50%; top: 4px; width: 26px; height: 40px; margin-left: -13px; fill: none; stroke: #d6d4e0; stroke-width: 3.2; stroke-linecap: round; }

/* ---------- What happened? ---------- */
.help { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5rem); }
.help__sub { margin-top: .9rem; max-width: 40em; color: var(--muted); }
.picker { margin-top: 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.pick {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.4rem;
  min-height: 132px; padding: 1.1rem 1.2rem; border-radius: 12px; text-decoration: none;
  background: var(--night-2); border: 1px solid var(--line);
  transition: border-color .15s ease, background-color .15s ease;
}
.pick:hover { border-color: var(--purple); background: var(--night-3); }
.pick svg { width: 40px; height: 40px; fill: none; stroke: var(--purple-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pick span { font: 800 1.45rem/1.05 var(--head); color: var(--text); }
.pick--call { background: var(--amber); border-color: var(--amber); }
.pick--call:hover { background: var(--amber-hi); border-color: var(--amber-hi); }
.pick--call svg { stroke: #1a1200; width: 34px; height: 34px; }
.pick--call span { color: #1a1200; }
.hint { min-height: 1.6em; margin-top: .9rem; color: var(--amber-hi); font-weight: 500; }
.help__note { margin-top: .4rem; font-size: .95rem; color: var(--muted); max-width: 46em; }

/* ---------- By popular demand ---------- */
.services { background: var(--purple-deep); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.services__head { text-align: center; }
.services__head h2 { font-size: clamp(2.8rem, 5.6vw, 4rem); line-height: 1.1; }
.services__head p { margin: .8rem auto 0; max-width: 36em; color: #d2c6ee; }

/* photos framed like their round logo badge: chrome ring + crown on top */
.badges { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge__ring {
  position: relative; width: min(250px, 70vw); aspect-ratio: 1; border-radius: 50%; padding: 9px;
  background: var(--chrome); box-shadow: 0 0 0 4px var(--purple), 0 22px 40px -18px rgba(0, 0, 0, .7);
}
.badge__ring img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); object-fit: cover; border-radius: 50%; }
.badge__crown { position: absolute; left: 50%; top: -30px; width: 64px; height: 52px; margin-left: -32px; fill: var(--amber); stroke: var(--purple-deep); stroke-width: 1.4; z-index: 1; }
.badge h3 { margin-top: 1.4rem; font-size: 1.7rem; color: #fff; }
.badge p { margin-top: .5rem; max-width: 22em; color: #d2c6ee; font-size: 1rem; }

.svc-more { margin-top: 3.5rem; color: var(--amber); }
.svc-list { margin-top: .6rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
.svc-list li { padding: 1rem 0 1.1rem; border-top: 1px solid rgba(178, 140, 255, .28); }
.svc-list h3 { color: #fff; }
.svc-list p { margin-top: .25rem; color: #d2c6ee; font-size: 1rem; }

/* ---------- Why Popular Demand ---------- */
.why { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.why__list { margin-top: 1.8rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 2rem; }
.why__list li { color: var(--muted); padding-top: 1rem; border-top: 2px solid var(--purple); }
.why__list b { display: block; font: 800 1.45rem/1.15 var(--head); color: var(--text); margin-bottom: .2rem; }

/* ---------- From the road ---------- */
.road { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5rem); }
.road__sub { margin-top: .8rem; color: var(--muted); }
.road__sub a { color: var(--purple-hi); }
.road__grid { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: .6rem; }
.mosaic figure { position: relative; overflow: hidden; border-radius: 10px; background: var(--night-2); }
.mosaic__big { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .6rem;
  background: linear-gradient(180deg, transparent, rgba(13, 10, 20, .85));
  font: 700 1rem/1.15 var(--head); color: #fff;
}
.runs { background: var(--night-2); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem 1.5rem 1.6rem; }
.runs h3 { color: var(--amber); }
.runs table { width: 100%; margin-top: .8rem; border-collapse: collapse; }
.runs th, .runs td { padding: .65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.runs th { text-align: left; font: 800 1.15rem/1.2 var(--head); color: var(--text); padding-right: 1rem; }
.runs td { text-align: right; color: var(--muted); }
.runs__tag { margin-top: 1.2rem; color: var(--muted); }
.runs__tag .script { display: block; font-size: 2rem; line-height: 1.1; margin-bottom: .2rem; }

/* ---------- Where we go ---------- */
.area { background: var(--night-2); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.area__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem 3.5rem; align-items: start; }
.area__top p { margin-top: 1rem; color: var(--muted); max-width: 34em; }
.counties { margin-top: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; }
.counties > div { padding-top: .8rem; border-top: 2px solid var(--purple); }
.counties h3 { color: #fff; }
.counties p { margin-top: .3rem; color: var(--muted); font-size: 1rem; }
.map { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3.4; background: var(--night-3); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4rem) 0 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.footer__num { display: inline-block; font: 800 italic clamp(2.2rem, 5vw, 3rem)/1 var(--head); color: var(--amber); text-decoration: none; }
.footer__num:hover { color: var(--amber-hi); }
.footer__contact p { margin-top: .5rem; color: var(--muted); }
.footer__contact a:not(.footer__num) { color: var(--purple-hi); }
.footer__copy { margin-top: 3rem; padding: 1.2rem 20px; border-top: 1px solid var(--line); text-align: center; font-size: .85rem; color: #9a93ad; }

/* ---------- Mobile ---------- */
.callbar { display: none; }

@media (max-width: 980px) {
  .nav { display: none; }
  .header__inner { justify-content: space-between; }
  .picker { grid-template-columns: repeat(2, 1fr); }
  .road__grid, .area__top { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr; gap: 3.5rem; }
  .svc-list, .why__list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 17px; padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .header__inner { min-height: 64px; }
  .header .logo img { height: 54px; }
  .header .btn { display: none; }               /* the bottom bar carries call + text */
  .hero__photo, .js .hero__photo { height: 480px; }
  .js .hero__head { padding-top: .9rem; }
  .hero__photo > img { object-position: 50% 50%; }
  .hero__btns { display: none; }
  .pick { min-height: 112px; gap: 1rem; }
  .pick span { font-size: 1.3rem; }
  .svc-list, .why__list { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .mosaic__big { grid-column: span 2; grid-row: span 2; }
  .map { aspect-ratio: 4 / 3; }

  .callbar {
    display: grid; grid-template-columns: 1fr auto; gap: 8px;
    position: fixed; inset: auto 0 0 0; z-index: 70;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--night); border-top: 1px solid var(--line);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; height: 54px; padding: 0 1.4rem;
    border-radius: 10px; text-decoration: none; font: 800 1.3rem/1 var(--head);
  }
  .callbar__call { background: var(--amber); color: #1a1200; }
  .callbar__text { color: var(--text); box-shadow: inset 0 0 0 2px #c9c6d3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate, .btn, .pick, .header .logo, .js .header { transition: none; }
}
