/* ============================================================
   CHRIS THOMSEN MOTORS — demo build by Nimblesite
   Playbook fingerprint: THEIR brand colours (navy/yellow/orange
   from the recovered CTM logo); Cabinet Grotesk + Satoshi;
   solid navy hero, Car of the Week, stock grid, sharp 6px
   corners, hard offset shadows; big-bold-trade voice.
   ============================================================ */

:root {
  --navy:      #14264f;
  --navy-deep: #0c1834;
  --gold:      #f8bb17;
  --orange:    #e8542f;
  --paper:     #f7f8fa;
  --ink:       #131c30;
  --mut:       #4b5670;
  --line:      #dbe0ea;
  --disp: "Cabinet Grotesk", system-ui, sans-serif;
  --sans: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 48px);
  --r: 6px;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 1.08rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--navy-deep); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.page { max-width: 1120px; margin-inline: auto; padding-inline: var(--pad); }

.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--disp); font-weight: 700; font-size: 1.02rem; line-height: 1; padding: .95rem 1.5rem; border-radius: var(--r); background: var(--gold); color: var(--navy-deep); box-shadow: 4px 4px 0 rgba(12,24,52,.9); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(12,24,52,.9); }
.btn.dark { background: var(--navy); color: #fff; box-shadow: 4px 4px 0 rgba(248,187,23,.9); }
.btn.line { background: transparent; color: inherit; border: 2px solid currentColor; box-shadow: none; }
.btn.line:hover { transform: none; background: rgba(255,255,255,.08); }

/* top bar + mast */
.util { background: var(--navy-deep); color: #c8d2e8; font-size: .92rem; }
.util .page { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; flex-wrap: wrap; }
.util b { color: var(--gold); }
.util a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mast { background: var(--navy); border-bottom: 4px solid var(--gold); position: sticky; top: 0; z-index: 50; }
.mast .page { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; padding-block: .6rem; }
.mast .logo img { height: 52px; width: auto; }
.mast nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 1.8rem); font-family: var(--disp); font-weight: 700; font-size: 1rem; color: #fff; }
.mast nav a:not(.btn) { padding: .3rem 0; border-bottom: 3px solid transparent; }
.mast nav a:not(.btn):hover, .mast nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.mast .btn { padding: .7rem 1.1rem; font-size: .95rem; }
@media (max-width: 800px) { .mast nav a:not(.btn) { display: none; } }

/* navy hero */
.hero { background: var(--navy); color: #fff; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; right: -12%; top: -40%; width: 55%; height: 180%; background: var(--navy-deep); transform: rotate(14deg); }
.hero .page { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.8rem, 7vw, 5.5rem); }
@media (max-width: 880px) { .hero .page { grid-template-columns: 1fr; } }
.hero .kicker { display: inline-block; font-family: var(--disp); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.hero h1 { font-family: var(--disp); font-weight: 800; font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.3rem); line-height: .98; letter-spacing: -.015em; margin-top: .8rem; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: #c8d2e8; max-width: 46ch; margin-top: 1.2rem; font-size: 1.12rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }

/* car of the week card */
.cotw { background: #fff; color: var(--ink); border-radius: var(--r); border: 2px solid var(--navy-deep); box-shadow: 8px 8px 0 rgba(248,187,23,.95); overflow: hidden; }
.cotw .tag { display: flex; align-items: center; justify-content: space-between; background: var(--orange); color: #fff; font-family: var(--disp); font-weight: 700; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; padding: .55rem 1.1rem; }
.cotw .ph { aspect-ratio: 16/9; background: repeating-linear-gradient(-45deg, #e8ecf3 0 14px, #f2f5f9 14px 28px); display: grid; place-items: center; color: var(--mut); }
.cotw .ph svg { width: 44%; height: auto; opacity: .55; }
.cotw .body { padding: 1.1rem 1.2rem 1.3rem; }
.cotw .body h2 { font-family: var(--disp); font-weight: 800; font-size: 1.35rem; }
.cotw .body p { color: var(--mut); font-size: 1rem; margin-top: .3rem; }
.cotw .price { font-family: var(--disp); font-weight: 800; font-size: 1.5rem; color: var(--orange); margin-top: .6rem; }
.cotw .fineprint { font-size: .82rem; color: var(--mut); margin-top: .5rem; }

/* sections */
.sec { padding-block: clamp(2.8rem, 6vw, 4.8rem) 0; }
.sec:last-of-type { padding-bottom: clamp(2.8rem, 6vw, 4.8rem); }
.sec-kicker { font-family: var(--disp); font-weight: 700; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
h2.title { font-family: var(--disp); font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.7rem); line-height: 1.05; letter-spacing: -.01em; margin-top: .6rem; max-width: 24ch; }
.lead2 { color: var(--mut); max-width: 60ch; margin-top: 1rem; }

/* stock grid */
.stock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: clamp(1.6rem, 4vw, 2.4rem); }
@media (max-width: 900px) { .stock { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stock { grid-template-columns: 1fr; } }
.car { background: #fff; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.car:hover { border-color: var(--navy); box-shadow: 5px 5px 0 rgba(20,38,79,.15); }
.car .ph { aspect-ratio: 4/3; background: repeating-linear-gradient(-45deg, #e8ecf3 0 14px, #f2f5f9 14px 28px); display: grid; place-items: center; }
.car .ph svg { width: 52%; height: auto; opacity: .5; }
.car .body { padding: .95rem 1.05rem 1.1rem; }
.car h3 { font-family: var(--disp); font-weight: 700; font-size: 1.12rem; }
.car .meta { color: var(--mut); font-size: .92rem; margin-top: .2rem; }
.car .price { font-family: var(--disp); font-weight: 800; font-size: 1.25rem; color: var(--navy); margin-top: .5rem; }
.stock-note { margin-top: 1.2rem; color: var(--mut); font-size: .95rem; max-width: 70ch; }

/* split feature bands */
.band { margin-top: clamp(2.8rem, 6vw, 4.8rem); background: var(--navy); color: #fff; }
.band.gold { background: var(--gold); color: var(--navy-deep); }
.band .page { display: grid; grid-template-columns: 1.4fr auto; gap: 1.5rem; align-items: center; padding-block: clamp(2.2rem, 5vw, 3.4rem); }
@media (max-width: 760px) { .band .page { grid-template-columns: 1fr; } }
.band h2 { font-family: var(--disp); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 2vw, 2.2rem); line-height: 1.08; max-width: 26ch; }
.band p { margin-top: .5rem; opacity: .85; max-width: 56ch; }

/* two-up info cards */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-top: clamp(1.6rem, 4vw, 2.4rem); }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }
.info { background: #fff; border: 2px solid var(--line); border-left: 6px solid var(--gold); border-radius: var(--r); padding: 1.5rem 1.6rem; }
.info.hot { border-left-color: var(--orange); }
.info h3 { font-family: var(--disp); font-weight: 800; font-size: 1.3rem; }
.info p { color: var(--mut); margin-top: .5rem; }
.info a { display: inline-block; margin-top: .8rem; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--gold); }

.prose { color: var(--mut); max-width: 62ch; }
.prose p + p { margin-top: 1rem; }
.prose b { color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: clamp(1.4rem, 3vw, 2.2rem); }
@media (max-width: 780px) { .two { grid-template-columns: 1fr; } }
.note { background: #fff; border: 2px dashed var(--line); border-radius: var(--r); padding: 1.2rem 1.4rem; color: var(--mut); font-size: .98rem; }

/* contact block */
.contact-card { background: #fff; border: 2px solid var(--navy); border-radius: var(--r); box-shadow: 6px 6px 0 rgba(248,187,23,.9); padding: 1.7rem 1.8rem; }
.contact-card h3 { font-family: var(--disp); font-weight: 800; font-size: 1.25rem; }
.contact-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-card dl div:last-child { border-bottom: 0; }
.contact-card dt { color: var(--mut); font-weight: 500; }
.contact-card dd { font-weight: 700; }
.contact-card .btn { width: 100%; justify-content: center; margin-top: 1.1rem; }

/* footer */
.foot { margin-top: clamp(2.8rem, 6vw, 4.8rem); background: var(--navy-deep); color: #c8d2e8; border-top: 4px solid var(--gold); }
.foot .page { padding-block: 2.2rem 1.6rem; }
.foot .row { display: flex; flex-wrap: wrap; gap: .6rem 2rem; align-items: center; justify-content: space-between; font-size: .98rem; }
.foot .wm { font-family: var(--disp); font-weight: 800; color: #fff; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }
.foot .credit { margin-top: 1.3rem; font-size: .85rem; opacity: .75; }
