/* ==========================================================================
   Page-Specific Layout Styles
   ========================================================================== */

/* ==========================================================================
   Full-Width Hero Section
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Carousel slides */
.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 3.5s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 5, 5, 0.65) 0%,
    rgba(5, 5, 5, 0.38) 55%,
    rgba(5, 5, 5, 0.05) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  padding: 0;
  margin-left: 6%;
  text-align: left;
}

.hero-heading {
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

/* UK Number Plate Input */
.reg-plate-wrap {
  display: flex;
  align-items: stretch;
  border: 2px solid #f0c10f;
  border-radius: 6px;
  overflow: hidden;
  background: #f0c10f;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  width: 100%;
}

.reg-plate-gb {
  flex-shrink: 0;
  width: 18px;
  overflow: hidden;
  background: #003399;
}

.reg-plate-gb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.reg-plate-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: #f0c10f;
  color: #111;
  font-family: 'UKNumberPlate', 'Charles Wright', 'Arial Black', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  padding: 0.55rem 0.75rem;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.reg-plate-input::placeholder {
  color: rgba(0,0,0,0.35);
  letter-spacing: 0.1em;
  font-size: 1.2rem;
}

@media (max-width: 480px) {
  .reg-plate-input {
    font-size: 16px;
    letter-spacing: 0.1em;
    padding: 0.55rem 0.6rem;
  }
  .reg-plate-input::placeholder { font-size: 16px; }
}

/* White Search Panel */
.hero-panel {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f5f5f5;
  border-bottom: 1px solid #eeeeee;
}

.hero-tab {
  padding: 0.8rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.hero-tab.active {
  color: var(--primary);
  background: #fff;
  border-bottom-color: var(--primary);
}

.hero-tab-content {
  padding: 1.1rem;
}

.hero-tab-content.hidden { display: none; }

.hero-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.hero-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-form);
  border-radius: 4px;
  background: #fff;
  color: var(--text-heading);
  font-family: var(--font);
  font-size: 0.85rem;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23555555' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.hero-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ==========================================================================
   Valuation Modal
   ========================================================================== */
.valuation-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.6);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.valuation-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.valuation-modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(16px);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.valuation-modal-overlay.active .valuation-modal-card {
  transform: translateY(0);
}

.valuation-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.valuation-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.valuation-modal-header { padding-right: 2rem; }

.valuation-modal-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}

.valuation-modal-summary-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.2rem;
}

.valuation-modal-summary-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Brands Strip
   ========================================================================== */
.brands-section {
  padding: 1.5rem 6%;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.brand-card:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(18,72,222,0.1);
}

.brand-logo-img {
  max-height: 32px;
  max-width: 90px;
  width: auto;
  object-fit: contain;
}

.brand-logo-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.brand-card:hover .brand-logo-text { color: var(--primary); }

/* ==========================================================================
   Stats Strip
   ========================================================================== */
.stats-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-off);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-card {
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.stats-card:last-child { border-right: none; }
.stats-card:hover { background: #fff; }

.stats-card-glow { display: none; }

.stats-icon { color: var(--primary); flex-shrink: 0; }

.stats-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.1rem;
  line-height: 1;
}

.stats-info p {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ==========================================================================
   Featured Vehicles Section
   ========================================================================== */
.featured-section {
  padding: 3rem 6%;
}

.featured-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.featured-bento-grid .vehicle-card-img { height: 271px; }

/* ==========================================================================
   Vehicle Cards
   ========================================================================== */
.vehicle-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 16px 48px rgba(100, 100, 111, 0.28);
  border-color: transparent;
}

.vehicle-card-img {
  position: relative;
  display: block;
  height: 300px;
  overflow: hidden;
}

.vehicle-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4f4f6;
  transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-card-img img { transform: scale(1.04); }

.vehicle-badge-ulez {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--finance);
  color: #fff;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  z-index: 5;
}

.vehicle-badge-grabber {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(5, 5, 5, 0.72);
  color: #fff;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  z-index: 5;
}

.vehicle-card-body {
  padding: 1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vehicle-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
}

.vehicle-card-body h3 a:hover { color: var(--primary); }

