/* Bhakti House design tokens.
   Canonical source: the "Bhakti House Design System" claude.ai/design project
   (tokens/colors.css, typography.css, spacing.css, effects.css) — keep the two in sync.
   Load order: bootstrap.min.css → tokens.css → brand.css → app/page css. */

/* ---- Self-hosted fonts (offline-safe for the kiosk) ---- */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/raleway-v37-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/raleway-v37-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/raleway-v37-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/raleway-v37-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Parkinsans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/parkinsans-v3-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Parkinsans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/parkinsans-v3-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Parkinsans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/parkinsans-v3-latin-700.woff2") format("woff2");
}

:root {
  /* ================= Color ================= */

  /* ---- Brand: Purple ---- */
  --purple-900: #290849;   /* deepest brand purple — headings, hero titles, footer gradients */
  --purple-700: #55185D;   /* primary brand purple — nav bar, footer, dropdowns */

  /* ---- Brand: Gold / Yellow ---- */
  --gold-600: #ECB602;     /* primary gold — links, accents, borders, icons */
  --yellow-400: #FFD524;   /* bright yellow — gradient partner, active nav, highlights */

  /* ---- Warm neutral surfaces (cream/sand) ---- */
  --sand-300: #DCCFC0;     /* hero / page-header background (tan) */
  --cream-200: #F0E8DC;    /* alt section background, image wells */
  --cream-100: #F5F0E8;    /* default page section background */
  --cream-50:  #F8F4ED;    /* card surface (warm white) */
  --cream-0:   #fffbf1;    /* lightest cream — alternating sections */
  --lavender-50: #fdf8ff;  /* faint lavender-white */

  /* ---- Ink / text ---- */
  --ink-900: #290849;
  --ink-700: #4a4a4a;
  --ink-600: #555555;
  --ink-500: #666666;
  --ink-400: #6c757d;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.9);

  /* ---- Hairlines / dividers ---- */
  --line-purple: rgba(41, 8, 73, 0.1);
  --line-gold:   rgba(236, 182, 2, 0.2);
  --line-neutral: #e9ecef;

  /* ---- Social ---- */
  --social-whatsapp: #25D366;
  --social-facebook: #1877f2;
  --social-youtube:  #ff0000;

  /* ---- Semantic color aliases ---- */
  --brand-primary: var(--purple-700);
  --brand-primary-strong: var(--purple-900);
  --brand-accent: var(--gold-600);
  --brand-accent-bright: var(--yellow-400);

  --surface-page: var(--cream-100);
  --surface-page-alt: var(--cream-0);
  --surface-card: var(--cream-50);
  --surface-well: var(--cream-200);
  --surface-hero: var(--sand-300);
  --surface-invert: var(--purple-700);

  --text-heading: var(--ink-900);
  --text-body: var(--ink-600);
  --text-muted: var(--ink-500);
  --text-link: var(--gold-600);
  --text-on-invert: var(--on-dark);

  --border-accent: var(--gold-600);
  --divider: var(--line-purple);

  /* ---- Signature gradients ---- */
  --grad-gold: linear-gradient(135deg, #ECB602, #FFD524);
  --grad-purple: linear-gradient(135deg, #290849, #55185D);

  /* ================= Typography ================= */

  --font-display: "Parkinsans", "Raleway", system-ui, sans-serif;
  --font-body: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --text-hero: 5rem;
  --text-display: 3.5rem;
  --text-h1: 2.6rem;
  --text-h2: 2.2rem;
  --text-h3: 1.5rem;
  --text-h4: 1.25rem;

  --text-lead: 1.3rem;
  --text-base: 1.1rem;
  --text-sm: 0.95rem;
  --text-xs: 0.85rem;

  --lh-tight: 1.2;
  --lh-snug: 1.3;
  --lh-body: 1.8;
  --lh-ui: 1.6;

  --ls-wide: 0.5px;
  --ls-mantra: 1px;

  --font-heading: var(--font-display);
  --font-ui: var(--font-body);

  /* ================= Spacing ================= */

  --section-pad-y: 4rem;        /* mobile */
  --section-pad-y-lg: 6rem;     /* desktop */
  --content-max: 600px;         /* subtitle / prose measure */

  /* ================= Effects ================= */

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 15px;
  --radius-2xl: 16px;
  --radius-3xl: 20px;
  --radius-pill: 25px;
  --radius-round: 50%;

  --border-card: 2px solid rgba(220, 207, 192, 0.3);

  --shadow-xs: 0 2px 8px rgba(41, 8, 73, 0.1);
  --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
  --shadow-purple: 0 10px 30px rgba(41, 8, 73, 0.3);
  --shadow-gold: 0 6px 20px rgba(236, 182, 2, 0.3);
  --shadow-card: var(--shadow-md);
  --shadow-card-hover: 0 15px 35px rgba(0, 0, 0, 0.15);

  --dur-fast: 0.3s;
  --transition-base: all var(--dur-fast) ease;
  --lift-hover: translateY(-2px);
  --lift-card: translateY(-5px);

  /* ================= Bootstrap bridge =================
     Point Bootstrap's own variables at the brand tokens so vanilla
     Bootstrap components come out on-brand without overrides. */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text-body);
  --bs-body-bg: var(--surface-page);
  --bs-heading-color: var(--text-heading);
  --bs-link-color: var(--text-link);
  --bs-link-hover-color: var(--brand-accent-bright);
  --bs-primary: var(--purple-700);
  --bs-primary-rgb: 85, 24, 93;
  --bs-warning: var(--gold-600);
  --bs-warning-rgb: 236, 182, 2;
}
