/* ==========================================================================
   King Miles Automotive
   Standalone workshop brand: charcoal + amber, light pages with dark bands.
   No framework, no build step. Progressive enhancement via js/main.js.
   ========================================================================== */

/* ---- 1. Tokens ---------------------------------------------------------- */
:root {
  --amber: #f0a500;
  --amber-deep: #cf8f00;

  --coal: #171a1e;
  --coal-2: #22262c;
  --paper: #f5f6f6;

  --bg: var(--paper);
  --fg: #1c1f23;
  --fg-2: #4e545c;
  --fg-3: #767d86;
  --line: rgba(23, 26, 30, 0.14);
  --line-2: rgba(23, 26, 30, 0.28);

  --f-display: 'Display', 'Display Fallback', -apple-system, sans-serif;
  --f-body: 'Body', 'Body Fallback', -apple-system, system-ui, sans-serif;

  --gut: clamp(1.15rem, 4vw, 3rem);
  --shell: 74rem;
  --section: clamp(4rem, 10vw, 8rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark band: sections that flip to charcoal */
.invert,
.band,
.hero,
.subhero,
.footer {
  --bg: var(--coal);
  --fg: #f3f4f5;
  --fg-2: #c3c7cd;
  --fg-3: #8b929b;
  --line: rgba(255, 255, 255, 0.14);
  --line-2: rgba(255, 255, 255, 0.28);
  background: var(--bg);
  color: var(--fg);
}

/* ---- 2. Reset & fonts --------------------------------------------------- */
@font-face {
  font-family: 'Display';
  src: url('../fonts/display.woff2') format('woff2');
  font-weight: 100 900;
  font-display: block;
}
@font-face {
  font-family: 'Body';
  src: url('../fonts/body.woff2') format('woff2');
  font-weight: 100 900;
  font-display: block;
}
@font-face {
  font-family: 'Display Fallback';
  src: local('Segoe UI'), local('Helvetica Neue'), local('Arial');
  size-adjust: 96%;
  ascent-override: 98%;
  descent-override: 24%;
}
@font-face {
  font-family: 'Body Fallback';
  src: local('Segoe UI'), local('Helvetica Neue'), local('Arial');
  size-adjust: 100%;
  ascent-override: 96%;
  descent-override: 24%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--paper);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 0.95rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--amber);
  color: var(--coal);
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  z-index: 200;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.8rem 1.3rem;
  background: var(--coal);
  color: #fff;
  font-weight: 600;
}

/* ---- 3. Type ------------------------------------------------------------ */
h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
.display span {
  color: var(--amber);
}
.h2 {
  font-size: clamp(1.8rem, 4.6vw, 3.2rem);
  text-transform: uppercase;
}
.h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow::before {
  content: '';
  width: 2.1rem;
  height: 3px;
  background: var(--amber);
  flex: none;
}
.eyebrow--center {
  justify-content: center;
}
.hero .eyebrow,
.subhero .eyebrow,
.band .eyebrow {
  color: rgba(243, 244, 245, 0.92);
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
}
.tiny {
  font-size: 0.78rem;
  color: var(--fg-3);
}

