/* Denfri Motors — shared styles */
:root {
  --primary: #e11d48;
  --primary-dark: #be123c;
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1e1e1e;
  --border: rgba(225, 29, 72, 0.2);
  --text: #f1f5f9;
  --muted: #94a3b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

/* Nav */
.glass-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 4.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-mark {
  width: 2.75rem; height: 2.75rem;
  background: var(--primary);
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.logo-mark img { width: 2rem; height: 2rem; object-fit: contain; }
.logo-text { font-weight: 800; letter-spacing: -0.02em; font-size: 1.1rem; }
.logo-text span { color: var(--primary); }
.nav-links { display: none; gap: 2rem; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-links a:hover { color: var(--primary); }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 0.75rem;
  font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: all 0.2s;
}
.btn-primary {
  background: var(--primary); color: white; border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary {
  background: transparent; color: white; border-color: rgba(255,255,255,0.3);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-whatsapp { background: #16a34a; color: white; border-color: #16a34a; }
.btn-whatsapp:hover { background: #15803d; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 72, 0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

/* Stock badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-in-stock { background: rgba(22,163,74,0.2); color: #4ade80; border: 1px solid rgba(22,163,74,0.4); }
.badge-reserved { background: rgba(217,119,6,0.2); color: #fbbf24; border: 1px solid rgba(217,119,6,0.4); }
.badge-sold { background: rgba(100,116,139,0.2); color: #94a3b8; border: 1px solid rgba(100,116,139,0.4); }

/* Vehicle card */
.vehicle-card-image {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  background: var(--surface-2);
}
.vehicle-card-body { padding: 1.25rem; }
.vehicle-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.vehicle-card-meta { color: var(--muted); font-size: 0.875rem; margin-bottom: 0.75rem; }
.vehicle-card-price { color: var(--primary); font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; }
.vehicle-card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Sections */
.page-hero {
  padding: 7rem 0 3rem;
  background: linear-gradient(180deg, #111 0%, var(--bg) 100%);
}
.section { padding: 4rem 0; }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-title span { color: var(--primary); }
.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-help { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }
.form-input, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  color: var(--text);
  font: inherit;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225,29,72,0.15);
}

/* Calculator results */
.result-grid {
  display: grid;
  gap: 0.75rem;
}
.result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-radius: 0.5rem;
  font-size: 0.95rem;
}
.result-row.total {
  background: rgba(225,29,72,0.15);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 1.1rem;
}
.result-row .label { color: var(--muted); }
.result-row .value { font-weight: 700; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #050505;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-heading { font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a:hover { color: var(--primary); }
.social-row { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-btn {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(225,29,72,0.15);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  transition: all 0.2s;
}
.social-btn:hover { background: var(--primary); color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Filters */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Detail page */
.detail-grid {
  display: grid;
  gap: 2rem;
  padding-top: 6rem;
  padding-bottom: 3rem;
}
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 2fr 1fr; } }
.gallery-main {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface-2);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; }
.gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  background: none;
}
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 5rem; height: 3.5rem; object-fit: cover; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .spec-grid { grid-template-columns: repeat(4, 1fr); } }
.spec-box {
  background: var(--surface-2);
  padding: 1rem;
  border-radius: 0.5rem;
}
.spec-box .label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.spec-box .value { font-weight: 700; margin-top: 0.25rem; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.feature-tag {
  background: rgba(225,29,72,0.12);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  position: sticky;
  top: 6rem;
}

/* Messages */
.messages { max-width: 80rem; margin: 5rem auto 0; padding: 0 1.5rem; }
.message {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.message.success { background: rgba(22,163,74,0.15); border: 1px solid rgba(22,163,74,0.3); color: #86efac; }
.message.error { background: rgba(225,29,72,0.15); border: 1px solid var(--border); color: #fda4af; }

.page-card {
  max-width: 42rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}
.page-card-wide { max-width: 52rem; }
.form-row-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.tab-btn {
  flex: 1;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.tab-btn.active { background: var(--primary); border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.guide-steps { display: grid; gap: 1.25rem; }
.guide-step {
  display: grid;
  gap: 1rem;
  grid-template-columns: 3rem 1fr;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}
.guide-step-num {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: rgba(225,29,72,0.15);
  border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--primary);
}
.guide-step h3 { font-weight: 700; margin-bottom: 0.35rem; }
.guide-step p { color: var(--muted); font-size: 0.9rem; }
.guide-step ul { margin-top: 0.5rem; padding-left: 1.1rem; color: var(--muted); font-size: 0.85rem; }
.success-icon-lg {
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  background: rgba(22,163,74,0.15);
  border: 2px solid #16a34a;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  color: #4ade80; font-size: 2rem;
}
.info-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }
.info-box {
  background: var(--surface-2);
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--primary);
}
.info-box .label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; }
.info-box .value { font-weight: 700; margin-top: 0.25rem; }
.contact-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.contact-option {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
}
.contact-option:has(input:checked) { border-color: var(--primary); background: rgba(225,29,72,0.1); }
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
