/* ============================================
   AUTONOR — Premium Automotive Agency
   styles.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@500;600;700;800&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
  --black:      #080808;
  --dark:       #111111;
  --dark-2:     #1a1a1a;
  --dark-3:     #242424;
  --border:     rgba(255,255,255,0.08);
  --border-2:   rgba(255,255,255,0.15);
  --white:      #f8f6f2;
  --white-dim:  rgba(248,246,242,0.7);
  --white-mute: rgba(248,246,242,0.4);
  --red:        #c8102e;
  --red-dark:   #9e0d24;
  --red-light:  #e8203e;
  --red-glow:   rgba(200,16,46,0.15);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Barlow', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --transition:   0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 60px rgba(200,16,46,0.2);
  --radius:     4px;
  --radius-lg:  8px;
  --nav-h:      80px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ============ SELECTION ============ */
::selection { background: var(--red); color: var(--white); }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

.text-red   { color: var(--red); }
.text-muted { color: var(--white-mute); }
.text-dim   { color: var(--white-dim); }

.label {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

/* ============ LAYOUT HELPERS ============ */
.container {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ============ DIVIDER ============ */
.divider {
  width: 60px; height: 3px;
  background: var(--red);
  margin: 1rem 0;
}
.divider-center { margin: 1rem auto; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-cond);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.btn:hover::before { transform: scaleX(1); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,16,46,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--border-2);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white-dim);
  border: 1px solid var(--border);
  padding: 0.7rem 1.6rem;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.btn-wa {
  background: #25D366;
  color: #fff;
  border: 2px solid #25D366;
  font-size: 0.95rem;
}
.btn-wa:hover {
  background: #1da851;
  border-color: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.35);
}

.btn-lg { padding: 1.1rem 2.8rem; font-size: 1rem; }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.78rem; }

/* ============ NAVIGATION ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(8,8,8,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white-dim);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--red); }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1618843479313-40f8afb4b4d8?w=1920&q=85') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.3) 100%
  );
}
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--black), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--red);
  border-radius: 100px;
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.02;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero h1 em {
  font-style: italic;
  color: var(--red);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--white-dim);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeInUp 0.8s 0.4s ease both;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.6s ease both;
}

.hero-stats {
  position: absolute;
  right: 0; bottom: clamp(3rem, 6vw, 5rem);
  z-index: 2;
  display: flex; flex-direction: column; gap: 1px;
  animation: fadeInRight 0.8s 0.8s ease both;
}

.hero-stat {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-left: 3px solid var(--red);
  padding: 1rem 1.8rem;
  min-width: 180px;
}

.hero-stat .num {
  font-family: var(--font-cond);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}

.hero-stat .num span { color: var(--red); }

.hero-stat .desc {
  font-size: 0.78rem;
  color: var(--white-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: var(--font-cond);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--white-mute);
  text-transform: uppercase;
  animation: fadeIn 1s 1.2s ease both;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollAnim 1.5s ease infinite;
}

@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ SECTION HEADERS ============ */
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header.center { text-align: center; }
.section-header.center .divider { margin: 1rem auto; }

.section-header .label { margin-bottom: 0.75rem; display: block; }

/* ============ FEATURES STRIP ============ */
.features-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dark);
}

.features-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature-item {
  padding: 2.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: var(--dark-2); }

.feature-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  background: var(--red-glow);
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.feature-item h4 {
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.feature-item p {
  font-size: 0.83rem;
  color: var(--white-mute);
  line-height: 1.5;
}

/* ============ FEATURED VEHICLES ============ */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
}

.vehicle-card {
  background: var(--dark);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.vehicle-card:hover { z-index: 2; }

.vehicle-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.vehicle-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.vehicle-card:hover .vehicle-card-img img { transform: scale(1.06); }

.vehicle-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge-new { background: var(--red); color: #fff; }
.badge-used { background: rgba(255,255,255,0.15); color: var(--white); backdrop-filter: blur(8px); }

.vehicle-card-body {
  padding: 1.5rem;
}

.vehicle-make {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.3rem;
}

.vehicle-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.vehicle-specs {
  display: flex; gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.vehicle-spec {
  font-size: 0.78rem;
  color: var(--white-mute);
  display: flex; align-items: center; gap: 0.35rem;
}
.vehicle-spec::before {
  content: '•';
  color: var(--red);
  font-size: 0.6rem;
}
.vehicle-spec:first-child::before { display: none; }

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

.vehicle-price {
  font-family: var(--font-cond);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}
.vehicle-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white-mute);
  display: block;
  margin-bottom: 0.1rem;
}

/* ============ TESTIMONIALS ============ */
.testimonials { background: var(--dark); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--dark);
  padding: 2.5rem;
  transition: background var(--transition);
}
.testimonial-card:hover { background: var(--dark-2); }

