/* ============================================================
   Tom's Auto of Oswego, Inc — concept rebuild
   Country-garage Americana · ink teal + wrench blue (logo-sampled)
   Display: Staatliches · Body: Work Sans (self-hosted)
   ============================================================ */

:root {
  --ink: #00202b;          /* logo card ground (PIL-sampled) */
  --ink-2: #04303f;        /* panel shade of ink */
  --blue: #069bfc;         /* logo wrench blue (PIL-sampled avg) */
  --blue-deep: #0479c8;
  --paper: #f6f4ec;        /* warm shop-paper ground */
  --card: #ffffff;
  --line: rgba(0, 32, 43, .14);
  --muted: #47616c;
  --ok: #2e9e5b;
  --amber: #c7871a;
  --shadow: 0 10px 30px rgba(0, 32, 43, .12);
  --r: 10px;
  --display: 'Staatliches', 'Arial Narrow', sans-serif;
  --body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-deep); }
ul { list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: .6rem 1rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .035em;
  line-height: 1.04;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: .05em; }

/* ---------- inspection-sticker kickers (signature, v1.2) ---------- */
.kicker {
  font-family: var(--body); font-weight: 700; font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue-deep);
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .9rem;
  background: #f4f1e4; border: 2px solid var(--ink); border-radius: 5px;
  padding: .42em .9em .42em .6em; position: relative;
  box-shadow: 0 2px 6px rgba(0, 32, 43, .22);
  transform: rotate(var(--tilt, -1.2deg));
}
.kicker::before {
  content: ""; align-self: stretch; width: 9px; flex: none; margin: -.42em 0 -.42em -.6em;
  background: var(--blue); border-right: 2px solid var(--ink);
  border-radius: 3px 0 0 3px;
}
.on-dark .kicker, .kicker.on-dark { color: var(--blue-deep); }
section:nth-of-type(even) .kicker { --tilt: 1deg; }
.js .kicker:not(.pressed) {
  opacity: 0; transform: rotate(var(--tilt, -1.2deg)) scale(1.12) translateY(-5px);
  box-shadow: 0 12px 26px rgba(0, 32, 43, .35);
}
.kicker.pressed {
  opacity: 1; transform: rotate(var(--tilt, -1.2deg)) scale(1);
  transition: opacity .32s ease-out, transform .38s cubic-bezier(.3, 1.25, .4, 1), box-shadow .38s ease-out;
}
/* self-contained contrast: the sticker owns its own foreground — band context must never
   recolor it (dark bands set p { color: pale } which made light-on-light stickers) */
.band.dark p.kicker, .band.blue p.kicker, .on-dark p.kicker, section p.kicker {
  color: var(--blue-deep);
}

/* wrench-bar underline under section headings (logo wrench motif, static) */
.rule { width: 84px; height: 5px; background: var(--blue); margin-top: .8rem; border-radius: 3px; position: relative; }
.rule::after { content: ""; position: absolute; right: -12px; top: -3px; width: 11px; height: 11px; border-radius: 50%; border: 3px solid var(--blue); background: transparent; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.top-strip {
  background: var(--ink-2); color: #cfe3ec; font-size: .82rem;
  padding: .35rem 0; text-align: center; letter-spacing: .04em;
}
.top-strip strong { color: #fff; }

header.site {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: #fff;
  border-bottom: 3px solid var(--blue);
}
.bar { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { flex: none; display: flex; align-items: center; }
.brand img { width: 250px; max-width: 56vw; height: auto; }

nav.main { margin-left: auto; }
nav.main ul { display: flex; gap: 1.4rem; }
nav.main a {
  color: #e8f1f6; text-decoration: none; font-weight: 600; font-size: .93rem;
  letter-spacing: .02em; padding: .4rem 0; border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a[aria-current="page"] { color: #fff; border-bottom-color: var(--blue); }

.call-btn {
  flex: none; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue); color: #fff !important; text-decoration: none;
  font-family: var(--display); font-size: 1.12rem; letter-spacing: .06em;
  padding: .5rem 1.05rem; border-radius: 7px; border-bottom: none !important;
  transition: background .18s ease, transform .18s ease;
}
.call-btn:hover { background: var(--blue-deep); transform: translateY(-1px); }

.menu-toggle {
  display: none; margin-left: auto; background: none; border: 2px solid rgba(255,255,255,.4);
  color: #fff; border-radius: 7px; padding: .5rem .7rem; font-size: 1.05rem; cursor: pointer;
  min-width: 44px; min-height: 44px;
}

@media (max-width: 900px) {
  nav.main {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); border-bottom: 3px solid var(--blue);
    padding: .5rem 1.2rem 1.1rem;
  }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; gap: 0; }
  nav.main a { display: block; padding: .8rem .2rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .call-btn.in-bar { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,32,43,.94) 0%, rgba(0,32,43,.82) 42%, rgba(0,32,43,.45) 100%);
}
.hero .inner { position: relative; padding: clamp(3.4rem, 9vw, 6.5rem) 0 clamp(3rem, 8vw, 5.5rem); display: flex; gap: 2.5rem; align-items: center; }
.hero .copy { max-width: 640px; }
.hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.hero .sub { margin-top: 1rem; font-size: 1.06rem; color: #dcebf3; max-width: 54ch; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none;
  font-family: var(--display); letter-spacing: .07em; font-size: 1.25rem;
  padding: .72rem 1.5rem; border-radius: 8px; transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn-ghost { border: 2px solid rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); }

/* trust ticks in hero (their verbatim bullets) */
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.5rem; padding: 0; }
.hero-points li { display: flex; gap: .5rem; align-items: baseline; font-weight: 600; font-size: .95rem; color: #eaf4fa; }
.hero-points li::before { content: "✓"; color: var(--blue); font-weight: 800; }

/* open chip (utility, computed from posted hours) */
.chip {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  padding: .4rem .95rem; font-size: .85rem; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); color: #fff;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #9fb7c2; }
.chip.open .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(46,158,91,.25); }
.chip.closed .dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(199,135,26,.22); }
.chip.light { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }

