/* ==========================================================================
   MINDCARE DESIGN SYSTEM & TOKENS (V5 Production Masterpiece)
   Authentic MindCare Palette • Premium Typography • Fluid Motion
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Open+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Transformational Color Palette - Vibrant Electric Sapphire Cobalt & Sunset Flame */
  --color-primary-dark: #060c1a;
  --color-primary: #0b172e;
  --color-primary-light: #162a52;
  
  /* Electric Sapphire Blue (Authority, Global Safety, Precision) */
  --color-brand-teal: #2563eb;
  --color-brand-teal-light: #38bdf8;
  --color-brand-teal-dark: #1d4ed8;
  --color-brand-teal-bg: #eff6ff;
  --color-brand-teal-glow: rgba(37, 99, 235, 0.35);
  
  /* Sunset Flame Coral (High-Energy CTAs & Live Action Highlights) */
  --color-brand-coral: #ff5722;
  --color-brand-coral-hover: #e64a19;
  --color-brand-coral-bg: #fff1ed;
  --color-brand-coral-glow: rgba(255, 87, 34, 0.35);

  /* Royal Cobalt & Sky Highlights */
  --color-brand-blue: #2563eb;
  --color-brand-blue-light: #38bdf8;
  --color-brand-blue-dark: #1d4ed8;
  --color-brand-blue-bg: #eff6ff;
  --color-brand-blue-glow: rgba(37, 99, 235, 0.35);

  /* Radiant Amber Gold */
  --color-brand-amber: #f59e0b;
  --color-brand-amber-light: #fbbf24;
  --color-brand-amber-bg: #fef8e7;
  
  --color-brand-emerald: #2563eb;
  --color-brand-emerald-light: #38bdf8;
  --color-brand-emerald-bg: #eff6ff;
  --color-brand-red: #ef4444;

  /* Theme Tokens - Light Mode (Crisp, High-Contrast & Vibrant) */
  --bg-body: #f4f7fb;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #edf2f7;
  --bg-card-hover: #f0f7ff;
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #2563eb;
  --text-main: #061124;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-inverse: #ffffff;

  /* Elevation & Shadows */
  --shadow-xs: 0 1px 3px rgba(6, 17, 36, 0.05);
  --shadow-sm: 0 4px 14px rgba(6, 17, 36, 0.08);
  --shadow-md: 0 12px 32px rgba(6, 17, 36, 0.12);
  --shadow-lg: 0 24px 54px rgba(6, 17, 36, 0.18);
  --shadow-teal: 0 8px 24px rgba(37, 99, 235, 0.35);
  --shadow-coral: 0 8px 24px rgba(255, 87, 34, 0.35);
  --shadow-blue: 0 8px 24px rgba(37, 99, 235, 0.35);
  --shadow-amber: 0 8px 24px rgba(245, 158, 11, 0.3);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid Font Sizes */
  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.8rem);
  --text-sm: clamp(0.82rem, 0.8rem + 0.15vw, 0.9rem);
  --text-base: clamp(0.92rem, 0.9rem + 0.2vw, 1.02rem);
  --text-lg: clamp(1.08rem, 1rem + 0.3vw, 1.22rem);
  --text-xl: clamp(1.22rem, 1.15rem + 0.45vw, 1.45rem);
  --text-2xl: clamp(1.48rem, 1.35rem + 0.65vw, 1.85rem);
  --text-3xl: clamp(1.82rem, 1.6rem + 1vw, 2.35rem);
  --text-hero: clamp(2.1rem, 1.9rem + 1.8vw, 3.6rem);

  /* Spacing */
  --container-max: 1400px;
  --container-pad: clamp(1rem, 3.5vw, 2.25rem);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 260ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 380ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layers */
  --z-base: 1;
  --z-sticky: 100;
  --z-mobile-bar: 200;
  --z-drawer: 1200;
  --z-modal: 1300;
  --z-toast: 1400;
}

