/* ==========================================================================
   SHANSONS PRECIX — EXECUTIVE DESIGN SYSTEM & STYLES (WHITE, RED, BLACK)
   Precision Medicine. Personalised for Every Patient.
   ========================================================================== */

@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;1,600&family=Inter:wght@300;400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Cinzel:wght@700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette — Pristine White, Crimson Red & Obsidian Black */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark-accent: #09090b;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-glass-strong: rgba(255, 255, 255, 0.98);
  
  /* Brand & Crimson Red Accents */
  --brand-crimson: #c5162a;
  --brand-red-vivid: #dc2626;
  --brand-red-dark: #991b1b;
  --neon-cyan: #c5162a;
  --neon-teal: #dc2626;
  --neon-blue: #991b1b;
  --neon-purple: #881337;
  --neon-magenta: #e11d48;
  --neon-amber: #d97706;
  
  /* Gradients */
  --grad-cyan-teal: linear-gradient(135deg, #c5162a 0%, #dc2626 100%);
  --grad-crimson-pink: linear-gradient(135deg, #c5162a 0%, #991b1b 100%);
  --grad-blue-purple: linear-gradient(135deg, #09090b 0%, #18181b 100%);
  --grad-purple-pink: linear-gradient(135deg, #dc2626 0%, #c5162a 100%);
  --grad-dark-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(197, 22, 42, 0.08) 0%, rgba(220, 38, 38, 0.03) 50%, transparent 80%);
  
  /* High-Contrast Executive Typography Colors */
  --text-primary: #09090b;
  --text-secondary: #27272a;
  --text-muted: #4a4a52;
  --text-dim: #71717a;
  --text-cyan: #c5162a;
  --text-emerald: #dc2626;
  
  /* Borders & Shadows */
  --border-subtle: rgba(0, 0, 0, 0.09);
  --border-light: rgba(0, 0, 0, 0.16);
  --border-glow: rgba(197, 22, 42, 0.35);
  --border-emerald-glow: rgba(220, 38, 38, 0.35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-neon: 0 8px 30px rgba(197, 22, 42, 0.18);
  --shadow-emerald: 0 8px 30px rgba(220, 38, 38, 0.18);
  
  /* Professional Typography System */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Cinzel', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Transitions & Spacing */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --container-max: 1280px;
  --container-narrow: 1040px;
  --container-wide: 1440px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  
  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Background Glow Effect */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 800px;
  background: radial-gradient(circle, rgba(197, 22, 42, 0.04) 0%, rgba(220, 38, 38, 0.015) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(9, 9, 11, 0.02) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.85rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1.05rem; font-weight: 600; }
h6 { font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

.font-serif {
  font-family: var(--font-serif);
  font-style: italic;
}

p {
  color: var(--text-secondary);
  font-size: 1.025rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

p.lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

a {
  color: var(--brand-crimson);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-red-vivid);
}

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

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
  z-index: 1;
}

.section-lg {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
}

.section-sm {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

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

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

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

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.flex {
  display: flex;
}

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

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

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-6 { gap: 3rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-crimson {
  color: var(--brand-crimson);
}

.text-gradient {
  background: linear-gradient(135deg, #c5162a 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-dark {
  background: linear-gradient(135deg, #09090b 0%, #27272a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Badges & Section Headers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(197, 22, 42, 0.07);
  color: var(--brand-crimson);
  border: 1px solid rgba(197, 22, 42, 0.25);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.section-tag-emerald {
  background: rgba(220, 38, 38, 0.07);
  color: var(--brand-red-vivid);
  border-color: rgba(220, 38, 38, 0.25);
}

.section-tag-purple {
  background: rgba(9, 9, 11, 0.06);
  color: var(--text-primary);
  border-color: rgba(9, 9, 11, 0.2);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* High-Precision Cards Base */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(197, 22, 42, 0.5), transparent);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-neon);
}

.glass-card-emerald:hover {
  border-color: var(--border-emerald-glow);
  box-shadow: var(--shadow-emerald);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .container { max-width: 1120px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  :root { --header-height: 82px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .section-lg { padding-top: 5.5rem; padding-bottom: 5.5rem; }
}

@media (max-width: 768px) {
  :root { --header-height: 74px; }
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .section-lg { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .glass-card { padding: 1.75rem 1.5rem; }
  .section-header { margin-bottom: 2.5rem; }
}
