/* =============================================================================
   Peter's Garage — petersgarage.ca blueprint recreation (trades/genzryan, R5)

   FONTS — Barlow Condensed (600/700, display) + Barlow (400-700, body).
   Reasoning: Barlow is drawn from Californian public-signage and licence-plate
   lettering, which gives a garage site automotive DNA without kitsch. The
   condensed cut set bold and uppercase reads like shop-front signage and decal
   lettering, a natural fit for a 1975 neighbourhood garage whose real
   storefront is red neon over a black facade. The regular width stays warm and
   workmanlike at body sizes. Deliberately NOT a house pairing; no Fraunces.

   PALETTE — the prospect's real site scheme is DARK (black asphalt bands, dark
   photos, light grey mid-band), so dark navy surfaces carry the page and the
   light "paper" mid-sections mirror their existing dark/light/dark rhythm.
   Brand navy #0f344d comes from their logo (theme.json brand). The accent is
   their own #e94615 (the live site's LEARN MORE button + nav highlight),
   echoing the red neon sign. #e94615 on white is 3.9:1 (fails AA for small
   text) so button FILLS use the same-hue deepened #d13e0f (4.8:1 with white);
   the brighter tone is reserved for large display accents. The live site's
   #0000ee is junk link-blue and is not used anywhere.
   ========================================================================== */

:root {
  --navy-950: #081c2b;
  --navy-900: #0c2940;
  --navy: #0f344d;
  --navy-700: #1d4e70;
  --paper: #f5f3ef;
  --white: #ffffff;
  --ink: #182430;
  --muted: #4c5a66;
  --muted-light: #a7b8c5;
  --accent: #e94615;
  --accent-deep: #d13e0f;
  --accent-tint: #ffb49b;
  --line: rgba(15, 52, 77, 0.14);
  --radius: 14px;
  --shadow: 0 10px 34px rgba(8, 28, 43, 0.16);

  --step-h1: clamp(2.35rem, 1.2rem + 4.4vw, 4.35rem);
  --step-h2: clamp(1.7rem, 1.15rem + 2.2vw, 2.75rem);
  --step-h3: clamp(1.2rem, 1.08rem + 0.5vw, 1.5rem);
  --step-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --gutter: clamp(1.1rem, 4vw, 3.25rem);
  --section-y: clamp(3.25rem, 7vw, 6.25rem);
  --wrap: 1200px;
}

body {
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.015em;
}
h1 { font-size: var(--step-h1); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); }
p { margin: 0 0 1em; }
a { color: var(--navy); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline-color: var(--accent);
}

.skip-link { background: var(--navy); color: var(--white); padding: 0.6rem 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.6rem;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-accent { background: var(--accent-deep); color: var(--white); }
.btn-accent:hover { background: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.65); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--accent-deep); }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy-950); color: var(--white); font-size: 0.92rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 0.45rem; }
.topbar-hours { margin: 0; color: var(--muted-light); }
.topbar-phone { color: var(--white); font-weight: 700; text-decoration: none; letter-spacing: 0.02em; }
.topbar-phone:hover { color: var(--accent-tint); }

