/* KD's Elite Detailing — blue and black, per the owner.
   Variable names are inherited from the starting build: --red is the action color (blue). */

:root {
  --black: #050608;      /* page ground */
  --panel: #0a0e15;
  --panel-2: #0f141d;    /* cards */
  --ember: #0d1a30;
  --red: #1f6fe0;        /* action blue */
  --red-lit: #5aa2ff;
  --navy-deep: #000000;
  --gold: #5aa2ff;
  --gold-ink: #7db6ff;
  --ice: #b3c0d1;
  --chrome: #ffffff;
  --text: #d9e2ee;
  --muted: #94a3b8;
  --line: rgba(90, 162, 255, 0.3);
  --line-soft: rgba(255, 255, 255, 0.1);
  --on-accent: #ffffff;

  --display: 'Outfit', 'Avenir Next', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --radius: 18px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --shadow: 0 24px 60px -30px rgba(31, 111, 224, 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.04rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open,
body.lightbox-open { overflow: hidden; }

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--chrome);
  text-wrap: balance;
}

h1 em, h2 em {
  font-style: normal;
  color: var(--red-lit);
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

figure { margin: 0; }

[hidden] { display: none !important; }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

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

/* --- Buttons ------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}

.button svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.button-lg { min-height: 56px; padding: 0.85rem 1.7rem; font-size: 1.08rem; }

.button-red {
  background: var(--red);
  color: var(--on-accent);
  box-shadow: 0 12px 26px -14px rgba(31, 111, 224, 0.75);
}
.button-red:hover {
  background: var(--red-lit);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(90, 162, 255, 0.8);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--chrome);
  background: rgba(255, 255, 255, 0.04);
}
.button-outline:hover { border-color: var(--red-lit); color: #fff; transform: translateY(-2px); }

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 6, 8, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  text-decoration: none;
}
.brand img { width: auto; height: 50px; }
.brand-name {
  display: grid;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--chrome);
}
.brand-name i { font-style: normal; color: #9aa6b5; }
.brand-name b {
  margin-top: 0.34rem;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.desktop-nav {
  display: flex;
  gap: clamp(1rem, 2.2vw, 1.9rem);
  margin-left: auto;
}
.desktop-nav a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ice);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.desktop-nav a:hover { color: var(--chrome); border-color: var(--gold); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem var(--gutter) 1.4rem;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a:not(.button) {
  padding: 0.9rem 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--chrome);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .button { margin-top: 1rem; }

/* --- Video toggle ------------------------------------------------------- */

.video-toggle {
  position: absolute;
  z-index: 3;
  top: 0.6rem;
  right: 0.6rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.video-toggle:hover { background: var(--red-lit); border-color: #fff; }
.video-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.video-toggle .icon-play { fill: currentColor; stroke-width: 1; display: none; }
.video-toggle.is-paused .icon-play { display: block; }
.video-toggle.is-paused .icon-pause { display: none; }

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.6rem);
  background:
    radial-gradient(48% 62% at 84% 36%, rgba(31, 111, 224, 0.3), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(31, 111, 224, 0.14), transparent 70%),
    var(--black);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero h1 em { display: block; }

.hero-intro {
  max-width: 33rem;
  margin-top: 1.3rem;
  font-size: 1.16rem;
  color: var(--text);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.8rem; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 38rem;
}
.hero-facts strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.15;
  color: var(--chrome);
}
.hero-facts span { display: block; margin-top: 0.3rem; font-size: 0.88rem; line-height: 1.35; color: var(--muted); }

.hero-media {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
  padding: 0 0 2.2rem 3.2rem;
}
.hero-photo {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -36px rgba(31, 111, 224, 0.7);
}
.hero-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 60%; }

.hero-clip {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 43%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 2px solid var(--black);
  outline: 1px solid var(--line);
  box-shadow: 0 24px 50px -18px rgba(31, 111, 224, 0.75);
}
.hero-clip video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; cursor: pointer; }
.hero-clip figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 0.7rem 0.55rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
  pointer-events: none;
}
.hero-clip .video-toggle { top: 0.4rem; right: 0.4rem; width: 32px; height: 32px; }
.hero-clip .video-toggle svg { width: 13px; height: 13px; }

/* --- Ticker ------------------------------------------------------------- */

