/* Level 10 Dealer Performance — site styles
   Palette is taken from the supplied logo. Edit tokens here, not in pages. */
:root {
  --cream: #f1f2e0;        /* logo field — header, hero and brand bands */
  --paper: #fbfbf6;        /* page background */
  --oxblood: #6e1229;      /* logo wordmark — primary accent, buttons */
  --oxblood-deep: #4c0c1c; /* hover / pressed */
  --charcoal: #24201f;     /* body text and dark bands */
  --charcoal-2: #322c2a;
  --muted: #5d5853;
  --rule: #d9d8c6;
  --gold: #edb522;         /* dial gold — used once, sparingly */
  --white: #ffffff;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --measure: 64ch;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--oxblood-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 0.35em; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--charcoal-2); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--charcoal); color: #ecebe2; }
.section--dark a { color: #f4d6dd; }
.section--dark .muted { color: #b9b4ab; }
.section + .section--plain { padding-top: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--charcoal); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Context line above headings — sentence case, used only where it tells the reader something */
.context { font-weight: 600; font-size: 0.95rem; color: var(--oxblood); margin-bottom: 1rem; }
.section--dark .context { color: #e7a9b8; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 0.95rem 1.4rem; border-radius: var(--radius);
  border: 2px solid var(--oxblood); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--oxblood); color: #fff; }
.btn--primary:hover { background: var(--oxblood-deep); border-color: var(--oxblood-deep); color: #fff; }
.btn--secondary { background: transparent; color: var(--oxblood); }
.btn--secondary:hover { background: var(--oxblood); color: #fff; }
.section--dark .btn--secondary { color: #fff; border-color: #fff; }
.section--dark .btn--secondary:hover { background: #fff; color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 2rem; }
.text-link { font-weight: 600; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 92px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 196px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.nav a { color: var(--charcoal); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--oxblood); border-bottom-color: var(--oxblood); }
.nav a[aria-current="page"] { color: var(--oxblood); border-bottom-color: var(--oxblood); }
.nav .btn { padding: 0.7rem 1rem; font-size: 0.92rem; border-bottom-width: 2px; color: #fff; }
.nav .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid var(--charcoal); border-radius: var(--radius); font: 600 0.95rem var(--sans); color: var(--charcoal); padding: 0.55rem 0.9rem; cursor: pointer; }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; display: none; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); }
  .nav .btn { margin-top: 1rem; }
  .brand img { width: 164px; }
}

/* Hero */
.hero { background: var(--cream); padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); border-bottom: 1px solid var(--rule); }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 58ch; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero--home h1 { max-width: 16ch; font-size: clamp(2.4rem, 4.8vw, 4rem); }
.hero__logo { width: 100%; max-width: 560px; justify-self: end; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } .hero__logo { display: none; } }
.hero__brandline { margin-top: 2.25rem; font-family: var(--serif); font-size: 1.25rem; color: var(--oxblood); }
.hero--page h1 { max-width: 20ch; font-size: clamp(2.3rem, 5vw, 3.9rem); }

/* Four-lever band — the logo's "People | Processes | AI | Performance" line, made structural */
.levers { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3rem; border-top: 1px solid #4a4341; }
.lever { padding: 2rem 1.75rem 0.5rem 1.75rem; border-left: 3px solid var(--oxblood); }
.lever:first-child { padding-left: 0; border-left: 0; }
.lever h3 { color: #fff; margin-bottom: 0.6rem; }
.lever p { color: #cfcac1; font-size: 0.98rem; margin: 0; }
.lever--seerm { background: var(--charcoal-2); padding-bottom: 1.75rem; }
.lever--seerm .tag { display: inline-block; font-size: 0.82rem; font-weight: 600; color: #f4d6dd; margin-bottom: 0.5rem; }
.levers__close { margin-top: 2.75rem; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: #fff; max-width: 34ch; line-height: 1.25; }
@media (max-width: 900px) {
  .levers { grid-template-columns: 1fr 1fr; }
  .lever, .lever:first-child { padding: 1.75rem 1.25rem 1.5rem; border-left: 3px solid var(--oxblood); }
}
@media (max-width: 560px) { .levers { grid-template-columns: 1fr; } }

/* Split layouts */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: 1fr; } }

/* Ruled list — used for benefits, questions, capabilities */
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ruled li { padding: 1.15rem 0 1.15rem 1.4rem; border-bottom: 1px solid var(--rule); position: relative; }
.ruled li::before { content: ""; position: absolute; left: 0; top: calc(1.15rem + 0.8em); width: 0.55rem; height: 2px; background: var(--oxblood); }
.ruled li strong { display: block; font-weight: 700; }
.ruled--large li { font-size: 1.12rem; }
.section--dark .ruled, .section--dark .ruled li { border-color: #4a4341; }

/* Numbered sequence — only for genuine sequences */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 2rem; }
.steps li { counter-increment: step; border-top: 3px solid var(--oxblood); padding-top: 1.1rem; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 2rem; color: var(--oxblood); display: block; line-height: 1; margin-bottom: 0.6rem; }
.steps p { font-size: 0.98rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Services index */
.service-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--rule); margin-top: 2.5rem; }
.service-index a { display: block; padding: 1.75rem 2rem 1.75rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--charcoal); }
.service-index a:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--rule); }
.service-index a:hover h3 { color: var(--oxblood); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.service-index h3 { margin-bottom: 0.35rem; }
.service-index p { margin: 0; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 760px) { .service-index { grid-template-columns: 1fr; } .service-index a:nth-child(even) { padding-left: 0; border-left: 0; } }

/* Service detail blocks */
.service { padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--rule); scroll-margin-top: 100px; }
.service:first-of-type { border-top: 0; }
.service h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.service .for { font-weight: 600; color: var(--oxblood); margin-bottom: 0.6rem; }

/* Credibility */
.career { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.career li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.career li span:first-child { color: var(--muted); font-size: 0.95rem; }
.section--dark .career li { border-color: #4a4341; }
@media (max-width: 520px) { .career li { grid-template-columns: 1fr; gap: 0.1rem; } }

.pullquote { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.25; margin: 0; max-width: 28ch; color: var(--oxblood); }
.section--dark .pullquote { color: #fff; }
.pullquote + .attrib { margin-top: 1rem; color: var(--muted); }
.section--dark .attrib, .section--dark .career li span:first-child { color: #b9b4ab; }

/* Offer tiers (Level 10 Advantage) */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 2.5rem; border: 1px solid var(--rule); background: var(--white); }
.tier { padding: 2rem 1.75rem; border-left: 1px solid var(--rule); }
.tier:first-child { border-left: 0; }
.tier .depth { display: flex; gap: 4px; margin-bottom: 1.25rem; }
.tier .depth span { width: 26px; height: 6px; background: var(--rule); }
.tier .depth span.on { background: var(--oxblood); }
.tier p { font-size: 0.98rem; }
.tier ul { margin: 0; padding-left: 1.1rem; font-size: 0.96rem; }
.tier li { margin-bottom: 0.35rem; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } .tier { border-left: 0; border-top: 1px solid var(--rule); } .tier:first-child { border-top: 0; } }

/* Training milestone ladder */
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; align-items: end; margin-top: 3rem; }
.rung { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--oxblood); padding: 1.25rem 1.1rem 1.4rem; }
.rung:nth-child(1) { min-height: 15rem; } .rung:nth-child(2) { min-height: 17.5rem; } .rung:nth-child(3) { min-height: 20rem; }
.rung:nth-child(4) { min-height: 22.5rem; } .rung:nth-child(5) { min-height: 25rem; border-top-color: var(--gold); background: var(--charcoal); color: #ecebe2; border-color: var(--charcoal); border-top-color: var(--gold); }
.rung .num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--oxblood); display: block; margin-bottom: 0.25rem; }
.rung:nth-child(5) .num { color: var(--gold); }
.rung h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.rung p { font-size: 0.93rem; line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .ladder { grid-template-columns: 1fr; } .rung { min-height: 0 !important; } }

