/* ==========================================================================
   home.css — Home page only (hero + vehicle lookup + section-specific layout).
   Shared components (cards, search, badges, promos, reviews) live in global.css.
   ========================================================================== */

/* ----------------------------------------------------------------- Hero */
/* Dark photographic hero (Tire Rack style): copy block over photo */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: #fff; display: flex; align-items: center; min-height: clamp(520px, 70vh, 660px); padding-block: clamp(2.25rem, 4vw, 3.25rem); border-bottom: 3px solid var(--accent); }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* Position favors the tech + engine bay on the right; text scrim owns the left.
   Slides stack absolutely and crossfade; the scrim above keeps the copy readable
   on every photo. Slides other than the first fine-tune object-position inline. */
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% 62%; opacity: 0; }
.hero__media img.is-active { opacity: 1; }
.hero__media.is-animated img { transition: opacity 1.1s ease; }
@media (prefers-reduced-motion: no-preference) {
  .hero__media.is-animated img.is-active { animation: heroDrift 7.6s ease-out both; }
}
@keyframes heroDrift { from { transform: scale(1.05); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(17,19,23,.96) 0%, rgba(17,19,23,.84) 42%, rgba(17,19,23,.40) 78%, rgba(17,19,23,.18) 100%),
    linear-gradient(180deg, rgba(17,19,23,.30) 0%, rgba(17,19,23,.10) 38%, rgba(17,19,23,.55) 100%);
}
.hero__inner { width: 100%; }

