/* ==========================================================================
   Citywide Services — Design Tokens & Base Styles
   --------------------------------------------------------------------------
   Bold editorial system: serif display (Fraunces) paired with a geometric
   sans (Space Grotesk) for labels and Inter for body. Dark, gold-luxury
   identity with a richer palette, fluid type scale, and a layered depth model.
   Fonts are loaded via Google Fonts <link> tags in index.html.
   ========================================================================== */

:root {
  /* ---- Core palette ---- */
  --primary-black: #05070D;
  --secondary-black: #0B0F1A;
  --surface-1: #0E1320;
  --surface-2: #141A2A;
  --ink-900: #05070D;
  --ink-700: #111827;

  --gold: #F5A400;
  --gold-light: #FFC24B;
  --gold-deep: #C97A00;
  --gold-soft: rgba(245, 164, 0, 0.14);
  --white: #FFFFFF;
  --gray-light: #F6F4EF;
  --gray-warm: #ECE7DD;

  /* Text on dark */
  --text-strong: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.66);
  --text-faint: rgba(255, 255, 255, 0.42);

  /* ---- Gradients ---- */
  --gold-gradient: linear-gradient(118deg, #FFC24B 0%, #F5A400 48%, #C97A00 100%);
  --gold-gradient-soft: linear-gradient(118deg, #FFD37A, #F5A400);
  --halo-gold: radial-gradient(circle at 50% 50%, rgba(245, 164, 0, 0.35), transparent 70%);
  --sheen: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);

  /* ---- Typography ---- */
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-heading: 'Space Grotesk', 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', 'Manrope', system-ui, sans-serif;
  --font-size-base: 16px;

  /* Fluid editorial type scale */
  --fs-eyebrow: 0.78rem;
  --fs-display: clamp(2.9rem, 7.2vw, 6.5rem);
  --fs-h2: clamp(2.1rem, 4.6vw, 3.6rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-body: clamp(1rem, 1.2vw, 1.0625rem);
  --fs-small: 0.875rem;

  /* ---- Spacing scale ---- */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --section-padding: clamp(5rem, 10vw, 9rem);

  /* ---- Radius ---- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ---- Shadows / depth ---- */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.55);
  --glow-gold: 0 0 0 1px rgba(245, 164, 0, 0.35), 0 22px 60px rgba(245, 164, 0, 0.18);

  /* ---- Glass ---- */
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-strong: rgba(255, 255, 255, 0.07);
  --glass-blur: 16px;
  --glass-border: rgba(255, 255, 255, 0.12);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 220ms;
  --dur: 420ms;
  --dur-slow: 720ms;

  /* ---- Layout ---- */
  --nav-height: 78px;
  --container-max: 1240px;
  --bp-mobile: 768px;
  --bp-desktop: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

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

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

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.65;
  color: var(--text-strong);
  background-color: var(--primary-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

a {
  color: var(--gold);
  transition: color var(--dur) var(--ease-out);
}

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

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

::selection {
  background: rgba(245, 164, 0, 0.3);
  color: #fff;
}

/* Reduced motion: respect user preference globally */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
