/**
 * Aperbio.com - Modern Design System
 * Dark Theme with Glassmorphism & Gradient Accents
 * Version: 1.0.0
 */

/* ============================================
   1. CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Color Palette */
  --color-bg-base: #0a0e1a;
  --color-surface: #111827;
  --color-card: rgba(255, 255, 255, 0.05);
  --color-card-hover: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(255, 255, 255, 0.2);

  /* Brand Colors */
  --color-brand: #B82A7C;
  --color-brand-light: #D9469A;
  --color-brand-dark: #9A1F64;
  --color-accent: #6C2BD9;
  --color-accent-light: #8B5CF6;

  /* Semantic Colors */
  --color-success: #14B8A6;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;

  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.5);
  --color-text-disabled: rgba(255, 255, 255, 0.3);
  --color-text-high: #ffffff;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--color-brand) 0%, var(--color-accent) 100%);
  --gradient-brand-hover: linear-gradient(135deg, var(--color-brand-light) 0%, var(--color-accent-light) 100%);
  --gradient-mesh: radial-gradient(ellipse at top, rgba(184, 42, 124, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(108, 43, 217, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at bottom left, rgba(20, 184, 166, 0.05) 0%, transparent 30%);

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes - Fluid with clamp */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
  --text-6xl: clamp(3.75rem, 2.5rem + 6.25vw, 6rem);

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;

  /* Spacing Scale */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(184, 42, 124, 0.3);
  --shadow-glow-accent: 0 0 40px rgba(108, 43, 217, 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* Container */
  --container-max: 1440px;
  --container-narrow: 960px;
  --container-wide: 1600px;

  /* Form Container */
  --container-form: 720px;

  /* Color aliases for form elements */
  --color-card-surface: rgba(255, 255, 255, 0.03);
}

/* ============================================
   2. GOOGLE FONTS IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-base);
  overflow-x: hidden;
  padding-top: 80px;
}

/* Dark Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-card-hover);
}

/* Selection */
::selection {
  background: var(--color-brand);
  color: var(--color-text-primary);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

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

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Form Elements */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

/* ============================================
   4. ANIMATION KEYFRAMES
   ============================================ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(184, 42, 124, 0.4);
  }

  50% {
    box-shadow: 0 0 40px rgba(184, 42, 124, 0.6), 0 0 60px rgba(108, 43, 217, 0.3);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce-subtle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* ============================================
   5. LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

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

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

/* Section Spacing */
.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.section-sm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section-lg {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.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);
}

.grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.grid-cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

.gap-10 {
  gap: var(--space-10);
}

.gap-12 {
  gap: var(--space-12);
}

/* ============================================
   6. TYPOGRAPHY
   ============================================ */
.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

h1,
.h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
}

h2,
.h2 {
  font-size: var(--text-4xl);
}

h3,
.h3 {
  font-size: var(--text-3xl);
}

h4,
.h4 {
  font-size: var(--text-2xl);
}

h5,
.h5 {
  font-size: var(--text-xl);
}

h6,
.h6 {
  font-size: var(--text-lg);
}

/* Text Utilities */
.text-xs {
  font-size: var(--text-xs);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-base {
  font-size: var(--text-base);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-2xl {
  font-size: var(--text-2xl);
}

.text-3xl {
  font-size: var(--text-3xl);
}

.text-4xl {
  font-size: var(--text-4xl);
}

.text-5xl {
  font-size: var(--text-5xl);
}

.text-6xl {
  font-size: var(--text-6xl);
}

.font-light {
  font-weight: var(--font-light);
}

.font-normal {
  font-weight: var(--font-normal);
}

.font-medium {
  font-weight: var(--font-medium);
}

.font-semibold {
  font-weight: var(--font-semibold);
}

.font-bold {
  font-weight: var(--font-bold);
}

.text-primary {
  color: var(--color-text-primary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-muted);
}

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

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

.text-success {
  color: var(--color-success);
}

.leading-none {
  line-height: var(--leading-none);
}

.leading-tight {
  line-height: var(--leading-tight);
}

.leading-snug {
  line-height: var(--leading-snug);
}

.leading-normal {
  line-height: var(--leading-normal);
}

.leading-relaxed {
  line-height: var(--leading-relaxed);
}

.tracking-tight {
  letter-spacing: var(--tracking-tight);
}

.tracking-wide {
  letter-spacing: var(--tracking-wide);
}

.tracking-wider {
  letter-spacing: var(--tracking-wider);
}

/* Text Gradient */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   7. COMPONENT: GLASS CARD
   ============================================ */
.glass-card {
  background: var(--color-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

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

.glass-card-sm {
  padding: var(--space-4);
  border-radius: var(--radius-md);
}

.glass-card-lg {
  padding: var(--space-10);
  border-radius: var(--radius-xl);
}

/* Glass Card Link - Makes entire card clickable on mobile */
.glass-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.glass-card__link:hover {
  color: var(--color-brand-light);
}

/* ============================================
   8. COMPONENT: BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: var(--leading-none);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--color-text-primary);
  border: none;
}

.btn-primary:hover {
  background: var(--gradient-brand-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-card);
  border-color: var(--color-brand);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-card-hover);
  border-color: var(--color-border-hover);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ============================================
   9. COMPONENT: HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--space-3) 0;
  transition: all var(--transition-base);
  height: 80px;
  display: flex;
  align-items: center;
}

.header--scrolled {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  padding: var(--space-3) 0;
}

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

/* Header container used by nav.js */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Header actions (hamburger button container) */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  position: relative;
  z-index: calc(var(--z-fixed) + 20);
  pointer-events: auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  /* Ensure logo is white for dark theme if needed */
}

/* ============================================
   10. COMPONENT: NAVIGATION
   ============================================ */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  position: relative;
  padding: var(--space-2) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mega Menu */
.nav-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 800px;
  max-width: calc(100vw - var(--space-8));
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.nav-item:hover .nav-mega-menu,
.nav-mega-menu.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.nav-mega-item {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-mega-item:hover {
  background: var(--color-card);
}

.nav-mega-title {
  font-family: var(--font-heading);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.nav-mega-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================
   11. COMPONENT: HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--space-24) + 60px);
  padding-bottom: var(--space-24);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  animation: mesh-rotate 20s linear infinite;
  opacity: 0.4;
}

@keyframes mesh-rotate {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.1) rotate(2deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(184, 42, 124, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(108, 43, 217, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.03) 0%, transparent 50%);
  pointer-events: none;
  filter: blur(60px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-brand);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: rgba(184, 42, 124, 0.1);
  border: 1px solid rgba(184, 42, 124, 0.2);
  border-radius: var(--radius-full);
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-none);
  margin-bottom: var(--space-6);
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 540px;
  margin-bottom: var(--space-8);
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-float {
  animation: float 6s ease-in-out infinite;
}

/* ============================================
   12. COMPONENT: STAT NUMBER
   ============================================ */
.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-none);
  color: var(--color-text-primary);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.stat-card {
  text-align: center;
  padding: var(--space-6);
}

/* ============================================
   13. COMPONENT: SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-16);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-brand);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

/* ============================================
   14. COMPONENT: PRODUCT CARDS
   ============================================ */
.product-card {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-brand);
  box-shadow: var(--shadow-glow);
}

.product-image {
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-content {
  padding: var(--space-6);
}

.product-category {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-brand);
  margin-bottom: var(--space-2);
}

.product-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.product-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.product-feature {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

/* ============================================
   15. COMPONENT: NEWS CARDS
   ============================================ */
.news-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.news-image {
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.news-date {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.news-category {
  padding: var(--space-1) var(--space-2);
  background: var(--color-card);
  border-radius: var(--radius-sm);
  color: var(--color-brand);
}

.news-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  transition: color var(--transition-fast);
}

.news-card:hover .news-title {
  color: var(--color-brand);
}

.news-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ============================================
   16. COMPONENT: CTA BANNER
   ============================================ */
.cta-banner {
  position: relative;
  padding: var(--space-20) 0;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0.1;
}

.cta-banner-inner {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-banner-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.cta-banner-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

/* ============================================
   17. COMPONENT: FOOTER
   ============================================ */
.footer {
  background: var(--color-surface);
  padding-top: var(--space-20);
  padding-bottom: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.footer-logo span {
  color: var(--color-brand);
}

.footer-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  transform: translateY(-2px);
}

.footer-column-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-6);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-brand);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-legal-link:hover {
  color: var(--color-text-primary);
}

/* ============================================
   18. ANIMATION CLASSES
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease forwards;
}

.animate-slide-in-left {
  animation: slide-in-left 0.6s ease forwards;
}

.animate-slide-in-right {
  animation: slide-in-right 0.6s ease forwards;
}

.animate-scale-in {
  animation: scale-in 0.6s ease forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Animation Delays */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 500ms;
}

.delay-600 {
  animation-delay: 600ms;
}

/* ============================================
   20. UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.overflow-hidden {
  overflow: hidden;
}

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

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

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-0 {
  margin-top: var(--space-0);
}

.mt-1 {
  margin-top: var(--space-1);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mt-12 {
  margin-top: var(--space-12);
}

.mt-16 {
  margin-top: var(--space-16);
}

.mb-0 {
  margin-bottom: var(--space-0);
}

.mb-1 {
  margin-bottom: var(--space-1);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

.mb-16 {
  margin-bottom: var(--space-16);
}

/* Image Fit Utilities */
.glass-card__img-fit,
.news-image-fit {
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Gradient Borders */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Background Patterns */
.bg-pattern-dots {
  background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-pattern-grid {
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ============================================
   21. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet: 768px */
@media (max-width: 768px) {
  :root {
    --space-20: 3.5rem;
    --space-24: 4.5rem;
    --space-32: 6rem;
  }

  /* Make entire glass cards clickable on mobile */
  .glass-card {
    position: relative;
  }

  .glass-card__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  /* Ensure other content stays above the link overlay */
  .glass-card__icon,
  .glass-card__title,
  .glass-card__description {
    position: relative;
    z-index: 2;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--space-16) + 60px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4,
  .grid-cols-5,
  .grid-cols-6 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Desktop: 1024px */
@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }

  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
  }

  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:text-left {
    text-align: left;
  }
}

/* Large Desktop: 1440px */
@media (min-width: 1440px) {
  .container {
    padding-left: var(--space-12);
    padding-right: var(--space-12);
  }

  .xl\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .xl\:grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }

  .xl\:grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ============================================
   22. ACCESSIBILITY
   ============================================ */
@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;
  }

  .animate-float,
  .animate-pulse-glow {
    animation: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --color-border: rgba(255, 255, 255, 0.3);
    --color-text-secondary: rgba(255, 255, 255, 0.85);
    --color-text-muted: rgba(255, 255, 255, 0.7);
  }
}

