/* ==========================================================================
   Sprinter4Sale - Master Stylesheet
   Modern, responsive, authentic recreation with interactive tabs & galleries
   ========================================================================== */

:root {
  --primary: #1e6c93;
  --primary-dark: #154c69;
  --primary-light: #226e93;
  --accent: #00bcd4;
  --accent-hover: #49aad4;
  --dark: #212121;
  --dark-surface: #1a1a1a;
  --dark-card: #2a2a2a;
  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  --border-color: #e2e8f0;
  --border-dark: #3a3a3a;
  --text-main: #212121;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: #f2f2f2;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(33, 33, 33, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.brand-badge {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.3px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-tab-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-tab-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-tab-btn.active {
  color: #ffffff;
  background-color: var(--primary);
  box-shadow: 0 2px 8px rgba(30, 108, 147, 0.4);
}

.nav-tab-btn .badge-pill {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-contact {
  background-color: #059669;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.btn-contact:hover {
  background-color: #047857;
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   Tab View Management
   ========================================================================== */
.view-section {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TAB 1: REDESIGNED OVERVIEW SHOWCASE
   ========================================================================== */
.overview-wrapper {
  background-color: #ffffff;
  max-width: 1280px;
  margin: 0 auto;
  box-shadow: 0 0 25px rgba(0,0,0,0.08);
  min-height: 100vh;
}

/* Hero Section */
.overview-hero {
  position: relative;
  min-height: 540px;
  background-color: #0f172a;
  background-image: url('images/header-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 80px 24px 70px 24px;
}

.overview-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.85) 100%);
  z-index: 1;
}

.overview-hero-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
  margin: 0 auto;
}

.hero-badges-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-tag-badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.hero-tag-badge.primary-tag {
  background-color: var(--primary);
  border-color: var(--primary);
}

.hero-tag-badge.accent-tag {
  background-color: #059669;
  border-color: #059669;
}

.overview-hero-title {
  font-size: 3.6rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  line-height: 1.15;
  text-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

.overview-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: #cbd5e1;
  margin-bottom: 24px;
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-pricing-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  padding: 16px 28px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.hero-price-tag {
  font-size: 2.6rem;
  font-weight: 700;
  color: #34d399;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.price-condition {
  font-size: 1.2rem;
  color: #94a3b8;
  font-weight: 400;
}

.hero-price-subtext {
  font-size: 0.9rem;
  color: #e2e8f0;
  margin-top: 6px;
}

.hero-actions-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background-color: #059669;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.btn-hero-primary:hover {
  background-color: #047857;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.5);
}

.btn-hero-secondary {
  background-color: var(--primary);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(30, 108, 147, 0.4);
}

.btn-hero-secondary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Telemetry Strip */
.telemetry-strip-container {
  background: #0f172a;
  padding: 0 32px 32px 32px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  transform: translateY(-28px);
  z-index: 10;
  position: relative;
}

.telemetry-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.telemetry-card:hover {
  transform: translateY(-2px);
  border-color: #475569;
}

.telemetry-icon {
  font-size: 1.8rem;
  line-height: 1;
  padding-top: 2px;
}

.telemetry-body {
  display: flex;
  flex-direction: column;
}

.telemetry-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.telemetry-main {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 2px 0;
}

.telemetry-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* Section Wrapper & Titles */
.overview-section-wrap {
  padding: 60px 40px;
  border-bottom: 1px solid #f1f5f9;
}

.overview-section-wrap.gallery-anchor {
  background-color: #f8fafc;
}

.section-title-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px auto;
}

.section-subtitle-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(30, 108, 147, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 10px;
}

.section-main-title {
  font-size: 2.3rem;
  font-weight: 400;
  color: #0f172a;
  letter-spacing: 0.5px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 1.08rem;
  color: #64748b;
  line-height: 1.5;
}

/* Feature Pillars Grid */
.feature-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 28px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pillar-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.pillar-vendor-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pillar-intro {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.45;
}

.pillar-item-list {
  list-style: none;
  margin-bottom: 20px;
  flex-grow: 1;
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid #f1f5f9;
}

