/* ==========================================================================
   ROOT.CSS - Theme Variables, Design Tokens & Base Setup
   Sanskar College
   ========================================================================== */

:root {
  /* Color Palette - Matched with Sanskar College Branding */
  --primary-color: #0c2d64;       /* Deep Royal Academic Navy */
  --primary-light: #184ea3;
  --primary-dark: #061b3d;
  
  --secondary-color: #c92a2a;     /* Healthcare Red / Emblem Crimson */
  --secondary-light: #e03131;
  --secondary-dark: #a61e1e;

  --accent-gold: #f59e0b;         /* Academic Gold */
  --accent-teal: #0d9488;         /* Clinical Teal */

  /* Neutral & Grayscale */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-topbar: #071b3d;

  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Border & Dividers */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  /* Typography */
  --font-heading: 'Outfit', 'Poppins', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Font Sizes */
  --fs-xs: 0.72rem;     /* 11.5px */
  --fs-sm: 0.8125rem;   /* 13px */
  --fs-base: 0.9375rem; /* 15px */
  --fs-md: 1.05rem;     /* 17px */
  --fs-lg: 1.175rem;    /* 19px */
  --fs-xl: 1.35rem;     /* 21.5px */
  --fs-2xl: 1.75rem;    /* 28px */
  --fs-3xl: 2.15rem;    /* 34px */
  --fs-4xl: 2.5rem;     /* 40px */

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 35px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max-width: 1240px;
  --container-padding: 1.25rem;
}

/* Base Reset & Global Rules */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Selection */
::selection {
  background-color: var(--primary-color);
  color: var(--text-white);
}