/* ============================================
   23. PRINT STYLES
   ============================================ */
@media print {

  .header,
  .mobile-menu-toggle,
  .mobile-menu,
  .footer-social,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .glass-card {
    background: white;
    border: 1px solid #ccc;
    backdrop-filter: none;
  }
}

/* Floating Particles for Hero */
.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--color-brand);
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.2;
  animation: float-particle 10s infinite linear;
}

.p1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation-duration: 25s;
}

.p2 {
  width: 150px;
  height: 150px;
  top: 60%;
  left: 80%;
  background: var(--color-accent);
  animation-duration: 30s;
  animation-delay: -5s;
}

.p3 {
  width: 80px;
  height: 80px;
  top: 80%;
  left: 20%;
  animation-duration: 20s;
  animation-delay: -10s;
}

.p4 {
  width: 120px;
  height: 120px;
  top: 30%;
  left: 70%;
  background: var(--color-success);
  opacity: 0.1;
  animation-duration: 35s;
  animation-delay: -15s;
}

@keyframes float-particle {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* ============================================
   24. SUBPAGE STYLES
   ============================================ */

.subpage-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
  background: var(--color-background);
}

.subpage-hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.subpage-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subpage-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(10, 14, 26, 0.95) 0%,
      rgba(10, 14, 26, 0.6) 100%);
  z-index: 1;
}