.pillar-item-list li {
  font-size: 0.9rem;
  color: #334155;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.pillar-item-list li:last-child {
  border-bottom: none;
}

.pillar-item-list li::before {
  content: "✔";
  color: var(--primary);
  font-weight: bold;
  font-size: 0.82rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.pillar-cta-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.pillar-cta-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Gallery Filter Chips */
.gallery-filter-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.gallery-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.gallery-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.gallery-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(30, 108, 147, 0.35);
}

/* Overview Masonry / Bento Gallery Grid */
.overview-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.gallery-photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1e293b;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-photo-card.featured-wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery-photo-card.featured-tall {
  grid-row: span 2;
  aspect-ratio: 3 / 4;
}

.gallery-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

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

.photo-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
  padding: 24px 18px 14px 18px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0.95;
  transition: opacity 0.25s ease;
}

.photo-cat-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.photo-title {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
}

.photo-zoom-btn {
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-top: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-photo-card:hover .photo-zoom-btn {
  opacity: 1;
}

/* Deep-Dive Navigation Cards */
.deep-dive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.deep-dive-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.deep-dive-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  background: #ffffff;
}

.deep-dive-badge {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 8px;
}

.deep-dive-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.deep-dive-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-deep-dive {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  align-self: flex-start;
}

.btn-deep-dive:hover {
  background-color: var(--primary-dark);
}

/* Call to Action Banner */
.overview-cta-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 50px 32px;
  border-radius: var(--radius-lg);
  margin: 40px 40px 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta-banner-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 10px;
}

.cta-banner-title {
  font-size: 2.2rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-banner-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto 24px auto;
  line-height: 1.5;
}

.cta-banner-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-call {
  background-color: #059669;
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.btn-cta-call:hover {
  background-color: #047857;
  transform: translateY(-2px);
}

.btn-cta-email {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-cta-email:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: #eee;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.image-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.image-card:hover img {
  transform: scale(1.02);
}

.image-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.image-card:hover .image-zoom-hint {
  opacity: 1;
}

/* ==========================================================================
   SHARED TAB HEADERS & CONTROLS
   ========================================================================== */
.tab-page-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 50px 24px 40px 24px;
  text-align: center;
  position: relative;
}

.tab-page-header h1 {
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.tab-page-header p {
  color: #94a3b8;
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto;
}

.content-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 60px 24px;
}

/* Filter & Search Bar */
.filter-toolbar {
  background-color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border-color);
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.search-input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 108, 147, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.chip-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.chip-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   CARDS & GRIDS (OEM & AFTERMARKET)
   ========================================================================== */
