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

/* ----------------------------------------------------------------- Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(80vh, 700px);
  display: flex; align-items: center;
  padding-block: clamp(3.25rem, 8vh, 6rem) clamp(1.75rem, 3.5vh, 3rem);
  background: var(--bg);
}
/* Soft fade at the hero base so the right-side glow/photo never clips into a hard edge */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: -1; background: linear-gradient(180deg, transparent, var(--bg) 86%); pointer-events: none; }
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,20,24,.55) 0%, rgba(14,20,24,.74) 52%, var(--bg) 100%),
    linear-gradient(90deg, rgba(14,20,24,.92) 0%, rgba(14,20,24,.55) 45%, rgba(14,20,24,.2) 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -2; opacity: .55;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(75% 65% at 28% 42%, #000, transparent 82%);
  mask-image: radial-gradient(75% 65% at 28% 42%, #000, transparent 82%);
}
.hero__glow {
  position: absolute; z-index: -2; right: -12%; top: 8%;
  width: 52vw; height: 52vw; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
  opacity: .7; pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 920px){ .hero__inner { grid-template-columns: 1fr; } }
.hero__content { max-width: 730px; }
.hero__content > * { animation: riseIn .85s var(--ease-out) both; }
.hero__eyebrow { margin-bottom: 1.1rem; animation-delay: .05s; }
.hero__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3rem, 1.6rem + 8vw, 7.2rem); line-height: .9; letter-spacing: -.02em;
  margin-bottom: 1.3rem; animation-delay: .15s;
}
.hero__title-accent {
  display: block; color: rgba(236,239,241,.05);
  -webkit-text-stroke: 1.4px rgba(236,239,241,.82);
  paint-order: stroke fill;
}
.hero__sub { max-width: 56ch; margin-bottom: 2rem; animation-delay: .3s; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; animation-delay: .42s; }
.hero__strip { display: flex; flex-wrap: wrap; gap: 1.1rem 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); animation-delay: .54s; }
.hero__strip-item { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .03em; color: var(--ink-2); }
.hero__strip-item .ic { width: 17px; height: 17px; color: var(--accent-300); }
.hero__strip-item b { color: #fff; font-weight: 500; }
/* Google rating in the hero strip: small, horizontal, gold partial-fill */
.hero__strip-rating .rating-stars { transform: translateY(1px); }
.hero__strip-rating .rating-stars__base .ic { width: 14px; height: 14px; color: rgba(255,255,255,.32); }
.hero__strip-rating .rating-stars__fill .ic { width: 14px; height: 14px; color: var(--gold); }
.hero__scroll { position: absolute; left: 50%; bottom: 1.3rem; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.hero__scroll .ic { width: 18px; height: 18px; animation: bob 1.9s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (max-width: 600px){ .hero { min-height: auto; } .hero__scroll { display: none; } }

/* ---- Mobile hero order: [Search Parts | Browse Vehicles] on one line,
   Google rating directly under, then the divider, then the award card ---- */
@media (max-width: 600px){
  .hero .hero__cta { flex-wrap: nowrap; gap: .6rem; margin-bottom: 1.1rem; }
  .hero .hero__cta > .btn { flex: 1 1 0; min-width: 0; padding-inline: .5rem; font-size: .82rem; gap: .4rem; }
  .hero .hero__cta > .btn .ic { width: 15px; height: 15px; flex-shrink: 0; }
  .hero .hero__cta > .hero__cta--request { display: none; }
  .hero__strip { border-top: 0; padding-top: 0; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); justify-content: center; }
  .hero__award { margin-top: 1.4rem; }
}

/* ---- Hero award medallion (Best of Prosser) ---- */
.hero__award { width: min(342px, 100%); justify-self: end; animation: riseIn .85s var(--ease-out) both; animation-delay: .55s; }
@media (max-width: 920px){ .hero__award { justify-self: center; width: min(390px, 100%); margin-top: .4rem; } }
@media (max-width: 460px){ .hero__award { width: 100%; } }
.award-card { --gold: #E4C173; --gold-deep: #B58A3C; position: relative; overflow: hidden; text-align: center; padding: 1.6rem 1.5rem 1.35rem; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(28,34,39,.74), rgba(13,18,22,.84)); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border: 1px solid rgba(228,193,115,.4); box-shadow: 0 30px 60px -24px rgba(0,0,0,.85), 0 0 42px -12px rgba(228,193,115,.22); }
.award-card__sheen { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 80% at 50% -10%, rgba(228,193,115,.2), transparent 58%); }
.award-card > *:not(.award-card__sheen) { position: relative; z-index: 1; }
.award-card__eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); }
.award-card__eyebrow .ic { width: 14px; height: 14px; }
.award-card__seal { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .7rem 0 .35rem; }
.award-card .laurel { width: 30px; height: 74px; color: var(--gold); flex-shrink: 0; }
.award-card .laurel--r { transform: scaleX(-1); }
.award-card__year { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.award-card__best { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .22em; color: var(--ink-2); margin-bottom: .15rem; }
.award-card__year b { font-family: var(--font-display); font-weight: 800; font-size: 3.1rem; line-height: .88; letter-spacing: .01em; background: linear-gradient(180deg, #F6E4B0, var(--gold) 52%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.award-card__city { font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); margin-top: .1rem; }
.award-card__title { font-size: 1.16rem; margin-top: .5rem; color: #fff; }
.award-card__pill { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; padding: .32rem .7rem; border-radius: var(--pill); font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); background: rgba(228,193,115,.1); border: 1px solid rgba(228,193,115,.36); }
.award-card__pill .ic { width: 13px; height: 13px; }
.award-card__cat { margin-top: .7rem; font-size: .85rem; color: var(--ink-2); }
.award-card__by { display: block; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ------------------------------------------------- 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.8rem, 4vw, 2.8rem); }
.sec-head-row .section-head { margin-bottom: 0; max-width: 60ch; }
.sec-head-row .section-head h2 { margin-top: .6rem; }

/* Pull trust badges up to overlap the hero base for depth */
.trust-section { position: relative; margin-top: -3.5rem; z-index: 5; }
@media (max-width: 600px){ .trust-section { margin-top: 0; } }

/* ------------------------------------------------- Feature banner (dark promo: copy over photo) */
.feature-banner { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-inset); display: flex; align-items: center; min-height: clamp(340px, 42vh, 460px); padding-block: clamp(2.4rem, 5vw, 4rem); border-block: 1px solid var(--line); }
.feature-banner__media { position: absolute; inset: 0; z-index: -2; }
.feature-banner__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 42%; }
.feature-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,15,18,.96) 0%, rgba(10,15,18,.8) 40%, rgba(10,15,18,.34) 68%, rgba(10,15,18,.06) 100%), linear-gradient(125deg, var(--accent-soft), transparent 55%); }
.feature-banner__inner { width: 100%; }
.feature-banner__content { max-width: 620px; }
.feature-banner__eyebrow { margin-bottom: .9rem; }
.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; margin-bottom: .9rem; }
.feature-banner__sub { color: var(--ink-2); margin-bottom: 1.4rem; max-width: 52ch; }

