/* ==========================================================
   McGhees Auto Care — theme
   Colours sampled from Jack's Instagram pricing graphic + logo
   ========================================================== */

/* Montserrat lives on Jack's own server, so visitors aren't sent to Google for it. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  /* Base: his graphics sit on pure black */
  --black: #000;
  --panel: #0b0c10;
  --panel-2: #13151b;
  --line: #24272f;

  /* Text */
  --white: #fff;
  --text: #e9ebef;
  --muted: #a3a8b3;

  /* Brand blues */
  --royal: #1021b8;      /* his stripes, "RESULTS", card borders — fills only */
  --royal-hi: #1b30d9;   /* hover on royal */
  --bright: #3557ff;     /* thin lines + glows (royal is too dark to see as a 2px line) */
  --ink: #7590ff;        /* blue words on black (royal fails contrast as text) */
  --logo-blue: #0948ad;  /* the M + ring in his logo */

  /* Stripe shadow grey from his graphic */
  --grey: #4a4a4a;

  --radius: 16px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px; /* room for the mobile call bar */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--white); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.blue { color: var(--ink); }

/* ---------- Eyebrow: echoes "— WE COME TO YOU —" under his logo ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #d7dae0;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--bright);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  font: 700 1rem/1 var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--blue {
  background: var(--royal);
  color: var(--white);
  box-shadow: 0 12px 32px -12px rgba(16, 33, 184, .95), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--blue:hover { background: var(--royal-hi); }
.btn--ghost { border: 1.5px solid #3a3e48; color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -.01em;
  color: var(--white);
}
.brand img { width: 40px; height: 40px; }
.brand .accent { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  display: none;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  color: var(--muted);
}
.nav__link:hover { color: var(--white); }
.nav .btn { min-height: 42px; padding: 0 16px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  height: min(74vh, 600px);
  object-fit: cover;
  object-position: center 62%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.75) 78%, #000 100%);
}
.hero__text { position: relative; margin-top: -150px; padding-bottom: 40px; }
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(2.3rem, 7vw, 4.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.025em;
}
.lead { margin: 18px 0 0; font-size: 1.1rem; color: var(--muted); max-width: 30em; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section__head h2 {
  margin: 16px 0 0;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}

/* ---------- Price cards ---------- */
.cards { display: grid; gap: 18px; margin-top: 40px; }
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 24px;
}
.card--featured {
  border: 2px solid var(--bright);
  background: linear-gradient(180deg, rgba(16, 33, 184, .28), rgba(16, 33, 184, 0) 60%), var(--panel);
  box-shadow: 0 30px 70px -35px rgba(53, 87, 255, .9);
}
.badge {
  position: absolute;
  top: -13px;
  left: 22px;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--royal);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.card__icon { width: 38px; height: 38px; color: var(--white); margin-bottom: 18px; }
.card h3 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.price {
  margin: 10px 0 0;
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--white);
}
.price small { font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-right: 6px; }
.price .per { font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.card__time { margin: 10px 0 0; font-size: .88rem; font-weight: 600; color: #c3c7d0; }
.card__sum { margin: 14px 0 0; color: var(--muted); }
.tiers { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tiers li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  font-size: .9rem;
}
.tiers b { color: var(--white); font-size: 1.05rem; }
.card__note { margin: 14px 0 0; font-size: .9rem; color: var(--ink); font-weight: 600; }

details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; font-weight: 500; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
details ul { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
details li { display: flex; gap: 10px; font-size: .95rem; line-height: 1.45; }
details li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: .5em;
  border-radius: 50%;
  background: var(--bright);
}

.card__book {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 20px;
  border: 1.5px solid #3a3e48;
  border-radius: 12px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.card__book:hover { border-color: var(--white); }
.card__book--blue { background: var(--royal); border-color: var(--royal); }
.card__book--blue:hover { background: var(--royal-hi); border-color: var(--royal-hi); }

.extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 18px;
  padding: 20px 24px;
  border: 1px dashed #2f333d;
  border-radius: var(--radius);
}
.extras h3 { margin: 0; font-size: 1rem; }
.extras ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.extras li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  font-size: .9rem;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 36px; }
.gallery figure {
  margin: 0;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.04); }
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.more:hover { color: var(--white); }