/* ---------- nav ---------- */
.site-nav { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.55rem; }
.nav-brand img { width: 74px; height: auto; }
.nav-panel { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.7rem); }
.nav-panel > a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}
.nav-panel > a:hover { color: var(--accent-deep); }
.nav-cta { color: var(--white); }
.nav-cta:hover { color: var(--white); }
.nav-toggle {
  display: none;
  background: none; border: 0; padding: 0.5rem; cursor: pointer;
}
.nav-toggle-bar { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
[data-tk-nav-open="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
[data-tk-nav-open="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
[data-tk-nav-open="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 61em) {
  .nav-toggle { display: block; }
  .nav-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .nav-panel > a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-panel > a:last-of-type { border-bottom: 0; }
  .nav-cta { margin-top: 0.6rem; }
  [data-tk-nav][data-tk-nav-open="false"] .nav-panel { display: none; }
}

/* ---------- hero ---------- */
.hero {
  /* Their real storefront: already a dark night shot, so the scrim stays LIGHT
     (the blueprint's own hero drowned its photo; fix, not reproduce). The photo
     is the section's own background; the scrim lives in ::before so the photo
     stays a detectable, unmixed background image. */
  background-image: url("../assets/photos/storefront.jpg");
  background-position: center 38%;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--navy-950);
  color: var(--white);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 22, 34, 0.52) 0%, rgba(8, 22, 34, 0.28) 45%, rgba(8, 28, 43, 0.78) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero-eyebrow {
  display: inline-block;
  background: var(--accent-deep);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.95rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin: 0 0 1.1rem;
}
.hero h1 { margin-bottom: 0.35em; text-wrap: balance; }
.hero-lead { font-size: var(--step-lead); max-width: 34em; color: rgba(255, 255, 255, 0.92); }
.hero-proof { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; display: grid; gap: 0.55rem; }
.hero-proof li { padding-left: 1.75rem; position: relative; font-weight: 500; font-size: 1.05rem; }
.hero-proof li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--accent-tint);
  font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- lead cards (hero + footer band) ---------- */
.lead-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  border-top: 5px solid var(--accent-deep);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 1.9rem);
}
.lead-card-heading { font-size: 1.55rem; margin-bottom: 0.2em; }
.lead-card-lead { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.1em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field { margin-bottom: 0.85rem; }
.field-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.28rem; }
.field-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fbfaf8;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
}
.field-input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(15, 52, 77, 0.15); }
.form-note { font-size: 0.83rem; color: var(--muted); line-height: 1.5; margin: 0.9rem 0 0; }
.form-note a { color: var(--navy); }

/* ---------- section headers ---------- */
.section-head { max-width: 720px; margin: 0 auto 2.4rem; text-align: center; }
.section-eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  font-size: 0.98rem;
  margin: 0 0 0.4rem;
}
.section-eyebrow-light { color: var(--accent-tint); }
.section-head-light h2 { color: var(--white); }

/* ---------- services ---------- */
.services { background: var(--paper); padding-block: var(--section-y); }
.services h2 { color: var(--navy); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(8, 28, 43, 0.08);
  display: flex;
  flex-direction: column;
}
.service-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { color: var(--navy); margin-bottom: 0.3em; }
.service-body > p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.9em; }
.chip-row { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip-row li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  border: 1.5px solid rgba(15, 52, 77, 0.28);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
}
.card-cta {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-deep);
  font-size: 0.98rem;
}
.card-cta:hover { color: var(--navy); }
@media (max-width: 64em) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38em) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- heritage ribbon (their own asphalt texture under navy) ---------- */
.heritage {
  background:
    linear-gradient(0deg, rgba(12, 41, 64, 0.9), rgba(12, 41, 64, 0.9)),
    url("../assets/photos/asphalt.jpg") center / cover no-repeat;
  color: var(--white);
  border-top: 5px solid var(--accent-deep);
}
.heritage-inner {
  display: flex; align-items: center; gap: clamp(1.4rem, 4vw, 3rem);
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}
.heritage-badge {
  flex: none;
  width: 118px; height: 118px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  background: rgba(8, 28, 43, 0.55);
  transform: rotate(-4deg);
}
.heritage-badge span { font-size: 1rem; letter-spacing: 0.2em; color: var(--accent-tint); }
.heritage-badge strong { font-size: 2.3rem; line-height: 1; letter-spacing: 0.03em; }
.heritage-copy h2 { margin-bottom: 0.15em; }
.heritage-copy p { margin: 0; color: var(--muted-light); font-size: var(--step-lead); }
@media (max-width: 38em) {
  .heritage-inner { flex-direction: column; text-align: center; }
}

