/* ==========================================================================
   Ah Biler — Design System & Global Styles
   Light / fresh Scandinavian theme. Mobile-first.
   ========================================================================== */

/* ---- Design Tokens ------------------------------------------------------- */
:root {
  /* Brand colors — fresh, light, trustworthy automotive blue */
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #2b7fff;   /* primary */
  --blue-600: #1d6ff0;
  --blue-700: #1857c4;

  /* Secondary accent — fresh teal, used sparingly */
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;

  /* Neutrals — airy light greys */
  --white:    #ffffff;
  --grey-50:  #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #475569;
  --grey-700: #334155;
  --grey-800: #1e293b;
  --grey-900: #0f172a;

  /* Semantic */
  --bg:            var(--grey-50);
  --surface:       var(--white);
  --surface-alt:   var(--grey-100);
  --text:          var(--grey-800);
  --text-muted:    var(--grey-500);
  --heading:       var(--grey-900);
  --primary:       var(--blue-500);
  --primary-hover: var(--blue-600);
  --border:        var(--grey-200);

  --success:  #16a34a;
  --success-bg: #dcfce7;
  --danger:   #dc2626;
  --danger-bg: #fee2e2;
  --warning:  #d97706;

  /* Typography */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", var(--font-body);

  /* Scale (modular) */
  --fs-xs:   0.8125rem;  /* 13 */
  --fs-sm:   0.9375rem;  /* 15 */
  --fs-base: 1rem;       /* 16 */
  --fs-lg:   1.125rem;   /* 18 */
  --fs-xl:   1.375rem;   /* 22 */
  --fs-2xl:  1.75rem;    /* 28 */
  --fs-3xl:  2.25rem;    /* 36 */
  --fs-4xl:  3rem;       /* 48 */

  /* Spacing (4/8 rhythm) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Shadows — soft, light */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);

  --container: 1180px;
  --header-h: 72px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.section { padding-block: var(--sp-8); }
.section-tight { padding-block: var(--sp-7); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--sp-7); }
.section-head h2 { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lg); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-3);
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-full);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  min-height: 46px;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--grey-800); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--blue-300); color: var(--primary); transform: translateY(-2px); }
.btn-ghost { color: var(--grey-700); padding-inline: var(--sp-3); }
.btn-ghost:hover { color: var(--primary); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #b91c1c; }
.btn-block { width: 100%; }
.btn-lg { padding: 0.95rem 2rem; font-size: var(--fs-base); min-height: 54px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---- Header / Nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg, .logo .logo-mark { height: 40px; width: auto; display: block; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--heading); letter-spacing: -0.03em; }
.logo-text span { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: var(--sp-2); }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--grey-600);
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-full);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--primary); background: var(--blue-50); }
.nav-links a.active { color: var(--primary); background: var(--blue-50); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--grey-700); }
.nav-phone svg { width: 17px; height: 17px; color: var(--primary); }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-sm); color: var(--grey-700); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--blue-100), transparent 60%),
    radial-gradient(800px 400px at 0% 10%, #e6fbf7, transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.80) 0%, rgba(255,255,255,0.55) 45%, rgba(255,255,255,0.66) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  padding: var(--sp-8) var(--sp-4) var(--sp-9);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-7);
  align-items: center;
  padding-block: var(--sp-8) var(--sp-9);
}
.hero h1 { font-size: var(--fs-4xl); margin-bottom: var(--sp-4); }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--blue-600), var(--teal-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { font-size: var(--fs-lg); color: var(--grey-900); max-width: 600px; margin: 0 auto var(--sp-6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
.hero-stats { display: flex; gap: var(--sp-6); margin-top: var(--sp-7); }
.hero-stats .stat strong { display: block; font-family: var(--font-head); font-size: var(--fs-2xl); color: var(--heading); }
.hero-stats .stat span { font-size: var(--fs-sm); color: var(--text-muted); }

.hero-points { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-6); padding: 0; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--heading); }
.hero-points li::before { content: ""; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background-color: var(--blue-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b7fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center; }

.hero-visual {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--blue-100), var(--teal-400));
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: var(--sp-4);
  left: var(--sp-4);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.hero-badge svg { width: 28px; height: 28px; color: var(--success); }
.hero-badge strong { display: block; font-family: var(--font-head); color: var(--heading); font-size: var(--fs-sm); }
.hero-badge span { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---- USP strip ----------------------------------------------------------- */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.usp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.usp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.usp-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--blue-50);
  color: var(--primary);
  margin-bottom: var(--sp-4);
}
.usp-icon svg { width: 26px; height: 26px; }
.usp-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.usp-card p { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---- Car cards / grid ---------------------------------------------------- */
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }

.car-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.car-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.car-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-alt); }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.car-card:hover .car-media img { transform: scale(1.05); }