.vehicle-derivative {
  font-size: 0.92rem;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.vehicle-specs span {
  background: var(--bg-off);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  color: var(--text-body);
}

.vspec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vspec svg {
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.75;
}

.vehicle-card-footer {
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
}

.vehicle-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  font-family: var(--font);
}

.btn-view-card {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.btn-view-card:hover { gap: 8px; color: var(--primary-hover); }

/* Spotlight card (spans 2 cols) */
.vehicle-spotlight-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.vehicle-spotlight-card .vehicle-card-img {
  aspect-ratio: auto;
  height: 100%;
}

.vehicle-spotlight-card .vehicle-card-body {
  padding: 2rem;
  justify-content: center;
  gap: 0.75rem;
}

.vehicle-spotlight-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.vehicle-spotlight-card .vehicle-specs span {
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* ==========================================================================
   Showroom Layout
   ========================================================================== */
.showroom-workspace {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.showroom-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-group label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-body);
}

.sidebar-group select,
.sidebar-group input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-form);
  border-radius: 4px;
  background: #fff;
  color: var(--text-heading);
  font-family: var(--font);
  font-size: 0.85rem;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23555555' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.2s;
}

.sidebar-group select:focus,
.sidebar-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(18, 72, 222, 0.1);
}

.sidebar-group input[type="text"] { background-image: none; }

.showroom-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.showroom-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.showroom-meta-results {
  font-size: 0.9rem;
  color: var(--text-body);
}

.showroom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Sort select override for light theme */
.sort-select {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border-form);
  border-radius: 6px;
  background: #fff;
  color: var(--text-heading);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
}

.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.chip {
  background: rgba(18, 72, 222, 0.06);
  border: 1px solid rgba(18, 72, 222, 0.2);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: var(--border-radius-xs);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.pagination-btn:hover,
.pagination-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==========================================================================
   Vehicle Detail Page
   ========================================================================== */
.detail-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 2rem;
  align-items: start;
}

.detail-main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Bento Image Gallery */
.bento-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 130px;
  gap: 0.75rem;
}

.bento-gallery-item {
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
}

.bento-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bento-gallery-item:hover img { transform: scale(1.04); }

.bento-gallery-item.large {
  grid-column: span 3;
  grid-row: span 3;
}

/* Cockpit Spec HUD */
.cockpit-hud {
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.gauge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.gauge-circle {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s;
}

.gauge-circle::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.gauge-item:hover .gauge-circle { border-color: var(--primary); }

.gauge-circle-fill {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  z-index: 1;
}

.gauge-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-heading);
  z-index: 2;
  white-space: nowrap;
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gauge-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
}

/* Accordion */
.accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.accordion-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xs);
  overflow: hidden;
}

.accordion-header {
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-heading);
  border-bottom: 1px solid transparent;
  transition: color 0.2s;
}

.accordion-header.active {
  border-bottom-color: var(--border);
  color: var(--primary);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
  color: var(--text-body);
  font-size: 0.9rem;
}

.accordion-content.open {
  padding: 1.25rem;
  max-height: 1200px;
}

/* Sticky enquiry pane */
.detail-sticky-pane {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--border-radius-sm);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sticky-price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
}

.sticky-price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
  margin-top: 0.15rem;
  font-family: var(--font);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  background: var(--bg-off);
  padding: 3rem 6%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card-new {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.service-card-new:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.service-card-new h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.service-card-new p {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}

.service-card-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}
.service-card-link:hover { gap: 9px; }

/* ==========================================================================
   Services — Image Cards (2x2)
   ========================================================================== */
.services-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.svc-img-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  cursor: pointer;
}

.svc-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.55s ease;
}

.svc-img-card:hover .svc-img-bg { transform: scale(1.05); }

.svc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 5, 5, 0.78) 0%,
    rgba(5, 5, 5, 0.25) 50%,
    rgba(5, 5, 5, 0.0) 100%
  );
  transition: background 0.35s ease;
}

.svc-img-card:hover .svc-img-overlay {
  background: linear-gradient(
    to top,
    rgba(5, 5, 5, 0.88) 0%,
    rgba(5, 5, 5, 0.45) 55%,
    rgba(5, 5, 5, 0.08) 100%
  );
}

