/* Art direction: Institutional industrial real estate investment firm → Authoritative, refined, contemporary
   Palette: Cool slate gray surfaces, teal/cyan accent from brand (#4ABFBF)
   Typography: Cormorant (display) + General Sans (body) — premium institutional, not tech startup
   Density: Spacious/editorial — generous whitespace, full-bleed hero moments */

/* ============================================
   CUSTOM PALETTE — Blue Road Investments
   Cool slate surfaces + refined teal accent
   ============================================ */

:root {
  /* Type Scale (fluid) */
  --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.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* 4px Spacing System */
  --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;

  /* Font Families */
  --font-display: 'Cormorant', 'Georgia', serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

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

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

/* ============================================
   LIGHT MODE — Cool slate surfaces
   ============================================ */
:root, [data-theme="light"] {
  /* Surfaces (Cool Slate) */
  --color-bg:              #f5f6f8;
  --color-surface:         #f8f9fb;
  --color-surface-2:       #ffffff;
  --color-surface-offset:  #eef0f3;
  --color-surface-offset-2: #e6e9ed;
  --color-surface-dynamic: #dde0e5;
  --color-divider:         #d0d4da;
  --color-border:          #c4c9d1;

  /* Text (Cool Gray) */
  --color-text:            #1a1f2e;
  --color-text-muted:      #5c6478;
  --color-text-faint:      #9ca3b0;
  --color-text-inverse:    #f5f6f8;

  /* Primary Accent (Brand Teal — refined) */
  --color-primary:         #3a9e9e;
  --color-primary-hover:   #2d8080;
  --color-primary-active:  #236464;
  --color-primary-highlight: #d5edec;

  /* Error */
  --color-error:           #c43d5c;
  --color-error-hover:     #a0304a;
  --color-error-active:    #7d2439;
  --color-error-highlight: #f2dde2;

  /* Success */
  --color-success:         #2e7d4f;
  --color-success-hover:   #236240;
  --color-success-active:  #194832;
  --color-success-highlight: #d7ece0;

  /* Warning */
  --color-warning:         #b8701b;
  --color-warning-hover:   #955a15;
  --color-warning-active:  #72440f;
  --color-warning-highlight: #f0e3cf;

  /* Shadows (cool-toned) */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 250 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 250 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 250 / 0.12);
}

/* ============================================
   DARK MODE — Deep charcoal/navy-tinted
   ============================================ */
[data-theme="dark"] {
  --color-bg:              #0f1218;
  --color-surface:         #151922;
  --color-surface-2:       #1a1f2a;
  --color-surface-offset:  #1e2433;
  --color-surface-offset-2: #252c3c;
  --color-surface-dynamic: #2d3545;
  --color-divider:         #2a3040;
  --color-border:          #353d50;

  --color-text:            #d6d9e0;
  --color-text-muted:      #8891a5;
  --color-text-faint:      #525c72;
  --color-text-inverse:    #0f1218;

  --color-primary:         #5bbdbd;
  --color-primary-hover:   #3ea9a9;
  --color-primary-active:  #2e8f8f;
  --color-primary-highlight: #1e3838;

  --color-error:           #e05a78;
  --color-error-hover:     #c84460;
  --color-error-active:    #a83350;
  --color-error-highlight: #3d2030;

  --color-success:         #4caa6e;
  --color-success-hover:   #3a9058;
  --color-success-active:  #2b7744;
  --color-success-highlight: #1e3828;

  --color-warning:         #d4923e;
  --color-warning-hover:   #c07e2c;
  --color-warning-active:  #a86a1f;
  --color-warning-highlight: #3d2e1a;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:              #0f1218;
    --color-surface:         #151922;
    --color-surface-2:       #1a1f2a;
    --color-surface-offset:  #1e2433;
    --color-surface-offset-2: #252c3c;
    --color-surface-dynamic: #2d3545;
    --color-divider:         #2a3040;
    --color-border:          #353d50;
    --color-text:            #d6d9e0;
    --color-text-muted:      #8891a5;
    --color-text-faint:      #525c72;
    --color-text-inverse:    #0f1218;
    --color-primary:         #5bbdbd;
    --color-primary-hover:   #3ea9a9;
    --color-primary-active:  #2e8f8f;
    --color-primary-highlight: #1e3838;
    --color-error:           #e05a78;
    --color-error-hover:     #c84460;
    --color-error-active:    #a83350;
    --color-error-highlight: #3d2030;
    --color-success:         #4caa6e;
    --color-success-hover:   #3a9058;
    --color-success-active:  #2b7744;
    --color-success-highlight: #1e3828;
    --color-warning:         #d4923e;
    --color-warning-hover:   #c07e2c;
    --color-warning-active:  #a86a1f;
    --color-warning-highlight: #3d2e1a;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
  }
}
