/* ==========================================
   Leonardo Auto — Main Stylesheet
   ========================================== */

/* === Variables === */
:root {
  --c-primary: #8b0000;
  --c-primary-light: #a31515;
  --c-accent: #cc0000;
  --c-accent-dark: #990000;
  --c-text: #1a1a1a;
  --c-text-muted: #64748b;
  --c-white: #ffffff;
  --c-bg: #f8fafc;
  --c-gray-100: #f1f5f9;
  --c-gray-200: #e2e8f0;
  --c-gray-300: #cbd5e1;
  --c-border: #e2e8f0;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --nav-h: 72px;
  --banner-h: 42px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.2s var(--ease);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* === Typography === */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { line-height: 1.7; }

/* === Container === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Section === */
.section { padding: 5rem 0; }
.section-alt { background: var(--c-gray-100); }
.section-dark { background: var(--c-primary); color: var(--c-white); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow {
  display: inline-block;
  color: var(--c-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--c-text-muted); max-width: 560px; margin: 0 auto; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--t);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--c-accent); color: var(--c-white); border-color: var(--c-accent); }
.btn-primary:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(204, 0, 0, 0.35);
}
.btn-outline { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--c-white); }
.btn-dark { background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); }
.btn-dark:hover { background: var(--c-primary-light); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--c-accent); border-color: var(--c-accent); }
.btn-ghost:hover { background: var(--c-accent); color: var(--c-white); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.83rem; }
.btn-full { width: 100%; justify-content: center; }

/* === Promo Banner === */
#promo-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1002;
  height: var(--banner-h);
  background: var(--c-accent);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 1.5rem;
  text-align: center;
}
#promo-banner.show { display: flex; }
#promo-banner i { font-size: 0.8rem; opacity: 0.85; flex-shrink: 0; }

body.banner-active #main-nav { top: var(--banner-h); }

/* === Navigation === */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
#main-nav.scrolled {
  background: rgba(0,0,0,0.3);
  box-shadow: var(--shadow);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.3rem;
  color: var(--c-white);
  transition: var(--t);
}
.nav-logo-primary { 
      font-family: 'Yellowtail', cursive;
    color: #FFF;
    font-size: 40px;
    display: block;
    margin-bottom: -15px;
    text-align: center;
    padding-right: 5px;
    transition-duration: 0s;
}

.nav-logo-secondary {
  color: #FFF;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    display: block;
    text-align: center;
    letter-spacing: 9px;
    text-transform: uppercase;
    transition-duration: 0s;
}
#main-nav.scrolled .nav-logo { color: var(--c-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: var(--t);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--c-white);
  background: rgba(255,255,255,0.12);
}
/* #main-nav.scrolled .nav-links a { color: var(--c-text-muted); } */
#main-nav.scrolled .nav-links a:hover,
#main-nav.scrolled .nav-links a.active {
  color: var(--c-text);
  background: var(--c-gray-100);
}
.nav-links .nav-cta {
  background: var(--c-accent) !important;
  color: var(--c-white) !important;
  padding: 0.5rem 1.25rem;
}
.nav-links .nav-cta:hover { background: var(--c-accent-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: var(--t);
}
#main-nav.scrolled .nav-toggle span { background: var(--c-primary); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Footer === */
#main-footer { background: var(--c-primary); color: rgba(255,255,255,0.65); }
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-brand .nav-logo { color: var(--c-white); margin-bottom: 1rem; display: inline-block; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; line-height: 1.7; }
.footer-links h4, .footer-contact h4 {
  color: var(--c-white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.9rem; transition: var(--t); }
.footer-links a:hover { color: var(--c-white); }
.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.footer-contact i { color: var(--c-accent); margin-top: 0.2rem; flex-shrink: 0; }
.footer-hours { margin-top: 0.75rem; }
.footer-hours p { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; }
.footer-hours span { color: var(--c-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Hero / Swiper === */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
}
.hero-swiper { height: 100%; }
.hero-slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.45) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Gradient placeholders — replace .hero-bg with <img> tags when real photos are available */
.hero-bg-gradient-1 { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0d2137 100%); }
.hero-bg-gradient-2 { background: linear-gradient(135deg, #1a0808 0%, #5c1a1a 60%, #1a0808 100%); }
.hero-bg-gradient-3 { background: linear-gradient(135deg, #0a1628 0%, #0d2a40 60%, #0a1628 100%); }

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--c-white);
}
.hero-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
}
.hero-title { color: var(--c-white); margin-bottom: 1.25rem; max-width: 680px; }
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.swiper-button-next,
.swiper-button-prev {
  color: var(--c-white) !important;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  width: 48px !important; height: 48px !important;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--t);
}
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 15px !important; }
.swiper-button-next:hover, .swiper-button-prev:hover { background: rgba(255,255,255,0.2); }
.swiper-pagination-bullet { background: rgba(255,255,255,0.5) !important; opacity: 1 !important; }
.swiper-pagination-bullet-active {
  background: var(--c-accent) !important;
  width: 24px !important;
  border-radius: 4px !important;
}