/* ------------------------------------------------- Find-your-part band */
.find-band { position: relative; overflow: hidden; background: var(--bg-inset); }
.find-band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background-image: var(--hazard); background-size: 26px 26px; opacity: .8; }
/* Stack the copy above a full-width search bar so the 4 fields never truncate */
.find-band__inner { display: grid; gap: clamp(1.3rem, 3vw, 2rem); }
.find-band__text { max-width: 100%; }
.find-band__text p { max-width: 62ch; }       /* keep the paragraph readable… */
.find-band__text h2 { max-width: none; }       /* …but let the heading run one line */
.find-band__text .request-link { margin-top: 1.1rem; }

/* ------------------------------------------------- Hours grid */
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.6rem); }
@media (max-width: 680px){ .hours-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------- SEO welcome (paper) */
.welcome__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.welcome__copy p { margin-bottom: 1rem; color: var(--paper-ink-2); }
.welcome__copy a { color: var(--accent-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.welcome__aside { background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 1.6rem; }
.welcome__aside h3 { color: var(--paper-ink); font-size: 1.25rem; margin-bottom: 1rem; }
.welcome__links { list-style: none; padding: 0; display: grid; gap: .2rem; }
.welcome__links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .2rem; border-bottom: 1px solid var(--paper-line); color: var(--paper-ink); font-weight: 500; transition: padding-left .2s, color .2s; }
.welcome__links a:hover { padding-left: 6px; color: var(--accent-600); }
.welcome__links a .ic { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 820px){ .welcome__inner { grid-template-columns: 1fr; } .welcome__aside { position: static; } }

/* ------------------------------------------------- CTA closer */
.cta-closer { position: relative; overflow: hidden; text-align: center; background: linear-gradient(135deg, #1A0303 0%, var(--bg) 60%); }
.cta-closer::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(60% 80% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 80% at 50% 50%, #000, transparent 75%); }
.cta-closer .container { position: relative; z-index: 1; }
.cta-closer h2 { font-size: var(--step-4); margin-bottom: 1rem; }
.cta-closer p { max-width: 52ch; margin: 0 auto 1.8rem; color: var(--ink-2); }
.cta-closer__btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
