/* Quillmere Auto Works — a sample auto repair site by Beacon Solutions. Not a real business. */

@font-face {
  font-family: "Archivo";
  src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --asphalt: #17191c;
  --asphalt-2: #22262a;
  --asphalt-3: #2f3439;
  --concrete: #eceae5;
  --concrete-2: #e0ddd6;
  --paper: #f7f6f3;
  --sign: #ffcc33;
  --sign-2: #f0b90b;
  --steel: #8b939b;
  --text: #17191c;
  --muted: #5d646b;
  --sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4.5vw, 44px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 75%; line-height: 1; letter-spacing: -0.01em; word-spacing: 0.14em; text-transform: uppercase; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
section { scroll-margin-top: 12px; }
.muted { color: var(--muted); }

/* ── the sample banner: first thing on the page, never hidden ───────────────────── */
.sample-banner { background: var(--sign); color: var(--asphalt); font: 500 0.8125rem/1.45 var(--sans); padding: 9px var(--gutter); text-align: center; }
.sample-banner strong { font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.75rem; margin-right: 4px; }

/* ── header ───────────────────────────────────────────────────────────────────────── */
.top { background: var(--asphalt); color: var(--paper); border-bottom: 1px solid var(--asphalt-3); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; color: var(--sign); flex: none; }
.brand span { display: flex; flex-direction: column; font-weight: 600; font-stretch: 85%; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.1; color: var(--steel); }
.brand b { font-weight: 800; font-stretch: 75%; font-size: 1.375rem; letter-spacing: 0.01em; color: var(--paper); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; font-stretch: 85%; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.875rem; color: #cfd3d7; padding: 9px 14px; white-space: nowrap; }
.nav a:hover { color: var(--sign); }

/* ── buttons ──────────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; font-weight: 800; font-stretch: 85%; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; border-radius: 4px; transition: background-color .2s ease, color .2s ease; }
.btn-sign { background: var(--sign); color: var(--asphalt); }
.btn-sign:hover { background: var(--sign-2); }
.btn-ghost { border: 2px solid rgba(247, 246, 243, .45); color: var(--paper); }
.btn-ghost:hover { border-color: var(--sign); color: var(--sign); }
.btn-lg { min-height: 58px; padding: 14px 26px; font-size: 1.0625rem; }

/* ── hero ─────────────────────────────────────────────────────────────────────────── */
.hero { background: radial-gradient(70% 80% at 85% 20%, rgba(255, 204, 51, .10), transparent 60%), var(--asphalt); color: var(--paper); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 56px); align-items: center; padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 104px); }
.kicker { font-weight: 700; font-stretch: 85%; font-size: 0.875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sign); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.875rem, 7.4vw, 5.75rem); font-stretch: 70%; line-height: .94; max-width: 14ch; }
.lede { font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.55; color: #c7ccd1; max-width: 42ch; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-art { margin: 0; width: min(100%, 480px); justify-self: center; }
.hero-art .lift rect { fill: var(--asphalt-3); }
.hero-art .car > path:first-child { fill: var(--sign); stroke: var(--asphalt); stroke-width: 3; stroke-linejoin: round; }
.hero-art .glass { fill: var(--asphalt-2); }
.hero-art .tire { fill: var(--asphalt); stroke: #0d0f11; stroke-width: 6; }
.hero-art .hub { fill: var(--steel); }
.hero-art .lamp { stroke: var(--paper); stroke-width: 6; stroke-linecap: round; }
.hero-art .spark path { stroke: var(--sign); stroke-width: 5; stroke-linecap: round; }
.stripe { height: 14px; background: repeating-linear-gradient(-45deg, var(--sign) 0 18px, var(--asphalt) 18px 36px); }

/* ── bands ────────────────────────────────────────────────────────────────────────── */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band-concrete { background: var(--concrete); }
.band-dark { background: var(--asphalt-2); color: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2, .hours-grid h2, .find-grid h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-stretch: 70%; }
.section-head p { color: var(--muted); max-width: 46ch; }
.band-dark .section-head p { color: #b9bfc5; }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--concrete-2); border: 2px solid var(--concrete-2); }
.services li { background: var(--paper); padding: 28px 26px; }
.services svg { width: 44px; height: 44px; color: var(--asphalt); margin-bottom: 18px; }
.services h3 { font-size: 1.5rem; margin-bottom: 8px; }
.services p { color: var(--muted); }

.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.how li { border-top: 4px solid var(--sign); padding-top: 20px; }
.how span { display: block; font-weight: 800; font-stretch: 70%; font-size: 3.25rem; line-height: 1; color: var(--sign); margin-bottom: 12px; }
.how h3 { font-size: 1.375rem; margin-bottom: 8px; }
.how p { color: #b9bfc5; }

.hours-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.hours-grid h2 { margin-bottom: 14px; }
.hours-grid .muted { max-width: 40ch; }
.hours { margin: 0; border: 2px solid var(--asphalt); }
.hours div { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 2px solid var(--asphalt); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: 0.04em; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.hours .off { background: var(--concrete); color: var(--muted); }

.find-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.address { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(1.625rem, 3.4vw, 2.25rem); line-height: 1.1; margin: 18px 0 14px; }
.find-grid .muted { max-width: 40ch; }
.contact { display: grid; gap: 10px; margin-top: 24px; }
.contact a { display: block; text-decoration: none; background: var(--paper); border-left: 5px solid var(--sign); padding: 14px 18px; font-weight: 700; font-size: 1.125rem; overflow-wrap: anywhere; }
.contact a:hover { background: #fff; }
.contact span { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.map { margin: 0; border: 2px solid var(--asphalt); }
.m-ground { fill: #dedad2; }
.m-road { fill: none; stroke: var(--asphalt-3); stroke-width: 30; }
.m-rail { fill: none; stroke: var(--steel); stroke-width: 10; }
.m-rail-ties { fill: none; stroke: #dedad2; stroke-width: 4; stroke-dasharray: 3 9; }
.m-bldg { fill: var(--paper); stroke: var(--asphalt); stroke-width: 3; }
.m-door { fill: var(--asphalt-3); }
.m-pin { fill: var(--sign); stroke: var(--asphalt); stroke-width: 3; }
.m-label { font: 800 14px var(--sans); font-stretch: 85%; text-transform: uppercase; letter-spacing: .08em; fill: var(--paper); }
.m-soft { fill: #5d646b; }
.m-strong { fill: var(--asphalt); font-size: 16px; }

/* ── footer ───────────────────────────────────────────────────────────────────────── */
.foot { background: var(--asphalt); color: #b9bfc5; padding-block: 40px 48px; font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px 64px; }
.foot strong { color: var(--paper); font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: 0.04em; }
.foot a { color: var(--paper); text-underline-offset: 3px; }
.foot-note { border-left: 3px solid var(--sign); padding-left: 18px; }

.call-bar { display: none; }

/* ── tablet ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .top-row { flex-wrap: wrap; gap: 8px 16px; padding-block: 14px 6px; min-height: 0; }
  .top-call { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0 -14px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
}

/* ── phone ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .top-call { display: none; }
  .nav { margin: 0; justify-content: space-between; }
  .nav a { padding: 8px 4px; font-size: 0.8125rem; letter-spacing: 0.04em; }
  .hero-grid, .hours-grid, .find-grid, .foot-grid, .services, .how { grid-template-columns: minmax(0, 1fr); }
  .hero-art { width: min(86%, 340px); justify-self: end; }
  .hero-actions .btn { flex: 1 1 100%; }
  .call-bar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20;
    min-height: 56px; align-items: center; justify-content: center; border-radius: 4px;
    background: var(--sign); color: var(--asphalt); font-weight: 900; font-stretch: 85%;
    text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.0625rem; text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
