@import "tailwindcss" source(none);
@source "../src";
@import "tw-animate-css";

@custom-variant dark (&:is(.dark *));

@theme inline {
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;

  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);

  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-urgent: var(--urgent);
  --color-urgent-foreground: var(--urgent-foreground);
  --color-success: var(--success);
  --color-success-foreground: var(--success-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
}

:root {
  --radius: 0.75rem;

  /* Trust blue + urgent red palette for a French locksmith brand */
  --background: oklch(1 0 0);
  --foreground: oklch(0.18 0.04 250);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0.04 250);

  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.18 0.04 250);

  --primary: oklch(0.32 0.12 255);            /* Deep trust blue */
  --primary-foreground: oklch(0.99 0 0);

  --secondary: oklch(0.96 0.02 250);
  --secondary-foreground: oklch(0.22 0.06 255);

  --muted: oklch(0.97 0.01 250);
  --muted-foreground: oklch(0.45 0.03 255);

  --accent: oklch(0.86 0.16 85);              /* Warm gold accent */
  --accent-foreground: oklch(0.18 0.04 250);

  --urgent: oklch(0.58 0.22 27);              /* Red 24/7 urgency */
  --urgent-foreground: oklch(0.99 0 0);

  --success: oklch(0.62 0.17 150);
  --success-foreground: oklch(0.99 0 0);

  --destructive: oklch(0.58 0.22 27);
  --destructive-foreground: oklch(0.99 0 0);

  --border: oklch(0.92 0.01 250);
  --input: oklch(0.92 0.01 250);
  --ring: oklch(0.32 0.12 255);
}

@layer base {
  * {
    border-color: var(--color-border);
  }
  html {
    scroll-behavior: smooth;
  }
  body {
    background-color: var(--color-background);
    color: var(--color-foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
  }
}

@utility container-page {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
  max-width: 1200px;
  @media (min-width: 768px) {
    padding-inline: 2rem;
  }
}
