/* ==========================================================================
   OPD CREATIVE STUDIO — CORE DESIGN SYSTEM (CSS TOKENS & FOUNDATIONS)
   Strict 60/30/10 Rule:
   60% Primary: #F7FAFC (Light Medical-White Background)
   30% Secondary: #1163A9 (OPD Brand Blue & Tones)
   10% Accent: #EE4E44 (Coral Orange-Red)
   ========================================================================== */

:root {
  /* 60% Primary Base */
  --bg-primary: #F7FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-soft: #F1F5F9;
  --bg-surface-elevated: #FFFFFF;
  --bg-secondary-tint: #EAF4FB;
  --bg-accent-tint: #FEECEB;

  /* 30% Secondary (OPD Brand Blue Palette) */
  --brand-blue: #1163A9;
  --brand-blue-deep: #084B83;
  --brand-blue-bright: #0370B6;
  --brand-blue-light: #EAF4FB;
  --brand-blue-border: rgba(17, 99, 169, 0.16);
  --brand-blue-glow: rgba(17, 99, 169, 0.25);

  /* 10% Accent (Coral Orange-Red — Strategic CTAs & Highlights only) */
  --accent-coral: #EE4E44;
  --accent-coral-hover: #D83C33;
  --accent-coral-active: #C12E26;
  --accent-coral-glow: rgba(238, 78, 68, 0.35);
  --accent-coral-border: rgba(238, 78, 68, 0.25);

  /* Typography & Neutrals */
  --text-primary: #172033;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;
  --text-on-blue: #FFFFFF;

  /* Structural Borders & Lines */
  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-strong: #94A3B8;

  /* Elevation / Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(17, 99, 169, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 14px 28px -4px rgba(17, 99, 169, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 24px 48px -8px rgba(8, 75, 131, 0.16), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 24px var(--accent-coral-glow);

  /* Typography Stacks */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Radius System (Moderate, Controlled — Never oversized) */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout Container */
  --container-max: 1360px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --section-pad-y: clamp(5rem, 8vw, 8.5rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 180ms;
  --duration-normal: 300ms;
  --duration-smooth: 500ms;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Handled gracefully by Lenis */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  min-height: 100vh;
}

/* Medical clean grid overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    radial-gradient(rgba(17, 99, 169, 0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(226, 232, 240, 0.3) 1px, transparent 1px);
  background-size: 32px 32px, 120px 120px;
  z-index: -1;
  opacity: 0.8;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Selection */
::selection {
  background: var(--brand-blue);
  color: #FFFFFF;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-coral);
  outline-offset: 3px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.heading-display {
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.heading-section {
  font-size: clamp(2rem, 3.6vw, 3.125rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.heading-sub {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
}

.lead-text {
  font-size: clamp(1.05rem, 1.2vw, 1.22rem);
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 400;
}

/* Label Pill / Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  background: var(--bg-secondary-tint);
  border: 1px solid var(--brand-blue-border);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
}

.eyebrow-coral {
  color: var(--accent-coral);
  background: var(--bg-accent-tint);
  border-color: var(--accent-coral-border);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-blue);
}

.eyebrow-coral .dot {
  background-color: var(--accent-coral);
  box-shadow: 0 0 8px var(--accent-coral);
}

/* Text Highlights */
.text-blue {
  color: var(--brand-blue);
}

.text-coral {
  color: var(--accent-coral);
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue-deep) 0%, var(--brand-blue) 60%, var(--brand-blue-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  position: relative;
}

.section-white {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-tint {
  background-color: #F4F8FB;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
  max-width: 760px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header .eyebrow {
  margin-bottom: 1.125rem;
}

.section-header .heading-section {
  margin-bottom: 1rem;
}

/* ==========================================================================
   BUTTONS & CTAs (CORAL ACCENT SYSTEM)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.8125rem 1.625rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Primary Coral CTA (10% Accent) */
.btn-primary {
  background-color: var(--accent-coral);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(238, 78, 68, 0.28);
}

.btn-primary:hover {
  background-color: var(--accent-coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 78, 68, 0.38);
}

.btn-primary:active {
  background-color: var(--accent-coral-active);
  transform: translateY(0);
}

/* Secondary Brand Blue Button */
.btn-secondary {
  background-color: var(--brand-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(17, 99, 169, 0.22);
}

.btn-secondary:hover {
  background-color: var(--brand-blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(17, 99, 169, 0.32);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--brand-blue);
  border: 1.5px solid var(--brand-blue-border);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  background-color: var(--bg-secondary-tint);
  color: var(--brand-blue-deep);
  transform: translateY(-2px);
}

/* White Button */
.btn-white {
  background-color: #FFFFFF;
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.btn-white:hover {
  background-color: var(--bg-primary);
  border-color: var(--brand-blue-border);
  transform: translateY(-2px);
}

/* Large Button variant */
.btn-lg {
  padding: 0.9375rem 2.25rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
}

/* Icon inside Button */
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover svg.arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   CARDS & STRUCTURAL ELEMENTS
   ========================================================================== */
.card-clean {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal) var(--ease-out);
}

.card-clean:hover {
  border-color: var(--brand-blue-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Clean Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-soft);
  color: var(--text-secondary);
}

.badge-blue {
  background: var(--bg-secondary-tint);
  color: var(--brand-blue);
}

.badge-coral {
  background: var(--bg-accent-tint);
  color: var(--accent-coral);
}
