/* ==========================================================================
   Premium Desert Safari Tours — base layer
   Design tokens, reset, typography and layout primitives.
   ========================================================================== */

:root {
  /* Brand palette — charcoal, cream and muted gold */
  --charcoal-900: #100d0a;
  --charcoal-800: #17130f;
  --charcoal-700: #221c16;
  --charcoal-600: #2f2720;
  --charcoal-500: #453a30;

  --cream-50: #fdfbf7;
  --cream-100: #f8f4ec;
  --cream-200: #f0e9dc;
  --cream-300: #e3d9c6;

  --gold-700: #8a6a2f;
  --gold-600: #a67c3d;
  --gold-500: #c9a24d;
  --gold-400: #d8b76a;
  --gold-300: #e8d3a0;

  /* Semantic colours */
  --bg: var(--cream-50);
  --bg-alt: var(--cream-100);
  --bg-dark: var(--charcoal-800);
  --surface: #ffffff;
  --text: #1e1a16;
  --text-muted: #6b6157;
  --text-on-dark: #f3ede3;
  --text-on-dark-muted: #b3a898;
  --accent: var(--gold-500);
  --accent-strong: var(--gold-600);
  --border: rgba(30, 26, 22, 0.12);
  --border-dark: rgba(243, 237, 227, 0.14);

  --ok: #4f7d52;
  --warn: #a8762c;
  --off: #8c5a4f;

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.14vw, 1.02rem);
  --step-1: clamp(1.1rem, 1.04rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.24rem + 0.55vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.1vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.2vw, 4rem);

  /* Spacing */
  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Structure */
  --container: 1200px;
  --container-wide: 1360px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(16, 13, 10, 0.05), 0 2px 8px rgba(16, 13, 10, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 13, 10, 0.07), 0 12px 32px rgba(16, 13, 10, 0.06);
  --shadow-lg: 0 16px 48px rgba(16, 13, 10, 0.14);

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);

  --header-height: 82px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

img {
  height: auto;
  background-color: var(--cream-200);
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-2);
}

h4 {
  font-size: var(--step-1);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.eyebrow--on-dark {
  color: var(--gold-400);
}

.lede {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 46ch;
}

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

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2.5rem, var(--container-wide));
}

.section {
  padding-block: clamp(3rem, 2rem + 5vw, var(--space-2xl));
}

.section--tight {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.section--alt {
  background-color: var(--bg-alt);
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--cream-50);
}

.section-head {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  display: grid;
  gap: var(--space-xs);
}

/* Keeps a page's indexable <h1> visually in line with the other section
   titles it sits beside, instead of rendering at full h1 scale. */
.section-head__h1 {
  font-size: var(--step-3);
}

.section-head--intro {
  margin-bottom: var(--space-md);
}

/* Full-width, justified body copy — used where a paragraph should read as
   part of the page column rather than a narrow centred blurb. */
.intro-text {
  max-width: none;
  text-align: justify;
  text-align-last: left;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Small gold diamond rule beneath centred section titles */
.rule-diamond {
  --rule-color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-xs);
}

.rule-diamond::before,
.rule-diamond::after {
  content: '';
  width: clamp(40px, 8vw, 78px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-color));
}

.rule-diamond::after {
  background: linear-gradient(270deg, transparent, var(--rule-color));
}

.rule-diamond span {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border: 1px solid var(--rule-color);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

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

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -110%);
  z-index: 999;
  padding: 0.75rem 1.5rem;
  background-color: var(--charcoal-900);
  color: var(--cream-50);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: transform var(--transition);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

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

.section--dark :focus-visible,
.site-header :focus-visible {
  outline-color: var(--gold-400);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
