/* RP Tire and Auto Repair - roaringrepair.ca
   Plain CSS, no framework. Colours come from the logo. */

:root {
  --orange: #ee7222;        /* logo gear */
  --orange-dark: #c9580f;   /* hover */
  --orange-ink: #a84a0c;    /* orange text on white (4.9:1) */
  --charcoal: #232323;      /* logo "RP" */
  --charcoal-2: #2e2e2e;
  --ink: #1c1c1c;
  --text: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e4e0da;
  --paper: #f6f4f0;
  --white: #ffffff;

  --urgent: #c8372d;
  --wait: #d99a14;
  --nice: #3f8f4e;

  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--paper { background: var(--paper); }
.eyebrow {
  font: 600 0.85rem/1 var(--body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange-ink);
  margin: 0 0 14px;
}
.lede { font-size: 1.2rem; color: var(--text); max-width: 62ch; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--charcoal); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 600 1.05rem/1 var(--body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--dark { background: var(--charcoal); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn--outline:hover { background: var(--charcoal); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 60px; height: 60px; }
.brand-name { font: 600 1.25rem/1.05 var(--head); text-transform: uppercase; letter-spacing: 0.02em; }
.brand-name small { display: block; white-space: nowrap; font: 400 0.82rem/1.3 var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: 3px; }

.nav ul { display: flex; gap: 4px; list-style: none; }
.nav ul a { white-space: nowrap;
  display: block; padding: 10px 12px;
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav ul a:hover { color: var(--orange-ink); }
.nav-extra { display: none; }
.nav-extra .btn { width: 100%; margin-bottom: 10px; }
.nav-extra p { color: var(--muted); margin: 14px 0 0; font-size: 0.98rem; }
.nav ul a[aria-current="page"] { border-bottom-color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone .icon { color: var(--orange); }
.header-actions .btn { min-height: 44px; padding: 10px 18px; }

.menu-btn, .call-btn {
  display: none;
  width: 46px; height: 46px; border-radius: var(--radius);
  align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.menu-btn .icon, .call-btn .icon { width: 24px; height: 24px; }
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-menu { display: none; }
.menu-open .menu-btn .i-close { display: block; }

/* ---------- Home hero ---------- */
.hero { background: var(--charcoal); color: #d9d6d1; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center; gap: 48px;
  padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(48px, 8vw, 104px);
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--orange); }
.hero .lede { color: #d9d6d1; margin-bottom: 30px; }
.hero-badge {
  justify-self: center;
  width: min(340px, 100%); aspect-ratio: 1;
  border-radius: 50%; background: #fff;
  display: grid; place-items: center;
  border: 10px solid var(--charcoal-2);
  box-shadow: 0 0 0 2px var(--orange);
}
.hero-badge img { width: 78%; height: auto; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  list-style: none; margin-top: 40px; border-top: 1px solid #444;
}
.hero-facts li { padding: 18px 28px 0 0; margin-right: 28px; border-right: 1px solid #444; font-size: 0.98rem; line-height: 1.35; }
.hero-facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-facts strong { display: block; color: #fff; font: 600 1.1rem/1.2 var(--head); letter-spacing: .02em; margin-bottom: 2px; }
.hero-facts a { color: #fff; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--charcoal); color: #d9d6d1; padding: clamp(44px, 7vw, 80px) 0 clamp(40px, 6vw, 64px); }
.page-head h1 { color: #fff; margin-bottom: 14px; }
.page-head .lede { color: #d9d6d1; margin: 0; }
.page-head .eyebrow { color: var(--orange); }

/* ---------- Service list (home + services page) ---------- */
.split-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.split-head h2 { margin: 0; }
.service-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.service-list li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.service-list .icon { width: 40px; height: 40px; color: var(--orange); stroke-width: 1.5; margin-top: 2px; }
.service-list h3 { margin-bottom: 6px; }
.service-list p { margin: 0; color: var(--muted); }

.service-detail { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.service-detail > li { padding: 32px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: 0 20px; }
.service-detail .icon { width: 48px; height: 48px; color: var(--orange); stroke-width: 1.4; }
.service-detail h2 { font-size: 1.7rem; margin-bottom: 10px; }
.service-detail p { margin: 0 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px; font-size: 0.95rem; color: var(--ink); }

/* ---------- About + promise ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about blockquote { margin: 0 0 20px; font: 600 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--head); color: var(--ink); }
.promise { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.promise h2 { font-size: 1.8rem; }
.checks { list-style: none; margin: 18px 0 22px; }
.checks li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.checks li:last-child { border-bottom: 0; }
.checks .icon { color: var(--orange); width: 22px; height: 22px; margin-top: 2px; stroke-width: 2.4; }
.promise .signoff { font-style: italic; margin: 0; color: var(--text); }

/* ---------- Reviews ---------- */
.reviews { columns: 3 300px; column-gap: 24px; }
.review {
  break-inside: avoid; margin: 0 0 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.review p { margin: 0 0 16px; color: var(--ink); }
.review footer { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; line-height: 1.3; }
.review .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.review .who { display: flex; flex-direction: column; }
.review cite { font-style: normal; font-weight: 700; color: var(--ink); }
.review .who > span { color: var(--muted); font-size: 0.85rem; }
.review-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.review-meta strong { color: var(--ink); }

/* ---------- Different page ---------- */
.prose { max-width: 68ch; }
.prose p { font-size: 1.12rem; }
.prose .eyebrow { font-size: 0.85rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.triage { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.triage li { padding: 24px; background: var(--white); border-top: 6px solid; }
.triage li + li { border-left: 1px solid var(--line); }
.triage .t-urgent { border-top-color: var(--urgent); }
.triage .t-wait { border-top-color: var(--wait); }
.triage .t-nice { border-top-color: var(--nice); }
.triage h3 { margin-bottom: 6px; }
.triage p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Book page ---------- */
.book-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.book-option { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.book-option > .icon { width: 32px; height: 32px; color: var(--orange); }
.book-option h2 { font-size: 1.5rem; margin: 6px 0 0; }
.book-option p { margin: 0; color: var(--muted); }
.book-option .btn { margin-top: auto; align-self: start; }
.book-option--main { background: var(--charcoal); border-color: var(--charcoal); color: #d9d6d1; }
.book-option--main h2 { color: #fff; }
.book-option--main p { color: #d9d6d1; }
.book-option .big { font: 600 1.35rem/1.2 var(--head); color: var(--ink); text-decoration: none; word-break: break-word; }
.book-option .big:hover { color: var(--orange-ink); }

.visit { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 56px); align-items: stretch; }
.hours { width: 100%; border-collapse: collapse; margin: 8px 0 28px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { color: var(--ink); font-weight: 600; }
.hours td { text-align: right; }
.hours .closed td { color: var(--muted); }
address { font-style: normal; color: var(--ink); margin-bottom: 16px; }
.map { min-height: 340px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: var(--ink); padding: clamp(40px, 6vw, 64px) 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: #171717; color: #bdb9b3; padding: 56px 0 28px; font-size: 0.98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 84px; height: 84px; background: #fff; border-radius: 50%; padding: 6px; margin-bottom: 14px; }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer address { color: #bdb9b3; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid #2e2e2e; font-size: 0.88rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }

/* ================= Responsive ================= */
@media (max-width: 1040px) {
  .header-phone span { display: none; }
  .nav ul a { padding: 10px 9px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .book-grid { grid-template-columns: 1fr 1fr; }
  .book-option--main { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  :root { --header-h: 66px; }
  .brand img { width: 50px; height: 50px; }
  .brand-name { font-size: 1.1rem; }
  .brand-name small { display: none; }
  .header-actions { display: none; }
  .menu-btn, .call-btn { display: inline-flex; }

  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    background: var(--white);
    padding: 8px var(--gutter) 120px;
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .18s, transform .18s, visibility 0s .18s;
  }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 18px 4px; font: 600 1.4rem/1.2 var(--head); border-bottom: 1px solid var(--line); }
  .nav ul a[aria-current="page"] { color: var(--orange-ink); border-bottom-color: var(--line); }
  .nav-extra { display: block !important; margin-top: 24px; }
  body.menu-open { overflow: hidden; }

  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-badge { display: none; }
  .hero-facts { grid-template-columns: 1fr; margin-top: 32px; }
  .hero-facts li { border-right: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid #444; }
  .hero-facts li:last-child { border-bottom: 0; }

  .service-list, .service-detail { grid-template-columns: 1fr; }
  .about, .two-col, .visit { grid-template-columns: 1fr; }
  .triage { grid-template-columns: 1fr; }
  .triage li + li { border-left: 0; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  }
  .mobile-bar .btn { width: 100%; padding: 12px 10px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .book-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band .btn-row { width: 100%; }
  .review { padding: 20px; }
  .service-detail > li { grid-template-columns: 1fr; }
  .service-detail .icon { margin-bottom: 10px; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 0.98rem; }
  .brand img { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
