/* Easy Deal Cars — original stylesheet */

:root {
  /* Palette taken from the supplied EASY DEAL CARS logo: black, white, tyre red. */
  --dark: #0a0a0a;
  --dark-2: #1a1a1a;
  --accent: #e11b22;
  --accent-dark: #b31419;
  --accent-ink: #ffffff;      /* text that sits on the red accent */
  --ink: #14161a;
  --muted: #6b7280;
  --line: #e4e4e7;
  --bg: #f4f4f5;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 10, 10, .06), 0 8px 24px rgba(10, 10, 10, .08);
  --shadow-lg: 0 18px 40px rgba(10, 10, 10, .16);
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Oswald", "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-head { margin-bottom: 32px; }
.section-head p { color: var(--muted); max-width: 60ch; margin: 0; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: .5rem;
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: .16s ease;
  font-family: var(--sans);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--dark); }
.btn-block { width: 100%; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.btn-danger { background: #fee2e2; color: #991b1b; }
.btn-danger:hover { background: #fecaca; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--dark); color: #fff;
  box-shadow: 0 2px 14px rgba(10, 10, 10, .28);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 84px; }
.logo { color: #fff; flex: 0 0 auto; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  padding: .5rem .7rem; border-radius: 8px; font-size: .88rem; font-weight: 500;
  color: rgba(255,255,255,.82); transition: .15s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.active { color: #fff; }
.nav a.active::after {
  content: ""; display: block; height: 2px; background: var(--accent);
  border-radius: 2px; margin-top: 3px;
}
.nav .btn { margin-left: .5rem; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; color: #fff;
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}

/* ---------- flash ---------- */
.flash { padding: .9rem 1.1rem; border-radius: 10px; margin: 18px 0; font-weight: 500; }
.flash-success { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: clamp(80px, 12vw, 150px) 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.86), rgba(10,10,10,.7)),
    url("/uploads/seed/ford-mustang-01.jpg") center/cover no-repeat, var(--dark);
}
.hero h1 { margin-bottom: .35rem; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero .sub { font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255,255,255,.9); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -46px; position: relative; z-index: 5; }
.tile {
  background: var(--card); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: .18s; border: 1px solid var(--line);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile .ico { font-size: 1.7rem; margin-bottom: .4rem; }
.tile h3 { margin-bottom: .25rem; }
.tile p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- generic grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { padding-left: 1.9rem; position: relative; margin-bottom: .6rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- vehicle card ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.vcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .18s; position: relative;
  display: flex; flex-direction: column;
}
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vcard-media { position: relative; aspect-ratio: 4 / 3; background: #e4e4e7; }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; }
.img-count {
  position: absolute; right: 10px; bottom: 10px; background: rgba(10,10,10,.85);
  color: #fff; font-size: .75rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px;
}
.ribbon {
  position: absolute; left: 10px; top: 10px; padding: .25rem .6rem; border-radius: 6px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--dark); color: #fff;
}
.ribbon.giveaway { background: var(--accent); color: var(--accent-ink); }
.vcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.vcard-title { font-size: 1rem; font-weight: 600; margin: 0 0 .3rem; line-height: 1.35; }
.vcard-price { font-family: var(--display); font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.vcard-meta { color: var(--muted); font-size: .84rem; display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; }
.vcard-meta span + span::before { content: "· "; }
.vcard-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; font-size: .82rem;
}
.compare-label { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); cursor: pointer; }

/* ---------- search layout ---------- */
/* Vertical padding only — these layouts also carry .wrap, whose horizontal
   gutter must survive. */
.search-layout { display: grid; grid-template-columns: 288px 1fr; gap: 28px; align-items: start; padding-top: 32px; padding-bottom: 64px; }
.sidebar { position: sticky; top: 92px; }
.filters {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.filters-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; font-family: var(--display);
}
.filters-body { max-height: calc(100vh - 220px); overflow-y: auto; padding: 4px 18px 18px; }
.fgroup { border-bottom: 1px solid var(--line); padding: 14px 0; }
.fgroup:last-child { border-bottom: 0; }
.fgroup > label, .fgroup-title {
  display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); margin-bottom: .5rem;
}
.checks { display: flex; flex-direction: column; gap: .35rem; max-height: 190px; overflow-y: auto; }
.checks label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; cursor: pointer; }
.checks input { accent-color: var(--accent); }
.range-row { display: flex; gap: 8px; }
.filters-foot { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); background: #fafbfc; }
.more-toggle { background: none; border: 0; color: var(--accent-dark); font-weight: 600; cursor: pointer; padding: 0; font-size: .88rem; }
.hidden { display: none !important; }

.results-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.results-head h1 { font-size: 1.6rem; margin: 0; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }

/* swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--line); font-size: 0; transition: .15s;
}
.swatch input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,166,35,.28); }

/* forms */
input, select, textarea {
  width: 100%; padding: .62rem .8rem; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: .92rem; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(245,166,35,.5); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 130px; resize: vertical; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 0 0 22px; }
legend { font-family: var(--display); font-weight: 600; padding: 0 .5rem; }

