/* ==========================================================================
   NEXTBATCH — Design Tokens

   The TravelVista palette: white and light-neutral grounds, deep green
   actions, gold reserved for ratings and price highlights.

   The variable NAMES are deliberately unchanged from the navy-led system they
   replace. They are the contract the theme engine writes to (themeCss maps an
   administrator's thirteen colours onto exactly these names), and they are
   used by the whole stylesheet, so renaming them would mean touching every
   rule and breaking every saved theme. What changed is what they mean:

     --nb-navy-900   the page ground          now white, not navy
     --nb-navy-800   raised panel surface     now the light neutral
     --nb-white      text on the page ground  now ink, not white

   A section that still needs light text over a photograph — the hero — sets
   its own colours rather than relying on these.
   ========================================================================== */

:root {
  /* ---- Brand palette ---- */
  --nb-navy-900: #FFFFFF;   /* page ground                     */
  --nb-navy-800: #F8FAFC;   /* raised panels, cards on ground  */
  --nb-teal:     #15803D;   /* primary action: buttons, links  */
  --nb-cyan:     #16A34A;   /* hover, progress, second accent  */
  --nb-coral:    #EF4444;   /* destructive and alerts only     */
  --nb-gold:     #F59E0B;   /* ratings and price highlights    */
  --nb-white:    #0F172A;   /* body text on the page ground    */
  --nb-muted:    #64748B;   /* secondary text and captions     */
  --nb-success:  #16A34A;   /* validated, qualified, included  */
  --nb-warning:  #F59E0B;   /* warnings and pending states     */

  /* ---- Derived surfaces ---- */
  --nb-navy-950: #F1F5F9;
  --nb-navy-700: #E2E8F0;
  --nb-line-dark: rgba(15, 23, 42, 0.09);
  --nb-line-dark-strong: rgba(15, 23, 42, 0.16);
  --nb-glass: rgba(255, 255, 255, 0.88);
  --nb-glass-raised: #FFFFFF;

  --nb-light-bg: #F8FAFC;
  --nb-light-bg-alt: #F1F5F9;
  --nb-light-card: #FFFFFF;
  --nb-line-light: rgba(15, 23, 42, 0.09);
  --nb-line-light-strong: rgba(15, 23, 42, 0.16);
  --nb-ink: #0F172A;
  --nb-ink-soft: #334155;
  --nb-ink-muted: #64748B;

  /* ---- Accent tints ----
     The washes behind badges, pills and soft panels. Named rather than
     written as literals so one hue change moves all of them. */
  --nb-teal-soft: rgba(21, 128, 61, 0.10);
  --nb-teal-soft-strong: rgba(21, 128, 61, 0.20);
  --nb-cyan-soft: rgba(22, 163, 74, 0.12);
  --nb-gold-soft: rgba(245, 158, 11, 0.14);
  --nb-gold-soft-strong: rgba(245, 158, 11, 0.28);
  --nb-success-soft: rgba(22, 163, 74, 0.12);
  --nb-success-soft-strong: rgba(22, 163, 74, 0.24);
  --nb-coral-soft: rgba(239, 68, 68, 0.12);
  --nb-warning-soft: rgba(245, 158, 11, 0.14);
  --nb-ink-soft-wash: rgba(15, 23, 42, 0.05);

  /* ---- Readable accents on white ----
     An accent chosen for a button fill is often too pale as text; these are
     the versions that clear 4.5:1 on a white card. */
  --nb-teal-ink: #0F6B33;
  --nb-gold-ink: #92650A;
  --nb-success-ink: #15803D;
  --nb-coral-ink: #B91C1C;

  /* ---- Typography ---- */
  --nb-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;

  --nb-fs-h1: clamp(2.25rem, 6vw, 3.75rem);
  --nb-fs-h2: clamp(1.625rem, 3.4vw, 2.25rem);
  --nb-fs-h3: clamp(1.0625rem, 1.8vw, 1.25rem);
  --nb-fs-lede: clamp(0.9375rem, 1.5vw, 1.0625rem);
  --nb-fs-body: 1rem;
  --nb-fs-sm: 0.875rem;
  --nb-fs-xs: 0.75rem;
  --nb-fs-label: 0.6875rem;

  --nb-lh-tight: 1.08;
  --nb-lh-snug: 1.25;
  --nb-lh-body: 1.6;

  --nb-track-label: 0.12em;

  /* ---- Spacing scale ---- */
  --nb-s1: 0.25rem;
  --nb-s2: 0.5rem;
  --nb-s3: 0.75rem;
  --nb-s4: 1rem;
  --nb-s5: 1.5rem;
  --nb-s6: 2rem;
  --nb-s7: 2.5rem;
  --nb-s8: 3.5rem;
  --nb-s9: 5rem;

  --nb-section-y: clamp(2.75rem, 6vw, 4.5rem);
  --nb-gutter: clamp(1rem, 3.5vw, 2rem);
  --nb-container: 1240px;
  --nb-container-narrow: 820px;

  /* ---- Radii ---- */
  --nb-r-sm: 10px;
  --nb-r-md: 12px;
  --nb-r-lg: 16px;
  --nb-r-xl: 20px;
  --nb-r-pill: 999px;

  /* ---- Shadows: light-ground depth, kept subtle ---- */
  --nb-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --nb-shadow-md: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --nb-shadow-lg: 0 12px 28px -12px rgba(15, 23, 42, 0.18);
  --nb-shadow-light: 0 2px 10px rgba(15, 23, 42, 0.07);

  /* ---- Motion ---- */
  --nb-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nb-dur-fast: 140ms;
  --nb-dur: 220ms;
  --nb-dur-slow: 560ms;

  /* ---- Layering ---- */
  --nb-z-nav: 100;
  --nb-z-menu: 110;
  --nb-z-sticky: 90;
}