.subpage-hero__container {
  position: relative;
  z-index: 2;
}

.subpage-hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  margin-top: var(--space-4);
}

.subpage-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-top: var(--space-6);
}

.section__grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.section__grid--reverse>*:first-child {
  order: 2;
}

.section__grid--reverse>*:last-child {
  order: 1;
}

.feature-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.feature-item__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0;
}

.feature-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--color-text-secondary);
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-brand);
}

.vision-visual {
  position: relative;
}

.vision-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

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

.product-specs {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.product-specs__title {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-brand);
  margin-bottom: var(--space-2);
}

.product-specs__list {
  list-style: none;
  padding: 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.product-specs__list li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-1) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-specs__list li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .subpage-hero {
    height: 40vh;
  }

  .subpage-hero__title {
    font-size: var(--text-4xl);
  }

  .section__grid-2 {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .section__grid--reverse>*:first-child,
  .section__grid--reverse>*:last-child {
    order: unset;
  }
}

/* ============================================
   25. NAV MEGA-MENU GRID VARIANTS
   ============================================ */

.nav-mega-grid--1col {
  grid-template-columns: 1fr;
  min-width: 200px;
}

.nav-mega-grid--2col {
  grid-template-columns: repeat(2, 1fr);
  min-width: 380px;
}

