/**
 * Lemonal Theme Variables
 *
 * Design tokens for a Caribbean coastal aesthetic —
 * where jungle meets sea in Belize.
 */

:root {
  /* ========================================
     COLOR PALETTE
     ======================================== */

  /* Ocean Blues — Primary actions, links */
  --ocean: #0891B2;
  --ocean-deep: #0E7490;
  --ocean-light: #22D3EE;
  --ocean-muted: rgba(8, 145, 178, 0.1);

  /* Sand — Backgrounds, cards */
  --sand: #FEF3C7;
  --sand-dark: #F5E6B8;
  --sand-light: #FFFBEB;

  /* Coral — CTAs, attention */
  --coral: #F97316;
  --coral-dark: #EA580C;
  --coral-light: #FB923C;

  /* Jungle — Secondary text, success states */
  --jungle: #065F46;
  --jungle-light: #059669;
  --jungle-muted: rgba(6, 95, 70, 0.1);

  /* Neutrals */
  --midnight: #164E63;
  --white: #FFFEF9;
  --stone: #57534E;
  --stone-light: #78716C;
  --stone-dark: #44403C;

  /* Semantic Colors */
  --color-text-primary: var(--midnight);
  --color-text-secondary: var(--stone);
  --color-text-muted: var(--stone-light);
  --color-text-inverse: var(--white);

  --color-bg-primary: var(--white);
  --color-bg-secondary: var(--sand-light);
  --color-bg-card: var(--white);
  --color-bg-accent: var(--sand);

  --color-border: var(--sand-dark);
  --color-border-light: rgba(245, 230, 184, 0.5);

  --color-link: var(--ocean);
  --color-link-hover: var(--ocean-deep);

  --color-success: var(--jungle);
  --color-error: #DC2626;
  --color-warning: var(--coral);

  /* ========================================
     TYPOGRAPHY
     ======================================== */

  /* Font Families */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font Sizes — Fluid scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);
  --text-5xl: clamp(3rem, 2rem + 4vw, 4rem);

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* ========================================
     SPACING
     ======================================== */

  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Section Spacing */
  --section-gap: clamp(4rem, 8vw, 8rem);

  /* ========================================
     LAYOUT
     ======================================== */

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-max: 1400px;

  --content-width: min(90%, var(--container-xl));
  --content-width-narrow: min(90%, var(--container-md));

  /* ========================================
     BORDERS & RADIUS
     ======================================== */

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --border-width: 1px;
  --border-width-2: 2px;

  /* ========================================
     SHADOWS
     ======================================== */

  --shadow-sm: 0 1px 2px rgba(22, 78, 99, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(22, 78, 99, 0.07),
               0 2px 4px -1px rgba(22, 78, 99, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(22, 78, 99, 0.08),
               0 4px 6px -2px rgba(22, 78, 99, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(22, 78, 99, 0.1),
               0 10px 10px -5px rgba(22, 78, 99, 0.04);

  /* Colored shadows for hover states */
  --shadow-ocean: 0 4px 14px rgba(8, 145, 178, 0.25);
  --shadow-coral: 0 4px 14px rgba(249, 115, 22, 0.25);

  /* ========================================
     TRANSITIONS
     ======================================== */

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;

  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --transition-colors: color var(--duration-fast) var(--ease-default),
                       background-color var(--duration-fast) var(--ease-default),
                       border-color var(--duration-fast) var(--ease-default);
  --transition-transform: transform var(--duration-normal) var(--ease-default);
  --transition-shadow: box-shadow var(--duration-normal) var(--ease-default);
  --transition-all: all var(--duration-normal) var(--ease-default);

  /* ========================================
     Z-INDEX SCALE
     ======================================== */

  --z-below: -1;
  --z-base: 0;
  --z-above: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* Dark mode preparation (future enhancement) */
@media (prefers-color-scheme: dark) {
  :root {
    /* Reserved for dark mode tokens */
  }
}