.spec-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.spec-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.spec-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background-color: rgba(30, 108, 147, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.card-code-badge {
  font-size: 0.8rem;
  font-family: monospace;
  font-weight: 700;
  color: #0f172a;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-vendor-badge {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-description {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-details-list {
  list-style: none;
  background-color: #f8fafc;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.card-details-list li {
  font-size: 0.88rem;
  color: #334155;
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.card-details-list li::before {
  content: "✔";
  color: var(--primary);
  font-size: 0.8rem;
  margin-top: 2px;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.card-status-badge {
  color: #059669;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-price-tag {
  font-weight: 700;
  color: #0f172a;
  font-size: 1.05rem;
}

/* ==========================================================================
   TAB 4: COST DATA & INVESTMENT BREAKDOWN
   ========================================================================== */
.cost-summary-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #ffffff;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
}

.cost-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.cost-hero-stat {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--radius-md);
}

.cost-hero-stat .stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.cost-hero-stat .stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.cost-hero-stat.highlight {
  background-color: rgba(5, 150, 105, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.cost-hero-stat.highlight .stat-value {
  color: #34d399;
}

.cost-hero-stat .stat-note {
  font-size: 0.82rem;
  color: #cbd5e1;
}

/* Visual Progress Bars for Cost Distribution */
.cost-breakdown-bar-wrap {
  margin-top: 24px;
}

.cost-stacked-bar {
  height: 18px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background-color: #334155;
  margin-bottom: 12px;
}

.bar-segment {
  height: 100%;
  transition: width 0.6s ease;
}

.bar-oem { background-color: #3b82f6; }
.bar-vannon { background-color: #10b981; }
.bar-agile { background-color: #f59e0b; }
.bar-miramar { background-color: #8b5cf6; }
.bar-owl { background-color: #ef4444; }

.cost-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Cost Breakdown Tables */
.cost-table-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  overflow: hidden;
}

.table-card-header {
  padding: 18px 24px;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-card-header h3 {
  font-size: 1.15rem;
  color: #0f172a;
}

.table-card-header .header-total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.custom-table th {
  background-color: #f1f5f9;
  color: #475569;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.custom-table tr:hover td {
  background-color: #f8fafc;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.font-mono {
  font-family: monospace;
}

.cost-hidden-notice {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}

/* Service Highlight Banner on Overview */
.service-highlight-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-highlight-banner:hover {
  border-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.service-highlight-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-shield-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.service-highlight-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.service-highlight-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.4;
}

.service-link-cta {
  background-color: rgba(5, 150, 105, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.service-highlight-banner:hover .service-link-cta {
  background-color: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* ==========================================================================
   SERVICE & MAINTENANCE TAB
   ========================================================================== */
.service-hero-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.service-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.service-meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.meta-val {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 600;
}

.text-success {
  color: #059669 !important;
}

/* Service Metric Cards */
.service-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.service-stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
  transition: var(--transition);
}

.service-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-stat-card:nth-child(1) { border-top-color: #059669; }
.service-stat-card:nth-child(2) { border-top-color: #1e6c93; }
.service-stat-card:nth-child(3) { border-top-color: #0284c7; }
.service-stat-card:nth-child(4) { border-top-color: #f59e0b; }

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.service-stat-card:nth-child(1) .stat-number { color: #059669; }

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-top: 4px;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Document & Category Badges */
.doc-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.cat-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.cat-pill.scheduled { background: #e0f2fe; color: #0369a1; }
.cat-pill.brakes { background: #fee2e2; color: #b91c1c; }
.cat-pill.transmission { background: #fef3c7; color: #b45309; }
.cat-pill.turbo { background: #f3e8ff; color: #7e22ce; }

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-pill.paid {
  background-color: #d1fae5;
  color: #065f46;
}

/* Service Detail Cards (Itemized Invoices) */
.service-cards-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-detail-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.service-detail-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.service-card-top {
  background: #f8fafc;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.service-card-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.invoice-badge-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.invoice-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.invoice-mileage-tag {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.service-card-total-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.service-paid-amount {
  font-size: 1.35rem;
  font-weight: 700;
  color: #059669;
}

.service-card-body {
  padding: 24px;
}

.service-financial-summary {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.financial-sub-item {
  color: #475569;
}

.financial-sub-item strong {
  color: #0f172a;
}

.service-scope-section {
  margin-top: 16px;
}

.service-scope-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.scope-subtotal-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(30, 108, 147, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.service-item-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 18px;
}

.service-item-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
}

.service-item-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.service-item-list li strong {
  color: #0f172a;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   IMAGE LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 12px;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  top: 20px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #1e1e1e;
  color: #94a3b8;
  padding: 48px 24px 30px 24px;
  border-top: 1px solid #333333;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #333333;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.footer-contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-contact-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-contact-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.config-toggle-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #2a2a2a;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: #e2e8f0;
}

.config-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.config-badge.active {
  background-color: #065f46;
  color: #6ee7b7;
}

.config-badge.inactive {
  background-color: #7f1d1d;
  color: #fca5a5;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 900px) {
  .replica-features-section {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .replica-grid-section,
  .replica-full-section {
    grid-template-columns: 1fr;
    padding: 16px 20px;
  }

  .replica-hero-title {
    font-size: 2.4rem;
  }

  .replica-hero-price {
    font-size: 1.8rem;
  }

  .nav-tabs {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background-color: #212121;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid #333333;
  }

  .nav-tabs.open {
    display: flex;
  }

  .nav-tab-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .spec-cards-grid {
    grid-template-columns: 1fr;
  }
}
