/* Northern Garages. One stylesheet for every page. Direction: independent specialist workshop. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/barlowcond-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/barlowcond-700.woff2") format("woff2"); }

:root {
  --night: #06152f;
  --navy: #0c2d62;
  --ink: #0a2350;
  --paper: #ffffff;
  --mist: #f2f5fa;
  --rule: #d3dceb;
  --rule-night: rgba(169, 189, 223, 0.26);
  --soft: #44597f;
  --on-night-soft: #a9bddf;
  --blue: #4a94f0;
  --blue-text: #1d63c6;
  --wa: #0f7a3d;
  --wa-deep: #0b6131;

  --display: "Barlow Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --text: "Barlow", "Segoe UI", system-ui, sans-serif;

  --t-xl: clamp(2.9rem, 5vw + 1rem, 5.6rem);
  --t-l: clamp(2.1rem, 2.4vw + 1.3rem, 3.25rem);
  --t-m: 1.75rem;
  --t-body: 1.0625rem;
  --t-label: 0.8125rem;

  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--navy) var(--mist); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: var(--t-body); line-height: 1.6; font-weight: 400; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
::selection { background: var(--navy); color: var(--paper); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 0.98; letter-spacing: 0.01em; text-wrap: balance; }
h1 { font-size: var(--t-xl); line-height: 0.94; }
h2 { font-size: var(--t-l); }
h3 { font-size: var(--t-m); line-height: 1.05; }
:focus-visible { outline: 3px solid var(--blue-text); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--paper); }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.label { font-family: var(--text); font-weight: 600; font-size: var(--t-label); letter-spacing: 0.12em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--ink); padding: 12px 16px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* header */
.top { background: var(--night); color: var(--paper); border-bottom: 1px solid var(--rule-night); }
.top-in { display: flex; align-items: center; gap: 36px; padding-block: 12px; }
.brand { flex: none; display: block; line-height: 0; }
.brand img { height: 88px; width: auto; display: block; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-weight: 500; font-size: 1rem; letter-spacing: 0.02em; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; color: var(--on-night-soft); transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.nav a:hover { color: var(--paper); border-bottom-color: var(--blue); }
.top-tel { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; padding-left: 30px; border-left: 1px solid var(--rule-night); }
.top-tel:hover { color: var(--blue); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 12px 28px; border-radius: 2px; border: 1.5px solid transparent; font-family: var(--text); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.02em; text-decoration: none; line-height: 1.1; cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease); }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); }
.btn-wide { display: flex; width: 100%; }
.btn-line { border-color: rgba(169, 189, 223, 0.5); color: var(--paper); background: transparent; }
.btn-line:hover { border-color: var(--paper); }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--paper); }
.hero-in { position: relative; padding-block: clamp(56px, 9vw, 128px) clamp(48px, 7vw, 96px); }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-lead { margin: 28px 0 0; max-width: 50ch; font-size: 1.25rem; line-height: 1.55; color: var(--on-night-soft); }
.hero-lead strong { color: var(--paper); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-art { position: absolute; right: -40px; top: 50%; width: min(46vw, 620px); transform: translateY(-50%); pointer-events: none; }
.js .hero-art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) 0.15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.spec { position: relative; border-top: 1px solid var(--rule-night); }
.spec ul { list-style: none; margin-block: 0; padding-block: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec li { padding: 22px 24px 24px 0; }
.spec li + li { padding-left: 24px; border-left: 1px solid var(--rule-night); }
.spec .label { display: block; color: var(--blue); margin-bottom: 6px; }
.spec span:last-child { font-weight: 500; line-height: 1.35; display: block; }

/* sections */
.sec { padding-block: clamp(72px, 9vw, 128px); }
.sec.mist { background: var(--mist); }
.sec.night { background: var(--night); color: var(--paper); }
.sec.navy { background: var(--navy); color: var(--paper); }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head p { margin: 0; color: var(--soft); font-size: 1.125rem; }
.sec-head.solo { grid-template-columns: minmax(0, 1fr); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
h2::before { content: ""; display: block; width: 44px; height: 3px; background: var(--blue-text); margin-bottom: 22px; }
.night h2::before, .navy h2::before { background: var(--blue); }

/* ruled lists */
.work, .why { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.work a, .why li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 26px; gap: 6px clamp(20px, 5vw, 80px); align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.why li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: baseline; }
.work a { text-decoration: none; padding-right: 12px; transition: background-color 180ms var(--ease), padding-left 180ms var(--ease); }
.work a:hover { background: var(--mist); padding-left: 16px; }
.work h3, .why h3 { font-size: 1.75rem; }
.work span, .why span { color: var(--soft); }
.work svg { width: 24px; height: 24px; color: var(--blue-text); }
.also { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 5vw, 80px); }
.also p { margin: 0; max-width: none; color: var(--soft); }
.also .label { padding-top: 5px; }

/* approach */
.approach .big { font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.5rem); line-height: 1.12; text-transform: uppercase; letter-spacing: 0.01em; max-width: 22ch; margin: 0 0 24px; color: var(--paper); }
.approach p { color: var(--on-night-soft); font-size: 1.125rem; }
.quote { margin: 34px 0 0; padding: 4px 0 4px 24px; position: relative; }
.quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--blue-text); }
.night .quote::before { background: var(--blue); }
.quote p { font-size: 1.25rem; font-weight: 500; line-height: 1.5; margin-bottom: 10px; color: var(--ink); }
.night .quote p { color: var(--paper); }
.quote footer { color: var(--soft); }
.night .quote footer { color: var(--on-night-soft); }
.quote footer a { color: inherit; }

