:root {
  --primary-bg: #ffffff;
  --secondary-bg: #f4f6fa;
  --accent: #2a7fff;
  --text-main: #1a1a1a;
  --muted: #5c5f66;
  --glass: rgba(255, 255, 255, 0.8);
  --border-subtle: #dde1ea;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--secondary-bg);
  color: var(--text-main);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.logo-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  background: rgba(42, 127, 255, 0.08);
  color: var(--accent);
}
.main-nav a {
  margin-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.main-nav a:hover {
  color: var(--accent);
}
.site-main {
  padding-bottom: 4rem;
}
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--primary-bg);
}
.footer-inner {
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
/* Loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(244, 246, 250, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  background: var(--primary-bg);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.loader-logo {
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.loader-bar {
  position: relative;
  width: 220px;
  max-width: 60vw;
  height: 4px;
  border-radius: 999px;
  background: var(--secondary-bg);
  overflow: hidden;
  margin: 0 auto 0.75rem;
}
.loader-bar-fill {
  position: absolute;
  inset: 0;
  transform: translateX(-80%);
  background: linear-gradient(90deg, var(--accent), #5ba7ff);
  animation: loaderSlide 1.2s infinite;
}
.loader-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
@keyframes loaderSlide {
  0% {
    transform: translateX(-80%);
  }
  100% {
    transform: translateX(80%);
  }
}
/* Hero */
.hero {
  padding: 3.2rem 0 2.2rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 2.4rem;
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.hero-copy h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 0 0 0.7rem;
}
.hero-sub {
  margin: 0 0 1.5rem;
  max-width: 30rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-badges span {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--secondary-bg);
  color: var(--muted);
  border: 1px solid var(--border-subtle);
}
.hero-media {
  display: flex;
  justify-content: flex-end;
}
.hero-card {
  width: 100%;
  max-width: 360px;
  border-radius: 1.2rem;
  background: var(--primary-bg);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.2rem 1.2rem;
}
.hero-car-img {
  border-radius: 0.9rem;
  height: 190px;
  background-image: url("https://images.pexels.com/photos/210019/pexels-photo-210019.jpeg");
  background-size: cover;
  background-position: center;
  margin-bottom: 0.9rem;
}
.hero-stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}
.stat-label {
  margin: 0 0 0.1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.stat-value {
  margin: 0;
  font-weight: 600;
}
.hero-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
/* Sections */
.section {
  padding: 2.4rem 0;
}
.section-muted {
  background: var(--secondary-bg);
}
.section-header h2,
.section-header h1 {
  margin: 0 0 0.4rem;
}
.section-header p {
  margin: 0;
  color: var(--muted);
}
/* Card grid */
.card-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
/* Car card */
.car-card {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--primary-bg);
  box-shadow: var(--shadow-soft);
}
.car-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.car-card-img {
  height: 170px;
  background-size: cover;
  background-position: center;
}
.car-card-body {
  padding: 0.95rem 1rem 1.1rem;
}
.car-card-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.car-card-meta {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.car-card-price {
  margin: 0;
  font-weight: 600;
  color: var(--accent);
}
.car-card-location {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
/* Buttons */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s,
    border-color 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(42, 127, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(42, 127, 255, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-subtle);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.full-width {
  width: 100%;
}
/* Split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: flex-start;
}
.bullet-list {
  padding-left: 1.1rem;
  margin: 1rem 0 0;
  color: var(--muted);
}
.info-card {
  border-radius: 1rem;
  background: var(--primary-bg);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.2rem 1.25rem;
}
.inline-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.6rem;
}
.inline-filter label {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.inline-filter input {
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}
.inline-filter input:focus {
  outline: none;
  border-color: var(--accent);
}
.small-note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
}
/* Inventory page */
.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 2.05fr);
  gap: 1.8rem;
}
.filter-panel {
  border-radius: 1rem;
  background: var(--primary-bg);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.1rem 1.3rem;
}
.panel-title {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}
.panel-sub {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.filter-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.filter-form input,
.filter-form select {
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}
.filter-form input:focus,
.filter-form select:focus {
  outline: none;
  border-color: var(--accent);
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.inventory-results .results-header {
  margin-bottom: 0.8rem;
}
.inventory-results h2 {
  margin: 0 0 0.2rem;
}
.inventory-results p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
/* Detail */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
}
.detail-gallery img {
  border-radius: 1rem;
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
.detail-info h1 {
  margin: 0.2rem 0 0.4rem;
}
.detail-price {
  margin: 0 0 0.9rem;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--accent);
}
.spec-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
}
.spec-grid li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}
.spec-grid strong {
  color: var(--muted);
}
.detail-description {
  margin: 0.4rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
/* FAQ */
.faq-list {
  margin-top: 1.4rem;
}
.faq-item {
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: var(--primary-bg);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-main);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1rem;
}
.faq-answer p {
  font-size: 0.85rem;
  color: var(--muted);
}
.faq-item.open .faq-answer {
  padding-top: 0;
  padding-bottom: 0.9rem;
  max-height: 200px;
}
/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 1.9rem;
}
.contact-info h1 {
  margin-top: 0;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.contact-list li {
  margin-bottom: 0.4rem;
}
.contact-form-card {
  border-radius: 1rem;
  background: var(--primary-bg);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.25rem 1.35rem;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
/* FAB */
.fab-wrapper {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
}
.fab-button {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.fab-button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.45);
}
.fab-icon {
  font-size: 32px; 
}
.fab-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  top: 10px;
  left: 14px;
  opacity: 0.7;
  animation: pulseDot 1.4s infinite;
}
.fab-dot-2 {
  left: auto;
  right: 14px;
  animation-delay: 0.4s;
}
@keyframes pulseDot {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.fab-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 270px;
  border-radius: 0.9rem;
  background: var(--primary-bg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.fab-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fab-typing {
  min-height: 1.4rem;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.45rem;
}
.fab-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.fab-action-link {
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border-subtle);
  color: var(--muted);
}
.fab-action-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    justify-content: flex-start;
  }
  .inventory-layout {
    grid-template-columns: 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .main-nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
  .hero {
    padding-top: 2.4rem;
  }
}
