/* ============================================
   BAM Auto — Design System & Styles
   Mobile-first, modern, accessible
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --clr-primary: #1a1a2e;
  --clr-primary-light: #16213e;
  --clr-accent: #e94560;
  --clr-accent-hover: #ff6b81;
  --clr-accent-glow: rgba(233, 69, 96, 0.3);
  --clr-secondary: #0f3460;
  --clr-success: #25d366;
  --clr-success-hover: #20bd5a;
  --clr-surface: #1a1a2e;
  --clr-surface-2: #16213e;
  --clr-surface-3: #1f2b47;
  --clr-text: #eaeaea;
  --clr-text-muted: #a0a0b0;
  --clr-text-heading: #ffffff;
  --clr-border: rgba(255, 255, 255, 0.08);
  --clr-overlay: rgba(0, 0, 0, 0.7);
  --clr-card-bg: rgba(22, 33, 62, 0.6);
  --clr-glass: rgba(255, 255, 255, 0.05);

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --grad-accent: linear-gradient(135deg, #e94560, #ff6b81);
  --grad-card: linear-gradient(145deg, rgba(22, 33, 62, 0.8), rgba(15, 52, 96, 0.4));
  --grad-whatsapp: linear-gradient(135deg, #25d366, #128c7e);

  /* Typography */
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.5rem;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Borders & Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--clr-accent-glow);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--clr-accent-hover); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  color: var(--clr-text-heading);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--clr-text-muted); }

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

/* ======================
   HEADER / NAVIGATION
   ====================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-text-heading);
  text-decoration: none;
}

.header__brand:hover {
  color: var(--clr-accent);
}

.header__logo {
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.header__link {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  padding: var(--sp-xs) var(--sp-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.header__link:hover {
  color: var(--clr-text-heading);
  background: var(--clr-glass);
}

.header__link--active {
  color: var(--clr-accent);
}

/* Language Toggle */
#lang-toggle,
.lang-toggle {
  background: var(--clr-glass);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

#lang-toggle:hover,
.lang-toggle:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
}

/* ======================
   BUTTONS
   ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-xl);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  line-height: 1;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: var(--shadow-sm), 0 0 0 0 var(--clr-accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  color: #fff;
}

.btn--secondary {
  background: var(--clr-surface-3);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}
.btn--secondary:hover {
  background: var(--clr-secondary);
  transform: translateY(-2px);
  color: var(--clr-text-heading);
}

.btn--outline {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}
.btn--outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: var(--grad-whatsapp);
  color: #fff;
}
.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
  color: #fff;
}

.btn--lg {
  padding: var(--sp-lg) var(--sp-2xl);
  font-size: var(--fs-lg);
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: var(--sp-sm) var(--sp-lg);
  font-size: var(--fs-sm);
}

.btn--block {
  width: 100%;
}

.btn--icon {
  padding: var(--sp-md);
  border-radius: var(--radius-full);
}

/* ======================
   INDEX / SPLASH PAGE
   ====================== */
.splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--grad-hero);
  text-align: center;
  padding: var(--sp-xl);
  position: relative;
  overflow: hidden;
}

.splash::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(233, 69, 96, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(15, 52, 96, 0.15) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

.splash__content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease;
}

.splash__welcome {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-sm);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.splash__brand {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-black);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-md);
  line-height: 1.1;
}

.splash__tagline {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-3xl);
  max-width: 400px;
}

.splash__label {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--sp-lg);
}

.splash__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  width: 100%;
  max-width: 320px;
}

@media (min-width: 480px) {
  .splash__buttons {
    flex-direction: row;
    max-width: none;
  }
  .splash__buttons .btn {
    min-width: 180px;
  }
}

/* ======================
   CHOOSE PAGE
   ====================== */
.choose {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl);
}

.choose__title {
  font-size: var(--fs-2xl);
  text-align: center;
  margin-bottom: var(--sp-2xl);
  animation: fadeInUp 0.5s ease;
}

.choose__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  width: 100%;
  max-width: 800px;
}

@media (min-width: 640px) {
  .choose__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.choose__card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl);
  text-align: center;
  text-decoration: none;
  color: var(--clr-text);
  transition: all var(--transition-base);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.choose__card:nth-child(2) {
  animation-delay: 0.15s;
}

.choose__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.choose__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-accent);
  color: var(--clr-text);
}

.choose__card:hover::before {
  transform: scaleX(1);
}

.choose__icon {
  font-size: 3rem;
  margin-bottom: var(--sp-lg);
  display: block;
}

.choose__card-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text-heading);
  margin-bottom: var(--sp-sm);
}

.choose__card-desc {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* ======================
   TOWING PAGE
   ====================== */

/* Hero */
.hero {
  background: var(--grad-hero);
  padding: var(--sp-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--clr-primary), transparent);
}

.hero__title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  margin-bottom: var(--sp-md);
  animation: fadeInUp 0.6s ease;
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

/* Sections */
.section {
  padding: var(--sp-3xl) 0;
}

.section__title {
  font-size: var(--fs-2xl);
  text-align: center;
  margin-bottom: var(--sp-2xl);
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--grad-accent);
  margin: var(--sp-md) auto 0;
  border-radius: var(--radius-full);
}

/* Coverage */
.coverage {
  background: var(--clr-surface-2);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl);
  text-align: center;
  margin-bottom: var(--sp-xl);
  border: 1px solid var(--clr-border);
}

.coverage__text {
  font-size: var(--fs-md);
  color: var(--clr-text);
  margin-bottom: var(--sp-md);
  line-height: 1.7;
}

