/* ==========================================================================
   Driver Recognition Social — site styles
   Edit the variables below to change colours, fonts and spacing site-wide.
   ========================================================================== */

:root {
  --ink: #201e1d;            /* body text */
  --ground: #f3f2f2;         /* page background */
  --panel: #eae9e9;          /* alternate panel background */
  --muted: #605d5d;          /* secondary text */
  --label: #7d7979;          /* small uppercase labels */
  --rule: rgba(32, 30, 29, 0.4);      /* strong 2px dividers */
  --rule-soft: rgba(32, 30, 29, 0.25);

  --accent: #2a4bd8;         /* royal blue */
  --accent-hover: #2340c2;
  --accent-press: #1b3096;
  --accent-deep: #1b3096;    /* accent text on light background */
  --accent-pale: #ccd7fb;

  --font: "Archivo", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(28px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--ground);
  /* faint blueprint grid — delete these two lines for a flat background */
  background-image:
    repeating-linear-gradient(to right, rgba(32,30,29,0.055) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, rgba(32,30,29,0.055) 0 1px, transparent 1px 64px);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--accent-press); text-decoration: underline; }
::selection { background: rgba(42, 75, 216, 0.25); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

img { display: block; max-width: 100%; }

/* --- shared bits ---------------------------------------------------------- */

.label {                     /* small uppercase kicker */
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.label--grey { color: var(--label); }

.num { font-family: var(--mono); font-size: 12px; color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--ground);
  font-weight: 800;
  font-size: 15px;
  padding: 16px 22px;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: var(--ground); text-decoration: none; }
.btn:active { background: var(--accent-press); }
.btn--small { font-size: 13px; padding: 10px 16px; }
.btn--outline {
  background: none;
  color: var(--ink);
  border: 1px solid var(--rule);
  font-weight: 800;
}
.btn--outline:hover { background: rgba(32,30,29,0.07); color: var(--ink); }
.btn--invert { background: var(--ground); color: var(--accent-deep); }
.btn--invert:hover { background: var(--accent-pale); color: var(--accent-deep); }

.tag {
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
}
.tag--solid { background: var(--accent); color: var(--ground); border-color: var(--accent); font-weight: 800; }

.section { border-bottom: 2px solid var(--rule); }
.section__head { padding: var(--pad-y) var(--pad-x) clamp(20px, 2.4vw, 32px); }
.section__head h2 { margin: 0; }

h1, h2, h3, h4 { text-wrap: pretty; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.cell { padding: clamp(22px, 2.6vw, 34px); }
.cell--right-rule { border-right: 2px solid var(--rule); }
.cell--panel { background: var(--panel); }

/* photographs print black and white — remove the filter for colour */
.photo { position: relative; filter: grayscale(1) contrast(1.08); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 10px;
  color: var(--ground);
  background: rgba(32, 30, 29, 0.78);
  padding: 3px 7px;
}
.photo__credit a { color: var(--ground); text-decoration: underline; }

/* --- header --------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 2px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--ground);
  z-index: 20;
}
.nav__brand { display: flex; align-items: baseline; gap: 8px; margin-right: auto; }
.nav__mark { display: inline-block; width: 14px; height: 14px; background: var(--accent); }
.nav__name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; line-height: 1; }
.nav__name-alt { font-weight: 600; font-size: 17px; letter-spacing: 0.14em; line-height: 1; color: var(--label); }
.nav__links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.nav__links a { color: var(--ink); }

/* --- hero ----------------------------------------------------------------- */

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); border-bottom: 2px solid var(--rule); }
.hero__copy {
  padding: clamp(28px, 5vw, 72px) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  border-right: 2px solid var(--rule);
}
.hero__kicker { display: flex; align-items: center; gap: 10px; }
.hero__kicker span.dash { display: inline-block; width: 22px; height: 2px; background: var(--accent); }
.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.hero__lead {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent-deep);
}
.hero p.body { margin: 0; max-width: 46ch; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__photo { min-height: clamp(280px, 46vw, 620px); }

/* --- intro strip ---------------------------------------------------------- */

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-bottom: 2px solid var(--rule); }
.strip > div { padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px); }
.strip > div + div { border-left: 2px solid var(--rule); }
.strip p { margin: 0; font-size: 15px; line-height: 1.6; }
.strip .big { font-size: clamp(17px, 1.8vw, 22px); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }

/* --- why us --------------------------------------------------------------- */

.why h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -0.03em; max-width: 24ch; }
.why__cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 2px solid var(--rule); }
.why__cells h3 { margin: 0 0 10px; font-weight: 800; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase; }
.why__cells p { margin: 0; font-size: 14px; line-height: 1.6; }

/* --- services ------------------------------------------------------------- */