/* ---- 4. Layout ---------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.section {
  padding-block: var(--section);
}
.head {
  max-width: 46rem;
}
.head .lead {
  margin-top: 1.3rem;
  max-width: 36rem;
}
.center {
  margin-inline: auto;
  text-align: center;
}
.head.center .lead,
.head.center .h2 {
  margin-inline: auto;
}
.head .h2 {
  margin-top: 1.2rem;
}

/* ---- 5. Buttons --------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.8rem;
  background: var(--amber);
  color: var(--coal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  box-shadow: 0 8px 22px -12px rgba(240, 165, 0, 0.8);
}
.btn:hover {
  transform: translateY(-2px);
  background: #ffb90f;
}
.btn svg {
  transition: transform 0.35s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn--ghost:hover {
  background: rgba(23, 26, 30, 0.06);
}
.hero .btn--ghost:hover,
.band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.4rem;
}

/* ---- 6. Header ---------------------------------------------------------- */
.progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 90;
  will-change: transform;
}
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 80;
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.header[data-scrolled='true'] {
  background: rgba(23, 26, 30, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  height: 4.4rem;
  gap: 1rem;
  color: #f3f4f5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--amber);
  color: var(--coal);
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex: none;
}
.brand__mark--lg {
  width: 3.2rem;
  height: 3.2rem;
  font-size: 1.2rem;
  border-radius: 10px;
}
.brand b {
  font-family: var(--f-display);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand span {
  color: var(--amber);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 0.3s, color 0.3s;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  opacity: 1;
  color: var(--amber);
}
.nav-cta {
  padding: 0.65rem 1.2rem;
  background: var(--amber);
  color: var(--coal) !important;
  border-radius: 6px;
  font-weight: 800;
  opacity: 1 !important;
}
.nav-cta:hover {
  background: #ffb90f;
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  position: relative;
}
.burger i {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.burger i:first-child { top: 17px; }
.burger i:last-child { top: 25px; }
.drawer {
  display: none;
  background: var(--coal);
  color: #f3f4f5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.drawer ul {
  list-style: none;
  padding-block: 0.75rem 1.25rem;
}
.drawer a {
  display: block;
  padding: 0.9rem 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 52rem) {
  .nav-links { display: none; }
  .burger { display: block; }
  .drawer.open { display: block; }
}

/* ---- 7. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--coal-2);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(23, 26, 30, 0.6), rgba(23, 26, 30, 0.15) 40%, rgba(23, 26, 30, 0.94) 100%);
}
.hero__inner {
  width: 100%;
  padding-block: clamp(7rem, 13vw, 9rem) clamp(3rem, 7vw, 4.5rem);
}
.hero h1 {
  margin-top: 1.2rem;
  max-width: 16ch;
}
.hero .lead {
  margin-top: 1.6rem;
  max-width: 34rem;
  color: rgba(243, 244, 245, 0.85);
}

/* Sub-page hero */
.subhero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(20rem, 52vh, 28rem);
  padding-block: clamp(6.5rem, 12vw, 8rem) clamp(2.5rem, 5vw, 3.5rem);
  overflow: clip;
  isolation: isolate;
}
.subhero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--coal-2);
}
.subhero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(23, 26, 30, 0.65), rgba(23, 26, 30, 0.35) 45%, rgba(23, 26, 30, 0.95));
}
.subhero .shell { width: 100%; }
.subhero h1 {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  text-transform: uppercase;
  max-width: 18ch;
}
.subhero .lead {
  margin-top: 1.4rem;
  max-width: 36rem;
  color: rgba(243, 244, 245, 0.85);
}

/* ---- 8. Cards & grids --------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.scard {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.scard:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -24px rgba(23, 26, 30, 0.4);
}
.scard__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--coal-2);
  border-bottom: 3px solid var(--amber);
}
.scard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.scard:hover .scard__media img {
  transform: scale(1.05);
}
.scard h3 {
  padding: 1.1rem 1.25rem 0;
  font-size: 1.12rem;
  text-transform: uppercase;
}
.scard p {
  padding: 0.5rem 1.25rem 1.3rem;
  font-size: 0.88rem;
  color: var(--fg-2);
  line-height: 1.6;
}

.promise {
  border-top: 3px solid var(--amber);
  padding-top: 1.1rem;
}
.promise__n {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--amber);
}
.promise h3 {
  margin-top: 0.5rem;
  font-size: 1.08rem;
  text-transform: uppercase;
}
.promise p {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--fg-2);
  line-height: 1.6;
}

/* ---- 9. Band ------------------------------------------------------------ */
.band {
  position: relative;
  padding-block: clamp(5rem, 11vw, 8rem);
  overflow: clip;
  isolation: isolate;
}
.band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(23, 26, 30, 0.92), rgba(23, 26, 30, 0.55) 65%, rgba(23, 26, 30, 0.4));
}
.band__inner {
  max-width: 34rem;
}
.band .lead {
  margin-top: 1.3rem;
}
.band .h2 {
  margin-top: 1.1rem;
}

/* ---- 10. Steps & CTA ---------------------------------------------------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.step {
  border-top: 3px solid var(--line-2);
  padding-top: 1.2rem;
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--amber);
}
.step__n {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber-deep);
}
.step h3 {
  margin-top: 0.5rem;
  font-size: 1.12rem;
  text-transform: uppercase;
}
.step p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.62;
}
.cta {
  margin-top: clamp(4rem, 8vw, 6rem);
  background: var(--coal);
  color: #f3f4f5;
  border-radius: 16px;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  border-bottom: 5px solid var(--amber);
}
.cta .h2 {
  max-width: 20ch;
  margin-inline: auto;
}
.cta .lead {
  margin: 1.3rem auto 0;
  max-width: 34rem;
  color: #c3c7cd;
}

/* ---- 11. Services page rows --------------------------------------------- */
.svc-rows {
  display: grid;
  gap: 0.9rem;
}
.svc-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  padding: 1.3rem 1.5rem;
}
.svc-row__n {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fg-3);
}
.svc-row h2 {
  text-transform: uppercase;
}
.svc-row p {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--fg-2);
}
.svc-row__go {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--coal);
  color: var(--amber);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.svc-row__go:hover {
  transform: translateX(3px);
  background: var(--amber);
  color: var(--coal);
}

