/* PRIMEDRIVE - main stylesheet (styled to match the original Click Dealer theme) */
:root {
  --orange: #f36221;
  --orange-dark: #d24f12;
  --orange-light: #f7834d;
  --dark: #272425;
  --footer: #292929;
  --footer-dark: #212121;
  --text: #555;
  --muted: #8e8e8e;
  --light: #f5f5f5;
  --white: #fff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Nunito Sans", Arial, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; margin: 1.2em 0 .5em; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.small { font-size: .85rem; }
.center { text-align: center; }
p.center { margin-top: 28px; }
.btn { display: inline-block; background: var(--orange); color: var(--white); border: 0; padding: 10px 20px; font: inherit; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-radius: 8px; cursor: pointer; }
.btn:hover { background: var(--orange-dark); text-decoration: none; color: #fff; }
.btn-small { padding: 8px 15px; font-size: .75rem; }
.btn-outline { background: transparent; border: 2px solid var(--orange); color: var(--orange); }
.section-title { font-size: 1.75rem; margin-top: 0; }

/* ---------- Header ---------- */
.topbar { background: var(--white); }
.topbar .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.top-left, .top-right { display: flex; align-items: center; gap: 22px; }
.top-right { justify-content: flex-end; }
.top-left a, .top-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 1.5rem; font-weight: 600; }
.top-left a:hover, .top-phone:hover { text-decoration: none; color: var(--orange); }
.ico { width: 24px; height: 24px; color: var(--orange); flex: none; }
.logo img { height: 80px; width: auto; }
.menu-toggle { display: none; background: var(--orange); color: #fff; border: 0; padding: 10px 14px; font: inherit; font-weight: 700; border-radius: 8px; }

.mainnav { background: var(--orange); position: sticky; top: 0; z-index: 60; }
.mainnav > ul { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: space-between; }
.mainnav li { position: relative; }
.mainnav a { display: block; padding: 11px 12px; color: #fff; text-transform: uppercase; font-weight: 700; font-size: .875rem; }
.mainnav li.has-sub > a::after { content: ""; display: inline-block; width: 5px; height: 5px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: 0 0 3px 8px; }
.mainnav > ul > li:hover > a, .mainnav li.active > a { background: var(--orange-light); text-decoration: none; }
.mainnav li ul { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; list-style: none; margin: 0; padding: 6px 0; z-index: 70; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.mainnav li:hover > ul { display: block; }
.mainnav li ul a { color: var(--dark); text-transform: none; font-weight: 600; padding: 8px 18px; }
.mainnav li ul a:hover { background: var(--light); color: var(--orange); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #000 url("../images/hero.jpg") center/cover no-repeat; color: #fff; height: 650px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-video { position: absolute; inset: 0; pointer-events: none; }
.hero-video iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.77vh; transform: translate(-50%, -50%); border: 0; }
.hero-bottom { position: relative; z-index: 1; width: 100%; padding: 120px 0 40px; background: linear-gradient(rgba(39,36,37,0) 0, rgba(39,36,37,.5) 30%, rgba(39,36,37,.9) 60%); text-align: center; }
.hero h1 { color: #fff; font-size: 2rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 20px; }
.search-box { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.search-box select { padding: 11px 40px 11px 14px; font: inherit; min-width: 220px; border: 0; border-radius: 8px; appearance: none; -webkit-appearance: none; background: #fff url("../images/select-icon.svg") right 12px center / 14px no-repeat; color: var(--dark); }
.search-box .btn { padding: 11px 28px; }

/* ---------- Inner page header ---------- */
.page-hdr { background: var(--dark) url("../images/page-hdr__bg.jpg") center/cover no-repeat; position: relative; }
.page-hdr::before { content: ""; position: absolute; inset: 0; background: rgba(39,36,37,.55); }
.page-hdr .wrap { position: relative; padding-top: 70px; padding-bottom: 70px; text-align: center; }
.page-hdr h1 { color: #fff; margin: 0; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* ---------- Layout ---------- */
main { min-height: 40vh; }
.section { padding: 50px 0; }
.section-alt { background: var(--light); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 40px 16px 60px; }
.sidebar .widget { background: var(--light); padding: 22px; margin-bottom: 20px; border-radius: 8px; }
.sidebar .widget h3 { margin-top: 0; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 4px 0; font-weight: 700; }
blockquote { margin: 0 0 12px; }
blockquote cite { display: block; margin-top: 8px; font-weight: 700; font-style: normal; color: var(--dark); }

/* ---------- Vehicle cards ---------- */
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.car { background: #fff; border: 1px solid var(--orange); display: flex; flex-direction: column; }
.car img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee; }
.car-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.car h3 { margin: 0 0 2px; font-size: 1.125rem; font-weight: 900; text-transform: uppercase; }
.car h3 a { color: var(--dark); }
.car .sub { font-size: .875rem; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car ul.specs { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.car ul.specs li { border: 1px solid var(--text); color: var(--text); font-size: .75rem; padding: 2px 8px; border-radius: 99px; }
.car .price { font-size: 1.6rem; font-weight: 900; color: var(--dark); margin-top: auto; text-align: right; }
.car .btn { margin-top: 12px; text-align: center; display: block; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; }
.filter-bar a { padding: 6px 14px; border: 1px solid #ddd; border-radius: 99px; color: var(--dark); font-size: .9rem; }
.filter-bar a.on, .filter-bar a:hover { background: var(--orange); color: #fff; border-color: var(--orange); text-decoration: none; }
.filter-bar select { padding: 8px; font: inherit; border: 1px solid #ccc; border-radius: 8px; }

/* ---------- Vehicle detail ---------- */
.vehicle-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 30px; padding: 30px 16px 60px; }
.gallery-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 8px; }
.thumbs img { aspect-ratio: 4 / 3; object-fit: cover; cursor: pointer; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 8px; border-bottom: 1px solid #eee; }
.spec-table th { width: 40%; color: var(--dark); }
.vehicle-detail .sub { text-transform: uppercase; color: var(--muted); }

/* ---------- Promo panels ---------- */
.promos { display: grid; grid-template-columns: repeat(3, 1fr); }
.promo { position: relative; height: 360px; background: var(--dark) center/cover no-repeat; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(39,36,37,0) 30%, rgba(39,36,37,.85)); transition: background .2s; }
.promo:hover { text-decoration: none; }
.promo:hover::before { background: linear-gradient(rgba(39,36,37,.2) 0, rgba(39,36,37,.9)); }
.promo-inner { position: relative; padding: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.promo-title { font-size: 1.625rem; font-weight: 700; }
.promo-text { max-width: 360px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.review { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.review h3 { font-size: 1.05rem; margin-top: 8px; }
.review .stars { color: var(--orange); letter-spacing: 2px; }
.review-logos { display: flex; justify-content: center; gap: 40px; align-items: center; margin-top: 30px; }
.review-logos img { height: 36px; width: auto; }

/* ---------- Home about ---------- */
.home-about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.kicker { color: var(--orange); font-weight: 700; text-transform: uppercase; margin: 0; }
.home-about h2 { margin-top: .2em; }
.video { position: relative; padding-top: 56.25%; margin-top: 20px; max-width: 520px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.about-card { background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.12); text-align: center; padding-bottom: 20px; }
.about-card-img { height: 220px; background: var(--dark) center/cover no-repeat; }
.about-card h3 { margin: 20px 16px; }
.about-card-cols { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.about-card-cols a { padding: 20px 10px; color: var(--text); }
.about-card-cols a + a { border-left: 1px solid #eee; }
.about-card-cols strong { color: var(--dark); }
.about-card h4 { margin: 18px 0 8px; }
.social-icons a { display: inline-block; margin: 0 6px; padding: 4px 12px; border-radius: 99px; background: var(--orange); color: #fff; font-size: .85rem; font-weight: 700; }

/* ---------- Forms ---------- */
form.enquiry { display: grid; gap: 14px; max-width: 640px; margin: 20px 0; }
form.enquiry label span { display: block; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
form.enquiry input, form.enquiry textarea, form.enquiry select { width: 100%; padding: 10px; font: inherit; border: 1px solid #ccc; border-radius: 8px; }
form.enquiry button { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { background: #e8f6e8; border-left: 4px solid #3a3; padding: 14px; margin: 20px 0; }
.notice.error { background: #fdecea; border-color: #c33; }

/* ---------- Contact ---------- */
.contact-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.map iframe { width: 100%; height: 380px; border: 0; }
table.hours { border-collapse: collapse; width: 100%; max-width: 260px; }
table.hours th, table.hours td { padding: 3px 0; text-align: left; font-weight: 400; }
table.hours td { text-align: right; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #999; padding: 50px 0 30px; font-size: .875rem; }
.site-footer h4 { color: #fff; margin-top: 0; font-size: 1.1rem; font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer a { color: #999; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 24px; }
.site-footer ul li { padding: 3px 0; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 20px; }
.site-footer .links a { margin-right: 14px; }
.mobile-bar { display: none; }
.legal-text h2, .legal-text h3, .legal-text h4 { margin-top: 1.4em; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1100px) {
  .mainnav a { padding: 11px 8px; font-size: .8rem; }
  .top-left a, .top-phone { font-size: 1.1rem; }
}
@media (max-width: 900px) {
  .topbar .wrap { grid-template-columns: auto 1fr auto; }
  .top-left a span, .top-phone span { display: none; }
  .logo { justify-self: center; }
  .logo img { height: 56px; }
  .menu-toggle { display: inline-block; }
  .mainnav { display: none; position: static; }
  body.nav-open .mainnav { display: block; }
  .mainnav > ul { flex-direction: column; }
  .mainnav li ul { display: block; position: static; background: rgba(0,0,0,.08); box-shadow: none; }
  .mainnav li ul a { color: #fff; padding-left: 30px; }
  .mainnav li ul a:hover { background: var(--orange-light); color: #fff; }
  .hero { height: 460px; background-image: url("../images/hero-mobile.jpg"); }
  .hero-video { display: none; }
  .hero h1 { font-size: 1.5rem; }
  .page-hdr { background-image: url("../images/page-hdr__bg--mobile.jpg"); }
  .page-hdr .wrap { padding-top: 40px; padding-bottom: 40px; }
  h1 { font-size: 1.6rem; }
  .content-grid, .vehicle-detail, .home-about { grid-template-columns: 1fr; }
  .promos { grid-template-columns: 1fr; }
  .promo { height: 260px; }
  body { padding-bottom: 50px; }
  .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; }
  .mobile-bar a { flex: 1; text-align: center; padding: 14px 4px; background: var(--orange); color: #fff; font-weight: 700; border-right: 1px solid rgba(255,255,255,.3); }
}
