/* ─── SchoolBreeze · Breeze skin (public website) ──────────────────────────────
   The same Breeze look as the admin app (luketipple/breeze-easy-booking, public/skins/breeze.css),
   trimmed to what a marketing site needs. Load it after the site's own CSS:

     <link rel="stylesheet" href="/skins/breeze.css">

   It styles the markup the site already has (design variables, Tailwind classes, element structure).
   Rules are unlayered, so they outrank Tailwind's utility layer without !important.

   Contents
     1. Fonts and design tokens: most of the look comes from here
     2. Type
     3. Buttons: one coral main action, Breeze-blue everything else
     4. Surfaces: cards, dark panels, fields, dialogs, toasts

   Brand images live in /brand/ beside /skins/. Rules and rationale: docs/BREEZE-WEBSITE.md. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap");

/* ── 1. Tokens ─────────────────────────────────────────────────────────────── */
/* :root:root outranks the site's own :root, whichever file loads last. */
:root:root {
  --bz-navy: #0B2A6B;
  --bz-blue: #1554C0;
  --bz-sky: #3BA3F5;
  --bz-coral: #FF6B5A;

  /* Surfaces: pale blue-grey page, white cards */
  --background: #F4F7FB;
  --surface: #EEF3F9;
  --card: #FFFFFF;
  --popover: #FFFFFF;
  --muted: #EEF3F9;
  --secondary: #EEF3F9;

  /* Text: deep navy, blue-grey secondary */
  --foreground: #0B1B3A;
  --card-foreground: #0B1B3A;
  --popover-foreground: #0B1B3A;
  --secondary-foreground: #0B1B3A;
  --muted-foreground: #5B6B85;

  /* Accent: Breeze blue. The old lavender/mint/aqua tints become Breeze blues. */
  --primary: var(--bz-blue);
  --primary-foreground: #FFFFFF;
  /* Coral is only for a page's single main action (bg-cta: Start free trial) */
  --cta: var(--bz-coral);
  --cta-foreground: #FFFFFF;
  --ring: color-mix(in oklab, var(--bz-blue) 45%, transparent);
  --brand: var(--bz-blue);
  --brand-deep: var(--bz-navy);
  --brand-light: #E6EFFC;
  --accent: #E6EFFC;
  --accent-foreground: var(--bz-blue);
  --aqua: #DCEFFE;
  --lavender: #E6EFFC;
  --destructive: #E5484D;
  --border: #E2E8F2;
  --input: #D7DFEC;

  /* Gradients and soft blue-tinted depth */
  --gradient-breeze: linear-gradient(135deg, var(--bz-blue), var(--bz-sky));
  --gradient-breeze-deep: linear-gradient(150deg, var(--bz-navy), var(--bz-blue) 62%, var(--bz-sky));
  --gradient-sky: linear-gradient(180deg, #FFFFFF, var(--background));
  --gradient-dawn: linear-gradient(180deg, #FFFFFF, var(--background));
  --shadow-soft: 0 1px 2px rgb(11 42 107 / 0.06), 0 8px 24px -14px rgb(11 42 107 / 0.22);
  --shadow-float: 0 16px 40px -12px rgb(11 42 107 / 0.28), 0 2px 6px rgb(11 42 107 / 0.08);
  --shadow-glow: 0 18px 40px -18px rgb(21 84 192 / 0.45);

  /* Friendly corners: --radius drives every rounded-* class */
  --radius: 10px;

  /* Type: Inter for text, Outfit for headings and big numbers */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", "Inter", sans-serif;
}

/* ── 2. Type ───────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -0.006em;
}
:is(h1, h2, h3, h4) {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
/* Outfit is already bold; extra-bold headings read heavy, so cap them at 700. */
:is(h1, h2).font-extrabold { font-weight: 700; }
/* Big numbers in the display font */
.tabular-nums { font-family: var(--font-display); }
/* The gradient highlight in headings stays upright */
.text-gradient-breeze.italic { font-style: normal; }

/* ── 3. Buttons ────────────────────────────────────────────────────────────── */
/* Dark buttons and selected segments become Breeze blue. */
:is(button, a).bg-foreground.text-background {
  background-color: var(--bz-blue);
  color: #fff;
}
:is(button, a).bg-primary { box-shadow: 0 4px 12px -6px color-mix(in oklab, var(--bz-blue) 70%, transparent); }
:is(button, a).bg-background { background-color: #fff; }

/* ── 4. Surfaces ───────────────────────────────────────────────────────────── */
/* Dark panels (stat bands, closing call to action) carry the signature gradient,
   the same navy → blue → sky as the admin app's sidebar. */
:is(div, section).bg-foreground.text-background {
  background-color: var(--bz-navy);
  background-image: var(--gradient-breeze-deep);
}

/* Form controls: white fields; Breeze-blue checks and radios. */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  background-color: #fff;
}
:is(input[type="checkbox"], input[type="radio"], input[type="range"], progress) { accent-color: var(--bz-blue); }

/* Tables: light header band. */
thead { background: #F7F9FD; }
thead th { color: #5B6B85; font-weight: 600; }

/* Dialogs round and floating; side sheets stay square to the screen edge. */
[role="dialog"]:not([class*="inset-y-0"]):not([class*="inset-x-0"]) {
  border-radius: 18px;
  box-shadow: var(--shadow-float);
}
[role="menu"],
[role="listbox"],
[data-radix-popper-content-wrapper] > [data-state] {
  border-radius: 12px;
  box-shadow: var(--shadow-float);
}
[data-sonner-toast] {
  border-radius: 14px !important;
  box-shadow: var(--shadow-float) !important;
  font-family: var(--font-sans) !important;
}

/* Calm motion, and none for people who ask for less. */
:where(button, a) {
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