.coverage__based {
  font-size: var(--fs-sm);
  color: var(--clr-accent);
  font-weight: var(--fw-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  transition: all var(--transition-base);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0.08s; }
.service-card:nth-child(3) { animation-delay: 0.16s; }
.service-card:nth-child(4) { animation-delay: 0.24s; }
.service-card:nth-child(5) { animation-delay: 0.32s; }
.service-card:nth-child(6) { animation-delay: 0.40s; }

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-accent);
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: var(--sp-md);
  display: block;
}

.service-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-heading);
  margin-bottom: var(--sp-sm);
}

.service-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.5;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  color: var(--clr-text);
  text-decoration: none;
  transition: all var(--transition-base);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
}

.contact-btn:hover {
  border-color: var(--clr-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--clr-text-heading);
}

.contact-btn--full {
  grid-column: 1 / -1;
}

.contact-btn svg {
  flex-shrink: 0;
}

.contact-btn__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-btn__icon--call { background: rgba(233, 69, 96, 0.15); color: var(--clr-accent); }
.contact-btn__icon--text { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.contact-btn__icon--wa { background: rgba(37, 211, 102, 0.15); color: var(--clr-success); }
.contact-btn__icon--email { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.contact-btn__icon--fb { background: rgba(66, 103, 178, 0.15); color: #4267b2; }
.contact-btn__icon--addr { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.contact-btn__text {
  display: flex;
  flex-direction: column;
}

.contact-btn__label {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-btn__value {
  font-weight: var(--fw-semibold);
  color: var(--clr-text-heading);
}

/* Request Form */
.request-form {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl);
  max-width: 600px;
  margin: 0 auto;
}

.request-form__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.form-group {
  margin-bottom: var(--sp-lg);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--sp-md);
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: var(--clr-text);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px var(--clr-accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

@media (min-width: 480px) {
  .form-actions {
    flex-direction: row;
  }
  .form-actions .btn {
    flex: 1;
  }
}

/* ======================
   CARS PAGE
   ====================== */
.cars-hero {
  text-align: center;
  padding: var(--sp-2xl) 0;
}

.cars-hero__title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  margin-bottom: var(--sp-sm);
  animation: fadeInUp 0.5s ease;
}

.cars-hero__subtitle {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  animation: fadeInUp 0.5s ease 0.1s forwards;
  opacity: 0;
}

/* Cars Grid */
#cars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-3xl);
}

@media (min-width: 640px) {
  #cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  #cars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.car-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-accent);
}

.car-card__image {
  position: relative;
  height: 220px;
  background: var(--clr-surface-3);
  overflow: hidden;
}

.car-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.car-card:hover .car-card__image img {
  transform: scale(1.05);
}

.car-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3rem;
  background: var(--clr-surface-3);
  color: var(--clr-text-muted);
}

.car-card__badge {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  background: var(--clr-success);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.car-card__body {
  padding: var(--sp-lg);
}

.car-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-text-heading);
  margin-bottom: var(--sp-sm);
}

.car-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.car-card__mileage {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
}

.car-card__price {
  font-weight: var(--fw-bold);
  color: var(--clr-accent);
  font-size: var(--fs-md);
}

.car-card__cta {
  width: 100%;
}

/* Empty State */
.cars-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-4xl) var(--sp-xl);
}

.cars-empty__icon {
  font-size: 4rem;
  margin-bottom: var(--sp-lg);
  opacity: 0.5;
}

.cars-empty__text {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-xl);
}

/* ======================
   MODAL
   ====================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal--active {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--clr-overlay);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.modal__close {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  font-size: var(--fs-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal__close:hover {
  background: var(--clr-accent);
}

/* Modal Gallery */
.modal__gallery {
  position: relative;
  background: var(--clr-surface-3);
}

.modal__slides {
  position: relative;
  height: 300px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .modal__slides {
    height: 380px;
  }
}

.modal__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modal__slide--active {
  opacity: 1;
}

.modal__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 5;
}

.modal__nav:hover {
  background: var(--clr-accent);
}

.modal__nav--prev { left: var(--sp-md); }
.modal__nav--next { right: var(--sp-md); }

.modal__counter {
  position: absolute;
  bottom: var(--sp-md);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: var(--fs-sm);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--radius-full);
}

/* Modal Details */
.modal__details {
  padding: var(--sp-xl);
}

.modal__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-lg);
}

.modal__info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.modal__info-item {
  background: var(--clr-surface-2);
  padding: var(--sp-md);
  border-radius: var(--radius-md);
}

.modal__info-item--full {
  grid-column: 1 / -1;
}

.modal__info-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--sp-xs);
}

.modal__info-value {
  font-weight: var(--fw-semibold);
  color: var(--clr-text-heading);
}

.modal__info-value--price {
  color: var(--clr-accent);
  font-size: var(--fs-lg);
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

@media (min-width: 480px) {
  .modal__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .modal__actions .btn {
    flex: 1;
    min-width: 140px;
  }
}

/* ======================
   FOOTER
   ====================== */
.footer {
  background: var(--clr-surface-2);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-xl) 0;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}

.footer__brand {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--clr-accent);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

/* ======================
   RESPONSIVE FINE-TUNING
   ====================== */
@media (min-width: 768px) {
  :root {
    --fs-4xl: 4.5rem;
    --fs-3xl: 3rem;
    --fs-2xl: 2.25rem;
  }

  .hero {
    padding: var(--sp-4xl) 0 calc(var(--sp-4xl) + 2rem);
  }
}

@media (max-width: 480px) {
  .header__link {
    display: none;
  }
  
  .header__link--back {
    display: inline-flex;
  }

  .modal__info-grid {
    grid-template-columns: 1fr;
  }
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--clr-accent);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--clr-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-surface-3);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-accent);
}