.svc-img-content {
  position: relative;
  z-index: 2;
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.svc-img-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
  display: block;
}

.svc-img-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.svc-img-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
  margin-top: 0;
}

.svc-img-card:hover .svc-img-text {
  max-height: 60px;
  opacity: 1;
  margin-top: 0.2rem;
}

.svc-img-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.5rem;
  transition: gap 0.2s, color 0.2s;
}

.svc-img-card:hover .svc-img-link {
  gap: 10px;
  color: #fff;
}

/* ==========================================================================
   Sell Section — Diagonal Split
   ========================================================================== */
.sell-split {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  margin: 1.5rem 6%;
}

.sell-split-image {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 55% 0, 45% 100%, 0 100%);
  z-index: 0;
}

.sell-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sell-split-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5,5,5,0.15) 70%, rgba(5,5,5,0.55) 100%);
}

.sell-split-form {
  position: relative;
  z-index: 2;
  width: 50%;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3rem 3.5rem 4.5rem;
  min-height: 580px;
}

.sell-split-inner {
  width: 100%;
  max-width: 380px;
}

.sell-split-heading {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.sell-split-heading span {
  font-weight: 600;
  color: var(--primary);
}

.sell-split-sub {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.sell-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sell-check-list li {
  font-size: 0.88rem;
  color: var(--text-body);
  padding-left: 1.5rem;
  position: relative;
}

.sell-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--finance);
  font-weight: 700;
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */
.reviews-section {
  padding: 3rem 6%;
  background: var(--bg-off);
  border-top: 1px solid var(--border);
}

.reviews-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0px 16px 40px rgba(100,100,111,0.22);
}

.review-card-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.review-card-body {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}

.review-card-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Double Form Grid (Home sell/reviews panel)
   ========================================================================== */
.double-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-top: 2rem;
}

/* ==========================================================================
   Valuation Steps
   ========================================================================== */
.valuation-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  padding: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-card);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(18, 72, 222, 0.07);
  border: 1px solid rgba(18, 72, 222, 0.2);
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Performance / Dyno HUD (detail page section)
   ========================================================================== */
.perf-hud {
  background: var(--bg-darker);
  padding: 4rem 6%;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.perf-hud::before { display: none; }

.perf-hud-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.perf-hud-title { text-align: center; margin-bottom: 3rem; }

.perf-hud-title h2 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.perf-main-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: #fff;
}

.perf-main-title span { color: var(--primary); font-style: normal; }
.perf-subtitle { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.5rem; letter-spacing: 0.05em; }
.perf-divider { width: 36px; height: 2px; background: var(--primary); margin: 1rem auto 0; }

.dyno-hud-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: center;
}

