/* ==========================================================================
   DR. K PHYSIOTHERAPY — CORE DESIGN SYSTEM (main.css)
   ========================================================================== */

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

:root {
  /* Color Palette — Sophisticated Healthcare & Clinical Wellness */
  --color-primary: #0d9488;         /* Clinical Teal */
  --color-primary-dark: #0f766e;    /* Deep Teal */
  --color-primary-light: #ccfbf1;   /* Soft Teal Tint */
  --color-primary-hover: #115e59;
  
  --color-secondary: #0284c7;       /* Calm Sky/Medical Blue */
  --color-secondary-light: #e0f2fe;
  
  --color-accent: #0f172a;          /* Deep Slate / Midnight Navy */
  --color-accent-soft: #1e293b;
  
  /* Neutrals */
  --color-bg: #f8fafc;              /* Soft Off-White */
  --color-surface: #ffffff;         /* Pure Card White */
  --color-surface-subtle: #f1f5f9;
  --color-surface-alt: #f8fafc;
  
  --color-border: #e2e8f0;          /* Subtle Slate Border */
  --color-border-light: #f1f5f9;
  --color-border-focus: #14b8a6;
  
  /* Typography Colors */
  --color-text-main: #0f172a;       /* High Contrast Charcoal */
  --color-text-muted: #475569;      /* Accessible Slate (WCAG AA+) */
  --color-text-subtle: #64748b;     /* Tertiary Slate */
  --color-text-inverse: #ffffff;
  
  /* Status Colors */
  --color-success: #059669;
  --color-warning: #d97706;
  --color-info: #0284c7;
  --color-instagram: #e1306c;
  --color-whatsapp: #25d366;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Spacing Scale (8px system) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 35px -8px rgba(15, 23, 42, 0.08), 0 10px 15px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(13, 148, 136, 0.22);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout */
  --max-width-container: 1240px;
  --header-height: 80px;
  --header-height-scrolled: 68px;
  --mobile-bar-height: 68px;
}

/* ==========================================================================
   Base Resets & Normalization
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Accessible focus outlines */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

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

h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.75rem, 2.6rem);
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.65rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

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

/* ==========================================================================
   Utility Classes & Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-narrow {
  max-width: 880px;
}

.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  position: relative;
}

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

.section-tint {
  background: linear-gradient(180deg, #f8fafc 0%, #f0fdfa 50%, #f8fafc 100%);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-16);
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-title {
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.badge-location {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-pulse {
  position: relative;
}

.badge-pulse::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

/* Medical Disclaimer Banner */
.medical-disclaimer-box {
  background-color: #f8fafc;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-size: 0.9rem;
  color: var(--color-text-subtle);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.medical-disclaimer-box svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
