:root {
  --primary: #9c7a3c;
  --primary-dark: #7d6130;
  --secondary: #14171c;
  --bg: #f8f6f1;
  --card: #ffffff;
  --text: #1c1c1c;
  --muted: #767066;
  --line: #e6e1d6;
  --radius: 4px;
  --shadow: 0 16px 40px rgba(20, 20, 20, 0.06);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  letter-spacing: .01em;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { margin: 0 0 .4em; font-family: var(--serif); font-weight: 600; letter-spacing: .01em; }
h2 { font-size: 36px; }
ul { margin: 0; padding: 0; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: var(--primary); }
.btn-secondary { background: transparent; color: var(--secondary); border: 1px solid var(--secondary); }
.btn-lg { padding: 17px 38px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-danger { background: #b3433a; color: #fff; }
.btn-outline { background: transparent; border: 1px solid #ccc; color: var(--text); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,246,241,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-family: var(--serif); font-weight: 600; color: var(--secondary); }
.brand img { width: 36px; height: 36px; }
.brand small { font-weight: 400; font-size: 12px; color: var(--muted); display: block; font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; gap: 30px; }
.nav a { font-weight: 500; color: var(--text); font-size: 14px; letter-spacing: .03em; }
.nav a:hover { color: var(--primary); }
.nav-admin { color: var(--secondary) !important; font-weight: 600; }
.nav-cta { white-space: nowrap; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; border: none; background: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--secondary); transition: transform .25s, opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 140px 0 110px;
}
.hero-inner { max-width: 720px; }
.hero h1 { font-size: 52px; line-height: 1.15; font-weight: 600; }
.hero p { font-size: 18px; opacity: .9; margin-bottom: 34px; font-family: var(--sans); }
.hero-stats { display: flex; gap: 50px; margin-top: 46px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 28px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 22px; font-family: var(--serif); }
.hero-stats span { opacity: .75; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }

/* Trust badges */
.trust { padding: 80px 0 10px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 30px; }
.trust-card { text-align: center; padding: 10px 20px; }
.trust-icon { font-size: 22px; color: var(--primary); margin-bottom: 14px; }
.trust-card h3 { font-size: 20px; }
.trust-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* About */
.about { padding: 90px 0; text-align: center; }
.about-inner { max-width: 700px; margin: 0 auto; }
.about h2 { font-size: 38px; }
.about p { color: var(--muted); font-size: 17px; line-height: 1.8; margin-bottom: 20px; }
.about-founder { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }

/* Stats */
.stats { background: var(--secondary); color: #fff; padding: 80px 0; text-align: center; }
.stats h2 { color: #fff; margin-bottom: 50px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 30px; }
.stat-block strong { display: block; font-family: var(--serif); font-size: 40px; color: var(--primary); }
.stat-block span { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }

/* Testimonials */
.testimonials { padding: 90px 0; text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 26px; margin-top: 40px; text-align: left; }
.testimonial-card { background: var(--card); border: 1px solid var(--line); padding: 30px; }
.testimonial-card p { font-family: var(--serif); font-size: 18px; line-height: 1.6; margin: 0 0 16px; }
.testimonial-card span { font-size: 13px; letter-spacing: .04em; color: var(--primary); text-transform: uppercase; }

/* FAQ */
.faq { padding: 0 0 90px; max-width: 800px; }
.faq h2 { text-align: center; margin-bottom: 40px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.faq-item p { color: var(--muted); margin: 14px 0 0; font-size: 15px; line-height: 1.6; }

/* Final CTA */
.final-cta { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 90px 0; text-align: center; }
.final-cta h2 { font-size: 38px; }
.final-cta p { color: var(--muted); margin-bottom: 30px; }

/* Categories */
.categories { padding: 90px 0 30px; text-align: center; }
.section-sub { color: var(--muted); margin-bottom: 30px; }
.tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 24px; border-radius: 2px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted);
  letter-spacing: .05em; text-transform: uppercase; transition: all .2s;
}
.tab-btn.active, .tab-btn:hover { border-color: var(--primary); color: var(--primary); background: #fbf8f1; }

.vehicle-carousel { position: relative; display: flex; align-items: center; gap: 10px; }
.vehicle-grid {
  display: flex;
  gap: 26px;
  text-align: left;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  flex: 1;
  scrollbar-width: none;
}
.vehicle-grid::-webkit-scrollbar { display: none; }
.vc-arrow {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--secondary); font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s; z-index: 2;
}
.vc-arrow:hover { border-color: var(--primary); color: var(--primary); }
.vehicle-card {
  background: var(--card); border: 1px solid var(--line); overflow: hidden;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
  flex: 0 0 300px; scroll-snap-align: start;
}
.vehicle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vehicle-card img { width: 100%; height: 180px; object-fit: cover; background: #eee9dc; }
.vehicle-card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.vehicle-card h3 { font-size: 19px; }
.badges { display: flex; gap: 8px; margin: 8px 0 12px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 2px; background: #f1ede2; color: var(--secondary); letter-spacing: .04em; text-transform: uppercase; }
.badge.ac { background: #e9f0e6; color: #3d5c34; }
.badge.nonac { background: #f3e6e3; color: #8a4a3c; }
.vehicle-card .price { margin-top: 14px; font-weight: 700; color: var(--primary); font-size: 16px; font-family: var(--serif); }
.vehicle-card .price small { color: var(--muted); font-weight: 400; font-size: 12px; font-family: var(--sans); }
.vehicle-card-actions { display: flex; gap: 10px; margin-top: 14px; }
.vehicle-card-actions .btn { flex: 1; padding: 10px 14px; font-size: 12px; text-align: center; }
.empty-state { color: var(--muted); padding: 40px; flex: 1; }

/* How it works */
.how-it-works { padding: 90px 0; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; margin-top: 30px; }
.step { background: #fff; border: 1px solid var(--line); padding: 32px 22px; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--primary); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 16px; font-family: var(--serif);
}
.step p { color: var(--muted); font-size: 14px; }

/* Contact */
.contact { padding: 50px 0 100px; text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; margin-top: 30px; }
.contact-card { background: #fff; border: 1px solid var(--line); padding: 28px; font-size: 22px; }
.contact-card strong { display: block; margin: 8px 0 4px; font-size: 13px; color: var(--primary); letter-spacing: .06em; text-transform: uppercase; }
.contact-card span { font-size: 14px; color: var(--muted); font-family: var(--sans); }

/* Footer */
.site-footer { background: var(--secondary); color: #cfc7b6; padding: 30px 0; text-align: center; font-size: 13px; letter-spacing: .03em; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,23,28,.7);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 200;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: #fff; max-width: 760px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative; padding: 36px;
}
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.carousel { position: relative; overflow: hidden; margin-bottom: 18px; background: #eee9dc; }
.carousel-track { display: flex; transition: transform .35s ease; }
.carousel-track img { width: 100%; height: 320px; object-fit: cover; flex-shrink: 0; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(20,23,28,.55); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.carousel-arrow:hover { background: rgba(20,23,28,.8); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; transition: background .2s; }
.carousel-dot.active { background: #fff; }
.modal h2 { color: var(--secondary); }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.feature-list li { list-style: none; background: #f1ede2; padding: 5px 12px; font-size: 12px; letter-spacing: .03em; }

.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.booking-form .full { grid-column: 1 / -1; }
.booking-form label { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 5px; }
.booking-form input, .booking-form textarea {
  width: 100%; padding: 10px 12px; border-radius: 2px; border: 1px solid var(--line); font-size: 14px;
}
.booking-form textarea { resize: vertical; min-height: 60px; }

.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--secondary); color: #fff;
  padding: 14px 22px; border-radius: 2px; box-shadow: var(--shadow); z-index: 300;
  transition: opacity .3s, transform .3s;
}
.toast.error { background: #8a3a30; }
.toast.hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* ===================== Responsive ===================== */

/* Large desktop / wide monitors */
@media (min-width: 1400px) {
  .container { max-width: 1280px; }
}

/* Laptop / small desktop */
@media (max-width: 1199px) {
  .container { max-width: 960px; }
  .hero h1 { font-size: 44px; }
}

/* Tablet */
@media (max-width: 991px) {
  .container { max-width: 700px; }
  .hero { padding: 110px 0 90px; }
  .hero h1 { font-size: 38px; }
  .hero-stats { gap: 30px; flex-wrap: wrap; }
  h2 { font-size: 30px; }
  .vehicle-card { flex: 0 0 260px; }
  .modal { padding: 28px; max-width: 90vw; }
  .booking-form { grid-template-columns: 1fr; }
}

/* Mobile (portrait & landscape phones, small tablets) */
@media (max-width: 700px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 14px 16px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: center; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 320px; }
  .nav a { width: 100%; padding: 14px 20px; text-align: center; border-top: 1px solid var(--line); }
  .nav-toggle { display: flex; order: 3; }
  .nav-cta { display: none; }

  .hero { padding: 90px 0 60px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .hero-stats { gap: 22px; }

  h2 { font-size: 26px; }
  .trust, .about, .stats, .testimonials, .how-it-works { padding: 56px 0; }
  .categories { padding: 56px 0 20px; }
  .final-cta { padding: 56px 0; }

  .vc-arrow { display: none; }
  .vehicle-card { flex: 0 0 82%; }

  .carousel-track img { height: 220px; }
  .modal { padding: 22px; }
  .modal-gallery, .carousel-track img { height: 200px; }
  .booking-form { grid-template-columns: 1fr; }
  .contact-card { font-size: 18px; padding: 22px; }
}

/* Small phones */
@media (max-width: 420px) {
  .hero h1 { font-size: 26px; }
  .brand { font-size: 18px; }
  .vehicle-card { flex: 0 0 88%; }
  .vehicle-card-actions { flex-direction: column; }
  .modal { padding: 18px; }
}

/* Short / landscape phones (limited vertical height) */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 60px 0 40px; }
  .modal { max-height: 96vh; }
  .carousel-track img { height: 180px; }
}

/* Touch devices: skip hover-lift effects that can stick on tap */
@media (hover: none) {
  .vehicle-card:hover, .btn:hover { transform: none; }
}
