/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
  scroll-behavior: smooth;
}

:root {
  --primary: #E53935;
  --primary-dark: #C62828;
  --primary-light: #FFEBEE;
  --bg-dark: #121214;
  --bg-dark-card: #1E1E22;
  --bg-light: #F8FAFC;
  --bg-light-card: #FFFFFF;
  --text-dark-main: #F1F5F9;
  --text-dark-sec: #94A3B8;
  --text-light-main: #0F172A;
  --text-light-sec: #475569;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.08);
  --accent-blue: #2563EB;
  --accent-green: #10B981;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background-color: var(--bg-light);
  color: var(--text-light-main);
  line-height: 1.6;
}

h1, h2, h3, h4, .brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

/* Header Navbar Styling */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

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

.brand-name {
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.brand-tagline {
  font-size: 9px;
  color: var(--text-light-sec);
  font-weight: bold;
}

/* Location Selector */
.location-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--primary-light);
  border-radius: 30px;
  font-size: 12px;
  font-weight: bold;
  color: var(--primary-dark);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.location-picker:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.15);
}

.loc-icon {
  font-size: 16px;
}

/* Nav Search Bar */
.nav-search {
  flex: 1;
  max-width: 380px;
  position: relative;
}

.nav-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.03);
  font-size: 13px;
  outline: none;
  transition: var(--transition-smooth);
}

.nav-search input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light-sec);
  font-size: 18px;
}

/* Nav Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  color: var(--text-light-sec);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary);
}

.btn-sos-nav {
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.2);
  transition: var(--transition-smooth);
}

.btn-sos-nav:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Hero Section Split Layout (GoMechanic Style) */
.hero-section {
  padding: 60px 24px;
  background: linear-gradient(185deg, #FFF 0%, #F1F5F9 100%);
  overflow: hidden;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 44px;
  line-height: 1.15;
  color: var(--text-light-main);
  margin-bottom: 16px;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-light-sec);
  margin-bottom: 24px;
}

.hero-assurances {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-assurances li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light-sec);
}

.hero-assurances li ion-icon {
  color: var(--accent-green);
  font-size: 18px;
}

/* Estimator Widget Card */
.estimator-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.estimator-header h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-light-main);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.select-grp {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.select-grp label {
  font-size: 11px;
  font-weight: bold;
  color: var(--text-light-sec);
  text-transform: uppercase;
}

.select-grp select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--bg-light);
  font-size: 13px;
  outline: none;
  font-weight: bold;
  color: var(--text-light-main);
}

.btn-estimate {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
  transition: var(--transition-smooth);
}

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

/* Slider Box for Banners (Hero Right) */
.hero-right .slider-box {
  position: relative;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-right .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-right .slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-content {
  color: #fff;
  z-index: 10;
}

.slide-badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--primary);
  border-radius: 20px;
  font-size: 10px;
  font-weight: bold;
  margin-bottom: 12px;
}

.slide-content h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.slide-content p {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.slide-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ffffff;
  color: var(--primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.slide-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-light);
}

/* Sections General */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  color: var(--text-light-main);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-light-sec);
  font-size: 14px;
}

/* Popular Services Cards Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.service-img-box {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--bg-light);
}

.service-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card:hover .service-img-box img {
  transform: scale(1.08);
}

.service-info {
  padding: 20px;
}

.service-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-light-main);
}

.service-info p {
  font-size: 12px;
  color: var(--text-light-sec);
  margin-bottom: 16px;
  height: 38px;
  overflow: hidden;
}

.service-action {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Detailing Before/After Comparison Slider */
.slider-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.before-after-slider {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
}

.slider-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
}

.before-panel {
  width: 50%;
  border-right: 1px solid rgba(255,255,255,0.4);
  z-index: 10;
}

.split-labels {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 15;
  pointer-events: none;
}

.lbl-ba {
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
}

.lbl-ba.before {
  color: var(--primary-light);
  border-left: 2px solid var(--primary);
}

