/* =========================================================================
   DOM'S GARAGE — Design System
   Independent MOT & repair garage, Scottish Borders
   Palette: workshop graphite + amber accent + Borders heritage detail
   ========================================================================= */

:root {
  /* Brand colours */
  --ink:        #14181d;   /* near-black graphite (primary text / dark sections) */
  --ink-2:      #1c2229;   /* raised dark surface */
  --steel:      #2b333c;   /* steel lines / borders on dark */
  --amber:      #ff8a00;   /* signature accent — energy, MOT-ready */
  --amber-dk:   #e06f00;   /* amber pressed / hover */
  --tartan:     #123a5e;   /* Borders heritage deep blue (trust) */
  --tartan-dk:  #0d2c47;

  /* Neutrals */
  --paper:      #ffffff;
  --mist:       #f4f6f8;   /* light section background */
  --mist-2:     #e9edf1;   /* card borders / dividers */
  --slate:      #5a6672;   /* muted body text */
  --slate-2:    #7c8894;

  /* Status */
  --go:         #1f9d55;
  --go-soft:    #e5f5ec;
  --warn:       #d98a00;
  --stop:       #d1435b;
  --stop-soft:  #fbe9ed;

  /* Type */
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,24,29,.06), 0 2px 8px rgba(20,24,29,.05);
  --shadow:    0 4px 12px rgba(20,24,29,.08), 0 12px 32px rgba(20,24,29,.10);
  --shadow-lg: 0 20px 60px rgba(20,24,29,.22);
  --maxw: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