/* === Home: Service Cards === */
.home-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.service-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--t);
  display: block;
  color: inherit;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.service-card-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
}
.service-card-image.cars-bg { background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%); }
.service-card-image.service-bg { background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%); }
.service-card-image i { color: rgba(255,255,255,0.55); }
.service-card-body { padding: 1.75rem; }
.service-card-body h3 { margin-bottom: 0.5rem; }
.service-card-body p { color: var(--c-text-muted); font-size: 0.93rem; margin-bottom: 1.25rem; }
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--t);
}
.service-card:hover .service-card-link { gap: 0.75rem; }

/* === Home: Hours & Map === */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.hours-table { width: 100%; }
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.93rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { font-weight: 500; }
.hours-row .time { color: var(--c-text-muted); }
.hours-row.today .day,
.hours-row.today .time { color: var(--c-accent); font-weight: 600; }
.contact-details { margin-top: 2rem; }
.contact-details p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.93rem;
  color: var(--c-text-muted);
  margin-bottom: 0.6rem;
}
.contact-details i { color: var(--c-accent); width: 16px; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 400px; border: none; display: block; }

/* === Page Hero (non-home pages) === */
.page-hero {
  background: var(--c-primary);
  color: var(--c-white);
  padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem;
  text-align: center;
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* === Cars Grid === */
.cars-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.cars-count { color: var(--c-text-muted); font-size: 0.93rem; }
.sort-control { display: flex; align-items: center; gap: 0.75rem; }
.sort-control label { font-size: 0.88rem; font-weight: 500; white-space: nowrap; color: var(--c-text-muted); }
.sort-control select {
  padding: 0.5rem 2.25rem 0.5rem 0.875rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  background: var(--c-white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: var(--t);
}
.sort-control select:focus { outline: none; border-color: var(--c-accent); }

.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.car-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition: var(--t);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.car-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.car-card-image {
  aspect-ratio: 16/10;
  background: var(--c-gray-100);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.car-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.car-card:hover .car-card-image img { transform: scale(1.04); }
.car-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gray-300);
  font-size: 3rem;
}
.car-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.car-card-title { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.3rem; }
.car-card-price { font-size: 1.3rem; font-weight: 800; color: var(--c-accent); margin-bottom: 0.75rem; }
.car-card-specs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.car-spec {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--c-text-muted);
  background: var(--c-gray-100);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}
.car-spec i { font-size: 0.7rem; }
.car-card-body .btn { margin-top: auto; }

