/* Malvern Motor Services — production stylesheet (from approved mock-up v3) */

/* ---- Self-hosted fonts (no third-party requests) ---- */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/roboto-400.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/roboto-500.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/roboto-700.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Slab'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/roboto-slab-500.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Slab'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/roboto-slab-600.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Slab'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/roboto-slab-700.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/roboto-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/roboto-condensed-700.woff2') format('woff2'); }

:root {
  --brand: #005CC3;
  --brand-bright: #1F77F2;
  --navy-900: #081C36;
  --navy-800: #0C2A50;
  --navy-700: #123A6B;
  --ink: #16283B;
  --muted: #54677D;
  --paper: #F4F8FD;
  --card: #FFFFFF;
  --line: #D9E4F1;
  --flex: #BCCF01;
  --plate: #FFD60A;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(8, 28, 54, .06), 0 2px 8px rgba(8, 28, 54, .06);
  --shadow-md: 0 2px 4px rgba(8, 28, 54, .07), 0 12px 28px rgba(8, 28, 54, .12);
  --font-body: "Roboto", "Segoe UI", Arial, sans-serif;
  --font-display: "Roboto Slab", "Georgia", serif;
  --font-label: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation: none !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
  font-family: var(--font-label); font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--brand); border-radius: 2px; }

/* ---- Header ---- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-head.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.head-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-lockup img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 13px;
  border-radius: 8px;
  transition: color .15s ease, background-color .15s ease;
}
.main-nav a:hover { color: var(--brand); background: #E9F1FB; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-label); font-weight: 700; font-size: 15.5px;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  padding: 13px 22px; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn svg { flex: none; }
.btn-solid { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(0, 92, 195, .3); }
.btn-solid:hover { background: var(--brand-bright); transform: translateY(-1px); }
.btn-solid[disabled] { opacity: .6; cursor: default; transform: none; }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-head { padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { display: block; }

/* ---- Hero ---- */
.hero {
  position: relative; color: #fff;
  background: var(--navy-900);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/img/hero-960.jpg');
  background-image: image-set(url('/img/hero-960.webp') type('image/webp'), url('/img/hero-960.jpg') type('image/jpeg'));
  background-size: cover; background-position: center 35%;
}
@media (min-width: 721px) {
  .hero-bg {
    background-image: url('/img/hero-1600.jpg');
    background-image: image-set(url('/img/hero-1600.webp') type('image/webp'), url('/img/hero-1600.jpg') type('image/jpeg'));
  }
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(102deg, rgba(6, 24, 48, .94) 12%, rgba(0, 62, 138, .72) 55%, rgba(6, 24, 48, .44) 100%);
}
.hero-inner { position: relative; padding: 96px 0 72px; max-width: 720px; }
.hero-logo { height: clamp(58px, 9vw, 92px); width: auto; filter: brightness(0) invert(1); opacity: .96; margin-bottom: 26px; }
.hero .eyebrow { color: #BCD9FA; }
.hero .eyebrow::before { background: var(--flex); }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 58px);
  font-weight: 700;
  margin: 18px 0 20px;
  letter-spacing: -.01em;
}
.hero p.lede { font-size: clamp(17px, 2vw, 20px); color: #D8E6F7; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-promo {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 100%;
  margin-top: 20px; padding: 9px 18px 9px 11px;
  border-radius: 999px; text-decoration: none;
  background: rgba(188, 207, 1, .13);
  border: 1px solid rgba(188, 207, 1, .5);
  color: #E7F0B8; font-size: 14.5px;
  transition: background-color .15s ease, transform .15s ease;
}
.hero-promo:hover { background: rgba(188, 207, 1, .24); transform: translateY(-1px); }
.hero-promo .tag {
  font-family: var(--font-label); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; font-size: 12px;
  color: #0A1F3C; background: var(--flex); border-radius: 999px; padding: 3px 10px;
}
.hero-promo .txt { flex: 1 1 auto; min-width: 0; }
.hero-promo svg { flex: none; }
.trust-strip {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 44px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #E4EEF9; }
.trust-item svg { flex: none; }
.trust-item strong { font-family: var(--font-label); letter-spacing: .04em; font-weight: 700; }

/* ---- Sections ---- */
section { scroll-margin-top: 84px; }
.section-pad { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 14px 0 14px; }
.section-head p { color: var(--muted); }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 28px; box-shadow: var(--shadow-sm); position: relative;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: #E9F1FB; display: grid; place-items: center;
}
.svc-card h3 { font-size: 21px; }
.svc-card p { font-size: 15px; color: var(--muted); }
.svc-badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-label); font-weight: 700; font-size: 14px; letter-spacing: .04em;
  background: var(--brand); color: #fff; border-radius: 999px; padding: 4px 12px;
}
.svc-points { list-style: none; margin-top: 2px; display: flex; flex-direction: column; gap: 6px; }
.svc-points li { font-size: 14.5px; color: var(--muted); padding-left: 20px; position: relative; }
.svc-points li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--brand-bright);
}