.stars {
  color: var(--red);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--white-dim);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex; align-items: center; gap: 1rem;
}

.author-avatar {
  width: 44px; height: 44px;
  background: var(--dark-3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
  border: 1px solid var(--border-2);
}

.author-name {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.author-detail {
  font-size: 0.78rem;
  color: var(--white-mute);
  margin-top: 0.1rem;
}

/* ============ BRANDS STRIP ============ */
.brands-strip {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.brands-track {
  display: flex;
  gap: 4rem;
  animation: brandScroll 30s linear infinite;
  width: max-content;
}

.brands-track:hover { animation-play-state: paused; }

@keyframes brandScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.brand-logo {
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-mute);
  white-space: nowrap;
  transition: color var(--transition);
}
.brand-logo:hover { color: var(--white); }

/* ============ CTA BANNER ============ */
.cta-banner {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1600&q=80') center/cover;
}
.cta-banner-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.7) 100%);
}

.cta-banner .container { position: relative; z-index: 1; }

.cta-banner h2 { max-width: 600px; margin-bottom: 1rem; }
.cta-banner p  { color: var(--white-dim); max-width: 500px; margin-bottom: 2.5rem; }
.cta-banner .flex { gap: 1rem; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.footer-top {
  padding: 4rem 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
}

.footer-brand .nav-logo { margin-bottom: 1.2rem; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--white-mute);
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex; gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--white-dim);
  transition: var(--transition);
}
.social-btn:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--white-mute);
  transition: color var(--transition);
  display: flex; align-items: center; gap: 0.4rem;
}
.footer-links a:hover { color: var(--red); }
.footer-links a::before { content: '→'; font-size: 0.7rem; opacity: 0; transition: opacity var(--transition); }
.footer-links a:hover::before { opacity: 1; }

.footer-contact-item {
  display: flex; gap: 0.8rem;
  margin-bottom: 1rem;
}
.footer-contact-item .ico {
  width: 34px; height: 34px; min-width: 34px;
  background: var(--red-glow);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.footer-contact-item .info strong {
  display: block;
  font-size: 0.82rem;
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.footer-contact-item .info span {
  font-size: 0.85rem;
  color: var(--white-dim);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--white-mute);
}

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 998;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: waPop 0.6s 2s ease both;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}
.wa-float .wa-tooltip {
  position: absolute;
  right: calc(100% + 0.8rem);
  top: 50%; transform: translateY(-50%);
  background: var(--dark);
  border: 1px solid var(--border-2);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.wa-float:hover .wa-tooltip { opacity: 1; }

@keyframes waPop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============ CATALOG PAGE ============ */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 3rem;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-top: 0.5rem;
}

.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-cond);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--white-mute);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--white-mute); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--white-dim); }
.breadcrumb-sep { color: var(--border-2); }

.catalog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

/* FILTERS SIDEBAR */
.filters-sidebar {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.filters-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.filters-header h4 {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.filter-group {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.filter-group label {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-mute);
  margin-bottom: 0.75rem;
}

.filter-select {
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.88rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  cursor: pointer;
  transition: border-color var(--transition);
}
.filter-select:focus { outline: none; border-color: var(--red); }

.price-range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.price-input {
  padding: 0.65rem 0.75rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.85rem;
  width: 100%;
  transition: border-color var(--transition);
}
.price-input:focus { outline: none; border-color: var(--red); }

.filter-radio-group { display: flex; gap: 0.5rem; }
.filter-radio {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-mute);
  cursor: pointer;
  transition: var(--transition);
}
.filter-radio:hover { border-color: var(--border-2); color: var(--white); }
.filter-radio.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* CATALOG GRID */
.catalog-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.results-count {
  font-size: 0.88rem;
  color: var(--white-mute);
}
.results-count strong { color: var(--white); }

.view-toggle { display: flex; gap: 0.35rem; }
.view-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--white-mute);
  cursor: pointer;
  transition: var(--transition);
}
.view-btn.active, .view-btn:hover { border-color: var(--red); color: var(--red); }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.catalog-grid.list-view .vehicle-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}
.catalog-grid.list-view .vehicle-card-img { aspect-ratio: unset; }

/* ============ VEHICLE DETAIL ============ */
.vehicle-hero-layout {
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 0;
  min-height: calc(100vh - var(--nav-h));
}

.vehicle-gallery {
  position: relative;
  background: var(--dark-2);
  overflow: hidden;
}

.gallery-main {
  position: relative;
  height: 70vh;
  overflow: hidden;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  background: var(--border);
}
.gallery-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.vehicle-info-panel {
  background: var(--dark);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.vehicle-info-panel .vehicle-make { font-size: 0.8rem; margin-bottom: 0.4rem; }

.vehicle-info-panel h1 {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.vehicle-year-km {
  display: flex; gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1rem 0;
}
.vehicle-year-km .item {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white-mute);
}
.vehicle-year-km .item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0;
  margin-bottom: 0.15rem;
}