/* ---- 12. Feature (about) ------------------------------------------------ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature__media {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--line);
}
.feature__list {
  list-style: none;
  margin-top: 1.6rem;
}
.feature__list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 2rem;
  border-bottom: 1.5px solid var(--line);
  font-weight: 600;
}
.feature__list li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 1.05rem;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
  transform: rotate(-45deg);
}

/* ---- 13. Contact -------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.panel {
  background: var(--coal);
  color: #f3f4f5;
  border-radius: 14px;
  padding: 1.8rem;
  border-bottom: 4px solid var(--amber);
}
.panel p {
  font-size: 0.92rem;
  color: #c3c7cd;
}
.panel .btn {
  margin-top: 1.4rem;
}
.contact-rows > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  padding: 1rem 0.25rem;
  border-bottom: 1.5px solid var(--line);
}
.contact-rows dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  align-self: center;
}
.contact-rows dd {
  font-weight: 600;
}
.contact-rows a:hover {
  color: var(--amber-deep);
}

/* ---- 14. Footer --------------------------------------------------------- */
.footer {
  border-top: 4px solid var(--amber);
  padding-block: clamp(3rem, 6vw, 4rem) 1.75rem;
}
.footer__grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
}
.footer__brand p {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--fg-3);
  max-width: 22rem;
}
.footer h4 {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}
.footer ul {
  list-style: none;
  margin-top: 1.1rem;
}
.footer li + li {
  margin-top: 0.65rem;
}
.footer a {
  color: var(--fg-2);
  font-size: 0.88rem;
  transition: color 0.3s;
}
.footer a:hover {
  color: var(--amber);
}
.footer li {
  color: var(--fg-3);
  font-size: 0.88rem;
}
.footer__base {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--fg-3);
}
@media (max-width: 52rem) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 30rem) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---- 15. Reveal & motion ------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}
[data-hero-content] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-hero-content].in {
  opacity: 1;
  transform: none;
}
.no-js [data-hero-content] {
  opacity: 1;
  transform: none;
}

/* ---- 16. Responsive ----------------------------------------------------- */
@media (max-width: 64rem) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 52rem) {
  .feature { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: auto 1fr; }
  .svc-row__go { display: none; }
}

/* Two plain sections in a row: collapse the seam */
.section:not(.invert) + .section:not(.invert) {
  padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  [data-hero-content] {
    opacity: 1;
    transform: none;
  }
  .progress { display: none; }
}

/* ==========================================================================
   17. Pages without a dark hero
   The header is transparent until scrolled, which only works over a dark
   hero image. On light-topped pages it must be solid from the first frame,
   or white nav text sits invisibly on a white page.
   ========================================================================== */
