:root {
  --bg: #0b0b0b;
  --bg-alt: #141414;
  --surface: #1b1b1b;
  --text: #ffffff;
  --muted: #a8a8a8;
  --accent: #e10600;
  --accent-hover: #ff1a0d;
  --border: #262626;
  --radius: 10px;
  --max-width: 1200px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,11,11,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: var(--max-width); margin: 0 auto;
}
.logo img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-weight: 500; font-size: 14px; letter-spacing: 0.5px;
  text-transform: uppercase; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-links a.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 9px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; line-height: 1;
  box-shadow: 0 4px 14px rgba(225,6,0,0.35);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(225,6,0,0.5);
}

.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.45);
}
.hero-slider { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.45);
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; background: rgba(0,0,0,0.4); color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 28px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
.slider-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.4); cursor: pointer;
  padding: 0; transition: all var(--transition);
}
.slider-dots button.active { background: var(--accent); width: 28px; border-radius: 999px; }
@media (max-width: 540px) {
  .slider-arrow { width: 38px; height: 38px; font-size: 22px; }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,11,11,0.3) 0%, rgba(11,11,11,0.9) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 40px 20px; max-width: 900px; }
.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: 1px;
}
.hero-content h1 .accent { color: var(--accent); }
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted); max-width: 640px; margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform var(--transition), background var(--transition);
  border: none; text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--bg); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-title {
  text-align: center; margin-bottom: 50px;
}
.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.section-title h2 .accent { color: var(--accent); }
.section-title p { color: var(--muted); max-width: 600px; margin: 0 auto; }

.bar {
  display: inline-block; width: 60px; height: 3px;
  background: var(--accent); margin-bottom: 18px;
}

