/* =========================================================
   MP Mechanical — Edinburgh North
   sharp modern garage: ink + concrete + red, heavy condensed type
   ========================================================= */

:root {
  --ink:       oklch(0.17 0.006 250);
  --ink-2:     oklch(0.215 0.008 250);
  --ink-3:     oklch(0.28 0.009 250);
  --concrete:  oklch(0.945 0.003 90);
  --concrete-2:oklch(0.885 0.004 90);
  --steel:     oklch(0.62 0.004 250);
  --steel-d:   oklch(0.46 0.005 250);
  --line:      oklch(0.30 0.008 250);
  --line-lt:   oklch(0.82 0.004 90);
  --red:       oklch(0.575 0.21 27);
  --red-2:     oklch(0.50 0.20 27);
  --white:     oklch(0.98 0 0);

  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body:    "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 124px);
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

.red { color: var(--red); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 12px 16px; z-index: 200; }
.skip:focus { left: 14px; top: 14px; }

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand__logo { height: 30px; width: auto; display: block; }
.foot__logo { height: 48px; width: auto; display: block; margin: 0 auto; }
/* Saira Condensed is a variable family — give the display elements real weight
   so headings keep the heavy, condensed punch Anton had. */
.hero__title, .sec-title, .trust__big, .svc__no, .visit__block address,
.visit__phone, .rev__big, .callbar { font-weight: 800; }
.brand__mp {
  font-family: var(--display);
  font-size: 1.6em;
  line-height: 0.8;
  color: #fff;
  background: var(--red);
  padding: 5px 8px 3px;
  letter-spacing: 0.02em;
}
.brand__word {
  font-family: var(--display);
  font-size: 1.18em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: color-mix(in oklab, var(--ink) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .brand__mp { font-size: 1.35em; }
.nav .brand__word { font-size: 1em; }
.nav__links { display: flex; gap: 26px; justify-content: center; font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.nav__links a { color: color-mix(in oklab, var(--white) 78%, transparent); text-decoration: none; padding: 6px 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__call {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em; text-decoration: none;
  color: #fff; background: var(--red); padding: 11px 18px; border-radius: 2px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease); white-space: nowrap;
}
.nav__call svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.8; }
.nav__call:hover { background: var(--red-2); transform: translateY(-1px); }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 0 10px; background: transparent;
  border: 1px solid var(--line); border-radius: 3px; cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; gap: 12px; }
  .nav__links, .nav__call { display: none; }
  .nav__toggle { display: flex; }
}

/* ---------- mobile menu drawer ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.mobile-menu.is-open { visibility: visible; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(8,8,10,.62); opacity: 0; transition: opacity .35s var(--ease); }
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(330px, 86vw);
  background: var(--ink-2); border-left: 1px solid var(--line);
  padding: 78px 28px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 26px;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__close { position: absolute; top: 16px; right: 18px; width: 42px; height: 42px; background: transparent; border: none; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__links a {
  font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase;
  letter-spacing: .01em; color: #fff; text-decoration: none; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__links a:hover { color: var(--red); }
.mobile-menu__cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.mobile-menu__cta .btn { justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu__backdrop, .mobile-menu__panel, .nav__toggle span { transition: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none; padding: 15px 26px; border-radius: 2px; border: 2px solid transparent;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-2); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: color-mix(in oklab, #fff 38%, transparent); }
.btn--ghost:hover { border-color: #fff; background: color-mix(in oklab, #fff 8%, transparent); }
.btn--big { font-size: 17px; padding: 18px 32px; }

/* ---------- section heads ---------- */
.sec-head { max-width: var(--max); margin: 0 auto clamp(36px, 5vw, 56px); }
.sec-eyebrow {
  font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 12px;
}
.sec-eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--red); }
.sec-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(32px, 5.2vw, 64px); line-height: 0.98; letter-spacing: 0.005em;
  text-transform: uppercase; margin: 0; max-width: 16ch; color: var(--ink);
}
.sec-title--light { color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; min-height: min(92vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, var(--ink) 4%, color-mix(in oklab, var(--ink) 30%, transparent) 46%, transparent 78%),
    linear-gradient(to right, color-mix(in oklab, var(--ink) 78%, transparent), transparent 62%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(40px, 6vw, 72px); }
.hero__eyebrow { font-weight: 700; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: color-mix(in oklab, #fff 75%, transparent); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 12px; }
.hero__eyebrow::before { content: ""; width: 30px; height: 3px; background: var(--red); }
.hero__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 9vw, 116px); line-height: 0.9; letter-spacing: 0.005em;
  text-transform: uppercase; margin: 0 0 22px; text-shadow: 0 2px 30px color-mix(in oklab, var(--ink) 60%, transparent);
}
.hero__lede { max-width: 50ch; font-size: clamp(15.5px, 1.4vw, 18px); color: color-mix(in oklab, #fff 86%, transparent); margin: 0 0 30px; line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__rating { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: color-mix(in oklab, #fff 85%, transparent); margin: 0; }
.hero__rating strong { font-size: 17px; color: #fff; }
.stars, .rev__stars { color: var(--red); letter-spacing: 2px; }

/* ---------- trust bar ---------- */
.trust {
  background: var(--ink-2); color: #fff;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.trust__item { padding: clamp(22px, 3vw, 34px) var(--gutter); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.trust__item:first-child { border-left: none; }
.trust__big { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); text-transform: uppercase; letter-spacing: 0.01em; }
.trust__sm { font-size: 13px; color: var(--steel); font-weight: 500; }
@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(odd) { border-left: none; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- services ---------- */
.services { padding: var(--section-y) var(--gutter); background: var(--concrete); }
.svc-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-lt); border: 1px solid var(--line-lt); }
.svc { background: var(--concrete); padding: clamp(26px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 10px; transition: background 0.3s var(--ease); }
.svc:hover { background: #fff; }
.svc__no { font-family: var(--display); font-size: 26px; color: var(--red); line-height: 1; }
.svc__name { font-family: var(--body); font-weight: 800; font-size: clamp(19px, 1.8vw, 23px); margin: 4px 0 0; letter-spacing: -0.01em; }
.svc__desc { margin: 0; font-size: 15px; color: var(--steel-d); line-height: 1.6; max-width: 44ch; }
.svc-note { max-width: var(--max); margin: clamp(28px, 4vw, 40px) auto 0; text-align: center; font-size: 15px; color: var(--steel-d); }
.svc-note a { color: var(--red); font-weight: 700; text-decoration: none; white-space: nowrap; }
.svc-note a:hover { text-decoration: underline; }
@media (max-width: 680px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- why (dark, image + text) ---------- */
.why { background: var(--ink); color: #fff; padding: var(--section-y) var(--gutter); }
.why { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; max-width: var(--max); margin: 0 auto; }
.why__media { margin: 0; overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 4.4; border: 1px solid var(--line); }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__para { color: color-mix(in oklab, #fff 84%, transparent); font-size: 16px; line-height: 1.7; margin: 22px 0 24px; max-width: 52ch; }
.why__list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.why__list li { position: relative; padding-left: 30px; color: color-mix(in oklab, #fff 88%, transparent); font-weight: 500; }
.why__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; } .why__media { aspect-ratio: 16 / 11; } }

/* ---------- work gallery ---------- */
.work { padding: var(--section-y) var(--gutter); background: var(--concrete); }
.work-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.work__item { margin: 0; overflow: hidden; border-radius: 2px; background: var(--concrete-2); }
.work__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.work__item:hover img { transform: scale(1.04); }
.work__item--tall { grid-row: 1 / 3; }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .work__item { aspect-ratio: 4 / 3; }
  .work__item--tall { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
}

/* ---------- reviews ---------- */
.reviews { padding: var(--section-y) var(--gutter); background: var(--concrete-2); }
.rev-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rev { margin: 0; background: #fff; border: 1px solid var(--line-lt); border-top: 3px solid var(--red); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.rev__stars { font-size: 16px; }
.rev p { margin: 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; line-height: 1.45; flex: 1; }
.rev cite { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.rev--stat { background: var(--ink); border-top-color: var(--red); }
.rev--stat .rev__stars { color: var(--red); }
.rev--stat p { color: #fff; display: flex; align-items: baseline; gap: 12px; }
.rev--stat cite { color: var(--steel); }
.rev__big { font-family: var(--display); font-size: 56px; line-height: 0.8; color: var(--red); }
.rev-link { display: inline-block; max-width: var(--max); margin: clamp(28px, 4vw, 40px) auto 0; text-align: center; width: 100%; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 3px; width: max-content; }
.rev-link:hover { color: var(--red); }
.reviews { text-align: center; }
.reviews .sec-head, .reviews .rev-grid { text-align: left; }
.reviews .sec-title { margin-left: auto; margin-right: auto; text-align: center; max-width: none; }
.reviews .sec-eyebrow { justify-content: center; }
@media (max-width: 820px) { .rev-grid { grid-template-columns: 1fr; } }

/* ---------- visit (dark) ---------- */
.visit { background: var(--ink); color: #fff; padding: var(--section-y) var(--gutter); }
.visit__text { max-width: var(--max); margin: 0 auto; }
.visit__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin: clamp(32px, 4vw, 48px) 0; }
.visit__block { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--red); }
.visit__label { font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); }
.visit__block address { font-style: normal; font-family: var(--display); font-size: clamp(20px, 2vw, 26px); text-transform: uppercase; line-height: 1.2; letter-spacing: 0.01em; }
.hours { margin: 0; }
.hours > div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours > div:last-child { border-bottom: none; }
.hours dt, .hours dd { margin: 0; }
.hours dd { color: var(--steel); }
.visit__phone { font-family: var(--display); font-size: clamp(26px, 3vw, 38px); color: #fff; text-decoration: none; letter-spacing: 0.01em; }
.visit__phone:hover { color: var(--red); }
.link-arrow { font-weight: 700; font-size: 14px; color: var(--red); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.visit__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; }
@media (max-width: 760px) { .visit__grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- footer ---------- */
.foot { background: color-mix(in oklab, var(--ink) 96%, #000); color: #fff; padding: clamp(48px, 6vw, 80px) var(--gutter) calc(72px + env(safe-area-inset-bottom)); text-align: center; }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.foot__brand .brand__mp { font-size: 1.8em; }
.foot__brand .brand__word { font-size: 1.3em; }
.foot__line { margin: 0; font-size: 14px; color: color-mix(in oklab, #fff 80%, transparent); }
.foot__line a { color: var(--red); font-weight: 700; text-decoration: none; }
.foot__fine { margin: 16px 0 0; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel-d); }
.foot__ip { max-width: 80ch; margin: 22px auto 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 10.5px; line-height: 1.7; color: var(--steel-d); }
.foot__ip a { color: var(--steel); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- mobile sticky call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: center; gap: 10px;
  background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--display); font-size: 17px; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 15px 16px calc(15px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px color-mix(in oklab, var(--ink) 40%, transparent);
}
.callbar svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.9; }
@media (max-width: 860px) { .callbar { display: flex; } }

/* ---------- reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal-img] { opacity: 0; transform: translateY(12px) scale(0.99); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-delay="1"] { transition-delay: 70ms; } [data-delay="2"] { transition-delay: 140ms; }
[data-delay="3"] { transition-delay: 210ms; } [data-delay="4"] { transition-delay: 280ms; }
.is-in[data-reveal], .is-in[data-reveal-img] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal], [data-reveal-img] { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- corner note (JTN demo) ---------- */
.jtn-note {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; width: min(330px, calc(100vw - 32px));
  background: #fff; color: var(--ink); border: 1px solid var(--line-lt); border-top: 4px solid var(--red); border-radius: 8px;
  padding: 18px 20px; box-shadow: 0 24px 60px -18px color-mix(in oklab, var(--ink) 55%, transparent);
  transform: translateY(20px); opacity: 0; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.jtn-note.is-in { transform: none; opacity: 1; }
.jtn-note__close { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: none; background: transparent; font-size: 22px; line-height: 1; color: var(--steel); cursor: pointer; border-radius: 50%; }
.jtn-note__close:hover { background: var(--concrete); color: var(--ink); }
.jtn-note__hi { margin: 0 0 6px; font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; }
.jtn-note__body { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--steel-d); }
.jtn-note__call { display: block; text-align: center; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 11px 16px; border-radius: 3px; transition: background 0.25s var(--ease); }
.jtn-note__call:hover { background: var(--red); }
.jtn-note__site { display: block; text-align: center; margin-top: 9px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
@media (max-width: 860px) { .jtn-note { bottom: 76px; } }
@media (prefers-reduced-motion: reduce) { .jtn-note { transition: none !important; } }

/* ---------- minimised note bubble ---------- */
.jtn-bubble {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--red); border: none; color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 14px 34px -10px color-mix(in oklab, var(--ink) 60%, transparent);
  transform: scale(0); transition: transform .35s var(--ease), background .25s var(--ease);
}
.jtn-bubble.is-in { transform: scale(1); }
.jtn-bubble:hover { background: var(--red-2); }
.jtn-bubble svg { width: 24px; height: 24px; }
@media (max-width: 860px) { .jtn-bubble { bottom: 76px; } }
@media (prefers-reduced-motion: reduce) { .jtn-bubble { transition: none !important; } }