@media (min-width: 768px) {
  :root {
    --container-pad: 1.75rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --container-pad: 2.5rem;
  }
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-body: #060e1a;
  --bg-surface: #0b172a;
  --bg-surface-elevated: #11223b;
  --bg-muted: #0e1e36;
  --bg-card-hover: #132644;
  --border-subtle: #1a2f50;
  --border-medium: #274572;
  --text-main: #f8fafc;
  --text-muted: #94a8c5;
  --text-light: #647d9f;
  --color-brand-teal-bg: rgba(37, 99, 235, 0.18);
  --color-brand-amber-bg: rgba(245, 158, 11, 0.18);
  --color-brand-emerald-bg: rgba(37, 99, 235, 0.18);
  --color-brand-coral-bg: rgba(255, 87, 34, 0.18);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 52px rgba(0, 0, 0, 0.75);
}

/* Reset & Strict Overflow Safety */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--color-brand-teal) var(--bg-body);
  max-width: 100vw;
  overflow-x: clip;
}

body {
  max-width: 100vw;
  overflow-x: clip;
  position: relative;
}

/* --------------------------------------------------------------------------
   PREMIUM CUSTOM SCROLLBAR
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
  border-left: 1px solid var(--border-subtle);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-brand-teal) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-full);
  border: 1px solid var(--bg-body);
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-brand-teal-light) 0%, var(--color-brand-teal) 100%);
}

/* Sleek Top Reading / Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 50%, #ff5722 100%);
  z-index: 99999;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
  pointer-events: none;
  transition: width 0.08s ease-out;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.62;
  color: var(--text-main);
  background-color: var(--bg-body);
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  padding-bottom: 75px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--color-brand-teal);
  outline-offset: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  box-sizing: border-box;
}

.section {
  padding-top: clamp(3rem, 5.5vw, 5.5rem);
  padding-bottom: clamp(3rem, 5.5vw, 5.5rem);
}

.section-alt {
  background-color: var(--bg-surface);
}

.grid {
  display: grid;
  gap: 1.35rem;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 2.75rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-teal);
  background: var(--color-brand-teal-bg);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1px solid rgba(0, 143, 137, 0.25);
  max-width: 100%;
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Buttons - Strict Pill Shape Uniformity */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.45rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-align: center;
  min-height: 44px;
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
  color: #ffffff;
}

.btn-coral {
  background: linear-gradient(135deg, var(--color-brand-coral) 0%, #e63939 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--color-brand-coral-glow);
  border: 1px solid transparent;
}

.btn-coral:hover {
  background: linear-gradient(135deg, #ff7675 0%, var(--color-brand-coral) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 77, 0.5);
  color: #ffffff;
}

.btn-blue {
  background: linear-gradient(135deg, var(--color-brand-blue) 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--color-brand-blue-glow);
  border: 1px solid transparent;
}

.btn-blue:hover {
  background: linear-gradient(135deg, var(--color-brand-blue-light) 0%, var(--color-brand-blue) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1.5px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--color-brand-teal);
  color: var(--color-brand-teal);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-brand-teal);
  border: 1.5px solid var(--color-brand-teal);
}

.btn-outline:hover {
  background: var(--color-brand-teal);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--color-brand-teal-glow);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: #050e1d;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.btn-sm {
  padding: 0.35rem 0.95rem;
  min-height: 36px;
  font-size: var(--text-xs);
  border-radius: var(--radius-full);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  min-height: 48px;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
}

.btn-full {
  width: 100%;
}

/* Cards */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1.25;
}

.badge-silver {
  background: rgba(100, 116, 139, 0.1);
  color: #334155;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

[data-theme="dark"] .badge-silver {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-teal {
  background: var(--color-brand-teal-bg);
  color: var(--color-brand-teal);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] .badge-teal {
  background: rgba(37, 99, 235, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .badge-emerald {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-coral {
  background: rgba(255, 77, 77, 0.14);
  color: #e63939;
  border: 1px solid rgba(255, 77, 77, 0.35);
  font-weight: 700;
}

[data-theme="dark"] .badge-coral {
  background: rgba(255, 77, 77, 0.2);
  color: #ff9999;
  border: 1px solid rgba(255, 77, 77, 0.45);
}

.badge-blue {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.3);
  font-weight: 700;
}

[data-theme="dark"] .badge-blue {
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.45);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-weight: 700;
}

[data-theme="dark"] .badge-amber {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .badge-amber {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

[data-theme="dark"] .badge-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