.vehicle-big-price {
  font-family: var(--font-cond);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.vehicle-financing {
  font-size: 0.82rem;
  color: var(--white-mute);
  margin-bottom: 1.5rem;
}

.vehicle-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }

.specs-accordion .specs-group { border-top: 1px solid var(--border); }
.specs-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
  cursor: pointer;
  font-family: var(--font-cond);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color var(--transition);
}
.specs-group-header:hover { color: var(--white); }
.specs-group-header .chevron { transition: transform var(--transition); }
.specs-group.open .chevron { transform: rotate(180deg); }

.specs-list { display: none; padding-bottom: 1rem; }
.specs-group.open .specs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.spec-row {
  padding: 0.6rem 0.8rem;
  background: var(--dark-2);
  border-radius: var(--radius);
}
.spec-row .sk {
  font-size: 0.72rem;
  color: var(--white-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.spec-row .sv {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============ CONTACT FORM ============ */
.contact-form-group { margin-bottom: 1.2rem; }
.contact-form-group label {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-mute);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.92rem;
  transition: border-color var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--red);
  background: var(--dark-3);
}
.form-input::placeholder { color: var(--white-mute); }

textarea.form-input { resize: vertical; min-height: 120px; }

/* ============ ABOUT PAGE ============ */
.timeline { position: relative; padding: 2rem 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%; top: 1.2rem;
  width: 12px; height: 12px;
  background: var(--red);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--red-glow);
}

.timeline-content {
  padding: 1.5rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}
.timeline-content:hover { border-color: rgba(200,16,46,0.3); }

.timeline-item:nth-child(even) .timeline-content:first-child { grid-column: 2; }
.timeline-item:nth-child(even) .timeline-content:last-child { grid-column: 1; grid-row: 1; }

.timeline-year {
  font-family: var(--font-cond);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.timeline-content p {
  font-size: 0.88rem;
  color: var(--white-mute);
}

/* ============ MAP ============ */
.map-container {
  height: 400px;
  background: var(--dark-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.map-container iframe {
  width: 100%; height: 100%;
  border: none;
  filter: grayscale(1) invert(0.9) contrast(0.8);
}

/* ============ PAGINATION ============ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}

.page-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-cond);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white-mute);
  cursor: pointer;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active { border-color: var(--red); color: var(--red); }
.page-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ============ ANIMATIONS ============ */
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============ DARK MODE TOGGLE ============ */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--white-dim);
  transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--red); color: var(--red); }

/* ============ LIGHT MODE ============ */
body.light-mode {
  --black:      #f0ede8;
  --dark:       #f8f6f2;
  --dark-2:     #ede9e3;
  --dark-3:     #e2ddd6;
  --border:     rgba(0,0,0,0.08);
  --border-2:   rgba(0,0,0,0.15);
  --white:      #1a1a1a;
  --white-dim:  rgba(26,26,26,0.7);
  --white-mute: rgba(26,26,26,0.45);
  --red-glow:   rgba(200,16,46,0.08);
}

/* ============ TAGS / CHIPS ============ */
.tag {
  display: inline-flex; align-items: center;
  padding: 0.3rem 0.8rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--white-dim);
}
.tag.tag-red { background: var(--red-glow); border-color: rgba(200,16,46,0.3); color: var(--red); }

/* ============ NOTIFICATION ============ */
.toast {
  position: fixed;
  bottom: 6rem; right: 2rem;
  background: var(--dark);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--red);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  max-width: 300px;
  z-index: 9999;
  transform: translateX(150%);
  transition: transform 0.4s ease;
  box-shadow: var(--shadow-card);
}
.toast.show { transform: translateX(0); }
.toast strong { display: block; margin-bottom: 0.2rem; }

/* ============ NO RESULTS ============ */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--white-mute);
}
.no-results .ico { font-size: 3rem; margin-bottom: 1rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .features-strip .container { grid-template-columns: repeat(2, 1fr); }
  .feature-item { border-bottom: 1px solid var(--border); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(3) { border-bottom: none; }
  .feature-item:last-child { border-bottom: none; }
  .vehicles-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .catalog-layout { grid-template-columns: 260px 1fr; }
  .vehicle-hero-layout { grid-template-columns: 1fr; }
  .vehicle-info-panel { border-left: none; border-top: 1px solid var(--border); }
  .timeline::before { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .timeline-item::before { left: 0; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .vehicles-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; display: none; }
  .filters-sidebar.open { display: block; }
  .hero-stats { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .catalog-grid.list-view .vehicle-card { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .vehicle-hero-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --nav-h: 70px; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .features-strip .container { grid-template-columns: 1fr; }
  .feature-item { border-right: none; }
}
