/* 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;
  --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; 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; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
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 { 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; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* 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); }

/* hero */
.hero { background: var(--navy); color: var(--navy-ink); border-top: 1px solid rgba(255,255,255,.08); }
.hero-inner { padding-block: 28px 36px; }
.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; }

/* 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; }

/* 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: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; transition: border-color .15s;
}
.svc:hover { border-color: var(--gold); }
.svc h3 { margin-bottom: .3em; }
.svc p { margin: 0; color: var(--muted); }

/* 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); }

/* jobs */
.jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.jobs li { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; min-width: 0; }
.jobs h3 { font-size: 1.15rem; margin-bottom: .2em; }
.jobs p { margin: 0; color: var(--muted); }

/* makes */
.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; }
.chips li, .area-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .95rem;
}
.notes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 1em; }
.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); }

/* cta */
.cta-band { background: var(--navy); color: var(--navy-ink); }
.cta-inner { display: grid; gap: 20px; }
@media (min-width: 760px) { .cta-inner { grid-template-columns: 1.5fr 1fr; align-items: center; } }
.cta-copy, .cta-actions { min-width: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta-actions .small { color: var(--navy-ink); opacity: .75; flex-basis: 100%; margin: 0; }
.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;
}
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-line { border: 2px solid var(--gold); color: var(--navy-ink); }

/* 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: 1fr 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) { * { transition: none !important; } }