/* === Car Detail === */
.car-detail-wrap { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 5rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: var(--t);
}
.back-link:hover { color: var(--c-text); }
.car-detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.car-detail-grid > * { min-width: 0; }
.car-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--c-gray-100);
  height: clamp(260px, 45vw, 500px);
  width: 100%;
  min-width: 0;
}
.car-detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-detail-placeholder {
  width: 100%; height: 100%; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; color: var(--c-gray-300);
}
.car-detail-eyebrow {
  color: var(--c-text-muted);
  font-size: 0.83rem;
  margin-bottom: 0.5rem;
}
.car-detail-title { margin-bottom: 0.4rem; }
.car-detail-price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--c-accent);
  margin-bottom: 1.75rem;
}
.car-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
  padding: 1.5rem;
  background: var(--c-gray-100);
  border-radius: var(--radius);
}
.spec-item .spec-label {
  font-size: 0.72rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.spec-item .spec-value { font-size: 0.93rem; font-weight: 600; }
.car-detail-description { font-size: 0.93rem; color: var(--c-text-muted); margin-bottom: 1.5rem; line-height: 1.8; }
.car-features { margin-bottom: 1.75rem; }
.car-features h4 { margin-bottom: 0.75rem; }
.features-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.feature-tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  background: var(--c-gray-100);
  border-radius: var(--radius-full);
  color: var(--c-text-muted);
  font-weight: 500;
}
.car-detail-actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* === Services Page === */
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-item {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  transition: var(--t);
}
.service-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: transparent; }
.service-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: white;
}
.service-item h3 { margin-bottom: 0.75rem; }
.service-item p { color: var(--c-text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.7; }
.service-includes { text-align: left; margin-bottom: 1.75rem; }
.service-includes li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  padding: 0.3rem 0;
}
.service-includes li i { color: var(--c-accent); font-size: 0.75rem; }

/* === Appointment Page === */
.appt-wrap {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 5rem;
}
.appt-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}
.appt-form-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
}
.appt-form-card h2 { margin-bottom: 0.4rem; }
.appt-form-card > p { color: var(--c-text-muted); font-size: 0.93rem; margin-bottom: 2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-group label .req { color: var(--c-accent); }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: var(--t);
  background: var(--c-white);
  color: var(--c-text);
}
.form-control:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(230,57,70,0.1); }
.form-control::placeholder { color: var(--c-gray-300); }
select.form-control {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
textarea.form-control { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.form-success.show { display: block; }
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  color: #16a34a;
}
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--c-text-muted); font-size: 0.93rem; }

.appt-info { position: sticky; top: calc(var(--nav-h) + 2rem); }
.appt-info-card {
  background: var(--c-primary);
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.25rem;
}
.appt-info-card h3 { color: var(--c-white); margin-bottom: 1.25rem; font-size: 1.1rem; }
.appt-info-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
  margin-bottom: 0.875rem; font-size: 0.9rem;
}
.appt-info-item i { color: var(--c-accent); margin-top: 0.15rem; flex-shrink: 0; width: 16px; }

/* === Admin Page === */
.admin-page { min-height: 100vh; background: var(--c-gray-100); }
.admin-login {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: var(--c-primary);
}
.login-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%; max-width: 400px;
  box-shadow: var(--shadow-xl);
}
.login-brand { margin-bottom: 2rem; }
.login-brand .nav-logo { color: var(--c-primary); display: block; margin-bottom: 0.25rem; }
.login-brand p { color: var(--c-text-muted); font-size: 0.9rem; }
.login-error {
  background: #fef2f2;
  color: var(--c-accent);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: none;
}
.login-error.show { display: block; }

.admin-dashboard { display: none; }
.admin-header {
  background: var(--c-primary);
  color: white;
  padding: 0 1.5rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.admin-header .nav-logo { color: white; font-size: 1.1rem; }
.admin-body { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

.admin-panel {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  margin-bottom: 2rem;
}
.admin-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.875rem;
  border-bottom: 2px solid var(--c-gray-100);
}
.admin-panel-header h3 { font-size: 1.05rem; }

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.admin-form-grid .fg-full { grid-column: 1 / -1; }
.admin-form-grid .fg-two { grid-column: span 2; }

.cars-table-wrap { overflow-x: auto; }
.cars-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.cars-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--c-gray-100);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  white-space: nowrap;
}
.cars-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
.cars-table tr:last-child td { border-bottom: none; }
.cars-table tr:hover td { background: var(--c-gray-100); }
.td-name { font-weight: 600; }
.td-price { color: var(--c-accent); font-weight: 700; }
.td-actions { display: flex; gap: 0.5rem; }