[hidden] { display: none !important; }  /* keep the hidden attr authoritative over class display rules */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .3px;
  margin: 0 0 .4em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 34px); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--dark { background: var(--ink); color: #eef2f6; }
.section--mist { background: var(--mist); }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--amber); display: inline-block; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 62ch; }
.section--dark .lead { color: #aeb9c4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 1.05rem; letter-spacing: .6px;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); color: #1a1204; box-shadow: 0 6px 18px rgba(255,138,0,.35); }
.btn--primary:hover { background: var(--amber-dk); box-shadow: 0 10px 26px rgba(255,138,0,.45); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--tartan); transform: translateY(-2px); }
.btn--wa { background: #25d366; color: #06331b; box-shadow: 0 6px 18px rgba(37,211,102,.3); }
.btn--wa:hover { background: #1eb457; transform: translateY(-2px); }
.btn--lg { padding: 18px 34px; font-size: 1.15rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,24,29,.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--steel);
  color: #fff;
}
.nav { display: flex; align-items: center; gap: 26px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.brand .spark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--amber); color: #1a1204; border-radius: 9px; font-size: 1.1rem; box-shadow: 0 4px 12px rgba(255,138,0,.4); }
.brand small { display: block; font-family: var(--font-body); font-size: .6rem; letter-spacing: 3px; color: var(--amber); font-weight: 600; margin-top: -3px; text-transform: uppercase; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 9px 14px; border-radius: 8px; font-weight: 500; font-size: .98rem; color: #cdd6df; transition: color .15s, background .15s; }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav__cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__call { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 1.15rem; color: #fff; font-weight: 600; letter-spacing: .5px; }
.nav__call span { color: var(--amber); }
.nav__toggle { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; }
.nav__toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; object-fit: cover; width: 100%; height: 100%; opacity: .32; }
.hero::after { content:""; position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(255,138,0,.18), transparent 60%),
    linear-gradient(180deg, rgba(20,24,29,.35) 0%, rgba(20,24,29,.86) 68%, var(--ink) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(72px, 12vw, 150px); max-width: 780px; }
.hero h1 { margin-bottom: .2em; }
.hero h1 .amber { color: var(--amber); }
.hero__tag { font-size: clamp(1.1rem, 2vw, 1.45rem); color: #cfd8e0; max-width: 56ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 26px 34px; padding-top: 26px; border-top: 1px solid var(--steel); }
.hero__trust div { display: flex; align-items: center; gap: 11px; font-size: .96rem; color: #d5deе6; }
.hero__trust strong { display:block; font-family: var(--font-head); font-size: 1.5rem; color: #fff; line-height: 1; }
.hero__trust span { color: var(--slate-2); font-size: .82rem; }
.tick { width: 22px; height: 22px; flex: none; color: var(--amber); }

/* ---------- Marquee strip ---------- */
.strip { background: var(--amber); color: #1a1204; overflow: hidden; }
.strip__track { display: flex; gap: 48px; padding: 13px 0; white-space: nowrap; font-family: var(--font-head); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; animation: marquee 28s linear infinite; }
.strip__track span { display: inline-flex; align-items: center; gap: 12px; font-size: 1.05rem; }
.strip__track span::before { content: "◆"; font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--mist-2); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d7dee5; }
.card__icon { width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--amber), var(--amber-dk)); color: #1a1204; margin-bottom: 18px; box-shadow: 0 6px 16px rgba(255,138,0,.25); }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .35em; color: var(--ink); }
.card p { color: var(--slate); font-size: .98rem; margin-bottom: 14px; }
.card__from { font-family: var(--font-head); font-weight: 600; color: var(--tartan); font-size: 1.1rem; letter-spacing: .5px; }
.card__from b { color: var(--ink); font-size: 1.35rem; }
.card__link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--amber-dk); font-size: .95rem; margin-top: 6px; }
.card__link:hover { gap: 11px; }

/* ---------- Section heading block ---------- */
.head-block { max-width: 640px; margin-bottom: 44px; }
.head-block.center { margin-inline: auto; text-align: center; }
.head-block.center .eyebrow { justify-content: center; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--steel); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 24px; width: 44px; height: 44px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: #1a1204; background: var(--amber); border-radius: 12px; box-shadow: 0 6px 16px rgba(255,138,0,.35); }
.step h3 { color: #fff; margin-top: 12px; font-size: 1.3rem; }
.step p { color: #a9b4bf; font-size: .95rem; margin: 0; }

/* ---------- About / Dom ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.about__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--mist-2); }
.about__photo img { width:100%; height:100%; object-fit: cover; }
.about__badge { position: absolute; bottom: 20px; left: 20px; right: 20px; background: rgba(20,24,29,.9); backdrop-filter: blur(6px); color:#fff; padding: 16px 20px; border-radius: var(--r); display:flex; align-items:center; gap:14px; }
.about__badge .spark { width: 42px; height:42px; flex:none; background: var(--amber); color:#1a1204; border-radius:11px; display:grid; place-items:center; font-family:var(--font-head); font-weight:700; }
.about__badge b { display:block; font-family: var(--font-head); font-size:1.15rem; letter-spacing:.5px; }
.about__badge span { font-size:.82rem; color:#aeb9c4; }
.signature { font-family: var(--font-head); font-size: 2rem; color: var(--amber); transform: rotate(-3deg); display:inline-block; }

/* ---------- Pricing table ---------- */
.pricelist { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--mist-2); box-shadow: var(--shadow-sm); background:#fff; }
.pricerow { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--mist-2); }
.pricerow:last-child { border-bottom: 0; }
.pricerow:nth-child(odd) { background: var(--mist); }
.pricerow b { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: .4px; }
.pricerow small { display:block; color: var(--slate); font-weight: 400; font-family: var(--font-body); font-size: .85rem; text-transform: none; letter-spacing: 0; }
.pricerow .amt { font-family: var(--font-head); font-size: 1.5rem; color: var(--tartan); white-space: nowrap; }
.pricerow .amt small { color: var(--slate-2); font-size: .8rem; }

/* ---------- Reviews ---------- */
.review { background:#fff; border:1px solid var(--mist-2); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.review .stars { color: var(--amber); letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 12px; }
.review p { font-size: 1.02rem; color: var(--ink); }
.review .who { display:flex; align-items:center; gap:12px; margin-top:16px; }
.review .who .av { width:42px; height:42px; border-radius:50%; background: var(--tartan); color:#fff; display:grid; place-items:center; font-family:var(--font-head); font-weight:700; }
.review .who b { font-size:.98rem; }
.review .who span { display:block; font-size:.82rem; color: var(--slate); }

/* ---------- Find us ---------- */
.findus { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: stretch; }
.findus__map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; border: 1px solid var(--mist-2); }
.findus__map iframe { display: block; width: 100%; height: 100%; min-height: 380px; }
.findus__info { display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.findus__item { display: flex; gap: 15px; align-items: flex-start; }
.findus__item svg { width: 26px; height: 26px; flex: none; color: var(--amber); margin-top: 3px; }
.findus__item b { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .4px; text-transform: uppercase; display: block; margin-bottom: 3px; }
.findus__item p { margin: 0; color: var(--slate); line-height: 1.55; }
.findus__item p strong { color: var(--ink); }
@media (max-width: 820px) { .findus { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--tartan), var(--tartan-dk)); color:#fff; border-radius: var(--r-lg); padding: clamp(34px, 5vw, 60px); text-align:center; position:relative; overflow:hidden; }
.cta-band::after { content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px; background: radial-gradient(circle, rgba(255,138,0,.35), transparent 70%); }
.cta-band h2 { color:#fff; position:relative; }
.cta-band p { color:#cfe0ee; max-width:52ch; margin-inline:auto; position:relative; }
.cta-band .btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:24px; position:relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color:#c3ccd5; padding-block: 58px 30px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color:#fff; font-size:1.05rem; letter-spacing:1.5px; margin-bottom:16px; }
.site-footer a { color:#c3ccd5; display:block; padding:5px 0; font-size:.96rem; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom { border-top:1px solid var(--steel); margin-top:44px; padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.85rem; color: var(--slate-2); }
.footer-contact li { display:flex; gap:11px; align-items:flex-start; margin-bottom:12px; list-style:none; font-size:.96rem; }
.footer-contact ul { padding:0; margin:0; }
.footer-contact svg { width:19px; height:19px; color: var(--amber); flex:none; margin-top:2px; }

/* ---------- Floating WhatsApp ---------- */
.fab-wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background:#25d366; color:#fff; display:grid; place-items:center; box-shadow: 0 10px 30px rgba(37,211,102,.5); transition: transform .2s; }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 32px; height: 32px; }

/* ---------- Utilities ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.txt-amber { color: var(--amber); }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2,1fr); gap: 34px 22px; }
  .about { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .nav__links { display:none; }
  .nav__toggle { display:grid; place-items:center; }
  .nav__call.desk { display:none; }
}
@media (max-width: 620px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 18px 24px; }
  .pricerow { grid-template-columns: 1fr; gap: 4px; }
  .pricerow .amt { justify-self: start; }
}

/* Mobile nav drawer */
.mnav { position: fixed; inset: 0; z-index: 100; background: rgba(20,24,29,.98); display: none; flex-direction: column; padding: 28px; }
.mnav.open { display: flex; }
.mnav a { color:#fff; font-family: var(--font-head); font-size: 1.6rem; padding: 14px 0; border-bottom: 1px solid var(--steel); text-transform: uppercase; }
.mnav .close { align-self: flex-end; background:none; border:0; color:#fff; font-size: 2rem; margin-bottom: 20px; }
