/* ============================================================
   main.css — CSS Variables, Reset, Typography
   VTCGO — Luxury Chauffeur & Transfer Service Morocco
   ============================================================ */

:root {
  /* ── Colour Palette ───────────────────────────────────── */
  --color-black:        #080808;
  --color-black-soft:   #111111;
  --color-black-mid:    #1A1A1A;
  --color-black-card:   #212121;
  --color-gold:         #C8A96E;
  --color-gold-light:   #DEC48E;
  --color-gold-dark:    #9A7A42;
  --color-gold-subtle:  rgba(200,169,110,0.12);
  --color-gold-border:  rgba(200,169,110,0.25);
  --color-ivory:        #F4EFE6;
  --color-ivory-muted:  #CFC9BE;
  --color-white:        #FFFFFF;
  --color-grey-300:     #C5BFB5;
  --color-grey-500:     #837D74;
  --color-grey-700:     #3D3A35;

  /* ── Typography ───────────────────────────────────────── */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs:   0.6875rem;   /* 11px */
  --text-sm:   0.8125rem;   /* 13px */
  --text-base: 1rem;        /* 16px */
  --text-lg:   1.125rem;    /* 18px */
  --text-xl:   1.25rem;     /* 20px */
  --text-2xl:  1.5rem;      /* 24px */
  --text-3xl:  1.875rem;    /* 30px */
  --text-4xl:  2.25rem;     /* 36px */
  --text-5xl:  3rem;        /* 48px */
  --text-6xl:  3.75rem;     /* 60px */

  /* ── Spacing ──────────────────────────────────────────── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── Layout ───────────────────────────────────────────── */
  --container:    1280px;
  --container-sm: 960px;
  --radius-sm:    3px;
  --radius:       6px;
  --radius-lg:    12px;
  --radius-xl:    20px;

  /* ── Motion ───────────────────────────────────────────── */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:  150ms;
  --dur-base:  300ms;
  --dur-slow:  600ms;

  /* ── Shadows ──────────────────────────────────────────── */
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 4px 28px rgba(200,169,110,0.25);

  /* ── Borders ──────────────────────────────────────────── */
  --border-subtle: 1px solid rgba(200,169,110,0.15);
  --border-gold:   1px solid var(--color-gold);

  /* ── Header ───────────────────────────────────────────── */
  --header-height: 80px;
}

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

/* ── Base ─────────────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-ivory-muted);
  background-color: var(--color-black);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Headings ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-ivory);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, var(--text-6xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-5xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* ── Text ─────────────────────────────────────────────────── */
p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 500;
  color: var(--color-ivory);
}

em, i {
  font-style: italic;
}

/* ── Links ────────────────────────────────────────────────── */
a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--dur-fast);
}

a:hover {
  color: var(--color-gold-light);
}

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Media ────────────────────────────────────────────────── */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Lists ────────────────────────────────────────────────── */
ul, ol {
  list-style: none;
}

/* ── Interactive elements ─────────────────────────────────── */
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: inherit;
  color: inherit;
}

button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

input,
textarea,
select {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

/* ── Table ────────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  width: 100%;
}

/* ── HR ───────────────────────────────────────────────────── */
hr {
  border: none;
  border-top: var(--border-subtle);
  margin: var(--space-8) 0;
}

/* ── Screen reader only ───────────────────────────────────── */
.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;
}

/* ── Focus-visible global ─────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ── Selection ────────────────────────────────────────────── */
::selection {
  background-color: var(--color-gold-subtle);
  color: var(--color-ivory);
}

/* ── Scrollbar (webkit) ───────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-black-soft);
}

::-webkit-scrollbar-thumb {
  background: var(--color-grey-700);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-grey-500);
}

/* ── Utility: visually-hidden text ───────────────────────── */
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ── Skip to content ──────────────────────────────────────── */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-gold);
  color: var(--color-black);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-weight: 500;
  z-index: 9999;
  transition: top var(--dur-fast);
}

.skip-to-content:focus {
  top: var(--space-4);
}

/* ── Gold accent text ─────────────────────────────────────── */
.text-gold {
  color: var(--color-gold);
}

.text-ivory {
  color: var(--color-ivory);
}

.text-muted {
  color: var(--color-grey-300);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ── Font utilities ───────────────────────────────────────── */
.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

/* ── Display helpers ──────────────────────────────────────── */
.d-none   { display: none; }
.d-block  { display: block; }
.d-flex   { display: flex; }
.d-grid   { display: grid; }
.d-inline { display: inline; }
.d-inline-flex { display: inline-flex; }
.fleet-card__footer .btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.nav__cta svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}