.solid-nav .header {
  background: rgba(23, 26, 30, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---- 18. Ticker --------------------------------------------------------- */
.ticker {
  background: var(--coal);
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  padding-block: 0.95rem;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker span {
  display: inline-flex;
  align-items: center;
  padding-inline: 1.6rem;
  font-family: var(--f-display);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(243, 244, 245, 0.62);
  white-space: nowrap;
}
.ticker span::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 1.6rem;
  background: var(--amber);
  transform: rotate(45deg);
  flex: none;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- 19. FAQ ------------------------------------------------------------ */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.faq-head .h2 { margin-top: 1.1rem; }
.faq-head .lead { margin-top: 1.1rem; }
.faq details {
  border-bottom: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq details[open] {
  border-color: rgba(240, 165, 0, 0.55);
  box-shadow: 0 12px 28px -22px rgba(23, 26, 30, 0.5);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  position: relative;
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 1.3rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: -0.45rem;
  border-right: 2.5px solid var(--amber-deep);
  border-bottom: 2.5px solid var(--amber-deep);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -0.15rem;
}
.faq summary:hover { color: var(--amber-deep); }
.faq details p {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--fg-2);
}
@media (max-width: 52rem) {
  .faq-wrap { grid-template-columns: 1fr; }
}

/* ---- 20. Micro-interactions --------------------------------------------- */
/* animated nav underline */
.nav-links a:not(.nav-cta) {
  position: relative;
  padding-block: 0.35rem;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

/* button sheen on hover */
.btn {
  overflow: hidden;
  isolation: isolate;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
  z-index: -1;
}
.btn:hover::after { left: 130%; }

/* eyebrow rule draws in with its reveal */
[data-reveal] .eyebrow::before,
.eyebrow[data-reveal]::before {
  transform-origin: 0 50%;
}

/* service cards: amber edge grows on hover */
.scard { position: relative; }
.scard::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}
.scard:hover::after { transform: scaleX(1); }

/* promise + step markers animate on reveal */
.promise,
.step { position: relative; }
.promise::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.8s var(--ease) 0.15s;
}
.promise.in::after { transform: scaleX(1); }

/* service rows slide their arrow + tint on hover */
.svc-row {
  transition: transform 0.35s var(--ease), border-left-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.svc-row:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 30px -24px rgba(23, 26, 30, 0.55);
}

/* feature list items tick in */
.feature__list li {
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}
.feature__list li:hover {
  padding-left: 2.35rem;
  color: var(--amber-deep);
}

/* contact rows highlight */
.contact-rows > div {
  transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.contact-rows > div:hover {
  background: rgba(240, 165, 0, 0.07);
  padding-left: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .btn::after { display: none; }
}

/* ==========================================================================
   21. KING MILES AUTOMOTIVE INC. - company site components
   ========================================================================== */

/* phone in the nav */
.nav-tel {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: 0.06em !important;
  color: var(--amber) !important;
  opacity: 1 !important;
}

/* two-up audience cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.acard {
  background: #fff;
  border: 1.5px solid var(--line);
  border-top: 4px solid var(--amber);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.acard:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -26px rgba(23, 26, 30, 0.45);
}
.acard__n {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--amber-deep);
}
.acard h3 {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  text-transform: uppercase;
}
.acard p {
  margin-top: 0.7rem;
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.65;
}
.invert .acard { background: rgba(255, 255, 255, 0.04); }
@media (max-width: 52rem) { .grid-2 { grid-template-columns: 1fr; } }

/* tag chip on home service cards */
.scard__media { position: relative; }
.scard__tag {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  background: rgba(23, 26, 30, 0.88);
  color: var(--amber);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

/* mission + vision */
.mv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}
.mv__card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: 14px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.mv__card--vision { border-left-color: #fff; }
.mv__card .h3 {
  margin-top: 1rem;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
}
.mv__card p {
  margin-top: 1.1rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--fg-2);
}
@media (max-width: 52rem) { .mv { grid-template-columns: 1fr; } }

/* full services list: alternating image/text rows */
.svc-list { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.svc {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  scroll-margin-top: 6rem;
  transition: box-shadow 0.4s var(--ease);
}
.svc:hover { box-shadow: 0 20px 40px -30px rgba(23, 26, 30, 0.5); }
.svc:nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }
.svc:nth-child(even) .svc__media { order: 2; }
.svc__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--coal-2);
  height: 100%;
}
.svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.svc:hover .svc__media img { transform: scale(1.04); }
.svc__body { padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem) 0; }
.svc:nth-child(even) .svc__body { padding: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.25rem); }
.svc__top { display: flex; align-items: center; gap: 0.8rem; }
.svc__n {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--amber-deep);
  line-height: 1;
}
.svc__tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.svc__body h2 { margin-top: 0.7rem; text-transform: uppercase; }
.svc__body > p {
  margin-top: 0.75rem;
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.68;
}
.svc__points { list-style: none; margin-top: 1.1rem; display: grid; gap: 0.35rem; }
.svc__points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.svc__points li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.7rem;
  height: 0.36rem;
  border-left: 2.5px solid var(--amber);
  border-bottom: 2.5px solid var(--amber);
  transform: rotate(-45deg);
}
@media (max-width: 60rem) {
  .svc, .svc:nth-child(even) { grid-template-columns: 1fr; }
  .svc:nth-child(even) .svc__media { order: 0; }
  .svc__body, .svc:nth-child(even) .svc__body { padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2rem); }
}

/* address blocks */
.addr {
  background: #fff;
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: 12px;
  padding: clamp(1.4rem, 3vw, 1.9rem);
}
.addr--muted { border-left-color: var(--line-2); background: rgba(23, 26, 30, 0.03); }
.addr__label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.addr--muted .addr__label { color: var(--fg-3); }
.addr__body {
  margin-top: 0.8rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--fg-2);
}
.addr__body b { color: var(--fg); }
.panel--alt { background: var(--coal-2); }
.panel h3 + p { margin-top: 0.75rem; }

/* ---- 22. Fixes ---------------------------------------------------------- */
/* aspect-ratio + height:100% made the media wider than its grid column, so it
   overlapped the text column. Let the row height drive it instead. */
.svc__media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 17rem;
}
@media (max-width: 60rem) {
  .svc__media { aspect-ratio: 3 / 2; height: auto; min-height: 0; }
}

/* ghost button sitting on a dark panel needs light text */
.panel .btn--ghost {
  color: #f3f4f5;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.32);
}
.panel .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}
