/* ============================================================
   MOBIL AUTO SERVICE EXPERTS — Etobicoke, ON
   Composition: black/white + one colour per section, editorial
   magazine folios, hand-drawn scribble marks, grain overlay,
   hover footnotes, gentle fade-rise on scroll.
   ============================================================ */

:root {
  --ink:        #0a0a0a;
  --red:        #e10600;
  --blue:       #003c8a;
  --yellow:     #f4ff33;
  --paper:      #f7f5f0;
  --paper-dim:  #e8e5dd;

  --fg:         #0a0a0a;
  --bg:         #f7f5f0;
  --muted:      #5c5a55;
  --line:       rgba(10,10,10,.16);

  --maxw: 1180px;
  --gut: clamp(1.15rem, 4vw, 3.25rem);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .25vw, 1.075rem);
  line-height: 1.62;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.022em;
  margin: 0 0 .55em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.5rem + 6.4vw, 5.4rem); }
h2 { font-size: clamp(1.85rem, 1.15rem + 3.1vw, 3.15rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); letter-spacing: -.012em; }

p { margin: 0 0 1.05em; text-wrap: pretty; }

/* ---------- grain overlay ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: multiply;
}

/* ---------- accessibility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--yellow); color: var(--ink);
  padding: .7rem 1.1rem; font: 600 .9rem/1 var(--sans);
}
.skip:focus { left: .5rem; top: .5rem; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}
.sec--yellow :focus-visible { outline-color: var(--ink); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 500;
  background: rgba(10,10,10,.94);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(9px);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .6rem var(--gut);
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; margin-right: auto;
}
.brand__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  background: var(--red); color: #fff;
  font-family: var(--serif); font-weight: 800; font-size: 1.3rem;
  border-radius: 3px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong {
  font-family: var(--serif); font-size: 1.06rem; font-weight: 800;
  letter-spacing: -.015em;
}
.brand__text em {
  font-family: var(--mono); font-style: normal;
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  opacity: .62;
}
.topnav { display: flex; gap: 1.15rem; flex-wrap: wrap; }
.topnav a {
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; opacity: .78;
  padding: .55rem 0;
  border-bottom: 2px solid transparent;
  transition: opacity .18s, border-color .18s;
}
.topnav a:hover { opacity: 1; border-bottom-color: var(--yellow); }

.callbtn {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px;
  background: var(--yellow); color: var(--ink);
  font-family: var(--mono); font-weight: 700; font-size: .82rem;
  letter-spacing: .02em; text-decoration: none;
  padding: .6rem 1rem; border-radius: 3px;
  transition: transform .16s, background .16s;
}
.callbtn:hover { background: #fff; transform: translateY(-1px); }
.callbtn__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(225,6,0,.7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(225,6,0,.65); }
  70%  { box-shadow: 0 0 0 9px rgba(225,6,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,6,0,0); }
}

/* ============================================================
   SECTION SHELL — colour takeover
   ============================================================ */
.sec {
  padding: clamp(3rem, 7vw, 6.5rem) var(--gut) clamp(3.5rem, 8vw, 7rem);
  position: relative;
  isolation: isolate;
}
.sec > * { max-width: var(--maxw); margin-inline: auto; }

.sec--ink    { background: var(--ink);    color: #f5f3ee; }
.sec--red    { background: var(--red);    color: #fff; }
.sec--blue   { background: var(--blue);   color: #fff; }
.sec--yellow { background: var(--yellow); color: var(--ink); }

/* fade + rise on scroll enter */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec > * {
      animation: fadeRise 420ms cubic-bezier(.2,.7,.1,1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%;
    }
  }
}

/* ---------- folio strip ---------- */
.folio {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem .7rem;
  font-family: var(--mono); font-size: .66rem;
  letter-spacing: .17em; text-transform: uppercase;
  padding-bottom: .85rem;
  margin-bottom: clamp(1.6rem, 3.5vw, 2.9rem);
  border-bottom: 1px solid currentColor;
  opacity: .72;
}
.folio__sep { opacity: .4; }
.folio--light { opacity: .82; }

/* ---------- scribble marks ---------- */
mark.scribble {
  background: none;
  color: inherit;
  position: relative;
  white-space: nowrap;
  padding: 0 .06em;
}
mark.scribble::after {
  content: "";
  position: absolute;
  left: -.04em; right: -.04em;
  bottom: -.12em;
  height: .34em;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'><path d='M3 15 C 34 5, 62 19, 96 10 S 158 4, 197 13' fill='none' stroke='%23f4ff33' stroke-width='5' stroke-linecap='round'/></svg>");
}
.sec--yellow mark.scribble::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'><path d='M3 15 C 34 5, 62 19, 96 10 S 158 4, 197 13' fill='none' stroke='%23e10600' stroke-width='5' stroke-linecap='round'/></svg>");
}

/* ---------- hover footnotes ---------- */
.note {
  position: relative;
  border-bottom: 1px dotted currentColor;
  cursor: help;
}
.note::after {
  content: attr(data-note);
  position: absolute;
  left: 0; bottom: calc(100% + .55rem);
  width: max-content; max-width: min(19rem, 78vw);
  background: var(--yellow); color: var(--ink);
  font-family: var(--sans); font-size: .78rem; line-height: 1.4;
  letter-spacing: 0; text-transform: none;
  padding: .55rem .7rem; border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden;
  translate: 0 5px;
  transition: opacity .2s ease, translate .2s ease, visibility .2s;
  z-index: 60;
  pointer-events: none;
}
.note:hover::after,
.note:focus-visible::after { opacity: 1; visibility: visible; translate: 0 0; }
.sec--yellow .note::after { background: var(--ink); color: var(--yellow); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.08fr .92fr; }
}