.nav-mega-grid--3col {
  grid-template-columns: repeat(3, 1fr);
  min-width: 560px;
}

/* Search toggle */
.search-toggle {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: var(--space-2);
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.search-toggle:hover {
  color: var(--color-brand);
}

/* Mobile nav groups */
.mobile-nav-group>span.mobile-nav-group__title {
  display: block;
  font-weight: var(--font-semibold);
  color: var(--color-text-high);
  padding: var(--space-3) 0;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.mobile-nav-group>span.mobile-nav-group__title::after {
  content: '+';
  position: absolute;
  right: 0;
  color: var(--color-brand);
}

.mobile-nav-group.is-open>span.mobile-nav-group__title::after {
  content: '−';
}

.mobile-nav-group>ul {
  display: none;
  padding-left: var(--space-4);
  padding-bottom: var(--space-2);
}

.mobile-nav-group.is-open>ul {
  display: block;
}

.mobile-nav-group>ul li {
  padding: var(--space-2) 0;
}

.mobile-nav-group>ul a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
}

/* Active nav state */
.nav a.active,
.mobile-nav-list a.active {
  color: var(--color-brand) !important;
}

/* Cancer type card grid */
.cancer-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.cancer-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.cancer-card:hover {
  transform: translateY(-4px);
}

.cancer-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cancer-card:hover .cancer-card__img {
  transform: scale(1.05);
}

.cancer-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.9) 0%, rgba(10, 14, 26, 0.2) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
}

.cancer-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: #fff;
  margin-bottom: var(--space-2);
}

.cancer-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-brand);
  text-decoration: none;
  font-weight: var(--font-semibold);
}

/* News card image */
.news-card {
  overflow: hidden;
}

.news-card__img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: var(--space-4);
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__img {
  transform: scale(1.05);
}

.news-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.news-card__category {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
}

.contact-info-block {
  padding: var(--space-8);
  background: var(--color-card-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.contact-info-block h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  color: var(--color-text-high);
}

.contact-info-block p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.contact-info-block a {
  color: var(--color-brand);
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* Contact Form Styles */
.container-form {
  max-width: var(--container-form);
  margin: 0 auto;
}

.contact-form {
  display: grid;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--color-card-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-high);
  font-family: inherit;
  font-size: var(--text-sm);
}

.form-textarea {
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-brand);
}

.btn-full {
  width: 100%;
  text-align: center;
}

.text-sm-muted {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Card Grid System */
.card-grid {
  display: grid;
  gap: var(--space-6);
}

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

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

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

/* News Article - Featured */
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.news-featured__image {
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
}

.news-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-featured__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* News Article - Standard */
.news-article-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.news-article-excerpt {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

/* News tabs */
.news-tabs {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-4);
  flex-wrap: wrap;
}

.news-tab {
  font-weight: 500;
  padding-bottom: var(--space-3);
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.news-tab--active {
  font-weight: 700;
  border-bottom-color: var(--color-brand);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Card grids stack on mobile */
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: 1fr;
  }

  /* News featured article stacks on mobile */
  .news-featured {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .news-featured__image {
    height: 220px;
    order: -1;
    /* Image comes first on mobile */
  }

  /* News card image height on mobile */
  .news-card__img-wrap {
    height: 180px;
  }

  /* News tabs scroll on mobile */
  .news-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-6);
  }

  .news-tabs::-webkit-scrollbar {
    display: none;
  }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-brand);
}

.breadcrumb__sep {
  color: var(--color-border);
}

@media (max-width: 768px) {

  .nav-mega-grid--3col,
  .nav-mega-grid--2col {
    grid-template-columns: 1fr;
  }

  .cancer-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cancer-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FOOTER — Clean two-column layout
   ============================================ */

.footer {
  background: var(--color-surface, #0a0e1a);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-16) 0 0;
  margin-top: var(--space-16);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
}

/* Brand column */
.footer-brand-col {
  flex: 0 0 340px;
  max-width: 340px;
}

.footer-logo-link img {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: var(--space-5);
}

.footer-tagline {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-high, #fff);
  margin-bottom: var(--space-2);
}

.footer-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted, rgba(255, 255, 255, 0.45));
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.footer-social-row {
  display: flex;
  gap: var(--space-3);
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.6));
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.footer-social-btn:hover {
  background: var(--color-brand, #b82a7c);
  color: #fff;
}

/* Vertical divider */
.footer-divider-v {
  flex: 0 0 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 var(--space-4);
}

/* Contact column */
.footer-contact-col {
  flex: 1;
}

.footer-contact-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-high, #fff);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-6);
}