/* reviews */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.reviews blockquote { margin: 0; padding: 32px; background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; display: flex; flex-direction: column; }
.reviews blockquote p { font-size: 1.25rem; font-weight: 500; line-height: 1.5; max-width: none; }
.reviews footer { margin-top: auto; padding-top: 14px; color: var(--soft); }
.stars { display: flex; gap: 3px; margin-bottom: 18px; color: var(--blue-text); }
.stars svg { width: 18px; height: 18px; }
.links { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 32px; font-weight: 600; }

/* about */
.langs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.langs li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.625rem; font-weight: 500; line-height: 1.3; }
.langs li span:last-child:not(:first-child) { font-size: 1rem; color: var(--soft); font-weight: 400; }
.about p { font-size: 1.125rem; }

/* enquiry */
.enquiry p { color: var(--on-night-soft); font-size: 1.125rem; }
.steps { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--rule-night); counter-reset: step; max-width: 30rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; padding: 14px 0; border-bottom: 1px solid var(--rule-night); }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 1.375rem; color: var(--blue); line-height: 1.2; }
.card { background: #0b2250; color: var(--paper); border: 1px solid var(--rule-night); border-radius: 3px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 30px 60px -30px rgba(2, 8, 22, 0.8); }
.card :focus-visible { outline-color: var(--paper); }
.card-title { font-family: var(--display); font-weight: 700; font-size: 2rem; text-transform: uppercase; line-height: 1; margin: 0 0 26px; }
.card-title::before { display: none; }
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field > .label, .field legend.label { display: block; margin-bottom: 10px; padding: 0; color: var(--on-night-soft); }
.field .hint { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 0.9375rem; margin-left: 6px; opacity: 0.85; }
fieldset.field legend.label { float: left; width: 100%; }
fieldset.field .chips { clear: both; }
.plate-wrap { display: flex; background: #f7d117; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 2px #0a0f1c; transition: box-shadow 160ms var(--ease); }
.plate-wrap:focus-within { box-shadow: inset 0 0 0 2px #0a0f1c, 0 0 0 3px var(--paper); }
.plate-band { flex: none; display: flex; align-items: flex-end; justify-content: center; width: 56px; padding-bottom: 12px; background: #1447a8; color: var(--paper); font-family: var(--text); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.06em; }
.plate { flex: 1; min-width: 0; padding: 14px 16px 16px; border: 0; background: transparent; color: #0a0f1c; font-family: var(--display); font-weight: 700; font-size: 3.25rem; line-height: 1.05; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; caret-color: #0a0f1c; }
.plate::placeholder { color: rgba(10, 15, 28, 0.42); opacity: 1; }
.plate:focus-visible { outline: none; }
.line { display: block; width: 100%; padding: 14px 16px; font: 400 1.0625rem/1.5 var(--text); color: var(--paper); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(169, 189, 223, 0.42); border-radius: 3px; caret-color: var(--blue); transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.line::placeholder { color: var(--on-night-soft); opacity: 0.85; }
.line:focus-visible { outline: none; border-color: var(--blue); background: rgba(255, 255, 255, 0.09); }
textarea.line { resize: vertical; min-height: 7.5em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: block; padding: 9px 15px; border: 1px solid rgba(169, 189, 223, 0.42); border-radius: 999px; font-size: 0.9688rem; font-weight: 500; line-height: 1.2; color: var(--paper); transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease); }
.chip:hover span { border-color: var(--paper); }
.chip input:checked + span { background: var(--paper); border-color: var(--paper); color: #0a2350; }
.chip input:focus-visible + span { outline: 3px solid var(--paper); outline-offset: 2px; }
.card .btn-wa { margin-top: 6px; min-height: 60px; font-size: 1.125rem; }

/* find us */
.find p { color: var(--on-night-soft); }
.find p a { color: var(--paper); font-weight: 600; }
.find address { font-style: normal; font-size: 1.375rem; font-weight: 500; line-height: 1.4; margin: 0 0 22px; }
.hours { width: 100%; max-width: 27rem; margin-top: 40px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; padding-bottom: 10px; color: var(--blue); }
.hours td { padding: 11px 0; border-top: 1px solid var(--rule-night); }
.hours td:last-child { text-align: right; font-weight: 500; }
.hours tr.today td { font-weight: 600; }
.hours small { display: block; font-size: 0.875rem; font-weight: 400; color: var(--on-night-soft); }
.hours-note { margin-top: 18px; max-width: 27rem; font-size: 1rem; }
.map { width: 100%; height: auto; border: 1px solid var(--rule-night); border-radius: 2px; }
.map-note { margin-top: 10px; font-size: 0.875rem; color: var(--on-night-soft); }

/* footer */
.foot { background: var(--night); color: var(--on-night-soft); padding-block: 56px 44px; font-size: 1rem; border-top: 1px solid var(--rule-night); }
.foot-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(24px, 5vw, 80px); }
.foot img { height: 50px; width: auto; margin-bottom: 20px; }
.foot ul { list-style: none; margin: 12px 0 0; padding: 0; }
.foot li { padding: 4px 0; }
.foot a { color: var(--paper); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .label { color: var(--blue); }
.foot p { margin: 0 0 6px; }

/* service pages */
.svc-lead { background: var(--night); color: var(--paper); padding-block: clamp(26px, 4vw, 48px) clamp(44px, 6vw, 84px); }
.crumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(24px, 4vw, 52px); color: var(--on-night-soft); text-decoration: none; }
.crumb:hover { color: var(--paper); }
.crumb svg { width: 18px; height: 18px; transform: rotate(180deg); }
.svc-lead h1 { font-size: clamp(2.6rem, 4vw + 1rem, 4.5rem); max-width: 16ch; }
.svc-lead h1::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 22px; background: var(--blue); }
.svc-lead p { color: var(--on-night-soft); font-size: 1.25rem; margin: 22px 0 0; max-width: 50ch; }
.svc-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.prose h2 { font-size: 1.875rem; margin: 56px 0 18px; }
.prose h2::before { width: 32px; margin-bottom: 16px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding: 0; list-style: none; max-width: 62ch; border-top: 1px solid var(--rule); }
.prose li { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.prose .quote { max-width: 62ch; }
.svc-card { position: sticky; top: 24px; }
.svc-card .card { background: var(--night); box-shadow: 0 24px 48px -28px rgba(6, 21, 47, 0.6); }

/* phone bar */
.bar { display: none; }

@media (max-width: 1000px) {
  .hero-art { opacity: 0.35; right: -120px; width: 520px; }
  .spec ul { grid-template-columns: 1fr 1fr; }
  .spec li:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec li:nth-child(n+3) { border-top: 1px solid var(--rule-night); }
}
@media (max-width: 900px) {
  .sec-head, .split, .also, .svc-body { grid-template-columns: minmax(0, 1fr); }
  .sec-head { align-items: start; gap: 14px; }
  .nav { display: none; }
  .top-tel { margin-left: auto; border-left: 0; padding-left: 0; }
  .work a { grid-template-columns: minmax(0, 1fr) 24px; gap: 4px 16px; }
  .work a span { grid-column: 1; grid-row: 2; }
  .work a svg { grid-column: 2; grid-row: 1 / span 2; }
  .why li { grid-template-columns: minmax(0, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > :first-child { grid-column: 1 / -1; }
  .svc-card { position: static; order: -1; }
}
@media (max-width: 640px) {
  .top-in { padding-block: 8px; gap: 12px; }
  .brand img { height: clamp(52px, 15.5vw, 64px); }
  .top-tel { font-size: 1.3125rem; }
  .hero-art { opacity: 0.2; right: -220px; }
  .hero-cta .btn { width: 100%; }
  .hero-lead { font-size: 1.125rem; }
  .plate-band { width: 46px; }
  .plate { font-size: 2.5rem; padding-inline: 10px; }
  .reviews blockquote { padding: 24px; }
  .langs li { font-size: 1.5rem; }
  body { padding-bottom: 72px; }
  .bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 3fr 2fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--night); border-top: 1px solid var(--rule-night); }
  .bar .btn { min-height: 52px; padding-inline: 10px; }
}
@media (max-width: 380px) {
  .spec ul { grid-template-columns: 1fr; }
  .spec li, .spec li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-night); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}

.enquiry h2 { margin-bottom: 18px; }

/* prices */
.prices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.prices li { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.prices h3 { font-size: 1.75rem; margin: 0 0 4px; }
.prices span { color: var(--soft); }
.prices strong { flex: none; font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--ink); white-space: nowrap; }
.prices-note { margin-top: 20px; max-width: 46rem; font-size: 1rem; color: var(--soft); }
.prose .prices h3 { font-size: 1.375rem; }
.prose .prices strong { font-size: 1.625rem; }
.prose .prices li { list-style: none; }
@media (max-width: 640px) {
  .prices li { gap: 14px; padding: 16px 0; }
  .prices h3 { font-size: 1.375rem; }
  .prices strong { font-size: 1.5rem; }
}

/* booking tabs */
.card-title { margin-bottom: 20px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 26px; border: 1px solid rgba(169, 189, 223, 0.42); border-radius: 3px; overflow: hidden; }
.tab { appearance: none; border: 0; margin: 0; padding: 14px 10px; background: transparent; color: var(--on-night-soft); font: 600 1rem/1.2 var(--text); cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.tab + .tab { border-left: 1px solid rgba(169, 189, 223, 0.42); }
.tab:hover { color: var(--paper); }
.tab[aria-selected="true"] { background: var(--paper); color: #0a2350; }
.tab:focus-visible { outline: 3px solid var(--paper); outline-offset: -3px; }
.tab[aria-selected="true"]:focus-visible { outline-color: var(--blue-text); }
html:not(.js) .tabs { display: none; }
.panel[hidden] { display: none; }
.opts { display: grid; gap: 8px; clear: both; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 16px; border: 1px solid rgba(169, 189, 223, 0.42); border-radius: 3px; color: var(--paper); transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease); }
.opt b { font-weight: 500; font-size: 1.0625rem; }
.opt i { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.opt:hover span { border-color: var(--paper); }
.opt input:checked + span { background: var(--paper); border-color: var(--paper); color: #0a2350; }
.opt input:focus-visible + span { outline: 3px solid var(--paper); outline-offset: 2px; }
.line.date { color-scheme: dark; min-height: 52px; max-width: 16rem; font-variant-numeric: tabular-nums; }
.card .field-note, .card .card-note { margin: 10px 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--on-night-soft); max-width: none; }
.card .field-note { color: #ffd66b; }
.card .card-note { margin-top: 14px; }
textarea#bnote { min-height: 4.5em; }
@media (max-width: 640px) {
  .line.date { max-width: none; }
}
