/* CTC Motors — site styles (implemented from design/project/CTC Motors Website.dc.html) */
:root {
  --paper: #f6f5f2;
  --ink: #141413;
  --amber: #F2A900;
  --amber-hover: #dc9a00;
  --white: #fff;
  --line: #e2e0da;
  --line-soft: #ecebe6;
  --muted: #5f5d57;
  --muted-2: #8a877f;
  --body: #3b3a36;
  --dark-line: #33332f;
  --dark-muted: #a8a59c;
  --dark-body: #cfccc3;
  --dark-2: #2b2b29;
  --dark-3: #45443f;
  --dark-field: #1d1d1c;
  --footer: #0b0b0a;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: Archivo, system-ui, sans-serif;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow--muted-dark { color: var(--dark-muted); }
.eyebrow--ink { color: var(--ink); }
.h2 {
  margin: 0; font-weight: 900; font-stretch: 88%;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 0.98; letter-spacing: -0.015em;
  text-transform: uppercase; text-wrap: balance;
}
.body-lg { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); max-width: 440px; }
.body-lg--dark { color: var(--dark-body); }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; min-height: 52px; padding: 0 24px;
  font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 0.06em;
  text-decoration: none; border: 0; cursor: pointer; background: transparent;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 13px; }
.btn--md { min-height: 48px; padding: 0 20px; font-size: 13px; }
.btn--lg { min-height: 56px; padding: 0 28px; letter-spacing: 0.08em; }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-hover); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--dark-2); color: var(--paper); }
.btn--ghost-light { border: 2px solid var(--paper); color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn--outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }

.btn-block {
  height: 56px; border: 0; width: 100%;
  font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; cursor: pointer;
}
.btn-block--dark { background: var(--ink); color: var(--paper); }
.btn-block--dark:hover { background: var(--dark-2); }
.btn-block--amber { background: var(--amber); color: var(--ink); }
.btn-block--amber:hover { background: var(--amber-hover); }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__tiles { display: grid; grid-template-columns: repeat(3, 30px); gap: 3px; }
.logo__tiles > span {
  height: 30px; border: 2.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.logo__tiles > .is-accent { background: var(--amber); }
.logo__word { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.3em; }

.logo--footer .logo__tiles { grid-template-columns: repeat(3, 34px); }
.logo--footer .logo__tiles > span { height: 34px; font-size: 21px; border-color: var(--paper); color: var(--paper); }
.logo--footer .logo__tiles > .is-accent { border-color: var(--amber); color: var(--ink); }
.logo--footer .logo__word { color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 245, 242, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.site-nav {
  display: flex; gap: 26px; flex-wrap: wrap; margin-left: auto;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--ink); overflow: hidden; }
.hero__photo { position: absolute; inset: 0; z-index: -2; }
.hero__photo.has-photo { background: url("../img/hero.jpg") center / cover no-repeat; }
.hero__shade {
  position: absolute; inset: 0 0 40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,20,19,0.94) 0%, rgba(20,20,19,0.72) 50%, rgba(20,20,19,0.2) 100%);
}
.hero__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) 24px clamp(72px, 9vw, 120px);
  display: flex; flex-direction: column; gap: 26px; color: var(--white);
}
.hero__kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--line-soft); border-left: 3px solid var(--amber); padding-left: 12px;
}
.hero__title {
  margin: 0; font-weight: 900; font-stretch: 88%;
  font-size: clamp(48px, 7.6vw, 112px); line-height: 0.94; letter-spacing: -0.02em;
  text-transform: uppercase; max-width: 980px; text-wrap: balance;
}
.hero__lede {
  margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5;
  color: var(--line-soft); max-width: 600px; text-wrap: pretty;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--amber); color: var(--ink); overflow: hidden;
  border-bottom: 2px solid var(--ink); padding: 16px 0;
}
.marquee__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: ctc-marquee 40s linear infinite;
}
.marquee__word { font-weight: 900; font-stretch: 88%; font-size: 28px; letter-spacing: 0.02em; }
.marquee__dot { width: 12px; height: 12px; background: var(--ink); flex-shrink: 0; }
@keyframes ctc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Sections & grids ---------- */
.section {
  max-width: var(--max); width: 100%; margin: 0 auto; padding: 80px 24px;
  display: flex; flex-direction: column; gap: 40px;
}
.section--training { padding: 96px 24px 48px; }
.section--dash { padding: 48px 24px; }
.section--cta { padding: 80px 24px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.section--training .section-head { max-width: 760px; }
.section-head--split {
  max-width: none; flex-direction: row; justify-content: space-between;
  align-items: flex-end; gap: 20px; flex-wrap: wrap;
}

.grid { display: grid; gap: 20px; }
.grid--320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.grid--230 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }

