:root {
  --premium-dark: #0f172a;
  --premium-gold: #f5a010;
  --premium-blue: #1e40af;
  --premium-light: #f8fafc;
  --scan-dark: #06090f;
  --scan-green: #10b981;
  --risk-red: #dc2626;
  --risk-amber: #f59e0b;
  --risk-gray: #94a3b8;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

/* ── HERO — copied from /services/index.html (.services-hero system)
   so this page reads as the same brand, not a one-off style. ── */
.services-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: #0d0d0b;
  padding: 28px 20px 0;
  margin-bottom: 0;
  box-sizing: border-box;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.services-hero::before { display: none; }
.services-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  text-align: center;
}
.services-hero__image-wrap {
  width: 100%;
  max-width: 1200px;
  position: relative;
  margin-top: 32px;
}
.services-hero__image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #0d0d0b);
  pointer-events: none;
}
.services-hero__hero-img {
  width: 100%;
  height: auto;
  display: block;
}
@media (min-width: 768px) {
  .services-hero {
    align-items: center;
    flex-direction: row;
    min-height: clamp(560px, 40vw, 820px);
    padding: 72px 60px 80px;
    background: transparent;
  }
  .services-hero::before {
    display: block;
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13,13,11,0.88) 0%, rgba(13,13,11,0.76) 38%, rgba(13,13,11,0.42) 68%, rgba(13,13,11,0.16) 100%);
    pointer-events: none;
    z-index: 1;
  }
  .services-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/images/ppi-hero-hyundai-1200w.webp');
    background-size: cover;
    background-position: 50% 15%;
    filter: brightness(1.05);
  }
  .services-hero__content {
    margin: 0;
    max-width: 600px;
    text-align: left;
  }
  .services-hero__image-wrap {
    display: none;
  }
}

.services-hero__eyebrow {
  display: inline-block;
  background: transparent;
  color: var(--premium-gold);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid rgba(245,160,16,0.35);
  margin-bottom: 20px;
}

.services-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  color: #ffffff;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.services-hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--premium-gold);
  letter-spacing: 0.02em;
  margin: 8px 0 28px;
}
.services-hero__service-line {
  max-width: 640px;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin: 0 0 14px;
  font-weight: 400;
}
.services-hero__service-line strong {
  color: #ffffff;
  font-weight: 700;
}
.services-hero__service-transform {
  max-width: 620px;
  font-size: clamp(14px, 1.55vw, 16px);
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  margin: 0 0 28px;
}

.hero-atf-cta {
  display: inline-block;
  background: var(--premium-gold);
  color: #0f172a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 32px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}
.hero-cta-group .hero-atf-cta {
  width: 100%;
  text-align: center;
  margin-top: 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .services-hero__eyebrow {
    display: flex;
    flex-direction: column;
    gap: 7px;
    border: none;
    padding: 0;
    background: transparent;
    font-size: initial;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 0;
    margin-bottom: 22px;
  }
  .services-hero__eyebrow-main {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f8f4ec;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
  }
  .services-hero__eyebrow-stars {
    color: #ffd166;
    font-size: 22px;
    letter-spacing: 0.02em;
    line-height: 1;
  }
  .services-hero__eyebrow-quote {
    display: block;
    font-family: var(--font-body);
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    color: rgba(255,255,255,0.78);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
    border-left: 2px solid rgba(245,158,11,0.45);
    padding-left: 10px;
  }

  .hero-cta-group {
    flex-direction: row;
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .services-hero__eyebrow {
    display: block;
    width: 100%;
    margin: 0 auto 10px;
    padding: 0;
    text-align: center;
    color: #ffd166;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: var(--font-body);
    font-size: 0;
    letter-spacing: 0;
  }
  .services-hero__eyebrow-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #f8f4ec;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .services-hero__eyebrow-stars {
    color: #ffd166;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .services-hero__eyebrow-quote {
    display: block;
    max-width: 38ch;
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.82);
    font-size: 11px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    text-transform: none;
  }
  .services-hero h1 { margin: 0 auto 10px; font-size: clamp(28px, 8vw, 40px); text-align: center; }
  .services-hero h1::after {
    content: '';
    display: block;
    width: 38px;
    height: 2px;
    margin: 10px auto 0;
    background: var(--premium-gold);
  }
  .services-hero__tagline {
    max-width: 34ch;
    margin: 0 auto 10px;
    font-size: clamp(17px, 4.6vw, 20px);
    font-weight: 800;
    line-height: 1.55;
    text-align: center;
    letter-spacing: 0.01em;
  }
  .services-hero__service-line {
    display: none;
  }
  .services-hero__service-transform {
    display: none;
  }
  .services-hero__image-wrap {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    margin-top: 16px;
  }
  .services-hero__image-wrap::after {
    height: 32px;
  }
  .services-hero__hero-img {
    height: auto;
    object-fit: initial;
    object-position: initial;
  }
  .hero-cta-group {
    flex-direction: row;
    gap: 8px;
  }
  .hero-cta-group .hero-atf-cta {
    flex: 1;
    width: auto;
    font-size: 13px;
    padding: 11px 8px;
  }
}

