/* ════════════════════════════════════════════════════════════════
   BLUE MOUNTAIN AUTOPRO — Premium Layer (all AUTOPRO-side pages)
   Loaded after autopro.css + any inline page styles.
   Adds depth, atmosphere, motion and refined typography without
   touching structure, content, or conversion flow.
   ════════════════════════════════════════════════════════════════ */

:root {
  --pr-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pr-shadow-sm:
    0 1px 2px  rgba(10, 22, 52, 0.05),
    0 4px 14px rgba(10, 22, 52, 0.06);
  --pr-shadow-md:
    0 2px 4px  rgba(10, 22, 52, 0.05),
    0 14px 36px rgba(10, 22, 52, 0.10);
  --pr-shadow-lg:
    0 4px 10px rgba(10, 22, 52, 0.06),
    0 28px 72px rgba(10, 22, 52, 0.16);
  /* Fine blueprint grid — used on dark engineered sections */
  --pr-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 .5H.5V48' fill='none' stroke='%23ffffff' stroke-opacity='.045'/%3E%3C/svg%3E");
  /* Soft dot matrix — used on light sections */
  --pr-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='1.5' cy='1.5' r='1.2' fill='%23003087' fill-opacity='.05'/%3E%3C/svg%3E");
}

/* ── Typography refinement ───────────────────────────────────── */
body.page-body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { letter-spacing: -0.015em; }
.hero h1 { letter-spacing: -0.022em; }
.section-title { letter-spacing: -0.02em; }
.section-label { font-size: 11.5px; letter-spacing: 0.34em; }
.section-sub { font-size: 17.5px; }

/* More breathing room between major movements of the page.
   Exact attribute selectors on purpose: pages define custom .section
   variants (e.g. goodyear-tires) whose own padding/backgrounds must win. */
section[class="section"],
section[class="section section-alt"],
section[class="section section-dark"],
.section-why, .section-team { padding: 104px 40px; }
.reviews-strip { padding: 104px 40px; }

/* ── Reveal-on-scroll (classes applied by /js/home-premium.js) ── */
.pr-reveal { opacity: 0; transform: translateY(26px); }
.pr-in {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.85s var(--pr-ease), transform 0.85s var(--pr-ease);
}