.car-badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-full);
  text-transform: uppercase;
}
.badge-solgt { background: var(--danger); color: var(--white); box-shadow: var(--shadow-sm); }
.badge-featured { background: var(--white); color: var(--primary); border: 1px solid var(--blue-200); }
.badge-fuel { background: rgba(255,255,255,0.92); color: var(--grey-700); }

.car-media.is-sold::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.35);
}

.car-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.car-title { font-size: var(--fs-lg); }
.car-price { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-xl); color: var(--primary); }
.car-price small { font-weight: 500; font-size: var(--fs-sm); color: var(--text-muted); }
.car-specs { display: flex; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--text-muted); margin-top: auto; }
.car-specs .spec { display: inline-flex; align-items: center; gap: 5px; }
.car-specs svg { width: 15px; height: 15px; color: var(--grey-400); }
.car-foot { padding: 0 var(--sp-4) var(--sp-4); }

/* ---- Filters bar --------------------------------------------------------- */
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: flex-end;
  margin-bottom: var(--sp-6);
  box-shadow: var(--shadow-xs);
}
.filter-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 150px; }
.filter-field label { font-size: var(--fs-xs); font-weight: 600; color: var(--grey-600); text-transform: uppercase; letter-spacing: 0.04em; }
.input, .select, .textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 46px;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.filter-toggle { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 500; color: var(--grey-700); cursor: pointer; user-select: none; padding-bottom: 0.6rem; }
.filter-toggle input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.results-count { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-4); }

/* ---- Car detail page ----------------------------------------------------- */
.detail-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-7); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: var(--shadow-md);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: var(--r-full);
  background: rgba(255,255,255,0.92); color: var(--grey-800);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: background 0.15s, transform 0.15s;
}
.gallery-nav:hover { background: var(--white); }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-prev { left: var(--sp-3); }
.gallery-next { right: var(--sp-3); }
.gallery-counter {
  position: absolute; bottom: var(--sp-3); right: var(--sp-3);
  background: rgba(15,23,42,0.7); color: var(--white);
  font-size: var(--fs-xs); font-weight: 600;
  padding: 0.25rem 0.6rem; border-radius: var(--r-full);
}
.gallery-thumbs { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery-thumbs button {
  flex: 0 0 84px; height: 64px; border-radius: var(--r-sm); overflow: hidden;
  border: 2px solid transparent; transition: border-color 0.15s; background: var(--surface-alt);
}
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-info h1 { font-size: var(--fs-3xl); margin-bottom: var(--sp-2); }
.detail-price { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-3xl); color: var(--primary); margin-block: var(--sp-3) var(--sp-5); }
.detail-sold-banner {
  background: var(--danger-bg); color: var(--danger);
  border: 1px solid #fca5a5; border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); font-weight: 600;
  display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-5);
}
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.spec-table tr:nth-child(even) { background: var(--grey-50); }
.spec-table th, .spec-table td { text-align: left; padding: 0.8rem 1rem; font-size: var(--fs-sm); }
.spec-table th { color: var(--text-muted); font-weight: 500; width: 45%; }
.spec-table td { color: var(--heading); font-weight: 600; font-family: var(--font-head); }
.detail-desc { color: var(--grey-700); line-height: 1.75; margin-bottom: var(--sp-5); }
.detail-desc h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }

/* ---- About --------------------------------------------------------------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
.about-text p { color: var(--grey-700); margin-bottom: var(--sp-4); }
.about-img { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/4; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-7); }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); text-align: center; }
.info-card .usp-icon { margin-inline: auto; }
.info-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.info-card p { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---- Contact ------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--sp-7); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: var(--sp-4); }
.contact-item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.contact-item .usp-icon { flex: 0 0 auto; width: 46px; height: 46px; margin: 0; }
.contact-item h3 { font-size: var(--fs-base); margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: var(--fs-sm); color: var(--text-muted); }
.contact-item a:hover { color: var(--primary); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.45rem 0; font-size: var(--fs-sm); border-bottom: 1px solid var(--border); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--heading); }
.hours-closed { color: var(--danger) !important; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: var(--sp-4); }
.form-group label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--grey-700); margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-note { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--sp-3); }
.map-embed { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-top: var(--sp-6); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  background: linear-gradient(120deg, var(--blue-600), var(--teal-500));
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
.cta-band p { color: rgba(255,255,255,0.9); font-size: var(--fs-lg); max-width: 540px; margin: 0 auto var(--sp-5); }
.cta-band .btn-primary { background: var(--white); color: var(--primary); }
.cta-band .btn-primary:hover { background: var(--grey-100); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--grey-900); color: var(--grey-300); margin-top: auto; padding-block: var(--sp-7) var(--sp-5); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--sp-6); margin-bottom: var(--sp-6); }
.site-footer .logo-text { color: var(--white); }
.footer-about p { font-size: var(--fs-sm); color: var(--grey-400); margin-top: var(--sp-3); max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-3); }
.footer-col a, .footer-col p { display: block; font-size: var(--fs-sm); color: var(--grey-400); margin-bottom: var(--sp-2); transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--grey-700); padding-top: var(--sp-4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--grey-500); }

/* ---- Admin --------------------------------------------------------------- */
.admin-shell { max-width: 1000px; margin-inline: auto; }
.login-card { max-width: 400px; margin: var(--sp-9) auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-7); box-shadow: var(--shadow-md); text-align: center; }
.login-card .usp-icon { margin: 0 auto var(--sp-4); }
.login-card h1 { font-size: var(--fs-2xl); margin-bottom: var(--sp-2); }
.login-card p { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }

