/* =========================================================
   RigValue — global styles
   Colour logic borrows from real road and park signage:
   green = destination, brown = recreation, blue = services,
   yellow = the centre line. Asphalt is the ink.
========================================================= */
:root {
  --canvas: #E9E4D3;
  --paper: #F6F2E6;
  --asphalt: #1B2023;
  --asphalt-2: #2A3236;
  --soft: #4A5155;
  --line: #CFC8B2;

  --green: #0F5C3F;
  --brown: #5C3B28;
  --blue: #0F4C81;
  --yellow: #F2B705;
  --orange: #C94A12;
  --orange-deep: #A93C0B;
  --cream: #F6F1E1;

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1200px;
  --r: 12px;
  --shadow: 0 1px 0 rgba(27, 32, 35, 0.06), 0 16px 32px -20px rgba(27, 32, 35, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--asphalt);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--asphalt); color: var(--cream); padding: 12px 18px; }
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px); }

/* ---------- type ---------- */
.display, h1, h2, h3 { font-family: var(--display); }
h1 { font-weight: 800; line-height: 0.92; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-weight: 700; line-height: 1; letter-spacing: -0.005em; text-wrap: balance; }
h3 { font-weight: 700; line-height: 1.05; }
.mono-label {
  font: 500 0.74rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.lede { font-size: 1.14rem; color: var(--soft); max-width: 52ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--asphalt);
  border-radius: 10px;
  font: 700 1rem/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--cream); box-shadow: 0 4px 0 var(--orange-deep); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--orange-deep); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-deep); }
.btn-ghost { background: transparent; color: var(--asphalt); }
.btn-ghost:hover { background: var(--asphalt); color: var(--cream); }
.btn-light { background: var(--cream); border-color: var(--cream); color: var(--asphalt); }
.btn-light:hover { transform: translateY(-1px); background: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.apple-mark { width: 16px; height: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 2px solid var(--asphalt);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.brand-word { font: 800 1.55rem/1 var(--display); letter-spacing: 0.03em; }
.brand-word em { font-style: normal; color: var(--orange); }
.primary-nav { display: flex; gap: 26px; }
.primary-nav a {
  font: 600 0.95rem/1 var(--body);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 3px solid transparent;
}
.primary-nav a:hover { border-bottom-color: var(--yellow); }
.primary-nav a[aria-current="page"] { border-bottom-color: var(--orange); }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--asphalt); transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; gap: 2px; padding: 8px clamp(18px, 4vw, 36px) 22px; border-top: 2px solid var(--asphalt); background: var(--canvas); }
.mobile-nav a:not(.btn) { padding: 14px 4px; font: 700 1.2rem/1 var(--display); text-decoration: none; border-bottom: 1px solid var(--line); letter-spacing: 0.01em; }
.mobile-nav .btn { margin-top: 14px; }
.mobile-nav.open { display: flex; }

@media (max-width: 860px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- the road: section divider and footer top ---------- */
.road {
  position: relative;
  height: 16px;
  background: var(--asphalt);
}
.road::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--yellow) 0 34px, transparent 34px 68px);
}

/* ---------- road-sign panels ---------- */
.sign {
  --sign: var(--green);
  position: relative;
  padding: 8px;
  border-radius: 16px;
  background: var(--sign);
  color: var(--cream);
}
.sign::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(246, 241, 225, 0.9);
  border-radius: 10px;
  pointer-events: none;
}
.sign-body { position: relative; padding: clamp(20px, 3vw, 30px); }
.sign-green { --sign: var(--green); }
.sign-brown { --sign: var(--brown); }
.sign-blue { --sign: var(--blue); }

/* ---------- form controls ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field > .label { font: 700 0.86rem/1.2 var(--body); letter-spacing: 0.01em; }
.field .opt { font-weight: 500; color: var(--soft); }
.input, .select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  font: 500 1rem/1.2 var(--body);
  color: var(--asphalt);
  background: var(--paper);
  border: 2px solid var(--asphalt);
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s var(--ease);
}
.select {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--asphalt) 50%), linear-gradient(135deg, var(--asphalt) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.input::placeholder { color: #8a8d86; }
.input:focus, .select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(201, 74, 18, 0.18);
}
.hint { font-size: 0.84rem; color: var(--soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--asphalt); color: var(--cream); margin-top: clamp(48px, 7vw, 96px); }
.site-footer .road { background: #0f1214; }
.footer-inner { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 32px 28px; padding-top: 48px; padding-bottom: 44px; }
.footer-brand p { margin-top: 14px; color: rgba(246, 241, 225, 0.7); max-width: 34ch; font-size: 0.95rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font: 500 0.74rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--yellow); margin-bottom: 4px; }
.footer-col a { text-decoration: none; font-size: 0.95rem; color: rgba(246, 241, 225, 0.85); width: fit-content; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-fine { grid-column: 1 / -1; border-top: 1px solid rgba(246, 241, 225, 0.16); padding-top: 22px; font-size: 0.82rem; color: rgba(246, 241, 225, 0.6); max-width: 100ch; }
@media (max-width: 1000px) { .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

/* ---------- utilities ---------- */
.stack > * + * { margin-top: var(--gap, 16px); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
