/* ============================================================
   Cedar City Tint Wraps — brand system
   Keeps existing identity: red #D22F25 on black, LLumar partner
   ============================================================ */
:root {
  --red: #D22F25;
  --red-dark: #A81F17;
  --ink: #121216;          /* page background */
  --smoke: #1B1B21;        /* section alt background */
  --glass: #26262E;        /* cards */
  --line: #34343E;
  --paper: #F7F6F3;        /* light text */
  --muted: #A2A2AC;
  --legal: #3FA65B;
  --radius: 10px;
  --wrap: 1120px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
section.alt { background: var(--smoke); }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 8px; }
.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 10px;
}
.lede { color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--paper); }
.btn-ghost:hover { background: var(--red); color: #fff; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  padding: 8px 16px;
}
.topbar a { color: #fff; font-weight: 700; }

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 22, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; max-width: 62vw; }
.brand span {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: var(--paper);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-color: var(--red); color: #fff; }
.nav-cta { border: 2px solid var(--red); border-radius: 8px; padding: 8px 16px !important; }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  font-size: 1.4rem;
  padding: 4px 12px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(1200px 500px at 75% -10%, rgba(210, 47, 37, 0.22), transparent 60%),
    linear-gradient(180deg, #17171C 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero p.sub { color: var(--muted); font-size: 1.15rem; margin: 16px 0 28px; max-width: 520px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* Hero offer card — the $299 special as the hero focal point */
.hero-offer {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(210, 47, 37, 0.16), transparent 60%),
    var(--glass);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 14px;
  padding: 30px 28px 26px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(210, 47, 37, 0.08);
}
.hero-offer-flag {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 6px;
}
.hero-offer-price {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  color: var(--red);
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.9;
  margin: 10px 0 2px;
}
.hero-offer-price .cur { font-size: 2.2rem; margin-top: 8px; }
.hero-offer-price .amt { font-size: 5.4rem; }
.hero-offer-title {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 16px;
}
.hero-offer-list {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
}
.hero-offer-list li {
  position: relative;
  padding-left: 26px;
  color: var(--paper);
  font-size: 0.98rem;
}
.hero-offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--legal);
  font-weight: 700;
}
.hero-offer-call {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  padding: 16px 20px;
}
.hero-offer-fine {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 10px;
}
.trust-row { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.trust-row div { font-size: 0.95rem; color: var(--muted); }
.trust-row strong { display: block; color: var(--paper); font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { color: #fff; }
.card p, .card li { color: var(--muted); font-size: 0.98rem; }
.card ul { padding-left: 20px; margin-top: 8px; }

/* ---------- Pricing ---------- */
.price-tier { position: relative; }
.price-tier .price {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--red);
  margin: 6px 0 2px;
}
.price-tier .veh { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.1rem; }
.price-note { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }
.tag {
  position: absolute; top: -12px; right: 16px;
  background: var(--red); color: #fff;
  font-family: var(--display); text-transform: uppercase;
  font-size: 0.8rem; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 5px;
}

/* Featured "Most Popular" tier */
.price-tier.featured {
  border: 2px solid var(--red);
  background:
    radial-gradient(120% 78% at 50% 0%, rgba(210, 47, 37, 0.16), transparent 62%),
    var(--glass);
  box-shadow: 0 22px 50px -22px rgba(210, 47, 37, 0.55), 0 0 0 1px rgba(210, 47, 37, 0.12);
  transform: translateY(-12px);
  padding-top: 34px;
}
.price-tier.featured .tag {
  left: 50%;
  right: auto;
  top: -13px;
  transform: translateX(-50%);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 5px 18px;
  box-shadow: 0 6px 16px -4px rgba(210, 47, 37, 0.6);
}
.price-tier.featured .veh { color: #fff; }
.price-tier.featured .price { font-size: 2.9rem; }

/* ---------- VLT Simulator ---------- */
.vlt-sim {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.vlt-stage { position: relative; border-radius: var(--radius); overflow: hidden; }
.vlt-stage svg { width: 100%; height: auto; display: block; }
.vlt-controls { margin-top: 24px; }
.vlt-readout { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.vlt-readout .pct {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.vlt-readout .name { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.2rem; }
.vlt-legal { font-size: 0.95rem; margin-top: 6px; }
.vlt-legal.ok { color: var(--legal); }
.vlt-legal.no { color: var(--red); }
input[type="range"].vlt-slider {
  width: 100%;
  margin: 18px 0 6px;
  accent-color: var(--red);
  height: 6px;
  cursor: pointer;
}
.vlt-stops { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); font-family: var(--display); letter-spacing: 0.05em; }
.vlt-presets { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.vlt-presets button {
  background: var(--smoke);
  border: 1px solid var(--line);
  color: var(--paper);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.vlt-presets button:hover, .vlt-presets button.active { border-color: var(--red); color: #fff; background: rgba(210,47,37,0.15); }

/* ---------- Before / After ---------- */
.ba {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  user-select: none;
}
.ba img, .ba .ba-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after-layer { clip-path: inset(0 0 0 50%); }
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize;
}
.ba .ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: var(--red); pointer-events: none;
}
.ba .ba-handle::after {
  content: "◂ ▸";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--red); color: #fff;
  border-radius: 999px; padding: 6px 10px;
  font-size: 0.8rem; white-space: nowrap;
}
.ba .ba-label {
  position: absolute; bottom: 10px;
  background: rgba(0,0,0,0.65); color: #fff;
  font-family: var(--display); text-transform: uppercase;
  font-size: 0.8rem; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 5px; pointer-events: none;
}
.ba .ba-label.before { left: 10px; }
.ba .ba-label.after { right: 10px; }

/* ---------- Placeholder slots — designed to look intentional until real photos ---------- */
/* shared image glyph, tinted to the current text color */
.ba-ph::before, .gallery-grid .ph::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.8'/%3E%3Cpath d='M4 17l4.5-3.5 3.5 2.5 3-3.5 5 4.5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.8'/%3E%3Cpath d='M4 17l4.5-3.5 3.5 2.5 3-3.5 5 4.5'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.75;
}

/* before / after comparison placeholders */
.ba-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: center;
  padding: 30px 16px 16px;
}
.ba-ph--before {
  color: #F4F4F6;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.045) 0 14px, rgba(255,255,255,0) 14px 28px),
    linear-gradient(120deg, #565662, #7B7B87);
}
.ba-ph--after {
  color: #EDEDF0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 14px, rgba(255,255,255,0) 14px 28px),
    linear-gradient(120deg, #131319, #262630);
}
.ba-ph-kicker {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}
.ba-ph-hint {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  opacity: 0.7;
}

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid .ph {
  aspect-ratio: 1;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.028) 0 12px, rgba(255,255,255,0) 12px 24px),
    var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  padding: 12px;
  transition: border-color 0.15s, transform 0.15s, color 0.15s;
}
.gallery-grid .ph:hover {
  border-color: var(--red);
  color: var(--paper);
  transform: translateY(-2px);
}
.gallery-grid .ph .ph-cap {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  max-width: 88%;
}
.gallery-grid img.gphoto {
  aspect-ratio: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  transition: transform 0.18s, border-color 0.18s;
}
.gallery-grid img.gphoto:hover {
  transform: translateY(-2px);
  border-color: var(--red);
}
.video-frame { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after { content: "+"; color: var(--red); font-size: 1.4rem; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 22px 18px; color: var(--muted); }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; gap: 10px; }
.review .stars { color: var(--red); letter-spacing: 3px; }
.review .who { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper); }

/* ---------- Forms ---------- */
form.quote { display: grid; gap: 14px; }
form.quote .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.quote label { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; display: block; margin-bottom: 5px; }
form.quote input, form.quote select, form.quote textarea {
  width: 100%;
  background: var(--smoke);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 1rem;
}
form.quote input:focus, form.quote select:focus, form.quote textarea:focus {
  outline: 2px solid var(--red);
  border-color: var(--red);
}
.form-note { color: var(--muted); font-size: 0.85rem; }

/* ---------- Hours table ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }
.hours tr.today td { color: var(--red); font-weight: 600; }

/* ---------- Footer ---------- */
footer.site {
  background: #0D0D10;
  border-top: 2px solid var(--red);
  padding: 48px 0 90px;
  color: var(--muted);
  font-size: 0.95rem;
}
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
footer h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 12px; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: #fff; }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 10px; font-size: 0.85rem; }

/* ---------- Sticky call bar (mobile) ---------- */
.call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.45);
}
.call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  text-align: center;
  padding: 14px 10px calc(14px + env(safe-area-inset-bottom));
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}
.call-bar .call { background: var(--red); }
.call-bar .quote-link { background: #222229; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .grid-3, .grid-2, footer .wrap { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  form.quote .row { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; font-size: 1.18rem; }
  .nav-cta { padding: 12px 16px !important; text-align: center; }
  .nav-toggle { display: block; padding: 8px 14px; }
  .call-bar { display: grid; }
  section { padding: 52px 0; }
  .price-tier.featured { transform: none; }
  /* full-width, thumb-friendly primary actions */
  .hero { padding: 64px 0 56px; }
  .hero .actions { flex-direction: column; }
  .hero .actions .btn { width: 100%; text-align: center; }
  .vlt-presets button { min-height: 42px; }
  /* keep the last content clear of the fixed call bar */
  footer.site { padding-bottom: 104px; }
}
