/* Essendon Car Key Programming: site styles. Author: Yechan Lee
   Layout: navy header band + gold price "ticket" motif; single column on phones,
   two-column splits from 760px. Condensed display type echoes the brand's posters. */
:root {
  --bg: #f5f6f9;
  --surface: #ffffff;
  --tint: #eceff5;
  --ink: #0f1a2e;
  --muted: #4b5670;
  --line: #d6dbe6;
  --navy: #13254a;
  --navy-ink: #f4f1e8;
  --gold: #c99a2e;
  --gold-text: #8a6512;
  --gold-ink: #1a1405;
  --warn: #b4472f;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2.3rem, 7vw, 3.6rem);
  --radius: 6px;
  --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1222; --surface: #111c33; --tint: #0f1930; --ink: #e7ebf3; --muted: #a2acc1;
    --line: #26324f; --navy: #0d1a36; --navy-ink: #f4f1e8; --gold: #e0b44a; --gold-text: #e0b44a;
    --gold-ink: #1a1405; --warn: #e5896c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1222; --surface: #111c33; --tint: #0f1930; --ink: #e7ebf3; --muted: #a2acc1;
  --line: #26324f; --navy: #0d1a36; --navy-ink: #f4f1e8; --gold: #e0b44a; --gold-text: #e0b44a;
  --gold-ink: #1a1405; --warn: #e5896c; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 760px) { body { padding-bottom: 0; } }
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: var(--step-2); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; max-width: 65ch; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: var(--gutter); }
.small { font-size: .9rem; color: var(--muted); }
.sel { user-select: all; overflow-wrap: anywhere; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
#quote { scroll-margin-top: 110px; }

/* header */
.site-head { background: var(--navy); color: var(--navy-ink); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.mark {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--gold);
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .8rem;
  color: var(--gold); letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.b1 { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; }
.b2 { font-family: var(--display); font-weight: 600; font-size: .85rem; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.head-call {
  flex: none; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--gold); color: var(--gold-ink); text-decoration: none; padding: 8px 12px; border-radius: var(--radius);
  display: none;
}
@media (min-width: 640px) { .head-call { display: inline-block; } }
.nav { display: flex; gap: 4px 18px; overflow-x: auto; padding-block: 0 10px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .05em; color: var(--navy-ink); opacity: .8; padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--gold); }
.nav a.nav-quote { color: var(--gold); opacity: 1; }

/* hero */
.hero { background: var(--navy); color: var(--navy-ink); border-top: 1px solid rgba(255,255,255,.08); }
.hero-inner { padding-block: 28px 32px; }
.eyebrow { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: .6em; font-size: .95rem; }
.hero h1 { font-size: var(--step-3); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; max-width: 18ch; }
.lede { font-size: 1.15rem; max-width: 56ch; opacity: .92; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before {
  content: ""; flex: none; width: 6px; height: 11px; margin: -3px 2px 0 3px;
  border: solid var(--gold); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* buttons */
.btn {
  display: inline-block; text-decoration: none; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: 12px 18px; border-radius: var(--radius); font-size: 1.1rem; text-align: center;
}
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-line { border: 2px solid var(--gold); color: var(--navy-ink); padding: 10px 16px; }

/* blocks */
.block { padding-block: 40px; }
.tint { background: var(--tint); border-block: 1px solid var(--line); }
.intro { color: var(--muted); }
.split, .two-col { display: grid; gap: 28px; }
@media (min-width: 760px) {
  .split { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .two-col { grid-template-columns: 1fr 1fr; align-items: start; }
}
.split > *, .two-col > * { min-width: 0; }
.textlink { font-weight: 600; color: var(--gold-text); text-underline-offset: 3px; }

/* quote card: the price ticket */
.quote-card {
  background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--gold);
  border-radius: var(--radius); padding: 20px; font-variant-numeric: tabular-nums;
}
.qc-label { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; font-weight: 600; }
.qc-total { font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1; margin: 6px 0 12px; }
.qc-lines { margin: 0 0 12px; border-top: 1px dashed var(--line); }
.qc-lines div { display: flex; justify-content: space-between; padding-block: 6px; border-bottom: 1px dashed var(--line); }
.qc-lines dt, .qc-lines dd { margin: 0; }
.qc-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* spare now vs lost later */
.compare { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 1em; }
.cmp {
  background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--gold);
  border-radius: var(--radius); padding: 20px; min-width: 0; font-variant-numeric: tabular-nums;
}
.cmp.lost { border-top-color: var(--warn); }
.cmp-label { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.2rem; margin: 0; }
.cmp-sub { color: var(--muted); margin: 0 0 10px; }
.cmp-price { font-family: var(--display); font-weight: 800; font-size: 2.8rem; line-height: 1; margin: 0; }
.cmp-note { color: var(--muted); font-size: .92rem; margin: 4px 0 14px; }
.cmp ul { margin: 0; padding-left: 1.1em; }
.cmp li { margin-bottom: .45em; }
.cmp li::marker { color: var(--gold); }
.cmp.lost li::marker { color: var(--warn); }

/* why book */
.why { display: grid; gap: 20px 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.why > div { border-left: 3px solid var(--gold); padding-left: 14px; min-width: 0; }
.why h3 { margin-bottom: .25em; }
.why p { margin: 0; color: var(--muted); }

/* price table */
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; margin-bottom: 1em; }
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices th, .prices td { padding: 12px 16px; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.prices tr:last-child th, .prices tr:last-child td { border-bottom: 0; }
.prices th { font-weight: 600; }
.prices th span { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }
.prices td { text-align: right; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }

/* services */
.svc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.svc {
  display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; transition: border-color .15s; min-width: 0;
}
.svc:hover { border-color: var(--gold); }
.svc h3 { margin-bottom: .3em; }
.svc p { margin: 0; color: var(--muted); }
.svc p.svc-price {
  margin-top: auto; padding-top: 12px; color: var(--gold-text); font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; font-size: 1.02rem;
}

/* steps: a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 16px; counter-reset: s;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; position: relative; padding-left: 48px; min-width: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--gold); display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.1rem; border: 2px solid var(--gold);
}
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }

/* makes + areas */
.mk-grid { display: grid; gap: 20px; margin-bottom: 1em; }
.mk-group h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.chips, .area-list { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px; }
.area-list li, .chips a {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .95rem;
}
.chips a { text-decoration: none; transition: border-color .15s, background .15s; }
.chips a:hover { border-color: var(--gold); }
.area-list a { color: var(--gold-text); font-weight: 600; text-underline-offset: 3px; }
.regions { display: grid; gap: 18px 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 1em; }
.region { border-left: 3px solid var(--gold); padding-left: 14px; min-width: 0; }
.region h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25em; }
.region p { margin: 0; color: var(--muted); }
.region a { color: var(--gold-text); font-weight: 600; text-underline-offset: 3px; }
.notes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 1em; }
.models { display: grid; gap: 16px 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 1em; }
.mk-models { min-width: 0; border-top: 1px dashed var(--line); padding-top: 10px; }
.mk-models h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: .2em; font-size: 1.15rem; }
.mk-models h3 a { text-decoration: none; }
.mk-models h3 a:hover { color: var(--gold-text); }
.mk-models p { margin: 0; color: var(--muted); font-size: .95rem; }
.badge { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; background: var(--gold); color: var(--gold-ink); border-radius: 999px; padding: 2px 9px; }
.note { min-width: 0; }
.note p { margin: 0; color: var(--muted); }