/* Opening times strip */
.times-strip {
  margin-top: 26px;
  background: var(--navy-800); color: #fff;
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px;
  box-shadow: var(--shadow-md);
}
.times-strip .clock { display: flex; align-items: center; gap: 12px; font-family: var(--font-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: #BCD9FA; }
.times-list { display: flex; flex-wrap: wrap; gap: 10px 34px; font-size: 15.5px; }
.times-list div { display: flex; gap: 10px; align-items: baseline; }
.times-list dt { font-family: var(--font-label); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 13.5px; color: #8FB4E4; }
.times-list dd { font-variant-numeric: tabular-nums; }

/* ---- Carbon cleaning (FlexFuel) ---- */
.carbon { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.carbon::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(720px 340px at 88% -10%, rgba(188, 207, 1, .13), transparent 60%),
    radial-gradient(600px 320px at -8% 110%, rgba(31, 119, 242, .18), transparent 60%);
  pointer-events: none;
}
.carbon .wrap { position: relative; }
.carbon .eyebrow { color: var(--flex); }
.carbon .eyebrow::before { background: var(--flex); }
.carbon-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: start; }
.carbon h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 14px 0 16px; }
.carbon p.lede { color: #C9D8EA; }
.how-title { font-size: 19px; margin-top: 34px; color: #fff; }
.price-tag {
  display: inline-flex; align-items: baseline; gap: 10px;
  background: rgba(188, 207, 1, .12);
  border: 1px solid rgba(188, 207, 1, .45);
  color: var(--flex);
  border-radius: 12px; padding: 12px 18px; margin-top: 22px;
  font-family: var(--font-label); font-weight: 700; letter-spacing: .04em;
}
.price-tag .amount { font-size: 26px; }
.carbon-photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, .45); }
.carbon-photo img { width: 100%; height: 100%; object-fit: cover; }
.flex-banner { margin-top: 54px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, .45); }
.flex-banner img { width: 100%; display: block; }
.benefit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.benefit-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius); padding: 24px;
}
.benefit-card h3 { font-size: 18px; color: var(--flex); margin-bottom: 8px; }
.benefit-card p { font-size: 14.5px; color: #C2D2E5; }
.how-list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.how-list li { display: flex; gap: 12px; font-size: 15px; color: #DAE6F3; }
.how-list svg { flex: none; margin-top: 3px; }
.how-list strong { color: #fff; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 52px; align-items: center; }
.about-photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-years {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--brand); color: #fff; border-radius: 12px;
  padding: 14px 18px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; line-height: 1.2;
}
.about-years .num { font-family: var(--font-display); font-weight: 700; font-size: 30px; }
.about-years .lbl { font-family: var(--font-label); font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #BCD9FA; }
.about-copy h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 14px 0 18px; }
.about-copy p { color: var(--muted); margin-bottom: 14px; }
.about-copy p strong { color: var(--ink); }
.about-copy .btn { margin-top: 10px; }

/* ---- Contact ---- */
.contact { background: linear-gradient(180deg, var(--paper) 0%, #E8F0FA 100%); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: start; }
.info-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.info-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.info-card .svc-icon { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.info-card h3 { font-size: 17px; margin-bottom: 3px; }
.info-card p, .info-card a { font-size: 15.5px; color: var(--muted); }
.info-card a { color: var(--brand); font-weight: 500; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--font-label); font-weight: 700; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--navy-700); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: #FBFDFF; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-bright);
  box-shadow: 0 0 0 3px rgba(31, 119, 242, .18);
}
.field textarea { min-height: 120px; resize: vertical; }
/* Honeypot — visually removed, present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Number-plate registration field */
.plate-wrap { position: relative; display: flex; border-radius: 10px; overflow: hidden; border: 2px solid #10151B; width: 100%; max-width: 300px; box-shadow: var(--shadow-sm); }
.plate-band {
  background: #003FA3; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 9px; font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: .02em;
}
.plate-wrap input {
  border: 0; border-radius: 0; background: var(--plate);
  font-family: var(--font-label); font-weight: 700; font-size: 24px; letter-spacing: .14em;
  text-transform: uppercase; text-align: center; color: #10151B; padding: 10px 8px; width: 100%;
}
.plate-wrap input:focus { outline: none; box-shadow: inset 0 0 0 3px rgba(0, 63, 163, .35); }
.plate-wrap input::placeholder { color: rgba(16, 21, 27, .45); }
.ts-slot:not(:empty) { margin-top: 18px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-note { font-size: 13.5px; color: var(--muted); max-width: 34ch; }
.form-success {
  display: none; margin-top: 18px; border-radius: 10px; padding: 16px 18px;
  background: #E8F6EC; border: 1px solid #9ED8AE; color: #1D5A2E; font-size: 15px;
}
.form-success.show { display: block; }
.form-error {
  display: none; margin-top: 18px; border-radius: 10px; padding: 16px 18px;
  background: #FBECEC; border: 1px solid #E7A6A6; color: #7A2222; font-size: 15px;
}
.form-error.show { display: block; }

/* ---- Legal page & 404 ---- */
.page-plain { background: var(--paper); }
.legal-page { max-width: 720px; margin: 0 auto; padding: 64px 24px 88px; }
.legal-page h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 10px; }
.legal-page .updated { color: var(--muted); font-size: 14.5px; margin-bottom: 30px; }
.legal-page h2 { font-size: 22px; margin: 34px 0 10px; }
.legal-page p, .legal-page li { color: var(--ink); margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; margin-bottom: 12px; }
.nf-hero { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.nf-logo { height: 64px; width: auto; margin: 0 auto 26px; }
.nf-hero h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.nf-hero p { color: var(--muted); margin-bottom: 24px; }

/* ---- Footer ---- */
.site-foot { background: var(--navy-900); color: #A9BDD6; }
.foot-inner { padding-top: 54px; padding-bottom: 30px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; align-items: flex-start; }
.foot-brand img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.foot-brand p { font-size: 14px; margin-top: 12px; max-width: 34ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-nav a { color: #D5E2F1; text-decoration: none; font-family: var(--font-label); font-weight: 600; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; padding: 6px 0; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.foot-legal {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
  font-size: 13.5px;
}
.no-cookies { display: inline-flex; align-items: center; gap: 8px; color: #9FDDB2; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 1020px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .carbon-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .carbon-photo { order: -1; max-height: 340px; }
  .benefit-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 18px 20px; gap: 2px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .btn-head { display: none; }
  .svc-grid, .benefit-cols, .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 72px 0 56px; }
  .hero-promo { border-radius: 16px; padding: 11px 14px; font-size: 14px; }
  .section-pad { padding: 64px 0; }
}
