/* ==========================================================
   Lucky Moves - global stylesheet
   Palette: deep asphalt black, off-white, gold accent
   ========================================================== */
:root {
  --black: #0a0a0b;
  --panel: #121214;
  --panel-2: #1a1a1e;
  --line: #26262b;
  --white: #f6f6f4;
  --muted: #9a9aa2;
  --accent: #d9a520;
  --accent-dark: #b3861a;
  --danger: #e0503c;
  --success: #3fae6b;
  --info: #4a8fd4;
  --radius: 4px;
  --wrap: 1200px;
  --head: "Chakra Petch", system-ui, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--head);
  margin: 0 0 .6rem;
  line-height: 1.15;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; }

a { color: var(--white); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { margin-bottom: .4rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: #000; padding: .6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

.section { padding: 68px 0; }
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 0; max-width: 60ch; }
.eyebrow {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .28em;
  font-size: .72rem; color: var(--accent); margin-bottom: .5rem; display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: .84rem;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: transparent; color: var(--white);
  cursor: pointer; transition: .18s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #14100a; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #14100a; }
.btn-light { background: var(--white); border-color: var(--white); color: #111; }
.btn-light:hover { background: #dedede; border-color: #dedede; color: #111; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: .55rem 1rem; font-size: .74rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,11,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
.brand img { width: 62px; height: 46px; object-fit: cover; border-radius: 3px; }
.brand-text strong {
  display: block; font-family: var(--head); font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .12em;
}
.brand-text small { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .2em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.2rem; }
.site-nav ul { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--head); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--white); padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
  margin-left: auto; display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 96px 0 84px;
  background:
    radial-gradient(900px 420px at 80% 12%, rgba(217,165,32,.14), transparent 65%),
    linear-gradient(180deg, #101012 0%, var(--black) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 100%; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 1.1rem; color: #cfcfd4; max-width: 56ch; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.4rem; }
.hero-stats div strong {
  display: block; font-family: var(--head); font-size: 1.7rem; color: var(--accent);
}
.hero-stats div span { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }

/* ---------- Search bar ---------- */
.search-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-top: 2.6rem;
}
.search-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.search-grid .btn { height: 46px; }

/* ---------- Forms ---------- */
label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .35rem; font-family: var(--head); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password],
input[type=date], input[type=time], input[type=file], select, textarea {
  width: 100%; padding: .72rem .8rem; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--white); font-family: var(--body); font-size: .95rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 130px; resize: vertical; }
.field { margin-bottom: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; }
.checkbox label { text-transform: none; letter-spacing: 0; font-family: var(--body); color: var(--white); font-size: .92rem; }
.help { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 1.4rem; }
legend { font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--accent); padding: 0 .5rem; }

/* ---------- Cards / grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.vcard {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: .2s ease;
}
.vcard:hover { transform: translateY(-4px); border-color: var(--accent); }
.vcard-media { position: relative; aspect-ratio: 4/3; background: var(--panel-2); }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; }
.vcard-body { padding: 16px; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.vcard-title { font-family: var(--head); font-size: 1rem; text-transform: uppercase; }
.vcard-price { font-family: var(--head); font-size: 1.35rem; color: var(--accent); }
.vcard-specs { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .82rem; color: var(--muted); }
.vcard-foot { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); }

.badge {
  display: inline-block; font-family: var(--head); font-size: .64rem;
  text-transform: uppercase; letter-spacing: .14em;
  padding: .25rem .55rem; border-radius: 2px;
}
.badge-dealer { background: var(--accent); color: #14100a; }
.badge-private { background: #2c3a4d; color: #cfe0f5; }
.badge-sold { background: var(--danger); color: #fff; }
.badge-new { background: var(--info); color: #08121d; }
.badge-pending { background: #4a3d12; color: var(--accent); }
.badge-approved { background: #14361f; color: #7fe0a5; }
.badge-rejected { background: #3d1613; color: #f0a79c; }
.badge-info { background: #123240; color: #8fd6ef; }
.vcard-media .badge { position: absolute; top: 10px; left: 10px; }
.vcard-media .badge-sold { left: auto; right: 10px; }

/* ---------- Vehicle detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.gallery-main { aspect-ratio: 16/10; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs img { aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--accent); }

.side-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.price-big { font-family: var(--head); font-size: 2.1rem; color: var(--accent); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table th { color: var(--muted); font-weight: 500; width: 45%; font-family: var(--body); text-transform: none; letter-spacing: 0; }
.feature-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.feature-list li { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; color: #d7d7db; }

/* ---------- Steps / features ---------- */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative;
}
.step .num {
  font-family: var(--head); font-size: 2.2rem; color: var(--line);
  position: absolute; top: 10px; right: 16px;
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }

.cta-band {
  background: linear-gradient(120deg, #17130a, #0a0a0b 60%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 56px 0;
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--panel); }
table.data th, table.data td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
table.data th {
  background: var(--panel-2); font-family: var(--head); text-transform: uppercase;
  letter-spacing: .1em; font-size: .72rem; color: var(--muted);
}
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255,255,255,.02); }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1.2rem 0; border: 1px solid var(--line); font-size: .92rem; }
.alert-success { border-color: #1f5c39; background: #10261a; color: #9ce0b8; }
.alert-error { border-color: #6b2a22; background: #2a1310; color: #f0b0a6; }
.alert-info { border-color: #24455c; background: #101d26; color: #a8d8ef; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 300;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  width: 100%; max-width: 520px; padding: 26px; max-height: 90vh; overflow-y: auto;
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.modal-close { background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span {
  border: 1px solid var(--line); padding: .5rem .85rem; border-radius: var(--radius);
  font-family: var(--head); font-size: .8rem;
}
.pagination .current { background: var(--accent); border-color: var(--accent); color: #14100a; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #08080a; padding: 56px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer-logo { width: 110px; border-radius: 3px; margin-bottom: 1rem; }
.site-footer h4 { font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px;
  font-size: .8rem; color: var(--muted);
}

.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 120;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: #06331a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.whatsapp-float:hover { color: #06331a; transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .detail-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 64px 0 auto 0; background: #0d0d0f;
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: 16px 20px 24px; display: none; gap: .4rem; max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: .8rem 0; border: 0; }
  .nav-cta { margin-top: .8rem; }
  .grid-2, .grid-3, .grid-4, .search-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 48px 0; }
  .hero { padding: 64px 0 56px; }
}
