@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* ── shadcn base tokens (warm gold / terracotta / soft blue) ───── */
  --background: oklch(1 0 0);
  --foreground: oklch(0.18 0.015 60);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0.015 60);
  --popover: oklch(0.96 0.03 80);
  --popover-foreground: oklch(0.18 0.015 60);
  --primary: oklch(0.76 0.145 72);
  --primary-foreground: oklch(0.2 0.03 45);
  --secondary: oklch(0.83 0.04 240);
  --secondary-foreground: oklch(0.3 0.1 35);
  --muted: oklch(0.85 0.025 75);
  --muted-foreground: oklch(0.45 0.045 55);
  --accent: oklch(0.95 0.028 72);
  --accent-foreground: oklch(0.3 0.08 40);
  --destructive: oklch(0.55 0.19 28);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.83 0.028 75);
  --input: oklch(0.88 0.022 75);
  --ring: oklch(0.76 0.145 72);
  --success: oklch(0.52 0.13 150);
  --warning: oklch(0.6 0.14 60);
  --chart-1: oklch(0.76 0.145 72);
  --chart-2: oklch(0.69 0.12 35);
  --chart-3: oklch(0.45 0.14 35);
  --chart-4: oklch(0.7 0.07 240);
  --chart-5: oklch(0.82 0.12 75);
  --sidebar: oklch(0.975 0.02 80);
  --sidebar-foreground: oklch(0.22 0.02 55);
  --sidebar-primary: oklch(0.76 0.145 72);
  --sidebar-primary-foreground: oklch(0.2 0.03 45);
  --sidebar-accent: oklch(0.92 0.04 78);
  --sidebar-accent-foreground: oklch(0.22 0.02 55);
  --sidebar-border: oklch(0.88 0.03 78);
  --sidebar-ring: oklch(0.76 0.145 72);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.975 0.015 80);
  --surface-hover:   color-mix(in srgb, var(--primary) 8%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--primary) 14%, var(--background));
  --surface-elevated: oklch(1 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.94 0.015 78);
  --border-muted: oklch(0.9 0.02 76);
  --border-strong: oklch(0.72 0.04 72);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.36 0.03 50);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: oklch(0.7 0.15 68);
  --primary-muted: color-mix(in srgb, var(--primary) 18%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 9%,  var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 5%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.76 0.145 72 / 0.45);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.55 0.19 28);
  --error-foreground: oklch(0.985 0 0);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.75rem;
  --radius-none: 0rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Montserrat, ui-sans-serif, system-ui, sans-serif;
  --font-sans: Montserrat, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.15;
  --tracking-display: -0.015em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows (warm gold cast) ─────────────────────────────────── */
  --shadow-sm: 0 2px 10px -3px oklch(0.76 0.145 72 / 0.14);
  --shadow-md: 0 4px 20px -4px oklch(0.76 0.145 72 / 0.15);
  --shadow-lg: 0 14px 40px -8px oklch(0.76 0.145 72 / 0.24);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

.dark {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.19 0.015 55);
  --foreground: oklch(0.96 0.012 80);
  --card: oklch(0.24 0.018 55);
  --card-foreground: oklch(0.96 0.012 80);
  --popover: oklch(0.26 0.02 60);
  --popover-foreground: oklch(0.96 0.012 80);
  --primary: oklch(0.8 0.14 75);
  --primary-foreground: oklch(0.2 0.03 45);
  --secondary: oklch(0.38 0.045 240);
  --secondary-foreground: oklch(0.95 0.02 240);
  --muted: oklch(0.3 0.02 60);
  --muted-foreground: oklch(0.76 0.03 75);
  --accent: oklch(0.31 0.03 60);
  --accent-foreground: oklch(0.96 0.012 80);
  --destructive: oklch(0.68 0.18 28);
  --destructive-foreground: oklch(0.14 0.02 30);
  --border: oklch(1 0.01 80 / 14%);
  --input: oklch(1 0.01 80 / 18%);
  --ring: oklch(0.8 0.14 75);
  --success: oklch(0.74 0.14 150);
  --warning: oklch(0.8 0.14 70);
  --chart-1: oklch(0.8 0.14 75);
  --chart-2: oklch(0.72 0.12 35);
  --chart-3: oklch(0.6 0.14 35);
  --chart-4: oklch(0.72 0.07 240);
  --chart-5: oklch(0.86 0.1 80);
  --sidebar: oklch(0.16 0.015 55);
  --sidebar-foreground: oklch(0.93 0.012 80);
  --sidebar-primary: oklch(0.8 0.14 75);
  --sidebar-primary-foreground: oklch(0.2 0.03 45);
  --sidebar-accent: oklch(0.25 0.02 60);
  --sidebar-accent-foreground: oklch(0.96 0.012 80);
  --sidebar-border: oklch(1 0.01 80 / 10%);
  --sidebar-ring: oklch(0.8 0.14 75);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.22 0.016 55);
  --surface-elevated: oklch(0.29 0.02 58);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0.01 80 / 6%);
  --border-muted: oklch(1 0.01 80 / 9%);
  --border-strong: oklch(1 0.01 80 / 24%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.82 0.02 75);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-tint: color-mix(in srgb, var(--primary) 8%, var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.8 0.14 75 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.68 0.18 28);
  --error-foreground: oklch(0.14 0.02 30);
}

/* ── brand gradients (from the original MGB stylesheet) ─────────── */
.hero-gradient {
  background-image: linear-gradient(135deg, oklch(0.76 0.145 72), oklch(0.69 0.12 35));
}
.warm-gradient {
  background-image: linear-gradient(180deg, oklch(0.96 0.03 80), oklch(0.94 0.015 70));
}
.dark .warm-gradient {
  background-image: linear-gradient(180deg, oklch(0.24 0.018 55), oklch(0.19 0.015 55));
}