.btn-icon {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  border: none;
}
.btn-edit { background: var(--c-primary); color: white; }
.btn-edit:hover { background: var(--c-primary-light); }
.btn-delete { background: #fef2f2; color: var(--c-accent); border: 1px solid #fecaca; }
.btn-delete:hover { background: var(--c-accent); color: white; border-color: transparent; }

/* === Drop Zone (admin upload) === */
.drop-zone {
  border: 2px dashed var(--c-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  color: var(--c-text-muted);
  transition: var(--t);
  user-select: none;
}
.drop-zone i { font-size: 1.75rem; margin-bottom: 0.5rem; display: block; color: var(--c-gray-300); }
.drop-zone p { font-size: 0.875rem; margin: 0; }
.drop-zone .drop-zone-hint { font-size: 0.75rem; margin-top: 0.25rem; opacity: 0.7; }
.drop-zone.drag-over {
  border-color: var(--c-accent);
  background: #fef2f2;
  color: var(--c-accent);
}
.drop-zone.drag-over i { color: var(--c-accent); }
.drop-zone.uploading { opacity: 0.55; pointer-events: none; }

/* === Image Gallery (admin multi-upload) === */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.gallery-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-badge {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.58rem;
  text-align: center;
  padding: 2px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gallery-remove {
  position: absolute;
  top: 3px; right: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--t);
  padding: 0;
}
.gallery-remove:hover { background: var(--c-accent); }

/* === Detail Page Image Swiper === */
.detail-swiper { width: 100%; height: 100%; border-radius: var(--radius-lg); overflow: hidden; }
.detail-swiper .swiper-wrapper,
.detail-swiper .swiper-slide { height: 100%; }
.detail-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-swiper .swiper-button-next,
.detail-swiper .swiper-button-prev {
  color: white;
  background: rgba(0,0,0,0.4);
  width: 36px; height: 36px;
  border-radius: 50%;
}
.detail-swiper .swiper-button-next::after,
.detail-swiper .swiper-button-prev::after { font-size: 0.85rem; font-weight: 900; }
.detail-swiper .swiper-pagination-bullet-active { background: var(--c-accent); }

/* === Modal === */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%; max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--c-border);
}
.modal-close {
  background: none; border: none;
  font-size: 1.2rem; cursor: pointer;
  color: var(--c-text-muted); padding: 0.25rem;
  transition: var(--t);
}
.modal-close:hover { color: var(--c-text); }

/* === Loading / Empty states === */
.loading { text-align: center; padding: 4rem 2rem; color: var(--c-text-muted); }
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state i { font-size: 3rem; color: var(--c-gray-300); margin-bottom: 1rem; display: block; }
.empty-state p { color: var(--c-text-muted); }

/* === Toast === */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  background: var(--c-primary);
  color: white;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s var(--ease);
  z-index: 9999;
  display: flex; align-items: center; gap: 0.5rem;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #16a34a; }
.toast.error { background: var(--c-accent); }

/* === Responsive === */
@media (max-width: 1024px) {
  .cars-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .admin-form-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-form-grid .fg-full { grid-column: 1 / -1; }
  .admin-form-grid .fg-two { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--c-primary);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.2rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.875rem 1rem; border-radius: var(--radius); font-size: 1rem; }
  .nav-toggle { display: flex; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }

  .home-services-grid { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .car-detail-grid { grid-template-columns: 1fr; }
  .appt-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .admin-form-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .cars-grid { grid-template-columns: 1fr; }
  .cars-controls { flex-direction: column; align-items: stretch; }
  .sort-control { justify-content: space-between; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .fg-two { grid-column: span 1; }
}