.services__layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.services__intro {
  padding: var(--pad-y) clamp(20px, 3vw, 44px);
  border-right: 2px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.services__intro h2 { margin: 0; font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -0.03em; }
.services__intro p { margin: 0; font-size: 15px; line-height: 1.6; }
.services__intro .btn { align-self: flex-start; margin-top: 6px; font-size: 14px; padding: 14px 18px; }
.services__photo { margin-top: 14px; width: 100%; aspect-ratio: 4 / 3; }

.package {
  padding: clamp(20px, 2.4vw, 30px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  align-items: start;
  border-bottom: 2px solid var(--rule);
}
.package:last-child { border-bottom: 0; }
.package--panel { background: var(--panel); }
.package h3 { margin: 0 0 6px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.package__body { font-size: 14px; line-height: 1.6; }
.package__body p { margin: 0 0 8px; }
.package__body p:last-child { margin: 0; color: var(--muted); }
.package__body strong { color: var(--ink); }

/* --- other services ------------------------------------------------------- */

.other h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -0.03em; max-width: 26ch; }
.other__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 2px solid var(--rule); }
.other__grid > div {
  padding: 18px clamp(20px, 2.6vw, 34px);
  border-right: 2px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  font-weight: 600;
}
.other__note { grid-column: 2 / -1; font-size: 14px !important; font-weight: 400 !important; color: var(--muted); border-right: 0 !important; border-bottom: 0 !important; }

/* --- poster band ---------------------------------------------------------- */

.poster {
  background: var(--accent);
  color: var(--ground);
  border-bottom: 2px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.poster__copy { padding: clamp(30px, 4.4vw, 64px) var(--pad-x); display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.poster .label { color: var(--ground); opacity: 0.85; }
.poster h2 { margin: 0; font-weight: 800; font-size: clamp(30px, 4.4vw, 60px); line-height: 0.98; letter-spacing: -0.035em; }
.poster p { margin: 0; max-width: 40ch; font-size: 18px; font-weight: 600; line-height: 1.4; }
.poster .btn { align-self: flex-start; }
.poster__contact {
  padding: clamp(30px, 4.4vw, 64px) var(--pad-x);
  border-left: 2px solid rgba(243, 242, 242, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.poster__row { display: flex; gap: 14px; padding: 14px 0; font-size: 16px; flex-wrap: wrap; border-bottom: 1px solid rgba(243, 242, 242, 0.4); }
.poster__row:last-child { border-bottom: 0; }
.poster__row span.key { font-family: var(--mono); opacity: 0.8; }
.poster__row a { color: var(--ground); word-break: break-all; }

/* --- about band ----------------------------------------------------------- */

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-bottom: 2px solid var(--rule); }
.about__photo { min-height: clamp(240px, 30vw, 400px); border-right: 2px solid var(--rule); }
.about__copy { padding: clamp(26px, 3.4vw, 48px) clamp(20px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.about__copy h2 { margin: 0; font-weight: 800; font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -0.03em; }
.about__copy p { margin: 0; max-width: 48ch; font-size: 15px; line-height: 1.6; }

/* --- enquiry form --------------------------------------------------------- */

.enquire { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); border-bottom: 2px solid var(--rule); }
.enquire__copy {
  padding: clamp(28px, 4vw, 60px) clamp(20px, 4vw, 52px);
  border-right: 2px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.enquire__copy h2 { margin: 0; font-weight: 800; font-size: clamp(30px, 4vw, 52px); line-height: 0.98; letter-spacing: -0.035em; }
.enquire__copy p { margin: 0; max-width: 44ch; font-size: 15px; line-height: 1.6; }
.enquire__contact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; margin-top: 6px; }
.enquire__contact a { word-break: break-all; }

.enquire__form { padding: clamp(28px, 4vw, 60px) clamp(20px, 4vw, 52px); background: var(--panel); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.form label { display: block; font-size: 12px; margin-bottom: 5px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  background: var(--ground);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0;
  caret-color: var(--accent);
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form .full { grid-column: 1 / -1; }
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--muted); }

/* --- footer --------------------------------------------------------------- */

.footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  padding: clamp(24px, 3vw, 40px) clamp(20px, 4vw, 52px);
}
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__brand .row { display: flex; align-items: baseline; gap: 8px; }
.footer__mark { display: inline-block; width: 12px; height: 12px; background: var(--accent); }
.footer__name { font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }
.footer__col { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer__col a { color: var(--ink); word-break: break-all; }
.footer small, .footer__meta { font-size: 12px; color: var(--muted); }
.footer__muted { font-size: 13px; color: var(--muted); }

/* --- small screens -------------------------------------------------------- */

@media (max-width: 720px) {
  .hero__copy,
  .about__photo,
  .enquire__copy,
  .services__intro,
  .cell--right-rule,
  .strip > div + div { border-right: 0; border-left: 0; }
  .poster__contact { border-left: 0; border-top: 2px solid rgba(243, 242, 242, 0.35); }
  .other__note { grid-column: 1 / -1; }
}