.footer-offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.footer-office {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-office-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-high, #fff);
  margin-bottom: var(--space-2);
}

.footer-office p {
  font-size: var(--text-sm);
  color: var(--color-text-muted, rgba(255, 255, 255, 0.45));
  line-height: 1.5;
}

.footer-office a {
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.6));
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-office a:hover {
  color: var(--color-brand, #b82a7c);
}

/* Bottom bar */
.footer-bottom-bar {
  margin-top: var(--space-12);
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-bottom-bar p {
  font-size: var(--text-sm);
  color: var(--color-text-muted, rgba(255, 255, 255, 0.35));
}

/* Mobile footer */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: var(--space-10);
  }

  .footer-brand-col {
    flex: none;
    max-width: 100%;
  }

  .footer-divider-v {
    display: none;
  }

  .footer-offices {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Ensure hamburger is visible on mobile */
  .menu-toggle {
    display: flex !important;
    position: relative;
    z-index: calc(var(--z-fixed) + 100);
    pointer-events: auto;
  }

  .header-actions {
    display: flex !important;
  }
}

/* ============================================
   NAV.JS MOBILE MENU — class name bridge
   nav.js uses .menu-toggle + .mobile-menu.is-open
   (old CSS used .mobile-menu-toggle + .mobile-menu.active)
   ============================================ */

/* Hamburger button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: calc(var(--z-fixed) + 10);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

/* Show hamburger on mobile */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: calc(var(--z-fixed) + 100);
    pointer-events: auto;
  }

  /* Ensure hamburger is clickable when header is scrolled */
  .header--scrolled .menu-toggle,
  .header .menu-toggle {
    z-index: calc(var(--z-fixed) + 100);
    pointer-events: auto;
  }

  /* Hide desktop nav */
  #main-nav {
    display: none;
  }
}

/* Hamburger → X animation when drawer is open */
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile drawer — hidden by default, slides in on .is-open */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 90vw;
  background: var(--color-surface, #0f1629);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: calc(var(--z-fixed) + 5);
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

/* Overlay backdrop */
.mobile-menu::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: -1;
  pointer-events: none;
}

.mobile-menu.is-open::before {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  right: 320px;
  left: -9999px;
}

/* Inner content wrapper */
.mobile-menu__inner {
  padding: 80px var(--space-6) var(--space-8);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Close (✕) button */
.mobile-menu__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  color: var(--color-text-high);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.mobile-menu__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile nav list */
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-list>li>a,
.mobile-nav-list>li>.mobile-nav-group>a {
  display: block;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-high);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-nav-list>li>a:hover {
  color: var(--color-brand);
}

/* Nav groups (collapsible sections) */
.mobile-nav-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-group__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-high);
  cursor: pointer;
  user-select: none;
}

.mobile-nav-group__title::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.mobile-nav-group.is-open .mobile-nav-group__title::after {
  content: '−';
}

.mobile-nav-group>ul {
  list-style: none;
  padding: 0 var(--space-2) var(--space-3) var(--space-4);
  margin: 0;
  display: none;
}

.mobile-nav-group.is-open>ul {
  display: block;
}

.mobile-nav-group>ul li a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-nav-group>ul li a:hover {
  color: var(--color-brand);
}

/* ============================================
   MOBILE HAMBURGER VISIBILITY FIX
   Ensure hamburger is always visible on mobile
   ============================================ */
@media screen and (max-width: 1024px) {
  /* Disable backdrop-filter on mobile to prevent stacking context issues */
  .header--scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  .header-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
  }
  
  .menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
    transform: none !important;
  }
  
  .menu-toggle__bar {
    background: #ffffff !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Ensure header doesn't hide hamburger when scrolled */
  .header--scrolled .header-actions,
  .header--scrolled .menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
  }
  
  /* Ensure mobile menu is above everything */
  .mobile-menu {
    z-index: 10000 !important;
  }
  
  .mobile-menu__close {
    z-index: 10001 !important;
  }
}