/* ── Carspel site foundation (landing + user guide) ───────── */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --navy: #0D2E5C;
  --navy-mid: #1A4A8A;
  --blue: #2D7DD2;
  --blue-light: #5B9FE0;
  --blue-app: #f3f9fc;
  --road: #1C1C1E;
  --asphalt: #2C2C2E;
  --gold: #E8B84B;
  --gold-light: #F5D47A;
  --cream: #FAF7F2;
  --navlink-text: #0D2E5C;
  --text-dark: #111827;
  --text-mid: #4B5563;
  --text-light: #9CA3AF;
  --white: #FFFFFF;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-card: 0 4px 24px rgba(13, 46, 92, 0.10);
  --shadow-hero: 0 8px 48px rgba(13, 46, 92, 0.22);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1120px;
  --section-gap: 7rem;
  /* Fixed nav height — updated by site-nav-offset.js after locale load */
  --site-nav-offset: 5rem;
  --site-nav-gap: 1.75rem;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Utilities ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.tag--blue {
  background: rgba(45, 125, 210, 0.12);
  color: var(--blue);
}

.tag--gold {
  background: rgba(232, 184, 75, 0.18);
  color: #A07820;
}

.tag--navy {
  background: rgba(13, 46, 92, 0.10);
  color: var(--navy);
}

.tag--white {
  background: rgba(232, 184, 75, 0.18);
  color: white;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 100px;
  padding: 0.6rem 1.4rem;
  transition: all 0.22s;
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
}

.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 184, 75, 0.4);
}

.btn--blue {
  background: var(--blue);
  color: var(--white);
}

.btn--blue:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45, 125, 210, 0.4);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

.btn--lg {
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

/* ── Site header (shared chrome) ───────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 0.9rem;
  background: var(--blue-app);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid rgba(13, 46, 92, 0.08);
  overflow: visible;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav__logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--blue-app);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav__logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