/* ---------- Features ---------- */
.features {
  background: var(--bg-alt);
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--surface); padding: 32px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); transition: transform var(--transition), border-color var(--transition);
}
.feature:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: rgba(225,6,0,0.15); color: var(--accent); border-radius: 10px;
  margin-bottom: 18px; font-size: 22px;
}
.feature h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Showroom grid ---------- */
.showroom-filters {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 40px;
}
.filter-btn {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: 14px;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

.car-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.car-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}
.car-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.car-card .car-img {
  aspect-ratio: 4/3; overflow: hidden; background: #000;
}
.car-card .car-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}
.car-card:hover .car-img img { transform: scale(1.05); }
.car-body { padding: 18px 20px 22px; }
.car-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.car-body .car-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 12px; }
.car-price { color: var(--accent); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.car-body .btn { width: 100%; text-align: center; padding: 10px; font-size: 13px; }

/* ---------- About page ---------- */
.about-hero {
  background: var(--bg-alt); padding: 60px 0;
}
.about-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.about-grid img { border-radius: var(--radius); border: 1px solid var(--border); }
.about-grid h2 { font-size: 2.2rem; margin-bottom: 18px; text-transform: uppercase; }
.about-grid p { color: var(--muted); margin-bottom: 16px; }
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px;
}
.stat { text-align: center; padding: 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-alt); }
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.testimonial {
  background: var(--surface); padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stars { color: #ffb400; margin-bottom: 12px; }
.testimonial p { color: var(--muted); font-style: italic; margin-bottom: 16px; }
.testimonial .author { font-weight: 600; color: var(--text); font-style: normal; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
}
.contact-info h3 { font-size: 1.8rem; margin-bottom: 20px; text-transform: uppercase; }
.contact-info p { color: var(--muted); margin-bottom: 20px; }
.contact-item {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px;
}
.contact-item .icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(225,6,0,0.15); color: var(--accent);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.contact-item strong { display: block; margin-bottom: 2px; }
.contact-item a, .contact-item span { color: var(--muted); }
.contact-item a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface); padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; margin-bottom: 8px; font-weight: 500; font-size: 14px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: inherit; font-size: 14px;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.map-wrap {
  margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Finance calculator ---------- */
.finance-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.finance-form {
  background: var(--surface); padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.finance-result {
  background: linear-gradient(135deg, #1b1b1b 0%, #262626 100%);
  padding: 40px 32px; border-radius: var(--radius);
  border: 1px solid var(--border); text-align: center;
  position: sticky; top: 100px;
}
.finance-result .label { color: var(--muted); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.finance-result .amount {
  font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800;
  color: var(--accent); margin: 14px 0 6px;
}
.finance-result .per { color: var(--muted); font-size: 0.95rem; margin-bottom: 30px; }
.finance-breakdown {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--border); text-align: left;
}
.finance-breakdown div small { display: block; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; margin-bottom: 4px; }
.finance-breakdown div strong { font-size: 1.1rem; }
.finance-note { margin-top: 22px; font-size: 0.8rem; color: var(--muted); }

input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-runnable-track {
  height: 6px; background: var(--border); border-radius: 999px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); margin-top: -6px; cursor: pointer;
}
.range-row {
  display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px;
}
.range-row .value { color: var(--accent); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, #8a0300 100%);
  padding: 60px 20px; text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 14px; text-transform: uppercase; }
.cta-band p { margin-bottom: 24px; opacity: 0.9; }
.cta-band .btn {
  background: #000; color: #fff;
}
.cta-band .btn:hover { background: #fff; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: #070707; border-top: 1px solid var(--border);
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-col h4 {
  text-transform: uppercase; font-size: 0.95rem; letter-spacing: 1px; margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col p, .footer-col a { color: var(--muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col img { height: 50px; margin-bottom: 16px; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  text-align: center; color: var(--muted); font-size: 0.85rem;
}

/* ---------- Page header (non-home) ---------- */
.page-header {
  position: relative; padding: 120px 0 90px;
  text-align: center; border-bottom: 1px solid var(--border);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0.55) 0%, rgba(11,11,11,0.9) 100%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 10px;
}
.page-header p { color: var(--muted); max-width: 600px; margin: 0 auto; }
.page-header .breadcrumb {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 0.82rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 16px;
}
.page-header .breadcrumb a { color: var(--muted); }
.page-header .breadcrumb a:hover { color: var(--accent); }
.page-header .breadcrumb .sep { color: var(--accent); }

/* ---------- Floating social rail ---------- */
.social-rail {
  position: fixed; left: 18px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 10px;
}
.social-rail a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(20,20,20,0.85); border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.social-rail a:hover {
  background: var(--accent); border-color: var(--accent);
  color: #fff; transform: translateX(3px);
}
.social-rail::after {
  content: ''; width: 1px; height: 40px;
  background: var(--border); margin: 6px auto 0;
}

/* ---------- WhatsApp widget ---------- */
.wa-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 95;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.wa-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; line-height: 1;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-btn:hover { transform: scale(1.06); box-shadow: 0 10px 28px rgba(37,211,102,0.6); }
.wa-btn svg { width: 32px; height: 32px; fill: #fff; }

@keyframes wa-pulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}

.wa-panel {
  width: 320px; max-width: calc(100vw - 48px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: translateY(10px) scale(0.96); opacity: 0; pointer-events: none;
  transition: all 0.25s ease;
}
.wa-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.wa-header {
  background: #075E54; color: #fff; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.wa-header .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.wa-header .avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-header .name { font-weight: 600; font-size: 0.95rem; }
.wa-header .status { font-size: 0.75rem; opacity: 0.8; display: flex; align-items: center; gap: 6px; }
.wa-header .status::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; display: inline-block;
}
.wa-header .close {
  margin-left: auto; background: transparent; border: none;
  color: #fff; font-size: 22px; cursor: pointer; padding: 4px 8px;
  opacity: 0.7;
}
.wa-header .close:hover { opacity: 1; }
.wa-body {
  padding: 20px 18px; background:
    linear-gradient(rgba(20,20,20,0.9), rgba(20,20,20,0.9)),
    repeating-linear-gradient(45deg, #1e1e1e 0 10px, #1a1a1a 10px 20px);
}
.wa-bubble {
  background: #262d31; color: #fff; padding: 12px 14px;
  border-radius: 0 10px 10px 10px; font-size: 0.9rem; line-height: 1.4;
  max-width: 90%; margin-bottom: 6px;
}
.wa-bubble .time { display: block; font-size: 0.7rem; color: #8a8a8a; margin-top: 4px; text-align: right; }
.wa-input {
  padding: 12px 14px; background: var(--bg-alt); display: flex; gap: 8px;
}
.wa-input input {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); padding: 10px 14px; border-radius: 999px;
  font-size: 0.9rem; font-family: inherit;
}
.wa-input input:focus { outline: none; border-color: #25D366; }
.wa-input button {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: #25D366; color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.wa-input button:hover { background: #1faa52; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .social-rail { display: none; }
}
@media (max-width: 860px) {
  .nav { padding: 12px 16px; }
  .logo img { height: 36px; }
  .nav-links {
    position: absolute; top: 64px; right: 12px; background: var(--bg-alt);
    flex-direction: column; width: 220px; padding: 18px;
    border: 1px solid var(--border); border-radius: var(--radius);
    display: none; gap: 14px;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .nav-links a.nav-cta { text-align: center; }
  .about-grid, .contact-grid, .finance-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .finance-result { position: static; }
  section { padding: 60px 0; }
  .page-header { padding: 80px 0 60px; }
  .hero { min-height: 78vh; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  section { padding: 50px 0; }
  .section-title { margin-bottom: 36px; }
  .hero { min-height: 70vh; }
  .hero-content { padding: 30px 16px; }
  .hero-actions .btn { padding: 12px 22px; font-size: 14px; }
  .page-header { padding: 60px 0 48px; }
  .feature, .testimonial, .contact-form, .finance-form, .finance-result { padding: 24px 20px; }
  .car-grid { grid-template-columns: 1fr; gap: 18px; }
  .features-grid, .testimonial-grid { grid-template-columns: 1fr; gap: 16px; }
  .showroom-filters { gap: 8px; }
  .filter-btn { padding: 7px 14px; font-size: 13px; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
  .slider-dots { bottom: 18px; }
  .cta-band { padding: 48px 16px; }
  .map-wrap iframe { height: 280px; }
  .finance-breakdown { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-stats { grid-template-columns: 1fr; gap: 12px; }
  .wa-widget { bottom: 16px; right: 16px; }
  .wa-btn { width: 54px; height: 54px; }
  .wa-btn svg { width: 28px; height: 28px; }
  .wa-panel { width: calc(100vw - 32px); }
  .hero-content h1 { font-size: 2rem; letter-spacing: 0.5px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 380px) {
  .logo img { height: 30px; }
  .hero-content h1 { font-size: 1.75rem; }
  .feature-icon { width: 40px; height: 40px; font-size: 18px; }
}