.hero__content { max-width: 620px; }
.hero__content > * { animation: riseIn .8s var(--ease-out) both; }
.hero__eyebrow { color: var(--accent-300); margin-bottom: .85rem; animation-delay: .04s; }
.hero__eyebrow::before { background: var(--accent-300); }
.hero__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.7rem, 1.1rem + 6.2vw, 5.2rem); line-height: .88; letter-spacing: -.015em; color: #fff; margin-bottom: 1rem; text-shadow: 0 2px 24px rgba(0,0,0,.35); animation-delay: .12s; }
.hero__title .acc { color: var(--accent-300); }
.hero__sub { color: rgba(255,255,255,.88); max-width: 50ch; margin-bottom: 1.5rem; animation-delay: .24s; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.4rem; animation-delay: .34s; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.9rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.16); animation-delay: .44s; }
.hero__trust-item { display: inline-flex; align-items: center; gap: .55rem; font-size: .92rem; color: rgba(255,255,255,.82); }
.hero__trust-item .ic { width: 18px; height: 18px; color: var(--accent-300); }
.hero__trust-item b { color: #fff; font-weight: 700; font-family: var(--font-display); letter-spacing: .01em; }
.hero__trust .stars { color: var(--gold); }
/* Mobile only: knock the hero eyebrow + "Three steps…" heading down one size */
@media (max-width: 600px){
  .hero__eyebrow { font-size: .7rem; }
  #how-h { font-size: var(--step-2); }
}

@media (max-width: 620px){
  .hero__trust { flex-direction: column; align-items: flex-start; gap: .55rem; }
}

/* (vehicle-lookup card removed from the hero per request — hero is now text-only over the photo) */

/* ------------------------------------------------- Brand logo marquee (under hero) */
/* overflow-x:clip hides the wide scrolling track horizontally; overflow-y:visible lets a
   hovered logo scale up without being clipped top/bottom (clip+visible is the only pairing
   the spec doesn't coerce to auto/hidden). */
.logo-marquee { background: var(--bg-inset); border-block: 1px solid var(--line); padding-block: clamp(.6rem, 1.4vw, 1rem); overflow-x: clip; overflow-y: visible; }
.logo-marquee__viewport {
  /* vertical padding gives the hover-lift room INSIDE the mask box so it isn't clipped;
     the gradient is horizontal, so this padded area stays fully opaque (no visual change) */
  padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-marquee__track { display: flex; align-items: center; width: max-content; animation: brandScroll 60s linear infinite; will-change: transform; }
/* Per-item right margin (incl. a trailing one) so translateX(-50%) loops with no jump */
.logo-marquee__track > * { flex: none; margin-right: clamp(2rem, 4.5vw, 3.6rem); }
.logo-marquee__logo { height: clamp(24px, 2.4vw, 34px); width: auto; opacity: .6; transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
.logo-marquee__logo:hover { opacity: .95; transform: translateY(-3px); }
.logo-marquee__word { white-space: nowrap; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(.85rem, 1.2vw, 1.05rem); color: #7c7c7c; opacity: .6; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
@keyframes brandScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .logo-marquee__track { animation: none; } }
/* "Servicing Every Major Manufacturer" — one line on desktop */
@media (min-width: 760px){ #brands-h { white-space: nowrap; } }

/* ------------------------------------------------- Section header row */
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem); }
.sec-head-row .section-head { margin-bottom: 0; max-width: 60ch; }
.sec-head-row .section-head h2 { margin-top: .5rem; }

/* ------------------------------------------------- How it works */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
@media (max-width: 760px){ .how-steps { grid-template-columns: 1fr; } }
.how-step { position: relative; padding: 1.6rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.how-step__n { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; display: grid; place-items: center; margin-bottom: .9rem; }
.how-step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.how-step p { color: var(--ink-2); font-size: .92rem; }
.how-step__arrow { position: absolute; right: -1.05rem; top: 2.1rem; z-index: 2; color: var(--line-2); }
.how-step__arrow .ic { width: 26px; height: 26px; }
@media (max-width: 760px){
  .how-step__arrow { display: none; }
  .how-step { text-align: center; }
  .how-step__n { margin-inline: auto; }
}

/* ------------------------------------------------- Hours + location split */
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.6rem); align-items: start; }
/* center the location/contact card — desktop + mobile */
.hours-grid .info-card--accent { text-align: center; }
.hours-grid .info-card--accent h3 { justify-content: center; }
.hours-grid .info-card--accent .contact-list li { justify-content: center; }
.hours-grid .info-card--accent > div:last-child { justify-content: center; }
@media (max-width: 680px){ .hours-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------- CTA closer (dark band) */
.cta-closer { background: var(--dark); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-closer .eyebrow { color: var(--accent-300); }
.cta-closer .eyebrow::before, .cta-closer .eyebrow::after { background: var(--accent-300); }
.cta-closer h2 { color: #fff; font-size: var(--step-4); margin: .5rem 0 1rem; }
.cta-closer p { max-width: 54ch; margin: 0 auto 1.7rem; color: rgba(255,255,255,.82); }
.cta-closer__btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ----------------------------------------------- Feature banner (dark promo: copy left, car photo right) */
.feature-banner { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: #fff; display: flex; align-items: center; min-height: clamp(360px, 44vh, 500px); padding-block: clamp(2.4rem, 5vw, 4rem); }
.feature-banner__media { position: absolute; inset: 0; z-index: -2; }
.feature-banner__media img { width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; }
.feature-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17,19,23,.97) 0%, rgba(17,19,23,.88) 40%, rgba(17,19,23,.45) 70%, rgba(17,19,23,.12) 100%); }
.feature-banner__inner { width: 100%; }
.feature-banner__content { max-width: 660px; }
@media (min-width: 600px){ .feature-banner__title { white-space: nowrap; } }
.feature-banner__eyebrow { color: var(--accent-300); margin-bottom: .9rem; }
.feature-banner__eyebrow::before { background: var(--accent-300); }
.feature-banner__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); line-height: .98; letter-spacing: -.01em; color: #fff; margin-bottom: .9rem; }
.feature-banner__sub { color: rgba(255,255,255,.86); margin-bottom: 1.4rem; }

/* ----------------------------------------------- "Service with a smile" band (real team photo) */
.smile-band { background: #fff; }
.smile-band__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.smile-band__eyebrow-m { display: none; } /* mobile-only eyebrow above the figures */
@media (max-width: 860px){
  .smile-band__inner { grid-template-columns: 1fr; }
  /* order: eyebrow → figures → heading/text/buttons */
  .smile-band__eyebrow-m { display: inline-flex; justify-self: center; margin-bottom: 1rem; }
  .smile-band__content .eyebrow { display: none; }   /* hide the in-content eyebrow on mobile */
  .smile-band__content { text-align: center; }
  .smile-band__cta { justify-content: center; }
}
.smile-band__photo { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.smile-band__photo img { display: block; width: 100%; height: auto; }
.smile-band__content { max-width: 520px; }
.smile-band__content .eyebrow { margin-bottom: .7rem; }
.smile-band__content h2 { margin-bottom: .7rem; }
.smile-band__content .lede { color: var(--ink-2); margin-bottom: 1.4rem; }
.smile-band__cta { display: flex; flex-wrap: wrap; gap: .7rem; }