.ticker {
  overflow: hidden;
  background: var(--red);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker-track span {
  padding: 0.7rem 1.1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
}
.ticker-track span::after { content: '\2726'; margin-left: 2.2rem; color: rgba(255, 255, 255, 0.6); font-size: 0.8em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Sections ----------------------------------------------------------- */

.section { padding: clamp(3.6rem, 8vw, 6.4rem) 0; }

.section-panel {
  background: linear-gradient(180deg, var(--black) 0%, var(--panel) 14%, var(--panel) 86%, var(--black) 100%);
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head > p:last-child { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; max-width: 38rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
}

h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -0.03em; }

.lead { margin-top: 1.1rem; color: var(--muted); font-size: 1.1rem; max-width: 34rem; }

/* --- Services ----------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.service {
  padding: 1.7rem 1.5rem 1.8rem;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -34px rgba(31, 111, 224, 0.6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.25s;
}
.service:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow); }
.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--panel);
  color: var(--chrome);
  border: 1px solid var(--line-soft);
}
.service-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-top: 1.2rem; font-size: 1.3rem; }
.service h3::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  margin-top: 0.6rem;
  border-radius: 2px;
  background: var(--gold);
}
.service p { margin-top: 0.75rem; color: var(--muted); font-size: 0.99rem; }

.rides-note { margin-top: 1.6rem; color: var(--muted); }
.rides-note strong { color: var(--chrome); }
.rides-note a { color: var(--red-lit); font-weight: 600; }

/* --- Results ------------------------------------------------------------ */

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.shot figcaption {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--chrome);
  pointer-events: none;
}
.shot.is-after { border-color: var(--line); }
.shot.is-after figcaption { background: var(--red); color: #fff; }

.result-cta {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.7rem;
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background-color 0.2s, transform 0.25s var(--ease);
}
.result-cta:hover { background: #2b7bec; transform: translateY(-3px); }
.result-cta strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.result-cta p { color: #dbe8fb; }
.result-cta span { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; color: #fff; font-weight: 700; }
.result-cta svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.result-cta:hover svg { transform: translateX(4px); }

/* --- Work grid ---------------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}
.tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  box-shadow: 0 18px 40px -30px rgba(31, 111, 224, 0.75);
  transition: box-shadow 0.25s, transform 0.3s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile img,
.tile video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.tile:hover img { transform: scale(1.04); }
.tile-video { cursor: default; }
.tile-video video { cursor: pointer; }
.tile > span,
.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 0.9rem 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  pointer-events: none;
}

/* --- Lightbox ----------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.94);
}
.lightbox figure { display: grid; justify-items: center; gap: 0.8rem; min-width: 0; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100svh - 6.5rem);
  width: auto;
  border-radius: 12px;
}
.lightbox figcaption { font-weight: 600; color: #fff; text-align: center; }
.lightbox-nav,
.lightbox-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.lightbox-nav:hover,
.lightbox-close:hover { background: var(--red-lit); border-color: #fff; }
.lightbox-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2; font-size: 1.7rem; line-height: 1; }

/* --- About -------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.4rem);
}
.about-photo {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about .lead { max-width: 38rem; color: var(--text); }
.about-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.8rem; }

/* --- Steps -------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.steps li {
  padding: 1.6rem 1.5rem 1.7rem;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--gold);
  border-radius: 4px 4px var(--radius) var(--radius);
}
.step-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red-lit);
}
.steps h3 { margin-top: 0.9rem; font-size: 1.3rem; }
.steps p { margin-top: 0.5rem; color: var(--muted); }

/* --- Book --------------------------------------------------------------- */

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.4rem);
}

.contact-rows { margin-top: 2rem; border-top: 1px solid var(--line); }
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  scroll-margin-block: 6rem;
}
.contact-row span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.contact-row strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  color: var(--chrome);
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
a.contact-row:hover strong { color: var(--red-lit); text-decoration: underline; text-underline-offset: 4px; }

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: linear-gradient(180deg, var(--ember), var(--panel-2) 70%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.quote-form h3 { grid-column: 1 / -1; font-size: 1.4rem; margin-bottom: 0.2rem; }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.94rem; color: var(--chrome); }
.field label small { font-weight: 400; font-size: 0.84rem; color: var(--muted); margin-left: 0.3rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: #fff;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235aa2ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 1.1rem; padding-right: 2.4rem; }
.field select option { background: #10151e; color: #fff; }
.field ::placeholder { color: #6f7b8c; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red-lit);
  box-shadow: 0 0 0 3px rgba(90, 162, 255, 0.2);
}
.field input.is-invalid { border-color: #ff9a8f; }

.form-error { grid-column: 1 / -1; color: #ffb4ab; font-size: 0.94rem; }
.form-done { color: var(--chrome); font-weight: 600; text-align: center; }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  padding: 3rem 0 2.4rem;
  background: radial-gradient(60% 120% at 50% 0%, rgba(31, 111, 224, 0.28), transparent 70%), var(--navy-deep);
  color: #fff;
}
.footer-inner { display: grid; justify-items: center; gap: 0.9rem; text-align: center; }
.footer-inner img { width: 200px; height: 200px; }
.footer-line {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red-lit);
}
.footer-contact a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  color: #fff;
  text-decoration: none;
}
.footer-contact a:hover { color: var(--red-lit); }
.footer-legal { color: var(--muted); font-size: 0.9rem; }

/* --- Mobile call bar ---------------------------------------------------- */

.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: none;
  gap: 0.6rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(5, 6, 8, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.call-bar .button { flex: 1; padding-inline: 0.6rem; }
.call-bar .button-red { flex: 1.6; }

/* --- Toast -------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 5.4rem;
  z-index: 320;
  transform: translateX(-50%);
  max-width: calc(100vw - 2rem);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  background: #fff;
  color: #0a0e15;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 14px 40px -10px rgba(31, 111, 224, 0.7);
}

/* --- Reveal ------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: 0.12s; }
.about-photo.reveal.is-visible { transform: rotate(-2deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .about-photo.reveal { transform: rotate(-2deg); }
  .button, .service, .tile, .tile img { transition: none; }
  .ticker-track { animation: none; }
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1080px) {
  .desktop-nav { gap: 1rem; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-media { justify-self: center; width: min(100%, 400px); }

  .steps { grid-template-columns: minmax(0, 1fr); }
  .about, .quote-layout { grid-template-columns: minmax(0, 1fr); }
  .about-photo { width: min(100%, 380px); justify-self: center; }

  .call-bar { display: flex; }
  body { padding-bottom: 4.6rem; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .brand img { height: 40px; }
  .brand-name { font-size: 1.12rem; }
  .brand-name b { font-size: 0.56rem; letter-spacing: 0.2em; }

  .hero-actions .button,
  .about-actions .button { width: 100%; }
  .hero-facts { gap: 0.7rem; margin-top: 1.8rem; }
  .hero-facts strong { font-size: 0.98rem; }
  .hero-facts span { font-size: 0.78rem; }
  .hero-media { padding: 0 0 1.8rem 2.2rem; }

  .services { gap: 0.7rem; }
  .service { padding: 1.2rem 1rem 1.3rem; }
  .service-icon { width: 46px; height: 46px; border-radius: 13px; }
  .service-icon svg { width: 23px; height: 23px; }
  .service h3 { font-size: 1.08rem; }
  .service p { font-size: 0.9rem; }

  /* Before and after stay side by side; the prompt card takes the full row */
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .result-grid .result-cta { grid-column: 1 / -1; }
  .shot { border-width: 1px; }
  .shot figcaption { top: 0.5rem; left: 0.5rem; padding: 0.22rem 0.6rem; font-size: 0.72rem; }

  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .tile > span,
  .tile figcaption { padding: 1.8rem 0.6rem 0.55rem; font-size: 0.8rem; }

  .lightbox { grid-template-columns: minmax(0, 1fr); padding: 0.6rem; }
  .lightbox-nav { position: absolute; bottom: 1rem; z-index: 2; }
  .lightbox-nav.is-prev { left: 1rem; }
  .lightbox-nav.is-next { right: 1rem; }
  .lightbox img { max-height: calc(100svh - 9rem); }

  .quote-form { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 380px) {
  .brand-name { font-size: 1rem; }
}

/* ==========================================================================
   AGENCY PREVIEW REMINDER — NOT part of the client's site.
   Delete this section, its markup, and its script once KD's Elite Detailing signs.
   ========================================================================== */

.agency-pop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}
.agency-pop[hidden] { display: none !important; }
.agency-pop.is-open { opacity: 1; pointer-events: auto; }

.agency-card {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.8rem 1.6rem 1.4rem;
  background: linear-gradient(180deg, var(--ember), var(--panel-2) 70%);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 20px;
  box-shadow: 0 40px 100px -20px rgba(31, 111, 224, 0.8);
  text-align: center;
}
.agency-card img { width: 140px; height: 140px; margin: 0 auto 0.4rem; }
.agency-card h2 { font-size: 1.5rem; }
.agency-card p { margin-top: 0.8rem; color: var(--text); }
.agency-card .agency-note { color: var(--muted); font-size: 0.96rem; }
.agency-card .agency-note strong { color: var(--chrome); }
.agency-actions { display: grid; gap: 0.6rem; margin-top: 1.3rem; }
.agency-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: var(--ice);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.agency-close:hover { color: var(--chrome); }
.agency-dismiss {
  margin-top: 0.9rem;
  padding: 0.6rem;
  background: none;
  border: 0;
  color: var(--red-lit);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.agency-dismiss:hover { color: var(--chrome); }