.lbl-ba.after {
  color: #10B981;
  border-left: 2px solid #10B981;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #ffffff;
  z-index: 20;
  transform: translateX(-50%);
  cursor: ew-resize;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.handle-line {
  flex: 1;
  width: 2px;
  background: rgba(255,255,255,0.5);
}

.handle-button {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Genuine Spares Explorer Section Styling */
.spares-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.spares-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tab-btn {
  padding: 10px 16px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light-sec);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.spares-search-box {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.spares-search-box input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  font-size: 12px;
  outline: none;
}

.spares-search-box ion-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light-sec);
  font-size: 16px;
}

.mini-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  background: var(--text-light-main);
  color: #fff;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mini-cart:hover {
  background: var(--primary-dark);
}

.cart-icon {
  font-size: 18px;
}

.cart-badge {
  background: var(--primary);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
}

.cart-label {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

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

.spare-item-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.spare-item-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.spare-img-box {
  height: 140px;
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spare-img-box img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.spare-cat {
  font-size: 9px;
  font-weight: bold;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.spare-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-light-main);
  margin-bottom: 8px;
  height: 40px;
  overflow: hidden;
}

.spare-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-light-main);
  margin-bottom: 12px;
}

.btn-add-cart {
  width: 100%;
  padding: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-light-sec);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-add-cart:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Live Booking status Tracker styling */
.tracker-card {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.tracker-search {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.tracker-search input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 13px;
  outline: none;
}

.btn-track {
  padding: 0 24px;
  background: var(--text-light-main);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-track:hover {
  background: var(--primary);
}

.tracker-display-box {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  animation: fadeIn 0.5s ease;
}

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

.tracker-display-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.badge-status {
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: bold;
}

/* Stepper vertical timeline progress styling */
.stepper-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 20px;
}

.step-item {
  position: relative;
  padding-left: 24px;
}

.step-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #E2E8F0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #CBD5E1;
  z-index: 2;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 18px;
  width: 2px;
  height: 100%;
  background: #E2E8F0;
  z-index: 1;
}

.step-item.active::before {
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.step-item.completed::before {
  background: var(--accent-green);
  box-shadow: 0 0 0 1px var(--accent-green);
}

.step-item.completed:not(:last-child)::after {
  background: var(--accent-green);
}

.step-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-light-main);
}

.step-time {
  font-size: 11px;
  color: var(--text-light-sec);
}

/* Emergency Roadside SOS strip styling */
.sos-section {
  background: #FFF5F5;
  border-top: 1px solid rgba(229,57,53,0.1);
  border-bottom: 1px solid rgba(229,57,53,0.1);
  padding: 40px 24px;
}

.sos-card {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sos-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sos-icon-pulse {
  font-size: 40px;
  color: var(--primary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); }
}

.sos-left h2 {
  font-size: 20px;
  color: var(--primary-dark);
}

.sos-left p {
  font-size: 12px;
  color: var(--text-light-sec);
}

.btn-sos-trigger {
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
  transition: var(--transition-smooth);
}

.btn-sos-trigger:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Footer Section styling */
.footer {
  background: #111113;
  color: #94A3B8;
  padding: 60px 24px;
  border-top: 2px solid var(--primary);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-col h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 12px;
  transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.copyright {
  margin-top: 24px;
  font-size: 10px;
}

/* Modal Dialog Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalSlideUp 0.3s ease;
}

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

.close-btn {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-light-sec);
}

.close-btn:hover {
  color: var(--primary);
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 8px;
}

.modal-item-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-item-checkbox:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.modal-item-checkbox input {
  width: 16px;
  height: 16px;
}

.modal-item-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
}

.modal-item-label {
  font-size: 13px;
  font-weight: bold;
}

.modal-item-rate {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.modal-total {
  font-size: 15px;
  font-weight: 800;
}

.modal-total span {
  color: var(--primary);
}

.btn-confirm-booking {
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-confirm-booking:hover {
  background: var(--primary-dark);
}

/* Cart Specific Styles */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg-light);
}

.cart-item-title {
  font-size: 12px;
  font-weight: bold;
}

.cart-item-qty {
  font-size: 11px;
  color: var(--text-light-sec);
}

.cart-item-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .nav-search, .location-picker {
    display: none;
  }
  .hero-title {
    font-size: 32px;
  }
  .estimator-grid {
    grid-template-columns: 1fr;
  }
}
