/* ═══════════════════════════════════════════════
   HOTELRUNS — BASE.CSS
   Design tokens, reset, typography, utilities
   Mobile-first
═══════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────── */
:root {
  /* Brand palette */
  --navy-deep:   #1B2838;   /* Dawn Navy — hero backgrounds, footer */
  --navy:        #1F4068;   /* UI navy — text, buttons, UI elements */
  --orange:      #E8713A;   /* Route Orange — CTAs, accents, scores */
  --orange-dk:   #CF622A;   /* Orange hover state */
  --gold:        #D4A843;   /* Horizon Gold — premium accents */
  --gray:        #6B7B8D;   /* Pavement Gray — secondary text */
  --mw:          #F7F5F2;   /* Morning White — page background */
  --concrete:    #E8E4DF;   /* Concrete Light — subtle section bg */
  --white:       #FFFFFF;

  /* Text scale */
  --text-1:      #1C3454;   /* Primary — headings, labels */
  --text-2:      #4A5E70;   /* Secondary — body copy */
  --text-3:      #8FA3B4;   /* Tertiary — captions, hints */
  --text-inv:    rgba(255,255,255,0.9);
  --text-inv-2:  rgba(255,255,255,0.65);
  --text-inv-3:  rgba(255,255,255,0.38);

  /* Borders */
  --border:      rgba(27,52,84,0.08);
  --border-md:   rgba(27,52,84,0.15);
  --border-dk:   rgba(27,52,84,0.28);
  --border-inv:  rgba(255,255,255,0.12);
  --border-inv-2: rgba(255,255,255,0.22);

  /* Typography */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing (8px grid) */
  --sp-1:  0.5rem;    /*  8px */
  --sp-2:  1rem;      /* 16px */
  --sp-3:  1.5rem;    /* 24px */
  --sp-4:  2rem;      /* 32px */
  --sp-5:  2.5rem;    /* 40px */
  --sp-6:  3rem;      /* 48px */
  --sp-8:  4rem;      /* 64px */
  --sp-10: 5rem;      /* 80px */
  --sp-12: 6rem;      /* 96px */

  /* Layout */
  --max-w: 1200px;
  --side:  clamp(1.25rem, 4.5vw, 2.75rem);
  --nav-h: 64px;

  /* Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-pill: 100px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(27,40,56,0.06), 0 2px 8px rgba(27,40,56,0.04);
  --shadow-md:  0 4px 16px rgba(27,40,56,0.10), 0 1px 4px rgba(27,40,56,0.06);
  --shadow-lg:  0 8px 32px rgba(27,40,56,0.14), 0 2px 8px rgba(27,40,56,0.06);
  --shadow-xl:  0 16px 48px rgba(27,40,56,0.18), 0 4px 12px rgba(27,40,56,0.08);

  /* Transitions */
  --t-fast:   0.14s ease;
  --t-base:   0.22s ease;
  --t-slow:   0.45s cubic-bezier(0.25,0.46,0.45,0.94);
}

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

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

body {
  font-family: var(--font);
  background: var(--mw);
  color: var(--text-1);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: var(--font); }

/* ── TYPOGRAPHY ─────────────────────────────── */

/* Display — Hero headlines */
.t-display {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

/* H1 — Page titles */
.t-h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

/* H2 — Section titles */
.t-h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

/* H3 — Card titles */
.t-h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Body */
.t-body { font-size: 1rem; line-height: 1.65; }
.t-body-sm { font-size: 0.9rem; line-height: 1.6; }
.t-body-xs { font-size: 0.82rem; line-height: 1.55; }

/* Eyebrow labels */
.eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  line-height: 1;
}

/* ── LAYOUT UTILITIES ───────────────────────── */
.container {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--side);
  padding-right: var(--side);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn-orange {
  background: var(--orange);
  color: #fff;
}
.btn-orange:hover {
  background: var(--orange-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232,113,58,0.35);
}
.btn-orange:active { transform: translateY(0); }

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border-md);
  color: var(--text-2);
}
.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ── SCORE COLOURS ───────────────────────────── */
.score-hi  { color: var(--orange); }
.score-mid { color: var(--navy); }
.score-lo  { color: var(--gray); }