.kicker {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 1rem;
}
.sec--yellow .kicker { color: var(--red); }

.byline {
  display: flex; flex-wrap: wrap; gap: .45rem .7rem;
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  opacity: .66; margin-bottom: 1.5rem;
}
.byline__dot { opacity: .5; }

.lede {
  font-size: clamp(1.02rem, .98rem + .35vw, 1.16rem);
  line-height: 1.66;
  max-width: 46ch;
  opacity: .93;
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin: 1.8rem 0 2rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.5rem;
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; border-radius: 3px;
  border: 2px solid transparent;
  transition: transform .16s, background .16s, color .16s, border-color .16s;
}
.btn--solid { background: var(--red); color: #fff; }
.btn--solid:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-2px); }
.btn--wide { width: 100%; margin-top: 1.4rem; }

.trustrow {
  list-style: none; margin: 0; padding: 1.3rem 0 0;
  border-top: 1px solid rgba(255,255,255,.2);
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem;
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; opacity: .8;
}
.trustrow__num {
  display: block; font-family: var(--serif);
  font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--yellow); line-height: 1.1;
}

.hero__fig { margin: 0; }
.hero__fig img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  filter: contrast(1.06) saturate(.94);
}
.hero__fig figcaption {
  font-family: var(--mono); font-size: .66rem;
  line-height: 1.55; letter-spacing: .03em;
  opacity: .6; margin-top: .7rem;
  padding-left: .8rem; border-left: 2px solid var(--red);
}

/* ============================================================
   SECTION HEADS
   ============================================================ */
.sec__head { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.sec__sub { font-size: 1.03rem; opacity: .9; max-width: 52ch; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 4px;
  padding: 0 0 1.4rem;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); background: rgba(255,255,255,.13); }
.card img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  margin-bottom: 1.15rem;
  filter: contrast(1.05);
}
.card h3, .card p, .card .card__meta, .card .ticks { padding-inline: 1.25rem; }
.card h3 { margin-bottom: .3rem; }
.card__meta {
  font-family: var(--mono); font-size: .64rem;
  letter-spacing: .12em; text-transform: uppercase;
  opacity: .72; margin-bottom: .85rem;
}
.card p { font-size: .95rem; line-height: 1.6; margin-bottom: 0; }

.card--plain {
  padding-top: 1.5rem;
  background: rgba(0,0,0,.16);
  border-style: dashed;
}
.card--plain h3 { margin-top: 0; }

.ticks { list-style: none; margin: .3rem 0 0; padding-left: 1.25rem; }
.ticks li {
  position: relative; font-size: .93rem;
  padding-left: 1.1rem; margin-bottom: .42rem;
}
.ticks li::before {
  content: "→";
  position: absolute; left: 0;
  font-family: var(--mono); font-size: .8rem;
  color: var(--yellow);
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 1.4rem;
  counter-reset: step;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  border-top: 3px solid var(--yellow);
  padding-top: 1.1rem;
}
.step__num {
  display: block;
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .18em; color: var(--yellow);
  margin-bottom: .6rem;
}
.step h3 { font-size: 1.24rem; margin-bottom: .4rem; }
.step p { font-size: .94rem; line-height: 1.6; opacity: .92; margin: 0; }

