/* =========================================================
   DXBDZD theme (themex.css)
   ======================================================= */

/* ---- Design tokens ---- */
:root{
  --brand:#01903e;
  --brand-600:#017b35;
  --text:#121212;
  --ink:#121212;
  --muted:#6b7280;
  --bg:#0a0a0a;
  --card:#ffffff;
  --line:#eaeaea;
}

/* ---- Reset ---- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color:var(--text);
  background:#fff;
}

/* ---- Layout helpers ---- */
.container{max-width:1200px;margin:0 auto;padding:0 16px}
.section{padding:48px 0}
.section--alt{background:#f7f7f7}
.section__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.section__title{font-size:28px;font-weight:700;margin:0;color:var(--text)}
.link{color:var(--brand);text-decoration:none;font-weight:600}

/* ---- Header / Topbar / Nav ---- */
.site-topbar{background:#000;color:#9aa0a6;font-size:12px}
.site-topbar .wrap{max-width:1200px;margin:0 auto;padding:6px 16px;display:flex;gap:14px;justify-content:flex-end}


/* --- NAV WRAPPER (restores the black bar layout) --- */
.site-nav{
  background:#000;
  color:#fff;
  border-bottom:1px solid #161616;
  position: sticky;      /* optional: keeps header visible */
  top: 0;
  z-index: 50;
}
.site-nav .wrap{
  max-width:1200px;
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  gap:20px;
}

/* Brand + logo */
.brand{display:flex; align-items:center;}
.brand a{display:inline-flex; align-items:center; text-decoration:none; color:#fff;}
.brand a img{
  height:88px;           /* normal header height */
  width:auto;
  display:block;
}

/* Nav links row */
.site-nav .nav{
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:auto;
}

/* Green pill hover/active */
.site-nav .nav a{
  color:#cbd5e1;
  text-decoration:none;
  padding:8px 14px;
  border-radius:10px;
  transition:background-color .18s ease, color .18s ease;
  display:inline-flex; align-items:center;
}
.site-nav .nav a:hover{
  background:#01903e;   /* brand green */
  color:#fff;
}
.site-nav .nav a.active{
  background:#01903e;
  color:#fff;
}
.site-nav .nav a:focus-visible{
  outline:2px solid #38bdf8;
  outline-offset:2px;
}

/* (Remove/override older generic .nav a rules if present) */
.nav a{ color:inherit; margin:0; }  /* keeps your pills consistent */



/* ---- Buttons ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:12px;padding:12px 18px;font-weight:700;
  border:1px solid transparent;cursor:pointer;text-decoration:none;height:44px
}
.btn--primary,.btn-primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.btn--primary:hover,.btn-primary:hover{background:var(--brand-600)}
.btn--ghost{border-color:var(--brand);color:var(--brand);background:#fff}
.btn--ghost:hover{background:rgba(1,144,62,.08)}

/* =========================================================
   HERO (with repeating background across the whole section)
   ======================================================= */
.hero{
  color:#fff;
  padding:56px 0 48px;
  border-bottom:1px solid var(--line);

  /* Repeating background (2024x768) tiled horizontally */
  background-image:url('/background_repeat.png');
  background-repeat:repeat-x;
  background-size:auto 100%;         /* keep image height, tile left/right */
  background-position:center top;
  background-color:#111;             /* fallback color */
}
.hero h1{font-size:40px;margin:0 0 16px}

/* Search bar inside hero (site/index) */
.searchbar{background:#fff;border-radius:14px;padding:14px}
.searchbar__row{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px}
.field label{display:block;font-size:12px;color:#666;margin-bottom:6px}
.field select,.field input{
  width:100%;padding:10px 12px;border:1px solid var(--line);
  border-radius:10px;background:#fff;color:var(--text)
}
.searchbar__cta{display:flex;align-items:flex-end}

/* ---- Cars page hero search (centered) ---- */
.hero .search{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr 1fr auto;
  gap:10px;
  max-width:980px;
  margin:0 auto;
}
.hero .search input,
.hero .search select{
  height:44px;border:1px solid #2a2a2a;background:#111;color:#fff;border-radius:8px;padding:0 12px
}
.hero .search .btn{height:44px}

/* ---- Chips ---- */
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.chip{
  padding:10px 14px;border-radius:999px;border:1px solid var(--line);
  text-decoration:none;color:var(--text);background:#fff
}
.chip:hover{border-color:var(--brand);color:var(--brand)}

/* ---- Grids & Cards ---- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.section .grid{margin-top:12px}

.card{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.04)}
.card a{color:inherit;text-decoration:none;display:block}

.card-img{
  position:relative;
  padding-top:62%;
  background:#f4f4f4 center/cover no-repeat;
}
.badge{position:absolute;left:12px;top:12px;background:var(--brand);color:#fff;border-radius:999px;padding:4px 10px;font-size:12px}
.card-body{padding:12px 14px}
.card-title{font-weight:600;margin:4px 0 2px}
.card-meta{color:var(--muted);font-size:13px}
.price{color:#000;font-weight:700}

/* ---- Alternate card structure (partials/_carCard) ---- */
.car-card{display:block;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;text-decoration:none;color:inherit}
.car-card__media{position:relative;aspect-ratio:16/10;background:#eee}
.car-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.tag{position:absolute;left:10px;top:10px;background:#000;color:#fff;font-size:12px;padding:4px 8px;border-radius:999px}
.tag--premium{background:var(--brand)}
.car-card__body{padding:12px}
.car-card__title{font-weight:700;margin-bottom:6px;line-height:1.3}
.car-card__meta{color:var(--muted);font-size:13px;display:flex;gap:6px;flex-wrap:wrap}
.car-card__price{margin-top:8px;font-weight:800;color:var(--brand)}

/* ---- Dealers ---- */
.dealers{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.dealer{border:1px solid var(--line);border-radius:14px;background:#fff;padding:14px;text-align:center}
.dealer img{width:220px;height:110px;object-fit:contain;margin:auto;display:block}
.dealer__name{font-weight:700;margin:10px 0 12px}

/* ---- Detail page ---- */

.detail{
  max-width:1200px;margin:26px auto;padding:0 16px;
  display:grid;grid-template-columns:1.3fr .9fr;gap:24px;
}

/* make the gallery background white instead of black */
.gallery{
  background:#fff;                 /* changed from #000 */
  border:1px solid var(--line);    /* optional: subtle border like the spec panel */
  border-radius:14px;
  overflow:hidden;
}

.gallery figure{margin:0}
.gallery img{display:block;width:100%;height:520px;object-fit:cover}

/* thumbnails row: no black background and no fixed height */
.thumb-row{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:8px;
  background:transparent;          /* changed from #0e0e0e */
  padding:10px;
}

.thumb-row img{
  width:100%;height:68px;object-fit:cover;border-radius:6px;
  opacity:.75;border:1px solid #1b1b1b
}
.thumb-row img:hover{opacity:1}

.spec{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
.spec h3{margin:0 0 10px}
.spec .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.spec .item{border-bottom:1px dashed var(--line);padding:10px 0;display:flex;justify-content:space-between}
.spec .k{color:var(--muted)}
.spec .v{font-weight:600}

/* ---- Footer ---- */
.site-footer{background:#0a0a0a;color:#a3a3a3;}
.site-footer .wrap{max-width:1200px;margin:0 auto;padding:20px 16px;display:flex;justify-content:space-between;align-items:center}
.site-footer a{color:#e5e7eb;text-decoration:none}

/* =========================================================
   Marketing helpers (from old index content)
   ======================================================= */
.mx-banner{width:100%;height:auto;max-height:500px;object-fit:cover;border-radius:12px}
.mx-cta{text-align:center;max-width:900px;margin:0 auto}
.mx-lead{color:var(--muted);margin:0 auto 16px;max-width:860px}
.mx-cta__row{display:flex;gap:10px;justify-content:center;margin-top:10px;flex-wrap:wrap}

.mx-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.mx-feature{background:#f8f9fa;border:1px solid var(--line);border-radius:12px;padding:20px;text-align:center}
.mx-feature__icon{font-size:34px;color:var(--brand);margin-bottom:10px}

.mx-two{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;align-items:center}
@media (max-width:900px){.mx-two{grid-template-columns:1fr}}
.mx-subtitle{font-size:22px;margin:0 0 12px}
.mx-list{margin:0;padding-left:18px;line-height:1.7}
.mx-illustration{width:100%;height:360px;object-fit:cover;border-radius:12px}

.mx-center{text-align:center}
.mx-text{color:var(--muted);max-width:900px;margin:0 auto 12px}
.mx-team{width:700px;max-width:100%;height:400px;object-fit:cover;border-radius:12px;margin-top:10px}
.brand{color:var(--brand)}


/* Center hero title and subtitle above search */
.hero__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 220px; /* adjust depending on your hero height */
}

.hero__content h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.hero__content p {
  font-size: 16px;
  margin: 6px 0 20px;
  color: #fff;
  opacity: 0.9;
}


/* ===== Footer (green variant) ===== */
.site-footer--green {
  background: #05a143; /* DXBDZD green */
  color: #ffffff;

}

.site-footer--green a {
  color: #eafff0;
  text-decoration: none;
}

.site-footer--green a:hover {
  text-decoration: underline;
}

/* layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 28px 16px 18px;
}

.footer-brand .footer-logo img {
  display: block;
  width: 350px;
  height: 150px; /* keep your exact requested size */
  object-fit: contain;
  border-radius: 8px; /* optional micro rounding */
}

.footer-tagline {
  margin: 8px 0 0;
  opacity: 0.92;
}

.footer-col h4 {
  margin: 10px 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin: 10px 0;
  font-size: 14px;
  opacity: 0.98;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 24px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 14px;
}

/* responsive */
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand .footer-logo img {
    width: 260px;
    height: auto; /* keep aspect on small screens */
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}


/* Gallery navigation arrows */
.g-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;
  width:42px;
  height:64px;
  border:0;
  border-radius:10px;
  background:rgba(0,0,0,.45);
  color:#fff;
  font-size:28px;
  line-height:64px;
  text-align:center;
  cursor:pointer;
  backdrop-filter: blur(2px);
}
.g-prev{ left:10px; }
.g-next{ right:10px; }
.g-nav:hover{ background:rgba(0,0,0,.6); }

/* Thumbs: clickable + active state */
.g-thumb{
  cursor:pointer;
  border:2px solid transparent;
  border-radius:8px;
  opacity:.85;
  transition:opacity .15s, border-color .15s;
}
.g-thumb:hover{ opacity:1; }
.g-thumb.is-active{
  border-color: var(--brand);
  opacity:1;
}

/* Make sure the main image crossfades nicely */
#g-main{ transition: opacity .18s ease; display:block; width:100%; height:520px; object-fit:cover; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;              /* spacing between items */
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.pagination li {
  display: inline-block;
}

.pagination li a,
.pagination li span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  color: #374151;
  background: #fff;
  transition: all 0.2s;
}

.pagination li a:hover {
  background: #f3f4f6;
}

.pagination li.active span {
  background: #16a34a; /* your theme green */
  color: #fff;
  border-color: #16a34a;
}

/* utility: icon spacing/size */
.i { margin-right: .45rem; }
.i--sm { font-size: .9em; }
.i--lg { font-size: 1.1em; }


/* FontAwesome icons inside feature boxes */
.mx-feature__icon i {
  color: #16a34a;   /* green - visible on light bg */
  font-size: 2rem;  /* consistent sizing */
}

