/* ============================================================
   IDEE PER VIAGGIARE — LA PALMA PRO
   Agency portal v2 design tokens.
   Palette: palm green + coconut gold + cream.
   Fonts: Fraunces (display) + Plus Jakarta Sans (body).
   Operator-density desktop UI.
   ============================================================ */

:root {

  /* ============================================================
     PALETTE — IdV brand
     ============================================================ */

  /* Brand */
  --brand:           #1F5C4A;     /* palm green */
  --brand-deep:      #143E32;     /* dark palm — sidebar */
  --brand-soft:      #E7F0EB;     /* hover tint, badges */
  --brand-tint:      #F0F6F2;     /* subtle wash */

  /* Accent — coconut gold (replaces schools terracotta) */
  --accent:          #C8A047;
  --accent-hover:    #B0892F;
  --accent-text:     #7A5B1F;
  --accent-soft:     #FBF5E5;
  --accent-tint:     #F4E8C8;

  /* Ink — warm dark, never cold */
  --ink:           #1A1410;
  --ink-muted:     #4D4A45;
  --ink-subtle:    #7A7570;
  --ink-fade:      #B5B0A8;
  --ink-line:      #E8E2D8;

  /* Surfaces — cream paper */
  --paper:         #FDFBF7;       /* canvas */
  --surface:       #FFFFFF;       /* card */
  --surface-soft:  #FDFBF7;
  --surface-tint:  #F6F1E8;
  --surface-sunk:  #EFE9DC;

  /* Borders */
  --border:        #ECE6D8;
  --border-strong: #DDD5C3;

  /* Now / live ticker — gold pulse */
  --now-from:      #E8C66A;
  --now-to:        #F4DB95;
  --now-ink:       #4A370A;

  /* Signals */
  --signal-ok:        #2E8056;
  --signal-ok-soft:   #E2F0E8;
  --signal-warn:      #C49336;
  --signal-warn-soft: #FBF1DA;
  --signal-bad:       #B43838;
  --signal-bad-soft:  #FDECEC;

  --color-liturg-purple: #6E3D7C;
  --color-liturg-red:    #B43232;
  --color-liturg-green:  var(--brand);
  --color-liturg-white:  #FFFFFF;

  /* Sub-line cohort tints */
  --line-atelier:      #6E3D7C;   /* purple — quote-only premium */
  --line-atelier-soft: #F0E8F4;
  --line-sartoriale:   var(--brand);
  --line-sartoriale-soft: var(--brand-soft);
  --line-smart:        #4A6B8C;
  --line-smart-soft:   #E8EEF4;
  --line-cultura:      #8C5A2E;
  --line-cultura-soft: #F4EBDF;
  --line-honeymoon:    #B05670;
  --line-honeymoon-soft: #F6E6EB;
  --line-jaime:        #C49336;
  --line-jaime-soft:   #FBF1DA;

  /* ============================================================
     TYPOGRAPHY — Fraunces display + Plus Jakarta Sans body
     ============================================================ */

  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Fraunces', 'Plus Jakarta Sans', Georgia, serif;
  --font:         var(--font-body);

  /* Type scale */
  --text-2xs:  0.6875rem;   /* 11px */
  --text-xs:   0.75rem;     /* 12px */
  --text-sm:   0.8125rem;   /* 13px */
  --text-base: 0.9375rem;   /* 15px */
  --text-md:   1rem;        /* 16px */
  --text-lg:   1.25rem;     /* 20px */
  --text-xl:   1.5rem;      /* 24px */
  --text-2xl:  1.75rem;     /* 28px */
  --text-3xl:  2rem;        /* 32px */
  --text-4xl:  2.5rem;      /* 40px */
  --text-5xl:  3.5rem;      /* 56px */

  --lh-tight:  1.1;
  --lh-snug:   1.25;
  --lh-normal: 1.5;
  --lh-loose:  1.65;

  --track-tight:  -0.02em;
  --track-snug:   -0.01em;
  --track-normal:  0;
  --track-wide:    0.04em;
  --track-wider:   0.08em;

  --w-regular:  400;
  --w-medium:   500;
  --w-semibold: 600;
  --w-bold:     700;
  --w-extra:    800;

  /* ============================================================
     SPACING — 4px base
     ============================================================ */
  --s-1:  4px; --s-2:  8px; --s-3:  12px; --s-4:  16px;
  --s-5:  20px; --s-6:  24px; --s-8:  32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  /* Radius */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --r-xl: 18px; --r-2xl: 24px; --r-pill: 9999px;

  /* Shadows — warm cream-tinted */
  --shadow-xs:  0 1px 2px   rgba(80, 60, 30, 0.04);
  --shadow-sm:  0 2px 8px   rgba(80, 60, 30, 0.06);
  --shadow-md:  0 6px 20px  rgba(80, 60, 30, 0.08);
  --shadow-lg:  0 14px 36px rgba(80, 60, 30, 0.10);
  --shadow-xl:  0 24px 60px rgba(80, 60, 30, 0.14);

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.55, 0, 1, 0.45);
  --ease-both: cubic-bezier(0.76, 0, 0.24, 1);
  --dur-fast:   120ms;
  --dur-normal: 240ms;
  --dur-slow:   400ms;

  /* Z-index */
  --z-base: 1; --z-raised: 10; --z-sticky: 100;
  --z-overlay: 200; --z-modal: 300; --z-toast: 400;

  /* ============================================================
     LEGACY MAPPINGS — schools-agency desktop.css uses these names.
     We keep the desktop.css un-edited; tokens just resolve differently.
     ============================================================ */

  /* Neutrals — IdV warm cream */
  --color-neutral-50:  #FDFBF7;
  --color-neutral-100: #F6F1E8;
  --color-neutral-150: #EFE9DC;
  --color-neutral-200: #E8E2D5;
  --color-neutral-300: #D2CBBA;
  --color-neutral-400: #B5AC97;
  --color-neutral-500: #8A8270;
  --color-neutral-600: #65604F;
  --color-neutral-700: #45413A;
  --color-neutral-800: #2A2620;
  --color-neutral-900: #1A1410;

  /* "terracotta" mapped to coconut gold so all schools components reskin */
  --color-terracotta-50:  #FBF5E5;
  --color-terracotta-100: #F4E8C8;
  --color-terracotta-200: #ECDAA1;
  --color-terracotta-300: #DEC373;
  --color-terracotta-400: #CFAB52;
  --color-terracotta-500: var(--accent);
  --color-terracotta-600: var(--accent-hover);
  --color-terracotta-700: var(--accent-text);
  --color-terracotta-800: #5A4216;
  --color-terracotta-900: #3D2C0E;

  --color-signal-green:       var(--signal-ok);
  --color-signal-green-light: var(--signal-ok-soft);
  --color-signal-amber:       var(--signal-warn);
  --color-signal-amber-light: var(--signal-warn-soft);
  --color-signal-red:         var(--signal-bad);
  --color-signal-red-light:   var(--signal-bad-soft);

  --color-bg:           var(--paper);
  --color-bg-raised:    var(--surface);
  --color-bg-sunken:    var(--surface-tint);
  --color-border:       var(--border);
  --color-border-strong:var(--border-strong);
  --color-text:         var(--ink);
  --color-text-muted:   var(--ink-muted);
  --color-text-subtle:  var(--ink-subtle);
  --color-accent:       var(--accent);
  --color-accent-hover: var(--accent-hover);
  --color-accent-text:  var(--accent-text);

  --leading-tight:  var(--lh-tight);
  --leading-snug:   var(--lh-snug);
  --leading-normal: var(--lh-normal);
  --leading-loose:  var(--lh-loose);

  --tracking-tight:  var(--track-tight);
  --tracking-normal: var(--track-normal);
  --tracking-wide:   var(--track-wide);
  --tracking-wider:  var(--track-wider);

  --weight-regular:  var(--w-regular);
  --weight-medium:   var(--w-medium);
  --weight-semibold: var(--w-semibold);
  --weight-bold:     var(--w-bold);

  --space-0:  0;
  --space-1:  var(--s-1); --space-2:  var(--s-2);
  --space-3:  var(--s-3); --space-4:  var(--s-4);
  --space-5:  var(--s-5); --space-6:  var(--s-6);
  --space-8:  var(--s-8); --space-10: var(--s-10);
  --space-12: var(--s-12); --space-16: var(--s-16);
  --space-20: var(--s-20); --space-24: var(--s-24);

  --radius-xs:   2px;
  --radius-sm:   var(--r-sm);
  --radius-md:   var(--r-md);
  --radius-lg:   var(--r-lg);
  --radius-xl:   var(--r-xl);
  --radius-2xl:  var(--r-2xl);
  --radius-full: var(--r-pill);

  --duration-fast:   var(--dur-fast);
  --duration-normal: var(--dur-normal);
  --duration-slow:   var(--dur-slow);
  --duration-slower: 600ms;
}
