/* York Auto Body: navy and red from their old banner, warm paper, Fraunces + Public Sans. */

:root {
  --navy: #0f2147;
  --navy-2: #1b3266;
  --red: #b3181f;
  --red-dark: #8f1218;
  --paper: #f7f5f0;
  --paper-2: #ece8df;
  --ink: #1a1d24;
  --muted: #5a5f6b;
  --line: #d9d4c8;
  --white: #fff;
  --radius: 6px;
  --wrap: 1120px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-2); }
a:hover { color: var(--red); }
h1, h2, h3, .h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Top bar + header */
.topbar { background: var(--navy); color: #d6dbe8; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; }
.topbar [data-open-status].is-open::before,
.status.is-open::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3fbf6e; margin-right: 6px; vertical-align: 1px; }
.header { background: var(--white); border-bottom: 4px solid var(--red); position: sticky; top: 0; z-index: 5; }
.header .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.brand-since { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-top: 5px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.header-call { padding: 10px 16px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }

/* Hero */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, var(--white), var(--paper)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 500; font-size: .95rem; }
.ticks li::before { content: "✓"; color: var(--red); font-weight: 700; margin-right: 7px; }

/* Signature: paint chips fanned like a colour deck */
.chips { margin: 0; }
.chips ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chip { display: grid; grid-template-columns: 1fr auto; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: 0 1px 2px rgb(15 33 71 / .06), 0 6px 18px rgb(15 33 71 / .06); }
.chip-swatch { height: 46px; border-radius: 3px; }
.chip-label { padding: 0 10px 0 14px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .04em; min-width: 7.5em; }
.chip-label b { display: block; color: var(--ink); font-size: .95rem; letter-spacing: 0; }
.chip-1 .chip-swatch { background: linear-gradient(100deg, #0f2147, #24407e 60%, #0f2147); }
.chip-2 .chip-swatch { background: linear-gradient(100deg, #8f1218, #c9262d 60%, #8f1218); }
.chip-3 .chip-swatch { background: linear-gradient(100deg, #a9adb4, #e4e6ea 55%, #a9adb4); }
.chip-4 .chip-swatch { background: linear-gradient(100deg, #e3dfd6, #fbfaf7 55%, #e3dfd6); border: 1px solid var(--line); }
.chip-5 .chip-swatch { background: linear-gradient(100deg, #111214, #3a3d42 55%, #111214); }
.chip:nth-child(odd) { transform: translateX(-14px); }
.chips figcaption { font-size: .85rem; color: var(--muted); margin-top: 14px; text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .chip { animation: chip-in .6s cubic-bezier(.2, .7, .2, 1) both; }
  .chip-2 { animation-delay: .08s; } .chip-3 { animation-delay: .16s; } .chip-4 { animation-delay: .24s; } .chip-5 { animation-delay: .32s; }
  @keyframes chip-in { from { opacity: 0; translate: 30px 0; } }
}

/* Band */
.band { background: var(--navy); color: #d6dbe8; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 26px; }
.band p { margin: 0; font-size: .92rem; }
.band b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--white); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.more { font-weight: 700; text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards-wide { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.card .num { display: block; font-size: .8rem; font-weight: 700; color: var(--red); letter-spacing: .1em; margin-bottom: 6px; }
.cert { border-top-color: var(--red); }
.cert-sub { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-2) !important; margin-bottom: 10px !important; }
.after-cards { margin: 24px 0 0; font-weight: 500; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.note { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 26px; }
.note .btn { margin: 4px 0 12px; }
.note-small { font-size: .9rem; color: var(--muted); margin: 0; }
.cta { text-align: center; }
.cta .actions { justify-content: center; margin-bottom: 0; }

/* Inner pages */
.page-head { padding: 64px 0 40px; background: linear-gradient(180deg, var(--white), var(--paper)); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 18em; }
.prose { max-width: 40em; }
blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--red); }
blockquote p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--navy); }
blockquote footer { font-size: .9rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-item:hover { border-color: var(--navy); color: var(--ink); }
.contact-item svg { width: 22px; height: 22px; fill: var(--red); flex: none; margin-top: 3px; }
.contact-item small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-item em { font-style: normal; font-weight: 400; font-size: .95rem; color: var(--muted); }
.fax { color: var(--muted); margin: 4px 0 0 4px; }
.hours-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 24px; }
.status { font-weight: 700; color: var(--navy); min-height: 1.6em; }
.status.is-closed { color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.hours th, .hours td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today { background: #fbf1f1; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--red-dark); }

/* Footer */
.footer { background: var(--navy); color: #c3cadb; padding: 56px 0 0; margin-top: 0; }
.footer a { color: var(--white); }
.footer a:hover { color: #ffb3b6; }
.footer h2 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8f9bbb; margin-bottom: 10px; }
.footer .brand-name { color: var(--white); font-size: 1.3rem; display: block; margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; font-size: .95rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgb(255 255 255 / .12); margin-top: 32px; padding-block: 18px; font-size: .82rem; }
.callbar { display: none; }

/* Tablet */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .chips { max-width: 460px; }
  .chips figcaption { text-align: left; }
  .chip:nth-child(odd) { transform: none; }
}

/* Phones */
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .wrap { padding: 0 16px; }
  .topbar .wrap > span:first-child { display: none; }
  .header .wrap { gap: 12px; padding-block: 10px; flex-wrap: wrap; }
  .brand-name { font-size: 1.25rem; }
  .header-call { display: none; }
  .nav { margin-left: 0; width: 100%; gap: 0; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; }
  .nav a { font-size: .95rem; padding: 6px 2px; }
  .hero { padding: 40px 0 44px; }
  .section { padding: 52px 0; }
  .page-head { padding: 40px 0 28px; }
  .cards, .cards-wide, .cards-3 { grid-template-columns: 1fr; }
  .chip-swatch { height: 34px; }
  .footer-grid { grid-template-columns: 1fr; }
  .callbar { display: flex; align-items: center; justify-content: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--red); color: var(--white); font-weight: 700; text-decoration: none; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgb(0 0 0 / .15); }
  .callbar:hover { color: var(--white); }
  .callbar svg { width: 20px; height: 20px; fill: currentColor; }
}