/* ---------- about split ---------- */
.about { padding-block: var(--section-y); }
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { color: var(--navy); }
.about-copy p { color: var(--ink); max-width: 34em; }
.about-copy .btn { margin-top: 0.5rem; }
@media (max-width: 52em) { .about-inner { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.process { background: var(--navy-950); color: var(--white); padding-block: var(--section-y); }
.process-steps {
  counter-reset: step;
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}
.process-steps li { counter-increment: step; padding-top: 0.4rem; }
.process-steps li::before {
  content: "0" counter(step);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}
.process-steps h3 { margin-bottom: 0.25em; }
.process-steps p { color: var(--muted-light); font-size: 0.95rem; margin: 0; }
@media (max-width: 52em) { .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30em) { .process-steps { grid-template-columns: 1fr; } }

/* ---------- reviews ---------- */
.reviews { background: var(--paper); padding-block: var(--section-y); }
.reviews h2 { color: var(--navy); }
.agg-line { font-size: var(--step-lead); color: var(--ink); margin: 0.3rem 0 0; }
.agg-stars { color: var(--accent); letter-spacing: 0.1em; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(8, 28, 43, 0.08);
  padding: 1.3rem 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.review-stars { color: var(--accent); letter-spacing: 0.12em; margin-bottom: 0.6em; font-size: 0.95rem; }
.review-card > p:not(.review-stars) { font-size: 0.94rem; line-height: 1.55; }
.review-card footer {
  margin-top: auto;
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 600; font-size: 0.92rem;
}
.review-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
}
.review-src { color: var(--muted); font-weight: 400; font-size: 0.82rem; margin-left: auto; }
.reviews-cta { text-align: center; margin: 2rem 0 0; }
@media (max-width: 64em) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38em) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- visit ---------- */
.visit { padding-block: var(--section-y); }
.visit-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.4rem, 3.5vw, 2.75rem);
  align-items: stretch;
}
.visit-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
}
.visit-card address { font-style: normal; font-size: var(--step-lead); font-weight: 600; margin-bottom: 1rem; }
.hours-table { border-collapse: collapse; width: 100%; margin-bottom: 1.4rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.98rem; }
.hours-table th { font-weight: 600; padding-right: 1rem; }
.hours-table td { color: var(--muted-light); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.visit-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.visit-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
@media (max-width: 52em) { .visit-inner { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); padding-block: var(--section-y); }
.faq h2 { color: var(--navy); }
.faq-inner { max-width: 780px; }
.faq details {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(8, 28, 43, 0.06);
  margin-bottom: 0.7rem;
  padding: 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 3rem 1rem 1.25rem;
  position: relative;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 1.15rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400;
  color: var(--accent-deep);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--muted); }

/* ---------- contact band (final photo CTA + repeated form) ---------- */
.contact-band {
  background:
    linear-gradient(180deg, rgba(8, 28, 43, 0.9) 0%, rgba(12, 41, 64, 0.94) 100%),
    url("../assets/stock/parts.jpg") center / cover no-repeat;
  color: var(--white);
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center;
  padding-block: var(--section-y);
}
.contact-copy h2 { text-wrap: balance; }
@media (max-width: 61em) { .contact-inner { grid-template-columns: 1fr; } }
.contact-copy > p { color: var(--muted-light); font-size: var(--step-lead); max-width: 26em; }
.contact-phone {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  margin: 0.3rem 0 0.2rem;
}
.contact-phone:hover { color: var(--accent-tint); }
.contact-sub { color: var(--muted-light); font-size: 0.95rem; margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: var(--muted-light); }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}
.footer-brand img { width: 104px; height: auto; margin-bottom: 0.8rem; }
.footer-brand p { margin: 0; }
.footer-col h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.7em; }
.footer-col a { display: block; color: var(--muted-light); text-decoration: none; padding: 0.22rem 0; }
.footer-col a:hover { color: var(--white); }
.footer-col p { margin: 0.4rem 0 0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.1rem 3.4rem; /* bottom clearance for the floating preview badge */
  font-size: 0.86rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 52em) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- preview badge ---------- */
.preview-badge {
  position: fixed;
  right: 12px; bottom: 12px;
  z-index: 90;
  display: flex; gap: 0;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(8, 28, 43, 0.35);
  font-size: 0.8rem;
}
.preview-badge a { text-decoration: none; padding: 0.5rem 0.9rem; }
.preview-badge-info { background: var(--white); color: var(--navy); border-right: 1px solid var(--line); }
.preview-badge-cta { background: var(--white); color: var(--accent-deep); font-weight: 700; }

/* ---------- mobile hero stack ---------- */
@media (max-width: 61em) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 2.4rem 2.8rem; }
  .hero-copy { max-width: 560px; }
}