/* Hero entrance — only plays once JS marks the body ready */
@keyframes pr-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes pr-hero-card {
  from { opacity: 0; transform: translateY(calc(-50% + 28px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}
body.pr-ready .hero-composite .hero-inner h1 { animation: pr-rise 0.9s var(--pr-ease) 0.10s backwards; }
body.pr-ready .hero-composite .hero-inner p  { animation: pr-rise 0.9s var(--pr-ease) 0.28s backwards; }
body.pr-ready .hero-team { animation: pr-hero-card 1.05s var(--pr-ease) 0.40s backwards; }

/* ── Nav — frosted glass, engineered hover ───────────────────── */
.nav {
  background: rgba(255, 255, 255, 0.90);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(0, 48, 135, 0.05);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}
.nav.nav-scrolled { box-shadow: 0 10px 40px rgba(0, 16, 64, 0.12); }
.nav-links li:not(.ev-link) a {
  background: transparent;
  position: relative;
}
.nav-links li:not(.ev-link) a::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 1px; height: 2px;
  border-radius: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.3s var(--pr-ease);
}
.nav-links li:not(.ev-link) a:hover {
  background: transparent; box-shadow: none; transform: none; color: var(--blue);
}
.nav-links li:not(.ev-link) a:hover::after { transform: scaleX(1); }

/* ── Hero — atmosphere, vignette, gradient seam ──────────────── */
.hero-composite { min-height: 580px !important; }
.hero-building {
  transform: scale(1.08);              /* headroom for the parallax drift */
  will-change: transform;
}
.hero-building::after {
  background:
    radial-gradient(ellipse 120% 80% at 50% 115%, rgba(0, 4, 18, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 78% 30%, rgba(255, 209, 0, 0.05) 0%, transparent 60%),
    linear-gradient(90deg,
      rgba(0, 16, 64, 0.97) 0%,
      rgba(0, 16, 64, 0.93) 30%,
      rgba(0, 16, 64, 0.62) 55%,
      rgba(0, 16, 64, 0.26) 78%,
      rgba(0, 16, 64, 0.10) 100%);
}
.hero::after {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--yellow) 18%, var(--yellow) 82%, transparent 100%);
}
.hero-composite .hero-inner p { font-size: clamp(15px, 1.8vw, 18.5px); color: rgba(255, 255, 255, 0.78); }
.hero-team { border-radius: 18px; }
.hero-team::after {
  content: ''; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* ── Trust bar — machined strip ──────────────────────────────── */
.trust-bar {
  background: linear-gradient(180deg, #003a9e 0%, #00266e 100%);
  padding: 18px 40px; gap: 38px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.30);
}
.trust-item {
  font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.trust-item .trust-dot {
  width: 7px; height: 7px;
  box-shadow: 0 0 10px rgba(255, 209, 0, 0.85), 0 0 2px rgba(255, 209, 0, 1);
}

/* ── Reviews — elevated glass cards on a lit field ───────────── */
.reviews-strip {
  position: relative;
  background:
    radial-gradient(ellipse 55% 50% at 6% 0%, rgba(0, 48, 135, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 96% 100%, rgba(255, 209, 0, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, #f8fafd 0%, #eef2f9 100%);
}
.reviews-strip::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--pr-dots);
  opacity: 0.6; pointer-events: none;
}
.reviews-strip .section-inner { position: relative; z-index: 1; }
.review-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(0, 48, 135, 0.10);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafe 100%);
  transition: transform 0.35s var(--pr-ease), box-shadow 0.35s var(--pr-ease), border-color 0.35s ease;
}
.review-card::after {
  content: '\201C';
  position: absolute; top: 4px; right: 20px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 88px; line-height: 1; font-weight: 900;
  color: rgba(0, 48, 135, 0.06); pointer-events: none;
}
.review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 48, 135, 0.18);
  box-shadow:
    0 8px 18px rgba(10, 22, 52, 0.06),
    0 28px 64px rgba(10, 22, 52, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

/* ── Services — engineered dark, blueprint atmosphere ────────── */
.section-services {
  padding: 104px 40px;
  background:
    var(--pr-grid) repeat,
    radial-gradient(ellipse 90% 70% at 15% 50%, rgba(0, 48, 135, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 50%, rgba(255, 209, 0, 0.05) 0%, transparent 55%),
    linear-gradient(160deg, #080c16 0%, #0d1322 40%, #0b1019 100%);
}
.section-services .section-inner { position: relative; z-index: 1; }
.section-services .card {
  border-radius: 18px;
  transition: transform 0.35s var(--pr-ease), box-shadow 0.35s var(--pr-ease), border-color 0.35s ease;
}
.section-services .card:hover { transform: translateY(-6px); }

/* Custom line-art icon chips on cards */
.card-ic {
  width: 54px; height: 54px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--blue);
  background: linear-gradient(160deg, rgba(0, 48, 135, 0.10), rgba(0, 48, 135, 0.03));
  border: 1px solid rgba(0, 48, 135, 0.16);
}
.card-ic svg { width: 27px; height: 27px; display: block; }
.section-services .card-ic {
  color: var(--yellow);
  background: linear-gradient(160deg, rgba(255, 209, 0, 0.16), rgba(255, 209, 0, 0.03));
  border: 1px solid rgba(255, 209, 0, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Why choose — brushed-light field + credential icons ─────── */
.section-why {
  position: relative;
  background:
    radial-gradient(ellipse 50% 60% at 92% 8%, rgba(0, 48, 135, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}
.section-why::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--pr-dots);
  opacity: 0.45; pointer-events: none;
}
.section-why .section-inner { position: relative; z-index: 1; }
.reason {
  border-radius: 18px;
  transition: transform 0.35s var(--pr-ease), box-shadow 0.35s var(--pr-ease), border-color 0.35s ease;
}
.reason:hover { transform: translateY(-6px); box-shadow: var(--pr-shadow-lg); border-color: rgba(0, 48, 135, 0.16); }
.reason-ic {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(160deg, #0a4ad0 0%, #002068 100%);
  box-shadow:
    0 10px 24px rgba(0, 48, 135, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.reason-ic svg { width: 25px; height: 25px; display: block; }

/* ── Stats — dark instrument panel ───────────────────────────── */
.section-dark {
  background:
    var(--pr-grid) repeat,
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(255, 209, 0, 0.07) 0%, transparent 60%),
    linear-gradient(160deg, #0a0f1c 0%, #101a30 55%, #0a0f1c 100%);
  position: relative;
}
.section-dark::before,
.section-dark::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 0, 0.35), transparent);
}
.section-dark::before { top: 0; }
.section-dark::after { bottom: 0; }
.stat-strip { position: relative; z-index: 1; }
.stat-num {
  background: linear-gradient(170deg, #ffe566 0%, #ffd100 55%, #e0a800 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(255, 209, 0, 0.18));
}
.stat-lbl { color: rgba(255, 255, 255, 0.55); }

/* ── Goodyear — consistency polish on the dark showcase ──────── */
.gy-hero, .gy-tires, .gy-promo, .gy-finder { border-radius: 22px; }
.gy-tire-card {
  transition: border-color 0.3s ease, transform 0.35s var(--pr-ease), box-shadow 0.35s var(--pr-ease);
}
.gy-tire-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.gy-promo-foot { transition: background 0.25s ease, letter-spacing 0.25s ease; }
.gy-promo-foot:hover { letter-spacing: 0.02em; }

/* ── Team — gallery treatment ────────────────────────────────── */
.team-card {
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--pr-shadow-sm);
  transition: transform 0.4s var(--pr-ease), box-shadow 0.4s var(--pr-ease), border-color 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pr-shadow-lg);
  border-color: rgba(0, 48, 135, 0.16);
}
.team-photo { background: linear-gradient(180deg, #eef2f8 0%, #e2e9f3 100%); overflow: hidden; }
.team-photo img { transition: transform 0.65s var(--pr-ease); }
.team-card:hover .team-photo img { transform: scale(1.035); }
.team-role {
  text-transform: uppercase; letter-spacing: 0.09em;
  font-size: 11px; font-weight: 700; color: var(--blue);
}

/* ── Final CTA — lit stage ───────────────────────────────────── */
.final-cta {
  position: relative; overflow: hidden;
  padding: 112px 40px;
  background:
    radial-gradient(ellipse 60% 85% at 50% 125%, rgba(255, 209, 0, 0.17) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% -20%, rgba(18, 85, 204, 0.45) 0%, transparent 60%),
    linear-gradient(160deg, #00246b 0%, #003087 55%, #001a4d 100%);
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--pr-grid);
  opacity: 0.55; pointer-events: none;
}
.final-cta h2, .final-cta p, .final-cta > div { position: relative; z-index: 1; }

/* ── EV household — NexDrive brand artwork under a legibility scrim ── */
.ev-household {
  padding: 100px 40px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 85% 110% at 50% 50%, rgba(4, 15, 28, 0.74) 0%, rgba(4, 15, 28, 0.52) 55%, rgba(4, 15, 28, 0.80) 100%),
    url('/img/nexdrive/ev-background.jpg') center / cover no-repeat,
    linear-gradient(135deg, #040f1c 0%, #082c48 100%);
}
.ev-household > div { position: relative; z-index: 1; }
.ev-household p { color: rgba(255, 255, 255, 0.78); }

/* Every EV CTA banner shares the same NexDrive artwork treatment */
.cross-promo-ev {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 85% 110% at 50% 50%, rgba(4, 15, 28, 0.74) 0%, rgba(4, 15, 28, 0.52) 55%, rgba(4, 15, 28, 0.80) 100%),
    url('/img/nexdrive/ev-background.jpg') center / cover no-repeat,
    linear-gradient(135deg, #040f1c 0%, #083050 100%);
}
.cross-promo-ev > * { position: relative; z-index: 1; }

/* Utility for smaller EV CTA boxes embedded in service pages */
.ev-cta-bg {
  background:
    radial-gradient(ellipse 90% 120% at 50% 50%, rgba(4, 15, 28, 0.72) 0%, rgba(4, 15, 28, 0.55) 55%, rgba(4, 15, 28, 0.80) 100%),
    url('/img/nexdrive/ev-background.jpg') center / cover no-repeat,
    linear-gradient(135deg, #040f1c 0%, #083050 100%) !important;
}

/* ── Plain sections — quiet light fields instead of flat white ──
   Scoped with exact class matches so page-specific .section variants
   with their own (often dark) backgrounds are never overridden. */
section[class="section"] {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 48, 135, 0.035) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fafbfe 100%);
}
section[class="section section-alt"] {
  position: relative;
  background:
    radial-gradient(ellipse 55% 60% at 100% 0%, rgba(0, 48, 135, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 45% 55% at 0% 100%, rgba(255, 209, 0, 0.05) 0%, transparent 55%),
    linear-gradient(180deg, #f6f8fc 0%, #eef2f9 100%);
}
section[class="section section-alt"]::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--pr-dots);
  opacity: 0.35; pointer-events: none;
}
section[class="section section-alt"] > .section-inner { position: relative; z-index: 1; }

/* Homepage team gallery — lit field with brand tints */
.section-team {
  position: relative;
  background:
    radial-gradient(ellipse 60% 70% at 92% 8%, rgba(0, 48, 135, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 4% 96%, rgba(255, 209, 0, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}
.section-team::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--pr-dots);
  opacity: 0.4; pointer-events: none;
}
.section-team .section-inner { position: relative; z-index: 1; }

/* ── Inner pages — premium page hero ─────────────────────────── */
.page-hero {
  padding: 88px 40px 78px;
  background:
    var(--pr-grid) repeat,
    radial-gradient(ellipse 70% 80% at 85% 15%, rgba(255, 209, 0, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 90% 90% at 8% 110%, rgba(18, 85, 204, 0.38) 0%, transparent 60%),
    linear-gradient(135deg, #001a4d 0%, #003087 70%, #00246b 100%);
}
.page-hero::after {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--yellow) 18%, var(--yellow) 82%, transparent 100%);
}
.page-hero-label { display: flex; align-items: center; gap: 12px; letter-spacing: 0.32em; }
.page-hero-label::before { content: ''; display: block; width: 32px; height: 2px; background: var(--yellow); }
.page-hero h1 { letter-spacing: -0.02em; }
.page-hero p { color: rgba(255, 255, 255, 0.76); }
body.pr-ready .page-hero-label { animation: pr-rise 0.8s var(--pr-ease) 0.05s backwards; }
body.pr-ready .page-hero h1 { animation: pr-rise 0.9s var(--pr-ease) 0.16s backwards; }
body.pr-ready .page-hero p { animation: pr-rise 0.9s var(--pr-ease) 0.30s backwards; }

/* ── Page hero photo variants ─────────────────────────────────── */
.page-hero--fleet {
  padding: 120px 40px 110px;
  min-height: 520px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(0,20,60,0.72) 0%, rgba(0,48,135,0.58) 60%, rgba(0,36,107,0.68) 100%),
    url('/img/autopro/fleet-hero.png') center 60% / cover no-repeat;
}
.page-hero--fleet .page-hero-inner { width: 100%; }

/* ── Inner pages — blog & partner cards join the card language ── */
.blog-card, .partner-card {
  border-radius: 18px;
  transition: transform 0.35s var(--pr-ease), box-shadow 0.35s var(--pr-ease), border-color 0.3s ease;
}
.blog-card:hover, .partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pr-shadow-md);
  border-color: rgba(0, 48, 135, 0.16);
}

/* ── Fleet banner — van + technician photo ───────────────────── */
.fleet-van-art { flex: 0 1 340px; min-width: 240px; }
.fleet-van-art img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 16px 22px rgba(10, 26, 58, 0.16));
}
@media (max-width: 768px) {
  .fleet-van-art { margin: 0 auto; flex-basis: 300px; }
}

/* ── Service area — cinematic photo treatment ────────────────── */
.area-media { position: relative; border-radius: 16px; }
.area-media::after {
  content: ''; position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 26, 77, 0) 48%, rgba(0, 26, 77, 0.32) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.10) 0%, transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* ── Buttons — hover sheen sweep + accessible focus ──────────── */
