/* =====================================================
   BUGGY RIDE DUBAI — BRAND DESIGN LIBRARY
   Single source of truth for design tokens.
   Load BEFORE any page-specific CSS.
   v=1
   ===================================================== */

:root {
  /* ---------- Brand palette (from CLAUDE.md) ---------- */
  --orange:        #E8652B;
  --orange-deep:   #C2410C;
  --orange-soft:   #FFF1E8;
  --orange-tint:   #FFE6D5;

  --teal:          #0D4F5C;
  --teal-deep:     #072F38;
  --teal-night:    #0a1418;

  --gold:          #D4A843;
  --gold-soft:     #F5E5B8;

  --sand:          #F7F3EC;
  --sand-warm:     #FBF7F0;
  --paper:         #FFFEFA;

  --ink:           #141210;
  --ink-soft:      #4a4742;
  --ink-mute:      rgba(20, 18, 16, 0.55);

  --line:          rgba(20, 18, 16, 0.09);
  --line-strong:   rgba(20, 18, 16, 0.16);

  /* ---------- Type stack ---------- */
  --font-display:  'Fraunces', 'Times New Roman', serif;
  --font-body:     'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---------- Type scale (fluid) ---------- */
  --fs-xs:         12px;
  --fs-sm:         13.5px;
  --fs-base:       15px;
  --fs-md:         16px;
  --fs-lg:         18px;
  --fs-xl:         clamp(20px, 2.2vw, 24px);
  --fs-2xl:        clamp(24px, 3vw, 32px);
  --fs-3xl:        clamp(28px, 4.2vw, 48px);
  --fs-4xl:        clamp(36px, 6vw, 72px);
  --fs-5xl:        clamp(44px, 8vw, 110px);

  /* ---------- Eyebrow / mono spec line ---------- */
  --fs-mono:       11px;
  --tracking-mono: 0.18em;

  /* ---------- Spacing rhythm ---------- */
  --sp-1:          4px;
  --sp-2:          8px;
  --sp-3:          12px;
  --sp-4:          16px;
  --sp-5:          20px;
  --sp-6:          24px;
  --sp-8:          32px;
  --sp-10:         40px;
  --sp-12:         48px;
  --sp-16:         64px;
  --sp-20:         80px;
  --sec-y:         clamp(48px, 7vw, 96px);

  /* ---------- Radii ---------- */
  --r-xs:          3px;
  --r-sm:          4px;
  --r-md:          6px;
  --r-lg:          10px;
  --r-xl:          16px;
  --r-pill:        999px;

  /* ---------- Shadows ---------- */
  --sh-sm:         0 4px 12px -6px rgba(20, 18, 16, 0.18);
  --sh-md:         0 12px 24px -16px rgba(20, 18, 16, 0.22);
  --sh-lg:         0 18px 38px -22px rgba(20, 18, 16, 0.28);
  --sh-glow-orange:0 6px 20px -8px rgba(232, 101, 43, 0.55);

  /* ---------- Transitions ---------- */
  --t-fast:        .15s ease;
  --t-base:        .22s ease;
  --t-slow:        .35s ease;
}

/* ---------- Type utility classes ---------- */
.brand-display     { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; }
.brand-display-it  { font-family: var(--font-display); font-style: italic; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.brand-body        { font-family: var(--font-body); font-weight: 400; line-height: 1.55; }
.brand-mono        { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase; font-weight: 600; }
.brand-eyebrow     { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.brand-eyebrow-gold{ color: var(--gold); }

.accent            { color: var(--orange); font-style: italic; font-weight: 600; }
.accent-gold       { color: var(--gold); font-style: italic; font-weight: 500; }

/* ---------- Button base (inheritable) ---------- */
.brand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.brand-btn-hot { background: var(--orange); color: #fff; box-shadow: var(--sh-glow-orange); border-color: transparent; }
.brand-btn-hot:hover { background: var(--orange-deep); transform: translateY(-1px); }
.brand-btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.brand-btn-line:hover { background: var(--ink); color: var(--paper); }
.brand-btn-line-light { color: #FFF1E8; border-color: rgba(247, 243, 236, 0.55); background: rgba(247, 243, 236, 0.04); }
.brand-btn-line-light:hover { background: rgba(247, 243, 236, 0.14); border-color: #FFF1E8; color: #FFF1E8; }
.brand-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.brand-btn-ghost:hover { background: var(--sand-warm); border-color: var(--ink); }

/* ---------- Card base ---------- */
.brand-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.brand-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 101, 43, 0.4);
  box-shadow: var(--sh-lg);
}

/* ---------- Section wrapper ---------- */
.brand-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; width: 100%; }
.brand-section { padding: var(--sec-y) 0; }
.brand-section-warm { background: var(--sand-warm); }
.brand-section-cream{ background: var(--sand); }
.brand-section-paper{ background: var(--paper); }
.brand-section-night{ background: var(--teal-night); color: #FFF1E8; }

/* ---------- Section head ---------- */
.brand-head { text-align: center; margin-bottom: var(--sp-10); max-width: 720px; margin-left: auto; margin-right: auto; }
.brand-h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-3xl); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 var(--sp-3); color: var(--ink); overflow-wrap: break-word; }
.brand-section-night .brand-h2 { color: #FFF1E8; }
.brand-lead { font-size: var(--fs-base); line-height: 1.55; color: var(--ink-soft); margin: 0; overflow-wrap: break-word; }

/* ---------- Anti-overflow safety ---------- */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video { max-width: 100%; height: auto; }

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
