/* ============================================
   NomadBridge: Design Tokens
   All design values as CSS custom properties
   ============================================ */

:root {
  /* ---- Colors ---- */
  --sand: #F5EFE4;
  --sand-deep: #E8DDD0;
  /* Soft brand tints for alternating surfaces (testimonial cards).
     Ink 14.2+ and --muted-strong 4.95+ on each. */
  --tint-forest: #E6ECE6;
  --tint-terracotta: #F6E5DA;
  --tint-gold: #F4EBD3;
  --terracotta: #C1714A;
  --terracotta-light: #D4896A;
  --terracotta-dark: #A05836;   /* text on white 5.12, on sand 4.65; white on it 5.12 */
  --terracotta-deep: #87472A;   /* hover for terracotta fills: white on it 6.81 */
  --forest: #2C4A3E;
  --forest-mid: #3D6357;
  --forest-deep: #22392F;      /* footer: one step darker so it parts from green bands above */
  --forest-light: #4A7A6A;
  --gold: #B8942A;
  --gold-light: #D4AF5A;
  --gold-pale: #E8D49A;         /* badge text on dark hero overlays (6.3 or more) */
  --ink: #1A1A1A;
  --ink-rgb: 26 26 26;          /* for alpha shadows set from JS (rgb(var(--ink-rgb) / a)) */
  --muted: #7A7066;             /* secondary text on white (4.65); fails on sand */
  --muted-strong: #6A6158;      /* secondary text on sand (5.30) and sand-deep (4.53) */
  --ink-soft: #3E3833;          /* darker secondary text: 11.55 on white, 10.09 on sand */
  --white: #FDFAF6;
  --pure-white: #FFFFFF;

  /* Service color assignments */
  --service-fluency: #2C4A3E;
  --service-fluency-bg: rgba(44, 74, 62, 0.04);
  --service-rooted: #C1714A;
  --service-rooted-bg: rgba(193, 113, 74, 0.04);
  --service-women: #B8942A;
  --service-women-bg: rgba(184, 148, 42, 0.04);
  --service-family: #2C3E55;
  --service-family-light: #3D5A70;
  --service-family-bg: rgba(44, 62, 85, 0.04);

  /* Alpha variants */
  --forest-90: rgba(44, 74, 62, 0.9);
  --forest-80: rgba(44, 74, 62, 0.8);
  --forest-15: rgba(44, 74, 62, 0.15);
  --terracotta-15: rgba(193, 113, 74, 0.15);
  --terracotta-50: rgba(193, 113, 74, 0.5);
  --white-80: rgba(253, 250, 246, 0.8);
  --white-65: rgba(253, 250, 246, 0.65);
  --white-20: rgba(253, 250, 246, 0.2);
  --ink-05: rgba(26, 26, 26, 0.05);
  --ink-12: rgba(26, 26, 26, 0.12);   /* hairline that works on any tint */
  --ink-10: rgba(26, 26, 26, 0.1);
  --ink-50: rgba(26, 26, 26, 0.5);
  --gold-30: rgba(184, 148, 42, 0.3);

  /* ---- Typography ---- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-accent: 'Fraunces', Georgia, serif;   /* used in italic */
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font sizes: fluid with clamp() */
  --text-xs: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);       /* 11-12px */
  --text-sm: clamp(0.8125rem, 0.775rem + 0.15vw, 0.875rem);     /* 13-14px */
  --text-base: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);    /* 15-17px */
  --text-md: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);            /* 16-18px */
  --text-lg: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);       /* 18-21px */
  --text-xl: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);          /* 22-28px */
  --text-2xl: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);            /* 28-36px */
  --text-3xl: clamp(2rem, 1.6rem + 1.6vw, 3rem);                /* 32-48px */
  --text-4xl: clamp(2.5rem, 1.8rem + 2.8vw, 4rem);              /* 40-64px */
  --text-hero: clamp(2.75rem, 2rem + 3vw, 4.5rem);              /* 44-72px */

  /* Display scale: Fraunces for h1-h3 (ratio about 1.3). Fraunces has a
     larger x-height than the Cormorant it replaced, so each step is
     about 12% smaller for the same presence. */
  --text-display-1: clamp(2.5rem, 1.75rem + 3vw, 4.25rem);      /* 40-68px: page h1 */
  --text-display-2: clamp(2rem, 1.55rem + 1.8vw, 3rem);         /* 32-48px: section h2 */
  --text-display-3: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);        /* 24-32px: h3, panel h2 */
  --text-display-4: clamp(1.3125rem, 1.2rem + 0.45vw, 1.625rem); /* 21-26px: quotes, small h3 */
  --text-statement: clamp(1.625rem, 1.25rem + 1.5vw, 2.5rem);   /* 26-40px: large statements */
  --text-logo: 1.25rem;                                         /* 20px/600: large text for contrast */

  /* Font weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line heights */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-display: 1.05;   /* h1 */
  --leading-heading: 1.12;   /* h2, h3 */
  --leading-quote: 1.3;      /* display-face quotes */

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-display: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.15em;

  /* ---- Spacing ---- */
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.5rem;     /* 24px */
  --space-6: 2rem;       /* 32px */
  --space-7: 3rem;       /* 48px */
  --space-8: 4rem;       /* 64px */
  --space-9: 6rem;       /* 96px */
  --space-10: 8rem;      /* 128px */

  /* ---- Layout ---- */
  --container-max: 1280px;
  --container-narrow: 960px;
  --container-text: 720px;
  --nav-height: 80px;
  --tab-height: 56px;
  --gutter: clamp(1.25rem, 1rem + 1vw, 2.5rem);

  /* Home hero shell: the fixed nav sits on the hero card's top edge.
     Both use these, so their edges and corner curves line up. */
  --shell-width: min(92%, var(--container-max));
  --shell-top: 16px;
  --nav-pill-height: 44px;
  --shell-radius: calc(var(--nav-pill-height) / 2);   /* the pill's curve */
  /* Space the fixed nav takes at the top of a full-bleed hero */
  --nav-clearance: calc(var(--shell-top) + var(--nav-pill-height));

  /* ---- Borders & Radius ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-card: 16px;
  --radius-card-lg: 24px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 26, 26, 0.1);
  --shadow-xl: 0 16px 50px rgba(26, 26, 26, 0.12);
  --shadow-card-hover: 0 12px 40px rgba(26, 26, 26, 0.12);
  --shadow-fly-alpha: 0.15;        /* hero photos: start alpha, desktop */
  --shadow-fly-alpha-mobile: 0.1;  /* hero photos: start alpha, phones */

  /* ---- Surfaces ---- */
  --hero-card-bg:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(212, 175, 90, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 25% 40%, rgba(193, 113, 74, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 75% 45%, rgba(44, 74, 62, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #FDF6EE 40%, #F9EFE4 60%, #FFFFFF 100%);

  /* Service page hero overlays: solid on the text side, photo shows on the right */
  --hero-language-start: rgba(107, 58, 42, 0.95);
  --hero-language-end: rgba(193, 113, 74, 0.25);
  --hero-rooted-start: rgba(44, 74, 62, 0.95);
  --hero-rooted-end: rgba(61, 99, 87, 0.25);
  --hero-women-start: rgba(26, 32, 48, 0.95);
  --hero-women-end: rgba(61, 90, 112, 0.25);
  --hero-family-start: rgba(58, 46, 26, 0.95);
  --hero-family-end: rgba(184, 148, 42, 0.25);
  --hero-about-start: rgba(245, 239, 228, 0.95);
  --hero-about-end: rgba(245, 239, 228, 0.25);

  /* ---- Transitions ---- */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.6s;
  --duration-slider: 0.9s;

  /* ---- Glassmorphism ----
     0.95 keeps the nav logo (terracotta, 20px/600) at 3.2:1 or more
     when the nav floats over the darkest bands and photos. */
  --glass-bg: rgba(253, 250, 246, 0.95);
  --glass-blur: blur(12px);
  /* After scrolling: see-through glass. 0.78 plus the darker terracotta
     logo word keeps the logo at 3:1 or more over the darkest bands. */
  --glass-bg-scrolled: rgba(253, 250, 246, 0.78);
  --glass-blur-scrolled: blur(20px) saturate(180%);
  --glass-border: 1px solid rgba(193, 113, 74, 0.15);

  /* ---- Z-Index Scale ---- */
  --z-base: 1;
  --z-sticky: 100;
  --z-tabs: 90;
  --z-nav: 200;
  --z-modal: 300;

  /* ---- Slide Gradients ---- */
  --gradient-slide-1: linear-gradient(135deg, #2C4A3E 0%, #1A2E28 45%, #3D6357 100%);
  --gradient-slide-2: linear-gradient(135deg, #6B3A2A 0%, #C1714A 50%, #D4896A 100%);
  --gradient-slide-3: linear-gradient(135deg, #1A2030 0%, #2C3E55 50%, #3D5A70 100%);
  --gradient-slide-4: linear-gradient(135deg, #3A2E1A 0%, #7A5A2A 50%, #B8942A 100%);
}