.pullquote {
  margin: clamp(2.4rem, 5vw, 3.6rem) auto 0;
  max-width: 46rem;
  border-left: 4px solid var(--yellow);
  padding-left: clamp(1rem, 3vw, 1.8rem);
}
.pullquote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 1rem + 1.1vw, 1.6rem);
  line-height: 1.38; letter-spacing: -.012em;
  margin-bottom: .7rem;
}
.pullquote cite {
  font-family: var(--mono); font-style: normal;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  opacity: .72;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
}
@media (min-width: 940px) {
  .about { grid-template-columns: 1.55fr 1fr; }
}

.about__body p { max-width: 62ch; }

.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 800;
  float: left;
  font-size: 4.1em;
  line-height: .78;
  padding: .06em .12em 0 0;
  color: var(--red);
}

.about__side {
  background: rgba(10,10,10,.06);
  border: 1px solid rgba(10,10,10,.2);
  border-radius: 4px;
  padding: 1.5rem 1.4rem;
  align-self: start;
}
.side__title {
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 1.1rem; padding-bottom: .7rem;
  border-bottom: 1px solid rgba(10,10,10,.22);
}
.facts { margin: 0; }
.facts dt {
  font-family: var(--mono); font-size: .63rem;
  letter-spacing: .14em; text-transform: uppercase;
  opacity: .62; margin-bottom: .18rem;
}
.facts dd {
  margin: 0 0 1rem; font-size: .93rem; line-height: 1.5;
}
.facts dd:last-child { margin-bottom: 0; }

/* ============================================================
   VISIT
   ============================================================ */
.visit {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2rem, 4.5vw, 3.4rem);
}
@media (min-width: 880px) { .visit { grid-template-columns: 1fr 1.1fr; } }

.hours {
  width: 100%; border-collapse: collapse;
  font-size: .95rem;
}
.hours th, .hours td {
  text-align: left; padding: .62rem 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.hours th {
  font-family: var(--mono); font-weight: 500;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  opacity: .82;
}
.hours td { font-family: var(--mono); font-size: .82rem; }
.hours__closed th, .hours__closed td { color: var(--red); opacity: 1; }
.hours__note {
  font-size: .88rem; opacity: .72; margin-top: 1rem; max-width: 40ch;
}

.visit__lede { max-width: 46ch; opacity: .92; }

.phonebig {
  display: block; text-decoration: none;
  background: var(--yellow); color: var(--ink);
  border-radius: 4px; padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
  transition: transform .16s, background .16s;
}
.phonebig:hover { transform: translateY(-2px); background: #fff; }
.phonebig__label {
  display: block;
  font-family: var(--mono); font-size: .64rem;
  letter-spacing: .2em; text-transform: uppercase;
  opacity: .68; margin-bottom: .25rem;
}
.phonebig__num {
  display: block;
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.3rem);
  letter-spacing: -.02em; line-height: 1.1;
}

.addr {
  font-style: normal; font-size: .97rem; line-height: 1.7;
  padding-left: 1rem; border-left: 2px solid var(--red);
}
.addr strong { font-family: var(--serif); font-size: 1.05rem; }

.visit__hint { font-size: .92rem; opacity: .82; margin-top: 1.2rem; max-width: 44ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--ink);
  color: #f5f3ee;
  padding: clamp(2.2rem, 5vw, 3.4rem) var(--gut) 5.5rem;
  border-top: 4px solid var(--red);
}
.foot__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem;
  align-items: flex-start; justify-content: space-between;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.foot__brand strong {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 800;
  display: block; margin-bottom: .35rem;
}
.foot__brand p {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .05em; opacity: .68; margin: 0;
}
.foot__brand a { color: var(--yellow); text-decoration: none; }
.foot__brand a:hover { text-decoration: underline; }

.foot__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.foot__nav a {
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; opacity: .7;
  padding: .5rem 0;
}
.foot__nav a:hover { opacity: 1; color: var(--yellow); }

.claim-banner {
  display: block;
  max-width: var(--maxw);
  margin: 1.4rem auto 0;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .04em;
  color: rgba(245,243,238,.72);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 3px;
  padding: .6rem .85rem;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.claim-banner:hover {
  background: rgba(255,255,255,.13);
  color: #fff;
  text-decoration: underline;
}

.attribution {
  max-width: var(--maxw);
  margin: 1.1rem auto 0;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  opacity: .5;
}
.attribution a { color: inherit; text-decoration: none; }
.attribution a:hover { text-decoration: underline; opacity: 1; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .sec > * { opacity: 1 !important; translate: none !important; }
  .callbtn__dot { animation: none; }
}
