/* One Way Motors — shared site styles */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Archivo+Narrow:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0E1E33;
  --navy-2: #18304D;
  --navy-deep: #081424;
  --red: #D32027;
  --red-dark: #A8181E;
  --cream: #F5F2EC;
  --cream-2: #ECE7DC;
  --ink: #1A1A1A;
  --steel: #6B7280;
  --steel-2: #9CA3AF;
  --line: #D8D3C7;
  --line-dark: rgba(255,255,255,0.12);
  --mot-blue: #1B5FA8;
  --green: #1F7A3A;
  --amber: #C68A12;

  --serif: 'Archivo', system-ui, sans-serif;
  --condensed: 'Archivo Narrow', 'Archivo', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;

  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(34px, 4.5vw, 60px); }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.01em; }
h4 { font-size: 18px; letter-spacing: 0; font-weight: 700; }

p { margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
  font-family: var(--condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px; background: var(--red);
}
.eyebrow.on-dark { color: #FF6B70; }
.eyebrow.on-dark::before { background: #FF6B70; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ======== Header ======== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
.site-header .bar {
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  max-width: var(--maxw); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 20px;
  color: #fff;
}
.brand .mark {
  width: 38px; height: 38px;
  background: var(--red);
  display: grid; place-items: center;
  font-family: var(--condensed); font-weight: 800;
  color: #fff; font-size: 19px;
  letter-spacing: -0.04em;
  position: relative;
}
.brand .mark::after {
  content: '';
  position: absolute; inset: 4px;
  border: 1px solid rgba(255,255,255,0.35);
}
.brand small {
  display: block;
  font-family: var(--condensed); font-weight: 600;
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}
nav.primary { display: flex; gap: 4px; margin-left: auto; }
nav.primary a {
  font-family: var(--condensed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.78);
  position: relative;
  transition: color 0.15s;
}
nav.primary a:hover { color: #fff; }
nav.primary a.active { color: #fff; }
nav.primary a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px; background: var(--red);
}
.header-cta {
  display: flex; align-items: center; gap: 12px;
  padding-left: 20px;
  border-left: 1px solid var(--line-dark);
  margin-left: 4px;
}
.phone-link {
  font-family: var(--serif); font-weight: 700;
  font-size: 16px;
  color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.phone-link small {
  display: block;
  font-family: var(--condensed); font-weight: 500;
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.phone-link .num { font-size: 15px; letter-spacing: 0.02em; white-space: nowrap; }

/* ======== Buttons ======== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--condensed); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 13px;
  padding: 14px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; }
.btn .arr { transition: transform 0.15s; }
.btn:hover .arr { transform: translateX(3px); }

/* ======== Hero ======== */
.hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  padding: clamp(60px, 9vw, 120px) 0 clamp(60px, 8vw, 100px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(54px, 8vw, 108px);
  font-weight: 900;
  line-height: 0.95;
}
.hero h1 .red { color: var(--red); display: inline-block; }
.hero .lede {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  max-width: 52ch;
  margin: 28px 0 36px;
}
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
}
.hero-meta .stat .n {
  font-family: var(--serif); font-weight: 800;
  font-size: 36px; color: #fff; line-height: 1;
}
.hero-meta .stat .l {
  font-family: var(--condensed); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 11px; color: rgba(255,255,255,0.55);
  margin-top: 8px;
}

/* ======== Page hero (smaller) ======== */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: clamp(60px, 8vw, 110px) 0 clamp(50px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(44px, 6vw, 80px);
  max-width: 18ch;
}
.page-hero .lede {
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  max-width: 56ch;
  margin-top: 24px;
}
.page-hero .crumbs {
  font-family: var(--condensed);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs .sep { margin: 0 10px; opacity: 0.5; }

/* ======== Sections ======== */
section { padding: clamp(70px, 9vw, 120px) 0; }
section.tight { padding: clamp(50px, 6vw, 80px) 0; }
section.dark { background: var(--navy); color: #fff; }
section.cream-2 { background: var(--cream-2); }

.section-head { margin-bottom: clamp(40px, 5vw, 70px); }
.section-head h2 { max-width: 18ch; }
.section-head .lede { font-size: 18px; color: var(--steel); max-width: 60ch; margin-top: 20px; }
section.dark .section-head .lede { color: rgba(255,255,255,0.7); }

/* ======== Placeholder image ======== */
.ph {
  background: #2a2a2a;
  color: rgba(255,255,255,0.55);
  position: relative;
  overflow: hidden;
  font-family: var(--condensed);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.025) 14px 15px),
    linear-gradient(135deg, #3a3a3a 0%, #1f1f1f 100%);
}
.ph::after {
  content: '';
  position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px;
  border: 1px solid rgba(255,255,255,0.25);
  background:
    linear-gradient(45deg, transparent 46%, rgba(255,255,255,0.25) 47% 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(255,255,255,0.25) 47% 53%, transparent 54%);
}
.ph span { position: relative; z-index: 1; }

/* Real photo wrapper — same shape contract as .ph but renders an <img> */
.photo-frame {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-frame .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  font-family: var(--condensed);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  z-index: 2;
}
.ph.light { background: var(--cream-2); color: var(--steel); }
.ph.light::before {
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(0,0,0,0.025) 14px 15px),
    linear-gradient(135deg, #E8E2D3 0%, #D8D3C7 100%);
}
.ph.light::after { border-color: rgba(0,0,0,0.2); }
.ph.light::after {
  background:
    linear-gradient(45deg, transparent 46%, rgba(0,0,0,0.25) 47% 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(0,0,0,0.25) 47% 53%, transparent 54%);
}

/* ======== Service cards ======== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
section.dark .svc-grid { background: var(--line-dark); border-color: var(--line-dark); }
.svc-card {
  background: var(--cream);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column;
  min-height: 260px;
  transition: background 0.2s;
  position: relative;
}
section.dark .svc-card { background: var(--navy); }
.svc-card:hover { background: #fff; }
section.dark .svc-card:hover { background: var(--navy-2); }
.svc-card .num {
  font-family: var(--condensed); font-weight: 600;
  color: var(--red); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 16px;
}
.svc-card h3 { margin-bottom: 12px; }
.svc-card p { color: var(--steel); font-size: 15px; flex-grow: 1; }
section.dark .svc-card p { color: rgba(255,255,255,0.65); }
.svc-card .from {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--condensed);
  font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--steel);
}
section.dark .svc-card .from { border-color: var(--line-dark); color: rgba(255,255,255,0.6); }
.svc-card .from b { color: var(--ink); font-size: 22px; letter-spacing: -0.01em; font-weight: 800; }
section.dark .svc-card .from b { color: #fff; }
.svc-card .more {
  margin-top: 18px;
  font-family: var(--condensed); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
section.dark .svc-card .more { color: #fff; }
.svc-card .more::after {
  content: '→'; font-family: var(--body);
  transition: transform 0.15s;
}
.svc-card:hover .more::after { transform: translateX(4px); }

/* ======== Accreditations strip ======== */
.accreds {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.accreds .label {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.accreds .logos { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.accreds .logos > div {
  font-family: var(--condensed); font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 13px;
  text-transform: uppercase;
}

/* ======== Footer ======== */
footer.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
  font-size: 14px;
}
footer.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
footer.site-footer h4 {
  font-family: var(--condensed); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 12px; color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site-footer ul a:hover { color: #fff; }
footer.site-footer .blurb { color: rgba(255,255,255,0.55); margin-top: 18px; max-width: 32ch; }
footer.site-footer .legal {
  margin-top: 28px;
  font-family: var(--condensed);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}

/* ======== MOT badge ======== */
.mot-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mot-blue);
  color: #fff;
  padding: 6px 12px;
  font-family: var(--condensed); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 12px;
}
.mot-badge::before {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: #fff;
}

/* ======== Reg plate ======== */
.reg-plate {
  display: inline-flex; align-items: stretch;
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 700;
  border: 2px solid #1A1A1A;
  background: #FFD307;
  letter-spacing: 0.05em;
  overflow: hidden;
}
.reg-plate.front { background: #FFD307; }
.reg-plate .gb {
  background: var(--mot-blue);
  color: #fff;
  padding: 6px 8px 4px;
  font-size: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  font-family: var(--condensed);
}
.reg-plate .gb .stars { font-size: 8px; color: #FFD307; }
.reg-plate .num {
  padding: 8px 14px;
  font-size: 24px;
  color: #1A1A1A;
}

/* ======== Responsive ======== */

/* Global safety — never let anything overflow horizontally on small screens */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }

@media (max-width: 960px) {
  .hero .grid, footer.site-footer .grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  nav.primary { display: none; }
  .header-cta { margin-left: auto; padding-left: 0; border: 0; }
  .container { padding-left: 20px; padding-right: 20px; }

  /* Inline grids on home/about/mot/services pages — collapse to 1 col */
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 7fr 5fr"],
  [style*="grid-template-columns: 5fr 7fr"],
  [style*="grid-template-columns: 1.4fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Hero callout pill should not push offscreen */
  .hero h1 { font-size: clamp(40px, 8vw, 64px); }

  /* About section side-padding fix */
  section { padding-left: 0; padding-right: 0; }
}

@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  /* Tighten hero overlap card so it doesn't peek over edge */
  .hero [style*="bottom:-32px"][style*="left:-32px"] {
    left: 16px !important;
    right: 16px !important;
    bottom: -16px !important;
    max-width: none !important;
  }
  /* Header brand small-text wrap */
  .brand small { display: block; }
  .header-cta .phone-link { display: none; }
}
