/* ===================================================
   Stretton's MOT Station - Tyres page
   Reuses pb-smot-class-card, pb-smot-checklist, pb-smot-window,
   pb-smot-guarantee etc. from mot.css - this file only adds what
   wasn't already needed elsewhere (tyre size diagram display).
   =================================================== */

/* ---------- TYRE SIZE DIAGRAM ---------- */
.pb-smot-size-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pb-smot-space-xl);
  align-items: center;
}
.pb-smot-size-guide__image {
  border-radius: var(--pb-smot-radius);
  background: linear-gradient(160deg, var(--pb-smot-offwhite) 0%, #ECEFF4 100%);
  padding: var(--pb-smot-space-md);
}
.pb-smot-size-guide__image img,
.pb-smot-size-guide__image svg {
  width: 100%;
  height: auto;
  display: block;
}
.pb-smot-size-guide__where {
  margin-top: var(--pb-smot-space-md);
  background: var(--pb-smot-offwhite);
  border: 1px solid var(--pb-smot-border);
  border-radius: var(--pb-smot-radius);
  padding: 0.9em 1.1em;
  font-size: 0.88rem;
  color: var(--pb-smot-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
}
.pb-smot-size-guide__where svg {
  width: 18px; height: 18px;
  color: var(--pb-smot-blue);
  flex-shrink: 0;
  margin-top: 0.15em;
}

@media (max-width: 880px) {
  .pb-smot-size-guide { grid-template-columns: 1fr; }
}

/* ---------- ILLUSTRATED GRAPHIC PANELS (Tyres / Balancing / Tracking) ---------- */
/* .pb-smot-window__visual--graphic, .pb-smot-graphic and .pb-smot-window__list
   moved to mot.css - they're genuinely generic (Workshop uses them too now),
   not Tyres-specific despite living here originally. */

/* ---------- TYRE SIZE BREAKDOWN LIST (plain text, e.g. "195" - width in mm) ---------- */
.pb-smot-size-breakdown {
  list-style: none;
  padding: 0;
  margin: 1em 0 0;
  font-size: 0.92rem;
  color: var(--pb-smot-text-muted);
}
.pb-smot-size-breakdown li { margin-bottom: 0.6em; }
.pb-smot-size-breakdown li:last-child { margin-bottom: 0; }
.pb-smot-size-breakdown strong { color: var(--pb-smot-navy); }

/* ---------- TREAD DEPTH BAR (different proportions to the MOT booking-window bar) ---------- */
.pb-smot-window__bar-fill--tread { width: 62%; }
.pb-smot-window__bar-highlight--tread { left: 62%; width: 38%; }

/* Small spacing helper for an icon sat above a bullet list inside a window panel */
.pb-smot-icon-block {
  margin-bottom: 0.8em;
}

/* .pb-smot-guarantee-pair moved to mot.css - genuinely generic, now used
   on MOT, Servicing and Workshop too, not just here. */

/* ---------- HERO GRAPHIC (Tyres section gets a bigger, bolder graphic than
   Balancing/Tracking, since tyres are the primary product on this page) ---------- */
.pb-smot-window__visual--hero {
  /* Extra top padding here (not space-lg like the sibling panels) gives
     headroom for the scale(1.12) below - the badge sits close to the top
     of the graphic's own viewBox, so this keeps it clear of the panel's
     overflow:hidden edge at any viewport width. */
  padding: var(--pb-smot-space-xl) var(--pb-smot-space-lg) var(--pb-smot-space-md);
}
.pb-smot-window__visual--hero .pb-smot-graphic {
  transform: scale(1.12);
  margin: 0.4rem 0 0.9rem;
}

/* ---------- TYRE RANGE COMPARISON STRIP (Value / Standard / Premium / Ultimate) ---------- */
.pb-smot-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--pb-smot-space-sm);
  margin-top: var(--pb-smot-space-lg);
}
.pb-smot-tier-card {
  text-align: center;
  position: relative;
}
.pb-smot-tier-card--recommended {
  border-color: var(--pb-smot-gold);
  box-shadow: 0 0 0 1px var(--pb-smot-gold), var(--pb-smot-shadow);
}
.pb-smot-tier-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pb-smot-gold);
  color: var(--pb-smot-white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25em 0.8em;
  border-radius: var(--pb-smot-radius);
  white-space: nowrap;
}
.pb-smot-tier-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 0.7em;
  border-radius: 50%;
  background: var(--pb-smot-offwhite);
  display: flex; align-items: center; justify-content: center;
}
.pb-smot-tier-card--recommended .pb-smot-tier-card__icon {
  background: rgba(232, 163, 61, 0.15);
}
.pb-smot-tier-card__icon svg { width: 28px; height: 28px; color: var(--pb-smot-blue); }
.pb-smot-tier-card--recommended .pb-smot-tier-card__icon svg { color: var(--pb-smot-gold-dark); }
.pb-smot-tier-card h4 { font-size: 1rem; margin-bottom: 0.3em; }
.pb-smot-tier-card p { font-size: 0.82rem; color: var(--pb-smot-text-muted); margin: 0; }

@media (max-width: 880px) {
  .pb-smot-tier-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pb-smot-tier-grid { grid-template-columns: 1fr; }
}

/* ---------- ANNOTATED TYRE SIZE GRAPHIC (replaces the old WebP photo) ----------
   (.pb-smot-size-guide__image styling consolidated above, near the top of this
   file, rather than duplicated here - that duplication was the original bug:
   overflow:hidden + later-added padding was clipping the right-side callouts) */

/* ---------- SUBTLE MOTION (scroll-triggered, respects reduced-motion) ---------- */
/* Badge pulse removed entirely per feedback - it's a fixed label sat top-centre
   of the graphic, no animation, no risk of it drifting or clipping. */
.pb-smot-graphic.is-visible .pb-smot-motion-arc {
  animation: pbSmotArcRotate 7s linear infinite;
  transform-origin: 190px 150px;
}
@keyframes pbSmotArcRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pb-smot-graphic.is-visible .pb-smot-motion-arc {
    animation: none;
  }
}