/* ---------- listing detail ---------- */
.listing-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; padding-top: 28px; padding-bottom: 64px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #e4e4e7; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.thumbs img {
  aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; transition: .15s;
}
.thumbs img:hover, .thumbs img.active { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 1.5rem; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .85rem; font-size: .85rem; font-weight: 500;
}
.chip strong { font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }
.tag { background: #f1f1f3; border-radius: 7px; padding: .3rem .7rem; font-size: .85rem; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table td { padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 45%; }
.spec-table td:last-child { font-weight: 600; }
.price-big { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--dark); }
.sticky-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 62px 1fr; gap: 20px; align-items: start; }
.step-num {
  counter-increment: step; width: 56px; height: 56px; border-radius: 50%;
  background: var(--dark); color: var(--accent); display: grid; place-items: center;
  font-family: var(--display); font-size: 1.4rem; font-weight: 700;
}
.step-num::before { content: counter(step); }

/* ---------- testimonials ---------- */
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.tcard .stars { color: var(--accent); letter-spacing: .1em; margin-bottom: .6rem; }
.tcard p { font-size: .93rem; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: 1rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #e4e4e7; }
.who strong { display: block; font-size: .92rem; }
.who small { color: var(--muted); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .n { font-family: var(--display); font-size: 2.1rem; font-weight: 700; color: var(--dark); }
.stat .l { color: var(--muted); font-size: .88rem; }

/* ---------- accordion ---------- */
.acc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.acc summary {
  padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; font-family: var(--display);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--accent-dark); font-size: 1.4rem; line-height: 1; }
.acc[open] summary::after { content: "−"; }
.acc .acc-body { padding: 0 22px 20px; color: var(--muted); }

/* ---------- tabs ---------- */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs button {
  flex: 1; padding: .9rem; background: none; border: 0; border-bottom: 3px solid transparent;
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
}
.tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- dark band ---------- */
.band { background: var(--dark); color: #fff; }
.band h2, .band h3 { color: #fff; }
.band p, .band li { color: rgba(255,255,255,.78); }
.band .panel { background: var(--dark-2); border-color: rgba(255,255,255,.1); }

/* ---------- compare tray ---------- */
.compare-tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--dark); color: #fff; padding: 14px 0;
  box-shadow: 0 -8px 30px rgba(10,10,10,.4); transform: translateY(110%); transition: .25s;
}
.compare-tray.show { transform: none; }
.compare-tray .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.compare-items { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.compare-pill { background: rgba(255,255,255,.1); border-radius: 8px; padding: .35rem .7rem; font-size: .84rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 56px 0 24px; margin-top: auto; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer .footer-logo { height: 54px; width: auto; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; font-size: .92rem; }
.socials { display: flex; gap: 10px; margin-top: 1rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff;
}
.socials a:hover { background: var(--accent); color: var(--accent-ink); }
.copyright {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px;
  font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.copyright-end { display: inline-flex; align-items: center; gap: 12px; }

/* Discreet staff entry point — reads as a footer decoration, not a nav link.
   Scoped under .site-footer so it outranks the generic `.site-footer a` colour. */
.site-footer .admin-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  color: rgba(255,255,255,.2); transition: .18s;
}
.site-footer .admin-dot:hover { color: rgba(255,255,255,.6); background: rgba(255,255,255,.07); }
.site-footer .admin-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; color: #fff; }

.notice {
  background: #fff7e6; border: 1px solid #f6d78d; border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 28px;
}

.page-head { background: var(--dark); color: #fff; padding: 52px 0; }
.page-head h1 { margin: 0; }
.page-head p { color: rgba(255,255,255,.75); margin: .4rem 0 0; }

.prose { max-width: 76ch; }
.prose h2 { margin-top: 2rem; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .search-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .filters-body { max-height: none; }
  .listing-layout { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--dark); flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; gap: 4px; box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav .btn { margin: .5rem 0 0; }
  .tiles, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .tiles { margin-top: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 44px 0; }
}

@media (max-width: 520px) {
  .grid-4, .stats { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
}

/* ---------- honeypot ---------- */
/* Off-screen rather than display:none — some bots skip hidden inputs. */
.hp {
  position: absolute !important; left: -9999px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
}

/* ---------- SOLD state ---------- */
.ribbon.sold { background: #6b7280; color: #fff; }
.vcard.is-sold .vcard-media img { filter: grayscale(.85) brightness(.9); }
.sold-banner {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #6b7280; color: #fff; font-family: var(--display);
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 8px; margin-bottom: 1rem;
}

/* ---------- header contact strip ---------- */
.header-contact { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-contact a {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .86rem; font-weight: 600; color: #fff; white-space: nowrap;
}
.header-contact .wa {
  background: var(--accent); border-radius: 999px; padding: .4rem .9rem;
}
.header-contact .wa:hover { background: var(--accent-dark); }
@media (max-width: 1100px) { .header-contact .tel span { display: none; } }
@media (max-width: 820px)  { .header-contact { display: none; } }

/* ---------- sticky mobile enquire bar ---------- */
.enquire-bar { display: none; }
@media (max-width: 820px) {
  .enquire-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10,10,10,.96); box-shadow: 0 -6px 22px rgba(10,10,10,.35);
  }
  .enquire-bar .btn { flex: 1; }
  body.has-enquire-bar { padding-bottom: 74px; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(10,10,10,.94); place-items: center;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-width: 94vw; max-height: 86vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.12); color: #fff;
  border: 0; border-radius: 50%; width: 46px; height: 46px;
  font-size: 1.4rem; cursor: pointer; display: grid; place-items: center;
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.26); }
.lightbox-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.75); font-size: .85rem;
}
.gallery-main { cursor: zoom-in; }

/* ---------- privacy note ---------- */
.privacy-note {
  border-left: 3px solid var(--accent); background: #fff; padding: .8rem 1rem;
  border-radius: 8px; font-size: .86rem; color: var(--muted); margin-top: 1rem;
}