.dyno-chart-container {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chart-header { display: flex; justify-content: space-between; align-items: center; }
.chart-legend { display: flex; gap: 1.25rem; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #bbb; }
.legend-color { width: 8px; height: 8px; border-radius: 2px; }
.legend-color.bhp-color { background: var(--primary); }
.legend-color.torque-color { background: #fff; }
.chart-instruction { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.canvas-wrapper { position: relative; width: 100%; height: 280px; }
#dynoCanvas { width: 100%; height: 100%; background: transparent; cursor: crosshair; }

.dyno-dashboard { display: flex; flex-direction: column; gap: 0.75rem; }

.telemetry-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-xs);
  padding: 1rem 1.25rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.telemetry-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.25s;
}

.telemetry-card.active-bhp::after { background: var(--primary); }
.telemetry-card.active-torque::after { background: #fff; }
.telemetry-card:hover { background: rgba(255, 255, 255, 0.07); }

.telemetry-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 700; }
.telemetry-value { font-size: 1.75rem; font-weight: 700; color: #fff; line-height: 1.1; margin-top: 0.1rem; }
.telemetry-unit { font-size: 0.82rem; color: var(--text-muted); font-weight: 400; }
.telemetry-peak { font-size: 0.62rem; color: var(--primary); margin-top: 0.25rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.telemetry-card.active-torque .telemetry-peak { color: #ccc; }

.telemetry-stats-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

.telemetry-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-xs);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
}

.stat-box-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; }
.stat-box-value { font-size: 1rem; font-weight: 700; color: #fff; margin-top: 0.1rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .showroom-grid { grid-template-columns: 1fr 1fr; }
  .featured-bento-grid { grid-template-columns: 1fr 1fr; }
  .vehicle-spotlight-card { grid-column: span 2; }
}

@media (max-width: 992px) {
  .hero { height: 600px; justify-content: center; }
  .hero-inner { max-width: 460px; margin-left: 0; padding: 0 1.25rem; text-align: center; }
  .sell-split { margin: 1rem 4%; border-radius: 14px; }
  .sell-split-image { clip-path: none; }
  .sell-split-form { width: 100%; margin-left: 0; padding: 2.5rem 2rem; min-height: unset; background: rgba(255,255,255,0.92); }
  .reviews-cards-grid { grid-template-columns: 1fr 1fr; }
  .stats-bento { grid-template-columns: 1fr 1fr; }
  .featured-bento-grid { grid-template-columns: 1fr; }
  .vehicle-spotlight-card { grid-column: span 1; grid-template-columns: 1fr; }
  .vehicle-spotlight-card .vehicle-card-img { height: 200px; }
  .showroom-workspace { grid-template-columns: 1fr; }
  .showroom-sidebar { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sticky-pane { position: static; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .valuation-steps { grid-template-columns: 1fr; }
  .double-form-grid { grid-template-columns: 1fr; padding: 1.5rem; }
  .dyno-hud-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { height: 550px; }
  .hero-heading { font-size: 18px; }
  .stats-bento { display: none; }
  .brands-grid { justify-content: center; }
  .brand-card { height: 40px; padding: 0 0.75rem; }
  .brand-logo-img { max-height: 22px; max-width: 60px; }
  .reviews-cards-grid { grid-template-columns: 1fr; }
  .sell-split-form { padding: 2rem 1.25rem; }
  .stats-bento { grid-template-columns: 1fr 1fr; }
  .showroom-grid { grid-template-columns: 1fr; gap: 1rem; }
  .showroom-meta { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .showroom-meta-results { font-size: 0.78rem; }
  .vehicle-card-img { height: 260px; }
  .vehicle-card-body { padding: 0.75rem 1rem; gap: 0.25rem; }
  .vehicle-card-body h3 { font-size: 14px; }
  .vehicle-derivative { font-size: 0.82rem; }
  .vehicle-card-footer { padding: 0.65rem 1rem; }
  .vehicle-price { font-size: 1.1rem; }
  .cockpit-hud { grid-template-columns: repeat(2, 1fr); padding: 0.75rem; gap: 0.6rem; }
  .perf-hud { overflow: visible; }
  .perf-readout-hide-mobile { display: none; }
  .gauge-circle { width: 54px; height: 54px; }
  .gauge-value { font-size: 0.72rem; max-width: 58px; }
  .gauge-label { font-size: 0.55rem; }
  .bento-gallery { grid-auto-rows: 80px; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-form-grid { grid-template-columns: 1fr; }
  .double-form-grid { padding: 1.25rem; }

  /* Vehicle card carousel on mobile */
  .featured-slider-wrap { overflow: hidden; }
  .featured-bento-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .featured-bento-grid .vehicle-card,
  .featured-bento-grid .vehicle-spotlight-card {
    flex: 0 0 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    grid-column: span 1;
  }
  .featured-bento-grid .vehicle-spotlight-card .vehicle-card-img { height: 200px; }
}

/* Slider dots (mobile only, shown via JS) */
.featured-slider-dots {
  display: none;
  justify-content: center;
  gap: 7px;
  margin-top: 1.25rem;
}
.featured-slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.featured-slider-dots .dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

@media (max-width: 480px) {
  .hero { height: 500px; }
  .services-img-grid { grid-template-columns: 1fr; }
  .showroom-grid { grid-template-columns: 1fr; }
  .cockpit-hud { grid-template-columns: repeat(2, 1fr); padding: 0.6rem; gap: 0.5rem; }
  .stats-bento { grid-template-columns: 1fr 1fr; }
  .featured-bento-grid { grid-template-columns: 1fr; }
}