/* ---------- We come to you ---------- */
.info { display: grid; gap: 14px; margin-top: 40px; }
.info__item {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.info__item svg { width: 30px; height: 30px; color: var(--ink); }
.info__item h3 { margin: 16px 0 0; font-size: 1.1rem; }
.info__item p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Book ---------- */
.book {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.book__logo { width: min(300px, 80%); margin: 0 auto; }
.book__logo--mark { width: 120px; }
.book h2 {
  margin: 40px 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.book p { margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; }
.book__or { margin-top: 34px !important; font-size: .95rem !important; }
.book__phone {
  display: inline-block;
  margin-top: 6px;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--white);
  text-decoration: none;
}
.book__phone:hover { color: var(--ink); }
.book .actions { justify-content: center; }
.socials { display: flex; justify-content: center; gap: 22px; margin: 34px 0 0; padding: 0; list-style: none; }
.socials a { color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; }
.socials a:hover { color: var(--white); }

/* Angled blue/grey bars from the corners of his pricing graphic */
.slash { position: absolute; top: 0; width: 210px; height: 58px; pointer-events: none; }
.slash::before,
.slash::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}
.slash::before { background: var(--grey); transform: translate(24px, 18px); }
.slash::after { background: var(--royal); }
.slash--left { left: 0; }
.slash--right { right: 0; transform: scaleX(-1); }

/* ---------- Footer ---------- */
.foot { padding: 28px 0; border-top: 1px solid var(--line); color: #7d828d; font-size: .85rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.callbar .btn { flex: 1; min-height: 50px; }

/* ---------- Small phones ---------- */
@media (max-width: 560px) {
  .hero .actions .btn { flex: 1 1 100%; }
  .slash { width: 120px; height: 36px; }
  .slash::before { transform: translate(14px, 11px); }
}

/* ---------- Tablet + desktop ---------- */
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .nav__link { display: inline; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .info { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
    width: min(1120px, 100% - 40px);
    margin: 24px auto 0;
  }
  .hero__media { order: 2; }
  .hero__media img { height: 640px; border-radius: 24px; }
  .hero__media::after { display: none; }
  .hero__text { width: auto; margin: 0; padding: 0; }
  .section { padding: 110px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .card--featured { margin-top: -12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img, .btn { transition: none; }
}

/* ---------- Reviews (copied word for word from Google) ---------- */
.stars { margin: 0; color: #fbbc04; letter-spacing: 2px; }
.rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--text); font-size: .95rem; font-weight: 600; text-decoration: none; }
.rating:hover { color: var(--white); }
.reviews__from { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--muted); font-weight: 600; }
.reviews {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84%, 340px);
  gap: 14px;
  margin: 26px -20px 0;
  padding: 0 20px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  scroll-snap-align: start;
}
.review blockquote { flex: 1; margin: 12px 0 0; }
.review blockquote p { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.55; }
.review figcaption { margin-top: 16px; color: var(--white); font-weight: 700; }
.review figcaption span { color: var(--muted); font-weight: 500; }
@media (min-width: 900px) {
  .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; margin: 36px 0 0; padding: 0; overflow: visible; }
}

/* ---------- Outside or inside only ---------- */
.cards__title { margin: 54px 0 0; color: var(--white); font-size: 1.25rem; font-weight: 800; }
.cards--part { margin-top: 18px; }
.extras h3 small { display: block; margin-top: 4px; color: var(--muted); font-size: .85rem; font-weight: 500; }

@media (min-width: 960px) { .cards--part { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .cards--part { grid-template-columns: repeat(4, 1fr); } }
.cards--part { align-items: stretch; }
.cards--part .card { display: flex; flex-direction: column; }
.cards--part .card .card__book { margin-top: auto; }

/* Hero photo (Rolls-Royce): on big screens show a bit more sky and less paving */
@media (min-width: 960px) { .hero__media img { object-position: center 42%; } }
