/* =========================================================
   Design Tokens
   ASP.NET Core Razor Pages frontend starter tokens

   Purpose:
   - Keep colors, typography, spacing, radius and shadows consistent.
   - Use this as a starting point.
   - Claude Code should adapt these values to the current brand.
   - Do not copy blindly into every project without checking existing CSS.
========================================================= */

:root {
  /* =====================================================
     Colors - Default Business / Neutral Palette
  ===================================================== */

  --color-primary: #1f3a5f;
  --color-primary-dark: #142740;
  --color-primary-light: #e8eef6;

  --color-secondary: #3f6b57;
  --color-secondary-dark: #2d4c3e;
  --color-secondary-light: #e9f2ed;

  --color-accent: #c9a227;
  --color-accent-dark: #9f7f1d;
  --color-accent-light: #fbf4d8;

  --color-background: #f7f8fa;
  --color-surface: #ffffff;
  --color-surface-soft: #f9fafb;

  --color-text: #1f2933;
  --color-text-muted: #667085;
  --color-text-light: #ffffff;

  --color-border: #e4e7ec;
  --color-border-strong: #d0d5dd;

  --color-success: #2f7d4f;
  --color-success-light: #e7f6ed;

  --color-warning: #b7791f;
  --color-warning-light: #fff4df;

  --color-danger: #b42318;
  --color-danger-light: #feeceb;

  --color-info: #2563eb;
  --color-info-light: #eaf1ff;

  /* =====================================================
     Typography
  ===================================================== */

  /* Editorial serif for headings — balanced, readable, magazine
     feel (works for both display sizes and running prose). */
  --font-heading:
    "Lora", Georgia, "Times New Roman", serif;
  --font-body:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Same family, italic — used for the tagline / accent voice. */
  --font-tagline:
    "Lora", Georgia, "Times New Roman", serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.25rem;
  --text-5xl: 4rem;

  --line-tight: 1.15;
  --line-snug: 1.3;
  --line-normal: 1.6;
  --line-relaxed: 1.75;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* =====================================================
     Spacing
  ===================================================== */

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* =====================================================
     Layout
  ===================================================== */

  --container-sm: 760px;
  --container-md: 960px;
  --container-lg: 1120px;
  --container-xl: 1280px;

  --container-padding: 1rem;

  --section-padding-sm: clamp(2.5rem, 5vw, 4rem);
  --section-padding-md: clamp(3.5rem, 7vw, 6rem);
  --section-padding-lg: clamp(5rem, 9vw, 8rem);

  /* =====================================================
     Radius
  ===================================================== */

  --radius-xs: 0.375rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 999px;

  /* =====================================================
     Shadows
  ===================================================== */

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 12px 28px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 22px 45px rgba(16, 24, 40, 0.14);

  /* =====================================================
     Transitions
  ===================================================== */

  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;
  --transition-slow: 350ms ease;

  /* =====================================================
     Z Index
  ===================================================== */

  --z-header: 100;
  --z-dropdown: 200;
  --z-modal: 500;
  --z-toast: 800;
}

/* =========================================================
   Optional Palette: Boutique Hotel

   Use this by replacing the color values in :root,
   or by scoping it to a body class such as:
   body.theme-boutique-hotel { ... }
========================================================= */

.theme-boutique-hotel {
  --color-primary: #556b2f;
  --color-primary-dark: #3f5123;
  --color-primary-light: #edf2e5;

  --color-secondary: #8a6f4d;
  --color-secondary-dark: #654f36;
  --color-secondary-light: #f3ede5;

  --color-accent: #c79a5b;
  --color-accent-dark: #9f7742;
  --color-accent-light: #fbf1df;

  --color-background: #f8f5ef;
  --color-surface: #fffdf8;
  --color-surface-soft: #f5f0e7;

  --color-text: #25251f;
  --color-text-muted: #6f6a60;

  --color-border: #e5ded2;
  --color-border-strong: #d6cbbd;
}

/* =========================================================
   Brand Palette: Romm Coffee (real brand)

   Sourced from the official Romm logo guide:
   - Primary  #06515D  (Pantone 316C)  — deep teal
   - Secondary #649EA1  (Pantone 2232C) — soft teal
   Tagline: "Life Begins With Coffee".

   Clean, modern, minimal: near-white canvas + teal ink.
   (Kept the .theme-cafe-chocolate class name so existing
   markup keeps working; values are now the real teal brand.)
========================================================= */

.theme-cafe-chocolate {
  --color-primary: #06515d;
  --color-primary-dark: #05323a;
  --color-primary-light: #d8e7e8;

  --color-secondary: #649ea1;
  --color-secondary-dark: #3f7b7e;
  --color-secondary-light: #e4f0f0;

  /* Warm brass accent — rare, for emphasis only. Reads as
     "coffee" against the cool teal without fighting it. */
  --color-accent: #c79a4b;
  --color-accent-dark: #a67c34;
  --color-accent-light: #f7ecd6;

  --color-background: #f6f8f8;
  --color-surface: #ffffff;
  --color-surface-soft: #eaf1f1;

  --color-text: #12292d;
  --color-text-muted: #5f7a7d;

  --color-border: #d5e2e2;
  --color-border-strong: #b9cdcd;
}

/* =========================================================
   Optional Palette: Admin Panel
========================================================= */

.theme-admin {
  --admin-bg: #f5f6f8;
  --admin-surface: #ffffff;
  --admin-sidebar: #111827;
  --admin-sidebar-text: #e5e7eb;

  --admin-text: #111827;
  --admin-muted: #6b7280;
  --admin-border: #e5e7eb;

  --admin-primary: #2563eb;
  --admin-success: #16a34a;
  --admin-warning: #d97706;
  --admin-danger: #dc2626;

  --admin-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* =========================================================
   Base Helpers

   These are small helper classes.
   They can be copied into site-base.css if needed.
========================================================= */

.container-custom {
  width: min(var(--container-lg), calc(100% - 2rem));
  margin-inline: auto;
}

.container-narrow {
  width: min(var(--container-sm), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-padding-md);
}

.section-sm {
  padding-block: var(--section-padding-sm);
}

.section-lg {
  padding-block: var(--section-padding-lg);
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--space-6);
}

.section-eyebrow {
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, var(--text-4xl));
  line-height: var(--line-tight);
  color: var(--color-text);
}

.section-description {
  margin-top: var(--space-3);
  margin-bottom: 0;
  font-size: var(--text-md);
  line-height: var(--line-relaxed);
  color: var(--color-text-muted);
}

.text-muted-custom {
  color: var(--color-text-muted);
}

.surface-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   Accessibility / Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
