/* ===================================
   RANK MY CLINIC - PREMIUM DESIGN SYSTEM
   Modern "Medical Tech" Aesthetic
   ================================= */

/* === ROOT VARIABLES === */
:root {
  /* Brand Colors - Sophisticated Palette */
  --color-primary: #2563EB;
  /* Vivid Professional Blue */
  --color-primary-light: #60A5FA;
  /* Bright Blue */
  --color-primary-dark: #1E3A8A;
  /* Deep Navy */
  --color-primary-subtle: #DBEAFE;
  /* Very Light Blue */

  --color-secondary: #0D9488;
  /* Teal/Cyan (Modern Medical) */
  --color-secondary-light: #2DD4BF;
  /* Bright Teal */
  --color-secondary-dark: #115E59;
  /* Deep Teal */

  --color-accent: #F59E0B;
  /* Amber/Gold */
  --color-accent-light: #FCD34D;
  /* Light Gold */

  /* Neutral Scale - Cool Grays */
  --color-neutral-900: #0F172A;
  /* Very Deep Blue-Gray (Text) */
  --color-neutral-800: #1E293B;
  --color-neutral-700: #334155;
  --color-neutral-600: #475569;
  --color-neutral-500: #64748B;
  --color-neutral-400: #94A3B8;
  --color-neutral-300: #CBD5E1;
  --color-neutral-200: #E2E8F0;
  --color-neutral-100: #F1F5F9;
  --color-neutral-50: #F8FAFC;
  /* Bright Blue-White Background */
  --color-white: #FFFFFF;

  /* Gradients - Modern & Smooth */
  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --gradient-secondary: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
  --gradient-hero: linear-gradient(120deg, #1E3A8A 0%, #2563EB 50%, #60A5FA 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  --gradient-dark-glass: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --backdrop-blur: blur(12px);

  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Refined Scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;
  --font-size-6xl: 4.5rem;

  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows - Layered & Soft */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 15px rgba(37, 99, 235, 0.3);

  /* Transitions */
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Widths */
  --container-max: 1280px;
}

/* === BASE STYLES === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-neutral-700);
  background-color: var(--color-neutral-50);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  overflow-x: hidden;
}

/* === TYPOGRAPHY REFINED === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-neutral-900);
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-4);
}

h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

p {
  margin-bottom: var(--spacing-4);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary-dark);
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-6);
  }
}

.section {
  padding: var(--spacing-16) 0;
  position: relative;
}

.section-sm {
  padding: var(--spacing-8) 0;
}

.section-lg {
  padding: var(--spacing-24) 0;
}

/* === UTILITIES === */
.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-white {
  background-color: var(--color-white);
}

.bg-neutral {
  background-color: var(--color-neutral-50);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-4 {
  gap: var(--spacing-4);
}

.gap-8 {
  gap: var(--spacing-8);
}

.gap-12 {
  gap: var(--spacing-12);
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(2, 1fr);
}

/* 2 cols on mobile for 4-grid */

@media (min-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mb-4 {
  margin-bottom: var(--spacing-4);
}

.mb-8 {
  margin-bottom: var(--spacing-8);
}

.mb-12 {
  margin-bottom: var(--spacing-12);
}

.mt-4 {
  margin-top: var(--spacing-4);
}

.mt-8 {
  margin-top: var(--spacing-8);
}

/* === VISUAL EFFECTS === */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.gradient-bg {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.gradient-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  animation: shine 15s infinite linear;
  pointer-events: none;
}

@keyframes shine {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}