.badge { display: inline-block; font-size: 0.85rem; font-weight: 600; padding: 0.3rem 0.7rem; border: 1.5px solid var(--oxblood); color: var(--oxblood); border-radius: 999px; margin-bottom: 1.25rem; }

/* 1–3–5 framework */
.framework { display: grid; grid-template-columns: 1fr 1.4fr 2fr; gap: 2.5rem; margin-top: 2.5rem; }
.framework h3 { display: flex; align-items: baseline; gap: 0.6rem; }
.framework h3 b { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; color: var(--oxblood); line-height: 1; }
.framework ul { margin: 0; padding: 0; list-style: none; }
.framework li { padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 860px) { .framework { grid-template-columns: 1fr; gap: 1.75rem; } }

.principles { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 3rem; max-width: 900px; }
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }
.principles li { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; padding-left: 1rem; border-left: 3px solid var(--oxblood); }

/* FAQ */
.faq { border-top: 1px solid var(--rule); margin-top: 2rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1rem; font-family: var(--serif); font-size: 1.8rem; color: var(--oxblood); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.25rem; }

/* CTA band */
.cta-band { background: var(--oxblood); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #f3dce2; }
.cta-band .btn--primary { background: #fff; color: var(--oxblood); border-color: #fff; }
.cta-band .btn--primary:hover { background: var(--cream); border-color: var(--cream); color: var(--oxblood-deep); }
.cta-band .btn--secondary { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-band .btn--secondary:hover { background: #fff; color: var(--oxblood); }
.cta-band a:not(.btn) { color: #fff; }

/* Forms */
.form-panel { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--oxblood); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label, fieldset legend { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.4rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--charcoal);
  padding: 0.8rem 0.85rem; border: 1.5px solid #bdbaa8; border-radius: var(--radius); background: #fff;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--oxblood); outline: 3px solid var(--gold); outline-offset: 1px; }
fieldset { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.choice { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.97rem; }
.choice input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--oxblood); flex: 0 0 auto; }
.consent { font-size: 0.9rem; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-panel .btn { margin-top: 0.5rem; }

/* Notes for unpublished/draft content (visible only where the brief requires it) */
.notice { background: #fff6dc; border: 1px solid #e8cf86; padding: 1rem 1.25rem; border-radius: var(--radius); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--charcoal); color: #cfcac1; padding: 4rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: #ecebe2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { background: var(--cream); padding: 0.9rem 1rem; display: inline-block; border-radius: var(--radius); margin-bottom: 1.25rem; }
.footer-logo img { width: 230px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #4a4341; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.86rem; color: #a9a39a; }
.footer-base p { margin: 0; max-width: 80ch; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Mobile sticky demo bar */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--cream); border-top: 1px solid var(--rule); padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom)); }
  .sticky-cta .btn { width: 100%; }
  body.has-sticky { padding-bottom: 4.6rem; }
}

.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }

.section--dark .framework li { border-color: #4a4341; }
.section--dark .framework h3 { color: #fff; }
.section--dark .framework h3 b { color: #e7a9b8; }

/* SeeRM capability grid */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3.5rem; margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.features > div { padding: 1.6rem 0 1.4rem; border-bottom: 1px solid var(--rule); }
.features h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 0.45rem; }
.features p { margin-bottom: 0.4rem; font-size: 1rem; }
.features__more h3 { color: var(--oxblood); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Legal pages */
.legal h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin-top: 2.5rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { padding-left: 1.2rem; max-width: var(--measure); }
.legal li { margin-bottom: 0.5rem; }
