/* style.css — AIB ROI Calculator Design Tokens + Component Styles */

/* ============================================
   TYPE SCALE (fluid with clamp)
   ============================================ */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* ============================================
     SPACING (4px base unit)
     ============================================ */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ============================================
     FONTS
     ============================================ */
  --font-display: 'DM Serif Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  /* ============================================
     COLORS — Custom AIB Palette (Light only)
     ============================================ */

  /* Surfaces — warm white */
  --color-bg:             #FAFAF8;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F5F6F4;
  --color-surface-offset: #EEF0ED;
  --color-divider:        #DDE0DB;
  --color-border:         #C8CCC5;

  /* Text */
  --color-text:           #1B2A3A;
  --color-text-muted:     #5A6B7D;
  --color-text-faint:     #9BAAB8;
  --color-text-inverse:   #FAFAF8;

  /* Primary — Deep Navy */
  --color-primary:        #1B3A5C;
  --color-primary-hover:  #142D48;
  --color-primary-active: #0F2236;
  --color-primary-light:  #E8EDF3;

  /* Accent — Vibrant Green (savings, positive) */
  --color-green:          #2E8B57;
  --color-green-hover:    #256F47;
  --color-green-light:    #E6F4EC;
  --color-green-text:     #1D6B3F;

  /* Accent — Orange (CTA) */
  --color-orange:         #ED7D31;
  --color-orange-hover:   #D86A1F;
  --color-orange-active:  #C25A14;
  --color-orange-light:   #FDF0E6;

  /* Semantic */
  --color-error:          #C0392B;

  /* ============================================
     RADIUS, TRANSITIONS, SHADOWS
     ============================================ */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 240 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 240 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 240 / 0.1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}