/* lists */
.ticks { padding-left: 1.2em; margin: 0; }
.ticks li { margin-bottom: .6em; }
.ticks li::marker { color: var(--gold); }
.examples { margin: 0; }
.examples div { padding-block: 10px; border-bottom: 1px dashed var(--line); }
.examples dt { font-weight: 600; }
.examples dd { margin: 2px 0 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.examples strong { color: var(--ink); }

/* faq */
.faq { display: grid; gap: 8px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--gold-text); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.ans { padding: 0 16px 14px; color: var(--muted); }
.ans a { color: var(--gold-text); }

/* quote builder band */
.cta-band { background: var(--navy); color: var(--navy-ink); }
.cta-inner { display: grid; gap: 24px; }
@media (min-width: 860px) { .cta-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }
.cta-copy, .qform { min-width: 0; }
.cta-copy .small { color: var(--navy-ink); opacity: .75; }
.send-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.send-list li { display: flex; gap: 10px; align-items: baseline; }
.send-list li::before {
  content: ""; flex: none; width: 6px; height: 11px; margin: 0 4px 0 3px; transform: translateY(-2px) rotate(45deg);
  border: solid var(--gold); border-width: 0 2.5px 2.5px 0;
}
.qform {
  background: var(--surface); color: var(--ink); border-radius: var(--radius); border-top: 6px solid var(--gold);
  padding: 18px; display: grid; gap: 14px;
}
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select {
  font: inherit; font-size: 1rem; width: 100%; min-width: 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink);
}
.field input::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field select:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.qrow { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q-label { margin: 2px 0 -8px; font-family: var(--display); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.q-preview {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--body); font-size: .95rem; line-height: 1.5;
  background: var(--tint); border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 12px; color: var(--ink);
}
.q-check { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--radius); background: var(--tint); border-left: 4px solid var(--gold); }
.q-check p { margin: 0; display: flex; gap: 8px; align-items: baseline; font-size: .95rem; }
.q-check p::before { content: ""; flex: none; width: 6px; height: 11px; margin: 0 3px 0 2px; transform: translateY(-1px) rotate(45deg); border: solid var(--gold-text); border-width: 0 2.5px 2.5px 0; }
.q-check p.info::before { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--muted); transform: none; }
.q-check p.warn { color: var(--warn); }
.q-check p.warn::before { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--warn); transform: none; }
.qsend { display: flex; flex-wrap: wrap; gap: 10px; }
.qsend .btn { flex: 1 1 180px; }
.qform .btn-line { color: var(--ink); }
.qform .small { margin: 0; }

/* footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding-block: 32px 20px; font-size: .95rem; }
.foot-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot-grid > * { min-width: 0; }
.foot-grid p { margin: 0 0 .4em; color: var(--muted); }
.foot-name, .foot-h { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink) !important; }
.legal { margin-top: 20px; font-size: .82rem; color: var(--muted); }

/* sticky mobile action bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: 1.3fr 1fr 1fr;
  background: var(--navy); border-top: 2px solid var(--gold);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-bar a {
  text-align: center; padding: 14px 4px; text-decoration: none; color: var(--navy-ink);
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.mobile-bar a:first-child { background: var(--gold); color: var(--gold-ink); }
@media (min-width: 760px) { .mobile-bar { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
