:root{--bg:#101010;--panel:#1b1b1b;--gold:#c5a46a;--cream:#f4f0e8;--muted:#b7b3ad;--line:#39332a}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--cream);font-family:Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}p{color:var(--muted);line-height:1.7}h1,h2,h3{letter-spacing:-.035em}em{font-family:Georgia,serif;font-weight:400;color:var(--gold)}.header{position:sticky;top:0;z-index:10;background:#111e;backdrop-filter:blur(16px);border-bottom:1px solid var(--line);padding:16px 5%;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px;font-weight:700;letter-spacing:2.5px;font-size:14px;white-space:nowrap}.brand small{display:block;font-size:8px;color:var(--gold);letter-spacing:2px;margin-top:5px}.monogram{font:32px Georgia,serif;color:var(--gold);border:1px solid var(--gold);padding:5px 9px}nav{display:flex;align-items:center;gap:24px}nav a{font-size:12px;color:#e2ded6}nav a:hover{color:var(--gold)}.nav-cta{border:1px solid var(--gold);padding:11px 14px;color:var(--gold)}.menu{display:none;background:none;border:1px solid var(--line);color:var(--cream);padding:10px}.hero{min-height:660px;position:relative;overflow:hidden;display:flex;align-items:center;padding:90px 7% 100px;background:radial-gradient(ellipse at 75% 50%,#393023 0%,#181714 37%,#0e0e0e 75%)}.hero-content{position:relative;z-index:2;max-width:700px}.eyebrow,.kicker{font-size:11px;letter-spacing:3px;color:var(--gold);font-weight:bold}.line{display:inline-block;width:35px;height:1px;background:var(--gold);vertical-align:middle;margin-right:12px}h1{font-size:clamp(56px,8vw,112px);line-height:.96;margin:28px 0}h1 em{font-style:normal}.hero-content p{font-size:18px;max-width:500px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:35px}.button{display:inline-flex;justify-content:center;align-items:center;gap:25px;border:1px solid var(--gold);padding:16px 21px;font-weight:bold;letter-spacing:1px;font-size:11px;min-height:50px}.button.primary{background:var(--gold);color:#111}.button.ghost{background:transparent;color:var(--gold)}.button:hover{filter:brightness(1.15)}.hero-art{position:absolute;right:-3%;width:55%;bottom:110px;opacity:.5}.hero-art svg{width:100%}.art-label{display:block;text-align:center;color:var(--gold);font-size:10px;letter-spacing:4px}.hero-bottom{position:absolute;bottom:25px;left:7%;right:7%;display:flex;justify-content:space-between;color:#b5a27f;font-size:10px;letter-spacing:2px}.section{padding:100px 7%}.section-head{display:flex;justify-content:space-between;align-items:end;gap:15px}.section h2,.statement h2,.contact h2{font-size:clamp(35px,5vw,62px);line-height:1.1;margin:15px 0}.counter{border:1px solid var(--line);padding:12px;color:var(--gold);font-size:11px;white-space:nowrap}.filters{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:14px;margin:30px 0}.filters label,.form label{font-size:12px;color:#ddd;display:block}.filters input,.filters select,.form input:not([type=checkbox]),.form select,.form textarea{display:block;margin-top:9px;background:#222;border:1px solid #514634;color:#f5f1ea;padding:14px;width:100%;border-radius:0;min-height:47px}.vehicle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.vehicle{background:#1c1c1c;border:1px solid var(--line);overflow:hidden}.vehicle-photo{width:100%;height:225px;object-fit:cover;background:linear-gradient(130deg,#41372a,#141414);display:flex;align-items:center;justify-content:center;color:#c6b18d;font:25px Georgia,serif}.vehicle-body{padding:20px}.vehicle-body h3{margin:10px 0;font-size:22px}.vehicle-body p{margin:5px 0;font-size:13px}.price-tag{color:var(--gold);font-size:25px;font-weight:bold;margin:16px 0}.vehicle-actions{display:flex;gap:10px;flex-wrap:wrap}.vehicle-actions button,.vehicle-actions a{font-size:11px;border:1px solid var(--gold);padding:11px;color:var(--gold);background:transparent}.sold{color:#e7c48a;font-size:11px;letter-spacing:2px}.empty{text-align:center;border:1px dashed #66563a;padding:55px 20px}.empty h3{font-size:25px}.empty-icon{font-size:55px;color:var(--gold)}.statement{background:#1a1917;padding:90px 7%}.statement h2{margin-bottom:55px}.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.benefits article{border-top:1px solid var(--gold);padding-top:25px}.benefits article span{color:var(--gold);font-family:Georgia,serif}.benefits h3{font-size:23px}.two-col{display:grid;grid-template-columns:1fr 1.1fr;gap:8%;align-items:start}.trade{background:#171614}.info-note{border-left:2px solid var(--gold);padding:12px 16px;color:#bdb7ae;font-size:13px;margin-top:30px;line-height:1.7}.form{background:#22201e;padding:30px;border:1px solid #4b4031}.form h3{font-size:27px;margin:0 0 25px}.form label{margin-bottom:18px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.check{display:flex!important;gap:10px;align-items:flex-start;line-height:1.6}.check input{accent-color:var(--gold);margin-top:3px}.full{width:100%}.form small{display:block;margin-top:12px;color:#aaa;line-height:1.6}.contact{text-align:center;background:radial-gradient(ellipse at center,#2d261b,#111 70%)}.contact-actions{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;margin:40px 0}.contact-actions a{border:1px solid var(--line);padding:24px 35px;color:var(--gold);font-size:11px;letter-spacing:1px}.contact-actions strong{display:block;color:white;font-size:17px;margin-top:10px;letter-spacing:0}.muted{font-size:12px}footer{padding:30px 7%;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}footer p,footer a{font-size:11px;color:#aaa}footer a{margin-left:14px}.privacy{padding:0 7% 35px;color:#999;font-size:11px;line-height:1.7}.whatsapp{position:fixed;right:18px;bottom:18px;z-index:9;background:#248b52;color:white;padding:15px 19px;border-radius:50px;font-weight:bold;font-size:13px;box-shadow:0 5px 30px #0008}dialog{max-width:800px;width:92%;background:#1d1b19;border:1px solid var(--gold);color:white;padding:30px}dialog::backdrop{background:#000c}.dialog-close{float:right;background:none;border:0;color:var(--gold);font-size:23px}.detail-img{max-width:100%;max-height:370px;object-fit:contain}.detail-specs{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;color:#ccc;margin:20px 0}@media(max-width:1000px){nav{gap:12px}.hero-art{opacity:.22;width:80%}.vehicle-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.header{flex-wrap:wrap}.menu{display:block}nav{display:none;flex-basis:100%;flex-direction:column;align-items:stretch;padding:12px 0}nav.open{display:flex}.hero{min-height:580px}.hero-art{width:110%;right:-30%;bottom:70px;opacity:.13}.section{padding:70px 5%}.statement{padding:70px 5%}.filters,.two-col,.benefits{grid-template-columns:1fr}.vehicle-grid{grid-template-columns:1fr}.section-head{align-items:start;flex-direction:column}.field-row{grid-template-columns:1fr;gap:0}h1{font-size:clamp(50px,12vw,78px)}.contact-actions{flex-direction:column}.contact-actions a{padding:20px}}

/* Official CM Motor Group logo */
.brand-logo{display:block;width:clamp(150px,19vw,235px);height:auto;max-height:88px;object-fit:contain}footer .brand-logo{width:220px;max-height:none}.header{min-height:88px}@media(max-width:760px){.brand-logo{width:165px}.header{min-height:76px}}

/* V4: Premium multi-vehicle hero photo */
.hero{background:linear-gradient(90deg,rgba(8,8,8,.98) 0%,rgba(8,8,8,.92) 29%,rgba(8,8,8,.45) 58%,rgba(8,8,8,.18) 100%),url("sunset-cars-optimized-q82.webp") center center/cover no-repeat;min-height:680px}
.hero-glow{display:none}
.hero-content{max-width:650px}
.hero-content p{color:#f0e9db;text-shadow:0 2px 12px #000}
@media(max-width:760px){.hero{background-position:58% center;background-image:linear-gradient(90deg,rgba(8,8,8,.92),rgba(8,8,8,.72)),url("sunset-cars-optimized-q82.webp")}}

/* V5 — clean charcoal, white and red identity inspired by supplied advert */
:root{--bg:#0c1115;--panel:#171d22;--gold:#ef2632;--cream:#ffffff;--muted:#b9c0c7;--line:#343b42}
em{color:#ffffff;font-style:normal;font-family:Arial,Helvetica,sans-serif;font-weight:800}
.header{background:#0a0e12f5;border-bottom:1px solid #32363b}
.nav-cta,.button.primary{background:#e41d2a;color:white;border-color:#e41d2a}
.button.ghost{border-color:#fff;color:white}
.hero{min-height:590px;background:linear-gradient(90deg,#0a1015 0%,rgba(10,16,21,.96) 27%,rgba(10,16,21,.76) 49%,rgba(10,16,21,.2) 100%),url('sunset-cars-optimized-q82.webp') 58% center/cover no-repeat}
.hero-content{max-width:590px}
.hero h1{font-size:clamp(48px,6.5vw,88px);line-height:1.03;margin:18px 0 22px}
.hero h1 em{color:#ef2632}
.hero-content p{font-size:17px;max-width:440px}
.hero-bottom{color:#f1f1f1}
.eyebrow,.kicker,.counter,.price-tag,.benefits article span{color:#ef2632}
.line{background:#ef2632}
.statement{background:#14191e}
.trade{background:#11171b}
.contact{background:linear-gradient(130deg,#161b20,#0c1014)}
.form{background:#1a2025;border-color:#3a424a}
.filters input,.filters select,.form input:not([type=checkbox]),.form select,.form textarea{background:#10151a;border-color:#485059}
.vehicle{background:#181e23}
.vehicle-actions button,.vehicle-actions a{border-color:#e41d2a;color:#fff}
.benefits article{border-top-color:#e41d2a}
.info-note{border-left-color:#e41d2a}
.contact-actions a{color:#ef2632}
.whatsapp{background:#208d50}
@media(max-width:760px){.hero{min-height:560px;background-image:linear-gradient(90deg,rgba(8,13,18,.93),rgba(8,13,18,.65)),url('sunset-cars-optimized-q82.webp');background-position:60% center}}

/* V6: Customer-supplied Toyota Hilux, BMW and Mercedes-Benz advert vehicles */
.hero{min-height:740px;align-items:flex-start;padding:74px 7% 115px;background:#0a1015;isolation:isolate}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#0a1015 0%,#0a1015 28%,rgba(10,16,21,.45) 53%,rgba(10,16,21,.1) 78%,#0a1015 100%),url('three-vehicles.jpg') center 78%/100% auto no-repeat}
.hero-content{max-width:820px}
.hero h1{font-size:clamp(45px,6vw,80px);margin:14px 0;line-height:1.06}
.hero h1 br{display:none}
.hero h1 em{display:block}
.hero-content p{max-width:580px;font-size:16px;margin:12px 0}
.hero-actions{margin-top:22px}
.hero-bottom{bottom:20px}
@media(max-width:760px){.hero{min-height:680px;padding:55px 5% 100px}.hero::before{background:linear-gradient(180deg,#0a1015 0%,rgba(10,16,21,.96) 28%,rgba(10,16,21,.15) 65%,#0a1015 100%),url('three-vehicles.jpg') center 72%/auto 45% no-repeat}.hero h1{font-size:clamp(38px,9vw,62px)}.hero h1 br{display:none}.hero-content p{font-size:14px}.hero-bottom{left:5%;right:5%;font-size:9px;gap:14px}}

/* V7: Prominent original CM Motor Group branding */
.header{padding:10px 3%;min-height:152px;gap:18px}
.header .brand{flex:0 0 auto}
.header .brand-logo{width:clamp(245px,27vw,380px);max-height:142px;height:auto;object-fit:contain}
.header nav{gap:clamp(9px,1.2vw,20px)}
.header nav a{font-size:clamp(10px,.85vw,13px)}
@media(max-width:1050px){.header{min-height:120px}.header .brand-logo{width:260px;max-height:112px}}
@media(max-width:760px){.header{min-height:108px;padding:8px 4%}.header .brand-logo{width:min(67vw,290px);max-height:105px}.header nav a{font-size:13px}}

/* V9: Original V7 left-aligned layout, logo exactly 30% larger. */
.header .brand-logo{width:clamp(318.5px,35.1vw,494px);max-height:none;height:auto}
@media(max-width:1050px){.header .brand-logo{width:338px;max-height:none}}
@media(max-width:760px){.header .brand-logo{width:min(87.1vw,377px);max-height:none}}

/* V10: 10% smaller than V9, maintaining left-aligned navigation. */
.header .brand-logo{width:clamp(286.65px,31.59vw,444.6px);max-height:none;height:auto}
@media(max-width:1050px){.header .brand-logo{width:304.2px;max-height:none}}
@media(max-width:760px){.header .brand-logo{width:min(78.39vw,339.3px);max-height:none}}

/* V11: 10% smaller than V10, keeping left-aligned header and enhanced logo. */
.header .brand-logo{width:clamp(257.985px,28.431vw,400.14px);max-height:none;height:auto}
@media(max-width:1050px){.header .brand-logo{width:273.78px;max-height:none}}
@media(max-width:760px){.header .brand-logo{width:min(70.551vw,305.37px);max-height:none}}

/* V12: high-resolution user-supplied logo, 10% smaller than V11. */
.header .brand-logo{width:clamp(232.1865px,25.5879vw,360.126px);max-height:none;height:auto}
@media(max-width:1050px){.header .brand-logo{width:246.402px;max-height:none}}
@media(max-width:760px){.header .brand-logo{width:min(63.4959vw,274.833px);max-height:none}}

/* V13: new black-background logo, maintaining the approved V12 size. */
.header .brand-logo{display:block;object-fit:contain}

/* V14: compact WhatsApp icon-only floating contact button */
a.whatsapp{display:flex;align-items:center;justify-content:center;width:62px;height:62px;padding:0;border-radius:50%;background:#25D366;color:#fff;box-shadow:0 6px 20px rgba(0,0,0,.4);transition:transform .2s,background .2s}a.whatsapp:hover{transform:scale(1.08);background:#1ebe5d}a.whatsapp:focus-visible{outline:3px solid #fff;outline-offset:3px}a.whatsapp svg{display:block;width:35px;height:35px}@media(max-width:760px){a.whatsapp{width:56px;height:56px;right:16px;bottom:16px}a.whatsapp svg{width:32px;height:32px}}

/* V17: provisional typographic lender wordmarks alongside dealership logo.
   Replace with approved official brand assets before launch. */
.header{gap:14px;justify-content:space-between}
.header .brand-logo{width:clamp(200px,19vw,295px)}
.finance-brands{display:flex;align-items:center;justify-content:center;gap:clamp(7px,1vw,15px);flex-wrap:wrap;flex:1 1 auto;min-width:0}
.bank{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:35px;font-size:clamp(10px,1vw,15px);font-weight:900;letter-spacing:-.4px;line-height:1.05;white-space:nowrap}
.bank.absa{color:#ed1b2f;font-size:clamp(16px,1.5vw,23px);letter-spacing:-1px}
.bank.mfc{color:#f4f4f4;font-size:clamp(16px,1.5vw,22px);font-style:italic}
.bank.standard{color:#fff;font-size:clamp(8px,.75vw,11px);letter-spacing:0}
.bank.wesbank{color:#f2f2f2;font-size:clamp(11px,1.1vw,16px)}
.bank.marquis{color:#e9e9e9;font-size:clamp(10px,.9vw,14px);flex-direction:column;letter-spacing:1px}
.bank.marquis small{font-size:8px;letter-spacing:2px;margin-top:2px}
@media(max-width:1350px){.header{flex-wrap:wrap}.finance-brands{order:3;flex:1 1 100%;justify-content:flex-start;padding:0 0 5px 3px}.header nav{margin-left:auto}}
@media(max-width:760px){.header .brand-logo{width:min(53vw,245px)}.finance-brands{order:3;gap:15px;justify-content:center;padding:5px 0}.bank{min-height:27px}.header nav{order:4}}

/* V18: Compact transparent finance partner logo artwork */
.header .finance-brands{display:flex;align-items:center;justify-content:center;flex:1 1 390px;min-width:0;padding:0;gap:0}
.header .finance-brands img{display:block;width:100%;max-width:690px;height:auto;max-height:74px;object-fit:contain;object-position:center;background:transparent}
@media(max-width:1350px){.header .finance-brands{order:3;flex:1 1 100%;justify-content:center}.header .finance-brands img{max-width:650px;max-height:66px}}
@media(max-width:760px){.header .finance-brands{order:3;flex-basis:100%;padding:0 2px 5px}.header .finance-brands img{max-width:100%;max-height:52px}.header nav{order:4}}

/* V19: Approved two-tier finance logo artwork, above the header divider. */
.header .finance-brands{flex:1 1 440px;align-self:center;padding:0 0 5px}
.header .finance-brands img{width:100%;max-width:760px;max-height:145px;object-fit:contain}
@media(max-width:1350px){.header .finance-brands{order:3;flex-basis:100%;padding-bottom:8px}.header .finance-brands img{max-height:135px}}
@media(max-width:760px){.header .finance-brands{order:3;flex-basis:100%;padding-bottom:8px}.header .finance-brands img{max-height:115px}}

/* V20: five finance partner marks side-by-side, compact and above divider */
.header{flex-wrap:wrap;row-gap:2px;padding-bottom:8px}
.header .brand{order:1}
.header .menu{order:2;margin-left:auto}
.header nav{order:2;margin-left:auto}
.header .finance-brands{order:3!important;flex:0 0 100%!important;width:100%;min-width:0;display:flex;justify-content:center;align-items:center;padding:0 0 3px!important}
.header .finance-brands img{display:block;width:min(100%,790px);max-width:790px;max-height:92px;height:auto;object-fit:contain;background:transparent}
@media(max-width:760px){.header .finance-brands{order:3!important;flex-basis:100%!important;padding:2px 0 4px!important}.header .finance-brands img{width:100%;max-height:65px}.header nav{order:4;flex-basis:100%;margin-left:0}}

/* V21: Larger lender logos immediately beneath right-hand navigation wording. */
.header{display:flex;flex-wrap:nowrap;align-items:center;gap:18px;padding:10px 3% 12px}
.header .brand{order:0;flex:0 0 auto}
.header-right{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:14px}
.header .header-right nav{order:0;margin-left:0;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:clamp(8px,1.2vw,20px)}
.header .header-right .finance-brands{order:0!important;flex:0 0 auto!important;width:100%;display:flex;justify-content:flex-end;padding:0!important}
.header .header-right .finance-brands img{display:block;width:100%;max-width:1050px;max-height:145px;height:auto;object-fit:contain;object-position:right center}
@media(max-width:1050px){.header{flex-wrap:wrap}.header-right{flex:1 1 100%;gap:10px}.header .header-right .finance-brands{justify-content:center}.header .header-right .finance-brands img{max-height:125px;object-position:center}}
@media(max-width:760px){.header{align-items:center}.header-right{display:contents}.header .header-right .menu{order:2;margin-left:auto}.header .header-right .finance-brands{order:3!important;flex:1 1 100%!important;justify-content:center}.header .header-right .finance-brands img{max-height:92px;object-position:center}.header .header-right nav{order:4;display:none;flex-basis:100%;margin-left:0}.header .header-right nav.open{display:flex;flex-direction:column;align-items:stretch}}

/* V22: lender strip 10% smaller, 5mm lower and 5cm left on desktop. */
@media(min-width:1051px){
  .header .header-right .finance-brands{
    transform:translate(-5cm,5mm);
    width:calc(100% + 5cm);
  }
  .header .header-right .finance-brands img{
    width:90%;
    max-width:945px;
    max-height:130.5px;
    margin-left:auto;
  }
}

/* V23: additional 10% reduction and 5cm shift left; retain V22 vertical position. */
@media (min-width:1051px) {
  .header .header-right .finance-brands {
    transform: translate(-10cm, 5mm);
    width: calc(100% + 10cm);
  }
  .header .header-right .finance-brands img {
    width: 81%;
    max-width: 850.5px;
    max-height: 117.45px;
    margin-left: auto;
  }
}

/* V24: 20% smaller than V23, another 5cm left; vertical position unchanged. */
@media (min-width:1051px) {
  .header .header-right .finance-brands {
    transform: translate(-15cm, 5mm);
    width: calc(100% + 15cm);
  }
  .header .header-right .finance-brands img {
    width: 64.8%;
    max-width: 680.4px;
    max-height: 93.96px;
    margin-left: auto;
  }
}

/* V25: shift finance logos another 5cm left on desktop; preserve size and height. */
@media (min-width:1051px) {
  .header .header-right .finance-brands {
    transform: translate(-20cm, 5mm);
    width: calc(100% + 20cm);
  }
}

/* V26: move lender logo strip 5cm further left on desktop, without resizing. */
@media (min-width:1051px) {
  .header .header-right .finance-brands {
    transform: translate(-25cm, 5mm);
    width: calc(100% + 25cm);
  }
}

/* V27: 10% smaller finance strip, 3mm lower than V26; horizontal position unchanged. */
@media (min-width:1051px) {
  .header .header-right .finance-brands {
    transform: translate(-25cm, 8mm);
  }
  .header .header-right .finance-brands img {
    width: 58.32%;
    max-width: 612.36px;
    max-height: 84.564px;
  }
}

/* V28: shift finance logos another 5cm left; retain V27 dimensions and vertical offset. */
@media (min-width:1051px) {
  .header .header-right .finance-brands {
    transform: translate(-30cm, 8mm);
    width: calc(100% + 30cm);
  }
}

/* V29: shift lender strip 3cm right from V28, retaining its dimensions and vertical offset. */
@media (min-width:1051px) {
  .header .header-right .finance-brands {
    transform: translate(-27cm, 8mm);
    width: calc(100% + 27cm);
  }
}

/* V30: supplied CM Motor Group dealership photo as homepage hero background. */
.hero{background:#0a1015;isolation:isolate}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(5,8,12,.88) 0%,rgba(5,8,12,.70) 34%,rgba(5,8,12,.28) 68%,rgba(5,8,12,.12) 100%),url('sunset-cars-optimized-q82.webp') center center/cover no-repeat}
@media(max-width:760px){.hero::before{background:linear-gradient(90deg,rgba(5,8,12,.86),rgba(5,8,12,.45)),url('sunset-cars-optimized-q82.webp') 48% center/cover no-repeat}}

/* Why CM Motor Group — concise premium benefits */
.why-cm .why-intro{max-width:760px;font-size:16px;margin:-22px 0 36px;line-height:1.75}
.why-cm .why-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.why-cm .why-benefits article{background:rgba(255,255,255,.025);border:1px solid #51432e;border-top:3px solid #c5a46a;padding:24px;min-width:0}
.why-cm .why-benefits h3{margin:12px 0 8px;font-size:21px}
.why-cm .why-benefits p{margin:0;font-size:14px}
.why-cm .why-symbol{display:inline-flex;align-items:center;justify-content:center;border:1px solid #c5a46a;border-radius:50%;width:33px;height:33px;color:#e5c27d!important;font:700 19px Arial,sans-serif}
.why-cm .why-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;margin-top:32px;padding-top:26px;border-top:1px solid #51432e}
.why-cm .why-footer strong{letter-spacing:1.5px;font-size:13px;color:#e5c27d}
@media(max-width:980px){.why-cm .why-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.why-cm .why-benefits{grid-template-columns:1fr}.why-cm .why-intro{margin-top:-10px}.why-cm .why-footer .button{width:100%}}

/* Customer testimonials: invitation until authentic reviews are provided. */
.testimonials-section{background:#11100f;scroll-margin-top:150px}
.testimonials-head{max-width:790px}
.testimonials-head p{font-size:16px;max-width:710px}
.testimonial-invite{display:flex;gap:32px;align-items:flex-start;margin-top:36px;padding:34px 38px;border:1px solid #594a34;border-top:3px solid #c5a46a;background:linear-gradient(125deg,#211e19,#171615);max-width:980px}
.testimonial-quote-mark{font:100px Georgia,serif;line-height:.9;color:#c5a46a;opacity:.85}
.testimonial-invite h3{font-size:25px;letter-spacing:1px;margin:5px 0 12px;color:#f4f0e8}
.testimonial-invite p{max-width:640px;margin-bottom:23px}
.testimonial-note{font-size:12px;margin-top:20px;color:#b7b3ad}
@media(max-width:760px){.testimonials-section{scroll-margin-top:190px}.testimonial-invite{padding:25px 20px;gap:12px}.testimonial-quote-mark{font-size:58px}.testimonial-invite h3{font-size:21px}}

.cm-review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:22px;margin-top:30px}.cm-review-card{border:1px solid #79603c;background:#201c17;padding:20px;border-radius:12px}.cm-review-card img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}.cm-review-card blockquote{font-size:1.1rem;line-height:1.6;margin:18px 0}.cm-review-card strong{color:#d7b977}.cm-review-card p{color:#ccc}

/* Customer delivery feature preview */
.jooste-feature{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;align-items:center;margin:28px 0 34px;padding:18px;border:1px solid rgba(215,170,74,.4);border-radius:18px;background:linear-gradient(135deg,#171717,#252018)}
.jooste-feature img{width:100%;height:100%;max-height:420px;object-fit:cover;border-radius:12px}
.jooste-feature-copy{padding:12px}.jooste-feature-copy h3{font-size:clamp(22px,3vw,35px);margin:12px 0;color:#f4e1ae}.jooste-feature-copy p{line-height:1.7}.jooste-feature-copy strong{display:block;margin-top:20px;color:#dcb66c}.jooste-approval{display:block;margin-top:18px;color:#b9b9b9;font-size:12px}
@media(max-width:760px){.jooste-feature{grid-template-columns:1fr;gap:10px}.jooste-feature img{max-height:340px}.jooste-feature-copy{padding:10px}}

.photo-manager{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:10px;margin:12px 0}.photo-item{border:1px solid #aa8b44;padding:6px;display:grid;gap:4px}.photo-item img{width:100%;height:85px;object-fit:cover}.photo-item button{padding:5px;font-size:12px}.cm-gallery-main{width:100%;max-height:450px;object-fit:contain;background:#111}.cm-gallery-thumbs{display:flex;gap:8px;overflow-x:auto;margin:12px 0}.cm-gallery-thumbs button{padding:2px;flex-shrink:0;border:2px solid transparent;background:transparent;cursor:pointer}.cm-gallery-thumbs button.active{border-color:#c8a35b}.cm-gallery-thumbs img{width:78px;height:58px;object-fit:cover}

.photo-manager{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:10px;margin:12px 0}.photo-item{border:1px solid #aa8b44;padding:6px;display:grid;gap:4px}.photo-item img{width:100%;height:85px;object-fit:cover}.photo-item button{padding:5px;font-size:12px}.cm-gallery-main{width:100%;max-height:450px;object-fit:contain;background:#111}.cm-gallery-thumbs{display:flex;gap:8px;overflow-x:auto;margin:12px 0}.cm-gallery-thumbs button{padding:2px;flex-shrink:0;border:2px solid transparent;background:transparent;cursor:pointer}.cm-gallery-thumbs button.active{border-color:#c8a35b}.cm-gallery-thumbs img{width:78px;height:58px;object-fit:cover}

.vehicle-description{white-space:pre-line;line-height:1.7}

/* CM MOTOR GROUP: premium gold vehicle listing treatment (replaces alarming red).
   Scoped to inventory and vehicle details, preserving the rest of the website. */
#inventory .kicker,#inventory .counter,#inventory .price-tag{color:#d7b56d}
#inventory .counter{border-color:#80683c;background:#221e17}
#inventory .vehicle{border-color:#625338;background:#171b1e}
#inventory .vehicle-actions button,#inventory .vehicle-actions a{border:1px solid #b9954f;color:#f1d79b;background:#272218}
#inventory .vehicle-actions button:hover,#inventory .vehicle-actions a:hover{background:#b9954f;color:#111}
#inventory .filters input:focus,#inventory .filters select:focus{outline:2px solid #c6a35d;outline-offset:2px}
#inventory .empty-icon{color:#d7b56d}
#inventory .button.primary{background:#c6a35d;border-color:#c6a35d;color:#111}
#details{border-color:#c6a35d}
#details .dialog-close,#details .price-tag{color:#d7b56d}
#details .cm-gallery-thumbs button.active{border-color:#d7b56d}
#details .button,#details .vehicle-actions a,#details .vehicle-actions button{border-color:#b9954f;color:#f1d79b}

/* Explicit gold for price inside opened vehicle modal; root --gold is red in older theme. */
#details #detailContent .detail-price-gold{color:#d7b56d!important;font-weight:800}

/* Finance CTA beside vehicle enquiry in detail modal */
#detailContent .vehicle-finance-cta{display:inline-flex;margin:10px 0 0 10px;border:1px solid #d7b56d;color:#d7b56d;background:#181818;align-items:center;justify-content:center}
#detailContent .vehicle-finance-cta:hover{background:#d7b56d;color:#101010}
@media(max-width:600px){#detailContent .vehicle-finance-cta{margin-left:0;width:100%}}

/* Match the two actions in the vehicle details modal: charcoal and gold, no red. */
#details #detailContent a.button.primary,
#details #detailContent a.button.vehicle-finance-cta {
  display:inline-flex;
  background:#181818;
  border:1px solid #d7b56d;
  color:#d7b56d;
  align-items:center;
  justify-content:center;
  margin:10px 0 0 0;
}
#details #detailContent a.button.primary:hover,
#details #detailContent a.button.vehicle-finance-cta:hover {
  background:#d7b56d;
  border-color:#d7b56d;
  color:#101010;
}
#details #detailContent a.button.vehicle-finance-cta {margin-left:10px;}
@media(max-width:600px){
  #details #detailContent a.button.primary,
  #details #detailContent a.button.vehicle-finance-cta {width:100%;margin-left:0;}
}

.trade-status{padding:12px 14px;border:1px solid #b99a58;color:#f1dcae;margin-top:12px}.trade-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}


/* CM MOTOR GROUP - Premium Vehicle Details */

#details {
  width: min(96vw, 1050px);
  max-width: 1050px;
  max-height: 92vh;
  overflow-y: auto;
  background: #171717;
  color: #f7f3eb;
  border: 1px solid #c5a46a;
  border-radius: 10px;
  padding: 28px;
}

#detailContent .cm-gallery {
  margin: 20px 0 24px;
}

#detailContent .cm-gallery-main {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #101010;
  border-radius: 8px;
}

#detailContent .cm-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0;
}

#detailContent .cm-gallery-thumbs button {
  flex: 0 0 90px;
  padding: 0;
  border: 1px solid #494038;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

#detailContent .cm-gallery-thumbs img {
  display: block;
  width: 90px;
  height: 65px;
  object-fit: cover;
}

#detailContent .cm-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 26px;
}

#detailContent .cm-spec {
  background: #242424;
  border: 1px solid #514535;
  border-radius: 8px;
  padding: 15px;
}

#detailContent .cm-spec-label {
  display: block;
  color: #c5a46a;
  font-size: 12px;
  margin-bottom: 7px;
}

#detailContent .cm-spec-value {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

#detailContent .cm-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

#detailContent .cm-highlights span {
  display: inline-block;
  padding: 10px 14px;
  background: #28251f;
  color: #e5c789;
  border: 1px solid #826a3d;
  border-radius: 6px;
}

#detailContent .cm-description {
  white-space: pre-line;
  line-height: 1.7;
  color: #e1e1e1;
  margin: 16px 0 24px;
}

@media (max-width: 650px) {
  #details {
    width: 96vw;
    padding: 16px;
  }

  #detailContent .cm-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* CM MOTOR GROUP - Showroom photo fix */
.vehicle-photo {
  object-fit: contain !important;
  background: #1c1c1c;
}
/* CM MOTOR GROUP - Four vehicles per row on desktop */
@media (min-width: 1100px) {
  .vehicle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}


/* CM MOTOR GROUP - Homepage slide-in animation */

.hero-content .cm-slide {
  display: inline-block;
  opacity: 0;
  transform: translateX(-90px);
  animation: cmSlideIn 1s ease-out forwards;
}

.hero-content .cm-slide-1 {
  animation-delay: 0.2s;
}

.hero-content .cm-slide-2 {
  animation-delay: 0.8s;
}

.hero-content .cm-slide-3 {
  animation-delay: 1.4s;
}

.hero-content .cm-slide-4 {
  animation-delay: 2s;
}

@keyframes cmSlideIn {
  from {
    opacity: 0;
    transform: translateX(-90px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Accessibility: reduce motion when requested */
@media (prefers-reduced-motion: reduce) {
  .hero-content .cm-slide {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* CM MOTOR GROUP — 3D DELIVERY GALLERY */
.cm-delivery-section {
  background: #101010;
  color: #fff;
  padding: 65px 20px 80px;
  text-align: center;
  overflow: hidden;
}

.cm-delivery-heading {
  margin: 0 auto 45px;
  max-width: 750px;
}

.cm-delivery-kicker {
  display: block;
  color: #c5a46a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.cm-delivery-heading h2 {
  font-size: clamp(25px, 4vw, 42px);
  margin: 0 0 12px;
}

.cm-delivery-heading p {
  color: #c9c9c9;
  font-size: 15px;
}

.cm-delivery-gallery {
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
}

.cm-delivery-track {
  position: relative;
  width: 260px;
  height: 260px;
  transform-style: preserve-3d;
  animation: cmDeliverySpin 28s linear infinite;
}

.cm-delivery-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #c5a46a;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0,0,0,.55);
  backface-visibility: visible;
}


.cm-delivery-track img {
  transform: rotateY(var(--photo-angle, 0deg))
             translateZ(var(--reel-radius, 320px));
}


@keyframes cmDeliverySpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.cm-delivery-gallery:hover .cm-delivery-track {
  animation-play-state: paused;
}

@media (max-width: 600px) {
  .cm-delivery-gallery {
    height: 290px;
    perspective: 900px;
  }
  .cm-delivery-track {
    width: 170px;
    height: 210px;
 
.cm-delivery-track img {
  transform: rotateY(var(--photo-angle, 0deg))
             translateZ(var(--mobile-reel-radius, 135px));
}


@media (prefers-reduced-motion: reduce) {
  .cm-delivery-track {
    animation: none;
  }
}



/* CM Motor Group — mobile homepage background */
@media (max-width: 760px) {
 
.hero {
  background-image:
    linear-gradient(
      90deg,
      rgba(8, 8, 8, 0.78),
      rgba(8, 8, 8, 0.35)
    ),
    url("sunset-cars-optimized-q82.webp") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

}

/* Mobile hero: remove the old image overlay */
@media (max-width: 760px) {
  .hero::before {
    background-image: none !important;
  }
}