/* SIGNATURE — torque-sequence wheel hub */
/* (hub emblem removed v1.2 — signature moved to inspection stickers) */

/* ---------- sections ---------- */
section.band { padding: clamp(3rem, 7vw, 5.2rem) 0; }
.band.dark { background: var(--ink); color: #fff; }
.band.dark .lead, .band.dark p { color: #d7e6ee; }
.band.blue { background: var(--blue); color: #fff; }
.band.tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.lead { color: var(--muted); max-width: 68ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* tread divider (tire-tread chevrons, static) */
.tread {
  height: 14px;
  background:
    repeating-linear-gradient(115deg, var(--ink) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(65deg, var(--ink) 0 14px, transparent 14px 28px);
  opacity: .16;
}
.band.dark + .tread, .tread.on-dark { opacity: .35; }

/* stat strip (their published facts only) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: rgba(255,255,255,.16); border-radius: var(--r); overflow: hidden; }
.stats > div { background: var(--ink-2); padding: 1.5rem 1.2rem; text-align: center; }
.stats .num { font-family: var(--display); font-size: 2.5rem; color: var(--blue); line-height: 1; letter-spacing: .04em; }
.stats .lbl { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #bcd3de; margin-top: .45rem; }

/* cards — BOLT-IN reveal (signature secondary) */
.grid { display: grid; gap: 1.4rem; margin-top: 2.2rem; }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  box-shadow: 0 3px 12px rgba(0,32,43,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .ph { aspect-ratio: 3/2; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card .body p { color: var(--muted); font-size: .97rem; flex: 1; }
.card .more { font-weight: 700; text-decoration: none; color: var(--blue-deep); letter-spacing: .02em; display: inline-block; padding: .55rem 0; }
.card .more:hover { color: var(--ink); }

/* corner hex nut on cards */
.nut {
  position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; z-index: 2;
  background: var(--blue);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  transition: transform .5s cubic-bezier(.34,1.4,.64,1);
}
.js .bolt:not(.in) .nut { transform: rotate(-60deg); }
.nut::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }

/* bolt-in reveal (hidden state only when JS is running) */
.bolt { transition: opacity .55s ease, transform .6s cubic-bezier(.25,.9,.35,1); transition-delay: var(--d, 0s); }
.js .bolt:not(.in) { opacity: 0; transform: translateY(20px) rotate(-1.3deg); }
.bolt.in { opacity: 1; transform: translateY(0) rotate(0deg); }
.bolt.in .nut { transform: rotate(0deg); }

@media (prefers-reduced-motion: reduce) {
  .bolt, .js .bolt:not(.in) { opacity: 1; transform: none; transition: none; }
  .nut, .js .bolt:not(.in) .nut { transform: none; transition: none; }
  .kicker, .js .kicker:not(.pressed) { opacity: 1; transform: rotate(var(--tilt, -1.2deg)); transition: none; }
  .card:hover, .btn:hover, .call-btn:hover { transform: none; }
}

/* checklist (their verbatim bullets) */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .75rem 2rem; margin-top: 1.6rem; }
.checks li { display: flex; gap: .7rem; align-items: baseline; font-weight: 600; }
.checks li::before { content: ""; flex: none; width: 13px; height: 13px; transform: translateY(1px); background: var(--blue); clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }

/* two-col feature */
.duo { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.duo .pic { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); position: relative; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* EST badge (their published year) */
.est {
  position: absolute; z-index: 2; left: 16px; bottom: 16px;
  background: var(--ink); color: #fff; border: 2px solid var(--blue); border-radius: 999px;
  font-family: var(--display); letter-spacing: .1em; font-size: .95rem;
  padding: .45rem 1rem;
}

/* video */
.video-shell { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-shell video { width: 100%; height: auto; display: block; }

/* reviews band */
.review-cta { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.gstars { color: #f5b62e; font-size: 1.6rem; letter-spacing: .18em; }
.gscore { font-family: var(--display); font-size: 3.2rem; line-height: 1; }
.gmeta { color: #bcd3de; font-size: .9rem; }

/* fact table (about) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.fact-block { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: var(--r); padding: 1.3rem 1.4rem; }
.fact-block h3 { font-size: 1.05rem; letter-spacing: .1em; margin-bottom: .6rem; }
.fact-block ul { color: var(--muted); font-size: .95rem; }
.fact-block li { padding: .18rem 0; display: flex; gap: .55rem; align-items: baseline; }
.fact-block li::before { content: ""; flex: none; width: 8px; height: 8px; transform: translateY(-1px); background: var(--blue); clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }

.brand-logos { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: .8rem; }
.brand-logos img { width: 110px; height: auto; border-radius: 6px; border: 1px solid var(--line); }

/* hours table */
.hours { width: 100%; border-collapse: collapse; margin-top: .6rem; }
.hours td { padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { color: var(--blue-deep); font-weight: 700; }
.band.dark .hours td { border-bottom-color: rgba(255,255,255,.15); }
.note { font-size: .88rem; color: var(--muted); margin-top: .6rem; font-style: italic; }
.band.dark .note { color: #bcd3de; }

/* contact form */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem; box-shadow: var(--shadow); }
.form-card label { display: block; font-weight: 600; font-size: .9rem; margin: 1rem 0 .3rem; }
.form-card input, .form-card textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 7px;
  font-family: var(--body); font-size: 1rem; background: var(--paper);
}
.form-card input:focus, .form-card textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form-card button { margin-top: 1.3rem; border: none; cursor: pointer; width: 100%; justify-content: center; }
.form-msg { margin-top: 1rem; font-weight: 600; display: none; }
.form-msg.ok { color: var(--ok); display: block; }
.form-msg.err { color: #b3261e; display: block; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn { margin-top: 1.4rem; }

/* used cars strip */
.used-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.8rem; text-align: center; }
.used-strip .display { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .06em; }

/* ---------- footer ---------- */
footer.site { background: var(--ink); color: #cfe0e9; border-top: 4px solid var(--blue); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.4rem; padding: 3rem 0 2rem; }
footer.site h3 { color: #fff; font-size: 1.05rem; letter-spacing: .12em; margin-bottom: .9rem; }
footer.site a { color: #e8f1f6; }
footer.site .foot-logo { width: 230px; margin-bottom: 1rem; }
footer.site li { padding: .22rem 0; font-size: .95rem; }
footer.site a, .fact-block a { display: inline-block; padding: .35rem 0; }
.legal { border-top: 1px solid rgba(255,255,255,.14); padding: 1.2rem 0 5.4rem; font-size: .8rem; color: #9db4bf; }
.legal a { color: #b9ccd6; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* sticky mobile call bar (utility) */
.mobile-call {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--blue); color: #fff; text-decoration: none; text-align: center;
  font-family: var(--display); font-size: 1.25rem; letter-spacing: .08em;
  padding: .85rem 1rem; box-shadow: 0 -6px 18px rgba(0,32,43,.25);
}
@media (max-width: 700px) { .mobile-call { display: block; } }

/* page hero (subpages) */
.page-hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,32,43,.93) 10%, rgba(0,32,43,.55) 100%); }
.page-hero .inner { position: relative; padding: clamp(2.6rem, 7vw, 4.6rem) 0; }
.page-hero .hero-points { margin-top: 1.1rem; }