/* ---------- Training cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__num { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.tag { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; padding: 5px 9px; }
.tag--dark { background: var(--ink); color: var(--paper); }
.tag--amber { background: var(--amber); color: var(--ink); }
.tag--outline { border: 1.5px solid var(--ink); padding: 4px 8px; }
.card__title { margin: 0; font-weight: 800; font-size: 28px; line-height: 1.1; }
.card__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.card__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.card__list li { padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.card__link {
  margin-top: auto; font-family: var(--mono); font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; color: var(--ink);
}

/* ---------- Dashboard ---------- */
.dash {
  background: var(--ink); color: var(--paper); padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 32px;
}
.dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.dash__titles { display: flex; flex-direction: column; gap: 10px; }
.dash__title {
  margin: 0; font-weight: 900; font-stretch: 88%;
  font-size: clamp(30px, 3.6vw, 48px); line-height: 1; text-transform: uppercase;
}
.dash__badge {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink); background: var(--amber); padding: 6px 10px;
}
.panel { border: 1px solid var(--dark-line); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.panel--sources { gap: 16px; }
.panel--funnel { gap: 12px; }
.panel__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--dark-muted); }
.panel__label--split { display: flex; justify-content: space-between; }
.bars { height: 150px; display: flex; align-items: flex-end; gap: 8px; }
.bars > span { flex: 1; background: var(--dark-3); }
.bars > span.is-accent { background: var(--amber); }
.sources { display: flex; flex-direction: column; gap: 16px; }
.source { display: flex; flex-direction: column; gap: 6px; }
.source__row { display: flex; justify-content: space-between; font-size: 14px; }
.source__pct { font-family: var(--mono); }
.source__track { height: 8px; background: var(--dark-2); }
.source__fill { height: 8px; background: var(--paper); }
.source__fill.is-accent { background: var(--amber); }
.funnel { display: flex; flex-direction: column; gap: 12px; }
.funnel__row { display: flex; align-items: center; gap: 12px; }
.funnel__bar {
  height: 34px; background: var(--paper); display: flex; align-items: center; padding: 0 10px;
  font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--ink);
}
.funnel__bar.is-accent { background: var(--amber); }
.funnel__label { font-size: 14px; color: var(--dark-body); }

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  border-top: 2px solid var(--ink);
}
.step {
  padding: 24px 20px 24px 0; display: flex; flex-direction: column; gap: 14px;
  border-bottom: 1px solid var(--line);
}
.step__n { font-weight: 900; font-stretch: 88%; font-size: 48px; line-height: 1; color: var(--ink); }
.step__n.is-accent { color: var(--amber); }
.step__title { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; }
.step__text { font-size: 15px; line-height: 1.5; color: var(--body); text-wrap: pretty; }

/* ---------- Enquiry builder ---------- */
.enquire { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.enquire__inner {
  max-width: var(--max); margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 48px; align-items: start;
}
.enquire__intro { display: flex; flex-direction: column; gap: 14px; }
.enq-form { display: flex; flex-direction: column; gap: 16px; }
.enq-form__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }

.field {
  display: flex; flex-direction: column; gap: 7px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
}
.field select, .field input, .field textarea {
  border-radius: 0; font-family: var(--sans); font-size: 16px; letter-spacing: 0;
}
.field select {
  height: 52px; border: 1.5px solid var(--ink); padding: 0 12px;
  font-weight: 500; color: var(--ink); background: var(--paper);
}
.field--dark input, .field--dark textarea {
  border: 1.5px solid var(--dark-3); background: var(--dark-field); color: var(--paper); padding: 0 14px;
}
.field--dark input { height: 52px; }
.field--dark textarea { padding: 12px 14px; resize: vertical; }
.field--dark input:focus, .field--dark textarea:focus { border-color: var(--amber); outline: none; }

.form-error { font-size: 14px; }
.form-error--light { color: #b4232a; }
.form-error--dark { color: #ff8a80; }
.form-note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.form-note--dark { letter-spacing: 0.08em; color: var(--dark-muted); }

.enq-done { border: 2px solid var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.enq-done__title { font-weight: 800; font-size: 26px; }
.enq-done__summary { font-size: 16px; line-height: 1.5; color: var(--body); }
.enq-done__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--amber); padding: clamp(32px, 5vw, 72px);
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cta-band__text { display: flex; flex-direction: column; gap: 12px; }
.cta-band__title {
  margin: 0; font-weight: 900; font-stretch: 88%;
  font-size: clamp(40px, 5.6vw, 80px); line-height: 0.95; text-transform: uppercase; color: var(--ink);
}

/* ---------- Modules ---------- */
.module {
  background: var(--white); border: 1px solid var(--line); padding: 26px;
  display: flex; flex-direction: column; gap: 14px; min-height: 260px;
  transition: border-color 0.15s;
}
.module:hover { border-color: var(--ink); }
.module__n { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--muted-2); }
.module__title { margin: 0; font-weight: 800; font-size: 22px; line-height: 1.15; }
.module__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); text-wrap: pretty; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact__inner {
  max-width: var(--max); margin: 0 auto; padding: 88px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px;
}
.contact__intro { display: flex; flex-direction: column; gap: 28px; }
.contact__head { display: flex; flex-direction: column; gap: 14px; }
.contact__links { display: flex; flex-direction: column; border-top: 1px solid var(--dark-line); }
.contact__links a {
  display: flex; justify-content: space-between; padding: 18px 0;
  border-bottom: 1px solid var(--dark-line); color: var(--paper);
  text-decoration: none; font-size: 18px; font-weight: 700;
}
.contact__links a:hover { color: var(--amber); }
.contact__details {
  display: flex; flex-direction: column; gap: 6px; font-style: normal;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--dark-body);
}
.c-form { display: flex; flex-direction: column; gap: 14px; }
.c-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; line-height: 1.5; color: var(--dark-body); cursor: pointer;
}
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--amber); flex-shrink: 0; }
.consent a { color: var(--paper); }
.c-done { border: 2px solid var(--amber); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.c-done__title { font-weight: 800; font-size: 28px; }
.c-done__text { font-size: 16px; line-height: 1.5; color: var(--dark-body); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--dark-body); border-top: 1px solid var(--dark-line); }
.site-footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 56px 24px 28px;
  display: flex; flex-direction: column; gap: 44px;
}
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 36px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__tagline { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer__heading { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted-2); }
.site-footer__col a { color: var(--dark-body); text-decoration: none; }
.site-footer__col a:hover { color: var(--amber); }
.site-footer__legal {
  border-top: 1px solid var(--dark-line); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; line-height: 1.6; color: var(--dark-muted);
}