/* Mobile text block below hero image (mirrors services__mobile-text) */
.services-hero__mobile-text { display: none; }

@media (max-width: 767px) {
  .services-hero__mobile-text {
    display: block;
    background: #0d0d0b;
    padding: 28px 20px 36px;
    border-top: 1px solid rgba(245,160,16,0.20);
  }
  .services-hero__mobile-text::before {
    content: 'CERTIFIED · ON-SITE · KELOWNA';
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--premium-gold);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 18px;
  }
  .services-hero__mobile-text__body {
    border-left: 2px solid rgba(245,160,16,0.70);
    padding-left: 16px;
    margin-bottom: 18px;
  }
  .services-hero__mobile-text__body p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255,255,255,0.95);
    margin: 0;
    text-align: left;
  }
  .services-hero__mobile-text__body p strong {
    color: #ffffff;
    font-weight: 700;
  }
  .services-hero__mobile-text__promise {
    font-family: var(--font-body);
    font-size: 13px;
    font-style: italic;
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
    margin: 0;
    text-align: center;
    letter-spacing: 0.01em;
  }
}

/* Hidden Repair Risk callout */
.ppi-tradeoff__grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 24px auto 0;
}

.ppi-tradeoff__card {
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ppi-tradeoff__card--risk {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.ppi-tradeoff__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ppi-tradeoff__card--risk .ppi-tradeoff__label { color: var(--risk-red); }

.ppi-tradeoff__stat {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
}

.ppi-tradeoff__card--risk .ppi-tradeoff__stat { color: #991b1b; }

.ppi-tradeoff__note {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.ppi-tradeoff__card--risk .ppi-tradeoff__note { color: #7f1d1d; }

.ppi-tradeoff__differentiator {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--premium-dark);
}

/* Grand Slam Offer Box - Premium Style */
.offer-box-premium {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-left: 4px solid var(--premium-gold);
  padding: 24px;
  margin: 24px 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.offer-badge {
  display: inline-block;
  background: var(--premium-gold);
  color: var(--premium-dark);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.offer-text-premium {
  font-size: 17px;
  line-height: 1.5;
  color: var(--premium-dark);
  margin: 0;
}

.offer-text-premium strong {
  color: var(--premium-blue);
}

/* Premium CTA System */
.cta-premium-primary {
  display: inline-block;
  padding: 16px 32px;
  background: var(--premium-dark);
  color: #fff;
  border: 2px solid var(--premium-gold);
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25), 0 0 0 0 rgba(251, 191, 36, 0.4);
  transition: all 0.3s ease;
  margin-right: 12px;
  margin-bottom: 12px;
}

.cta-premium-primary:hover {
  background: linear-gradient(135deg, var(--premium-dark) 0%, var(--premium-blue) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35), 0 0 20px rgba(251, 191, 36, 0.6);
}

.cta-premium-secondary {
  display: inline-block;
  padding: 16px 32px;
  background: transparent;
  color: var(--premium-dark);
  border: 2px solid var(--premium-dark);
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.cta-premium-secondary:hover {
  background: var(--premium-dark);
  color: #fff;
}

/* Verified Google Review — social proof, right after the hero */
.ppi-review-proof__card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ppi-review-proof__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ppi-review-proof__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.ppi-review-proof__who {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ppi-review-proof__name {
  font-weight: 700;
  color: var(--premium-dark);
  font-size: 15px;
}

.ppi-review-proof__meta {
  font-size: 13px;
  color: #64748b;
}

.ppi-review-proof__badge {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.ppi-review-proof__stars {
  margin-top: 16px;
  color: var(--premium-gold);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ppi-review-proof__when {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 400;
}

.ppi-review-proof__quote {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #1e293b;
}

.ppi-review-proof__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--premium-blue);
  text-decoration: none;
}

.ppi-review-proof__link:hover {
  text-decoration: underline;
}

/* 100+ Point Scan — dark instrument panel, full-bleed band on wide screens.
   Background spans the viewport; .ppi-scan__inner keeps rows readable-width and centered. */
.ppi-scan__panel {
  background: var(--premium-dark);
  margin-top: 24px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.ppi-scan__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 28px;
}

.ppi-scan__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--risk-gray);
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ppi-scan__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.ppi-scan__dot--high { background: var(--risk-red); }
.ppi-scan__dot--medium { background: var(--risk-amber); }
.ppi-scan__dot--low { background: var(--risk-gray); }

.ppi-scan__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ppi-scan__row {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
}

.ppi-scan__rank {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--risk-gray);
}

.ppi-scan__name {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.ppi-scan__bar {
  grid-column: 1 / -1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.ppi-scan__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(.22, 1, .36, 1);
}

.ppi-scan__row.is-visible .ppi-scan__fill {
  width: var(--w);
}

.ppi-scan__fill--high { background: var(--risk-red); }
.ppi-scan__fill--medium { background: var(--risk-amber); }
.ppi-scan__fill--low { background: var(--risk-gray); }

.ppi-scan__note {
  grid-column: 1 / -1;
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
}

.ppi-scan__checks {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12.5px;
  line-height: 1.6;
}

.ppi-scan__checks strong {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.ppi-scan__disclaimer {
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .ppi-scan__fill {
    transition: none;
    width: var(--w);
  }
}

/* Sample Report */
.ppi-report__figure {
  margin: 24px 0 0;
  max-width: 340px;
}

.ppi-report__img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  cursor: zoom-in;
}

.ppi-report__figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
}

/* Click-to-enlarge overlay (see scripts.js) */
.img-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.img-zoom-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.img-zoom-overlay__img {
  max-width: min(90vw, 700px);
  max-height: 90vh;
  border-radius: 8px;
  cursor: zoom-out;
}

/* Mobile CTA bar (mandatory sticky bar, copied from index.html) */
.mobile-cta-bar { display: none; }

@media (max-width: 1023px) {
  .mobile-cta-bar {
    display: flex;
    align-items: center;
    gap: 0;
    position: sticky;
    top: 68px;
    z-index: 999;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    border-top: 1px solid rgba(251, 191, 36, .35);
    border-bottom: 1px solid rgba(251, 191, 36, .25);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(255, 255, 255, .06);
  }
  .mobile-cta-bar a {
    color: #fff;
    font-family: "Inter", Arial, sans-serif;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .2px;
  }
  .mobile-cta-sms {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    margin-right: 8px;
    padding: 6px 8px;
    min-height: 48px;
    border-radius: 12px;
    background: rgba(202, 138, 4, .12);
    box-shadow: inset 0 0 0 1.5px rgba(245, 183, 0, .55), 0 4px 12px -6px rgba(0, 0, 0, .55);
    transition: transform 140ms cubic-bezier(.23, 1, .32, 1), background 140ms ease-out;
  }
  .mobile-cta-sms:active {
    transform: scale(.98);
    background: rgba(202, 138, 4, .22);
  }
  .mobile-cta-sms::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(75deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
    transform: translateX(-140%);
    animation: ctaShimmerPPI 4.2s cubic-bezier(.23, 1, .32, 1) infinite;
  }
  @keyframes ctaShimmerPPI {
    0% { transform: translateX(-140%); }
    22% { transform: translateX(140%); }
    100% { transform: translateX(140%); }
  }
  .mobile-cta-sms-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-width: 0;
  }
  .mobile-cta-sms-text .cta-main-text {
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    white-space: nowrap;
    color: #f5c451;
    text-shadow: 0 1px 10px rgba(245, 183, 0, .3);
  }
  .mobile-cta-bar-sub {
    color: #fff;
    opacity: .8;
    font-weight: 600;
    font-size: .75rem;
    white-space: nowrap;
  }
  .mobile-cta-tel {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    transition: transform 140ms cubic-bezier(.23, 1, .32, 1);
  }
  .mobile-cta-tel:active {
    transform: scale(.98);
  }
  .mobile-cta-tel-label {
    display: block;
    font-size: .6875rem;
    color: #e2e8f0;
    font-weight: 500;
    white-space: nowrap;
  }
  .mobile-cta-tel-number {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
  }
  .mobile-cta-bar svg { flex-shrink: 0; color: #f5c451; }
}

@media only screen and (max-width: 767px) {
  .mobile-cta-bar {
    top: 92px;
  }
}
@media (max-width: 359px) {
  .mobile-cta-sms-text .cta-main-text { font-size: .8125rem; }
  .mobile-cta-bar-sub { font-size: .6875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-cta-sms::after { animation: none; }
  .mobile-cta-sms { transition: none; }
}

/* FAQ — visible h3/p pairs (converted from collapsed <details> for AI/GEO citability) */
.ppi-faq-item {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.ppi-faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--premium-dark);
}

.ppi-faq-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

/* .ppi-map__embed rules moved to shared estilos-header2.css so every
   page using this component gets them, not just this one. */