.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.admin-bar h1 { font-size: var(--fs-2xl); }
.admin-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.admin-note { background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: var(--r-md); padding: var(--sp-4); margin-bottom: var(--sp-5); font-size: var(--fs-sm); color: var(--grey-700); }
.admin-note strong { color: var(--heading); display:block; margin-bottom: 4px; font-family: var(--font-head); }
.admin-note ol { margin: var(--sp-2) 0 0 1.2rem; }
.admin-note li { margin-bottom: 4px; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.admin-table th, .admin-table td { padding: 0.8rem 1rem; text-align: left; font-size: var(--fs-sm); border-bottom: 1px solid var(--border); }
.admin-table th { background: var(--grey-50); font-family: var(--font-head); color: var(--grey-600); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .thumb { width: 64px; height: 44px; object-fit: cover; border-radius: var(--r-sm); }
.admin-row-actions { display: flex; gap: 6px; }
.icon-btn { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--grey-600); border: 1px solid var(--border); background: var(--white); transition: all 0.15s; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }
.icon-btn svg { width: 17px; height: 17px; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); font-weight: 600; padding: 0.2rem 0.6rem; border-radius: var(--r-full); }
.pill-sold { background: var(--danger-bg); color: var(--danger); }
.pill-sale { background: var(--success-bg); color: var(--success); }
.pill-feat { background: var(--blue-50); color: var(--primary); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.5); backdrop-filter: blur(3px); z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: var(--sp-5); overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--r-lg); width: 100%; max-width: 620px; box-shadow: var(--shadow-lg); margin-block: var(--sp-5); animation: modalIn 0.25s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-5) var(--sp-5) 0; }
.modal-head h2 { font-size: var(--fs-xl); }
.modal-body { padding: var(--sp-5); }
.modal-foot { padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: var(--sp-2); }

.img-input-row { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.img-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--sp-2); margin-top: var(--sp-3); }
.img-preview { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: var(--r-full); background: rgba(15,23,42,0.7); color: white; display: grid; place-items: center; font-size: 14px; line-height: 1; }

/* Toast */
.toast { position: fixed; bottom: var(--sp-5); left: 50%; transform: translateX(-50%) translateY(120%); background: var(--grey-900); color: white; padding: 0.9rem 1.4rem; border-radius: var(--r-full); font-size: var(--fs-sm); font-weight: 500; box-shadow: var(--shadow-lg); z-index: 300; transition: transform 0.3s var(--ease); display: flex; align-items: center; gap: var(--sp-2); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--teal-400); }

/* ---- Empty / misc -------------------------------------------------------- */
.empty-state { text-align: center; padding: var(--sp-9) var(--sp-4); color: var(--text-muted); }
.empty-state svg { width: 56px; height: 56px; color: var(--grey-300); margin-bottom: var(--sp-3); }
.empty-state h3 { color: var(--grey-600); margin-bottom: var(--sp-2); }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-5); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 14px; height: 14px; }

.page-head { padding-block: var(--sp-7) var(--sp-5); background: linear-gradient(180deg, var(--blue-50), transparent); }
.page-head h1 { font-size: var(--fs-3xl); margin-bottom: var(--sp-2); }
.page-head p { color: var(--text-muted); font-size: var(--fs-lg); max-width: 600px; }

/* ---- Reveal animation ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: var(--sp-7); }
  .hero-visual { order: -1; aspect-ratio: 16/10; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .about-hero, .contact-layout { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --fs-4xl: 2.25rem; --fs-3xl: 1.85rem; --fs-2xl: 1.5rem; }
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); padding: var(--sp-4); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 0.8rem 1rem; }
  .usp-grid { grid-template-columns: 1fr; }
  .car-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--sp-5); }
  .hero { min-height: 70vh; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-7); }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { margin-bottom: var(--sp-3); border: 1px solid var(--border); border-radius: var(--r-md); }
  .admin-table td { border: none; display: flex; justify-content: space-between; gap: var(--sp-3); }
  .admin-table td::before { content: attr(data-label); font-weight: 600; color: var(--text-muted); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