.btn::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -30%;
  width: 36%; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform 0.7s var(--pr-ease);
}
.btn:hover::after { transform: translateX(420%) skewX(-18deg); }
.btn:focus-visible,
.nav-book:focus-visible {
  outline: 3px solid rgba(0, 48, 135, 0.5);
  outline-offset: 3px;
}
.section-services .btn:focus-visible,
.final-cta .btn:focus-visible,
.goodyear-section .btn:focus-visible {
  outline-color: rgba(255, 209, 0, 0.65);
}
.nav-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* On tablet/mobile the team card hides and text spans the full width,
   so the hero needs a uniform scrim instead of the left-weighted one */
@media (max-width: 960px) {
  .hero-building::after {
    background:
      radial-gradient(ellipse 120% 70% at 50% 115%, rgba(0, 4, 18, 0.5) 0%, transparent 55%),
      linear-gradient(180deg, rgba(0, 16, 64, 0.92) 0%, rgba(0, 16, 64, 0.82) 100%);
  }
}

/* Service-area split collapses to a clean stack on small screens
   (the grid is set via inline style, hence the !important) */
@media (max-width: 900px) {
  .section-alt .section-inner:has(.area-media) { display: block !important; }
  .area-media { margin-top: 36px; max-width: 520px; }
}

/* ── Mobile — reduce intensity, keep the polish ──────────────── */
@media (max-width: 768px) {
  section[class="section"],
  section[class="section section-alt"],
  section[class="section section-dark"],
  .section-why, .section-team,
  .reviews-strip, .section-services { padding: 68px 20px; }
  .final-cta { padding: 76px 20px; }
  .ev-household { padding: 64px 20px; }
  .pr-reveal { transform: translateY(14px); }
  .review-card::after { display: none; }   /* quote watermark collides with accordion toggle */
  .btn::after { display: none; }           /* no sheen sweep on touch */
  .hero-building { transform: none; }
  .trust-bar { gap: 12px; }
  .trust-item { font-size: 11px; }
  .card-ic, .reason-ic { width: 46px; height: 46px; }
  .card-ic svg { width: 23px; height: 23px; }
  .reason-ic svg { width: 22px; height: 22px; }
}

/* ── Reduced motion — everything visible, nothing moves ──────── */
@media (prefers-reduced-motion: reduce) {
  body.pr-ready .hero-composite .hero-inner h1,
  body.pr-ready .hero-composite .hero-inner p,
  body.pr-ready .hero-team,
  body.pr-ready .page-hero-label,
  body.pr-ready .page-hero h1,
  body.pr-ready .page-hero p { animation: none; }
  .hero-seam-shimmer::after { animation: none; opacity: 0; }
  .pr-reveal { opacity: 1; transform: none; }
  .btn::after { display: none; }
  .nav, .btn, .card, .reason, .team-card, .review-card, .gy-tire-card { transition: none; }
}
