/* ===================================
   Replexium Peptide - Architectural Regeneration Design System
   Archetype: Precision Aesthetics / Regenerative Medicine
   Theme: Molecular Scaffolding Aesthetic
   Target: Aesthetic medicine practitioners, regenerative clinics, anti-aging specialists
   =================================== */

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

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Precision Aesthetics Color Palette */
  --deep-plum: #4A1942;
  --deep-plum-light: #6B2D5F;
  --deep-plum-dark: #35122F;
  --pearl-white: #FAF9F6;
  --pearl-white-pure: #FFFFFF;
  --rose-gold: #B76E79;
  --rose-gold-light: #D4949D;
  --rose-gold-dark: #9A5760;
  --champagne: #F7E7CE;
  --champagne-light: #FDF5E6;
  --platinum-silver: #E5E4E2;
  --platinum-silver-dark: #C9C8C6;
  --soft-lavender: #E6E6FA;
  --soft-lavender-deep: #D8D8F0;

  /* Text Colors */
  --text-primary: #2D1B2A;
  --text-secondary: #5A4A58;
  --text-muted: #8A7A88;
  --text-light: #B0A0AE;

  /* Typography */
  --font-header: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-label: 'Cinzel', Georgia, serif;

  /* Spacing Scale */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;
  --spacing-3xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --content-width: 850px;
  --sidebar-width: 300px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-round: 50%;

  /* Shadows - Subtle Depth */
  --shadow-subtle: 0 2px 8px rgba(74, 25, 66, 0.06);
  --shadow-soft: 0 4px 16px rgba(74, 25, 66, 0.08);
  --shadow-medium: 0 8px 24px rgba(74, 25, 66, 0.10);
  --shadow-elevated: 0 12px 40px rgba(74, 25, 66, 0.12);
  --shadow-rose: 0 4px 20px rgba(183, 110, 121, 0.15);

  /* Borders */
  --border-light: 1px solid rgba(74, 25, 66, 0.08);
  --border-medium: 1px solid rgba(74, 25, 66, 0.12);
  --border-accent: 1px solid var(--rose-gold);
  --border-plum: 1px solid var(--deep-plum);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-toast: 600;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--pearl-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== GEOMETRIC LATTICE BACKGROUND PATTERNS ===== */

/* ECM Network Pattern - Main Background */
.lattice-bg {
  position: relative;
  background-color: var(--pearl-white);
}

.lattice-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%234A1942' stroke-width='0.3' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Hexagonal Pattern for Science Sections */
.hexagon-bg {
  position: relative;
  background-color: var(--champagne-light);
}

.hexagon-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%234A1942' stroke-width='0.4' opacity='0.06'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23B76E79' stroke-width='0.3' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Molecular Grid Pattern */
.molecular-bg {
  position: relative;
}

.molecular-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(183, 110, 121, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(74, 25, 66, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Collagen Weave Pattern */
.collagen-bg {
  position: relative;
  background: linear-gradient(135deg, var(--pearl-white) 0%, var(--champagne-light) 50%, var(--pearl-white) 100%);
}

.collagen-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L40 40L80 0' fill='none' stroke='%234A1942' stroke-width='0.2' opacity='0.04'/%3E%3Cpath d='M0 40L40 80L80 40' fill='none' stroke='%234A1942' stroke-width='0.2' opacity='0.04'/%3E%3Cpath d='M0 80L40 40L80 80' fill='none' stroke='%23B76E79' stroke-width='0.2' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ===== TYPOGRAPHY HIERARCHY ===== */

/* Section Labels - Cinzel Architectural Caps */
.section-label,
.label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: var(--spacing-sm);
  display: block;
}

/* Headers - Cormorant Garamond Elegant Serif */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 500;
  line-height: 1.25;
  color: var(--deep-plum);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 500;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Body Text - Inter Modern Sans-Serif */
p {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

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

p.small {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Links */
a {
  color: var(--rose-gold-dark);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--deep-plum);
}

/* Content Links with Underline */
.content a,
article a {
  color: var(--rose-gold-dark);
  text-decoration: underline;
  text-decoration-color: rgba(183, 110, 121, 0.3);
  text-underline-offset: 3px;
  transition: all var(--transition-base);
}

.content a:hover,
article a:hover {
  color: var(--deep-plum);
  text-decoration-color: var(--deep-plum);
}

/* Lists */
ul, ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

li {
  margin-bottom: var(--spacing-xs);
  line-height: 1.7;
  color: var(--text-secondary);
}

ul li::marker {
  color: var(--rose-gold);
}

ol li::marker {
  color: var(--deep-plum);
  font-weight: 500;
}

/* ===== LAYOUT SYSTEM ===== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.content-wrapper {
  max-width: var(--content-width);
  margin: 0 auto;
}

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

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

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

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

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

/* Flexbox Utilities */
.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-wrap {
  flex-wrap: wrap;
}

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* ===== HEADER & NAVIGATION ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-light);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(250, 249, 246, 0.98);
  box-shadow: var(--shadow-soft);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Hexagonal Logo Mark */
.logo-mark::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 46px;
  background: linear-gradient(135deg, var(--deep-plum) 0%, var(--rose-gold) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo-mark::after {
  content: 'R';
  position: relative;
  z-index: 1;
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pearl-white);
}

.logo-text {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--deep-plum);
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-top: -2px;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-xs);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.625rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--deep-plum);
  background: rgba(74, 25, 66, 0.04);
}

.nav-link.active {
  color: var(--deep-plum);
}

/* Dropdown Arrow */
.nav-link .arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition-base);
}

.nav-item:hover .nav-link .arrow {
  transform: rotate(180deg);
}

/* Dropdown Mega Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--pearl-white-pure);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  padding: var(--spacing-sm);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

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

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--pearl-white-pure);
}

.dropdown-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.dropdown-link:hover {
  color: var(--deep-plum);
  background: var(--champagne-light);
}

/* Mega Menu for Peptides */
.mega-menu {
  min-width: 480px;
  padding: var(--spacing-md);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xs);
}

.mega-menu-title {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose-gold);
  padding: 0.5rem 1rem;
  margin-bottom: var(--spacing-xs);
  grid-column: span 2;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep-plum);
  position: absolute;
  left: 10px;
  transition: all var(--transition-base);
}

.mobile-menu-toggle span:nth-child(1) { top: 14px; }
.mobile-menu-toggle span:nth-child(2) { top: 21px; }
.mobile-menu-toggle span:nth-child(3) { top: 28px; }

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 21px;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 21px;
}

/* ===== BREADCRUMB NAVIGATION ===== */

.breadcrumb {
  padding: var(--spacing-sm) 0;
  margin-top: 80px;
  background: var(--champagne-light);
  border-bottom: var(--border-light);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb-item::after {
  content: '/';
  color: var(--platinum-silver-dark);
  margin-left: var(--spacing-xs);
}

.breadcrumb-item:last-child::after {
  display: none;
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.breadcrumb-link:hover {
  color: var(--rose-gold);
}

.breadcrumb-current {
  color: var(--deep-plum);
  font-weight: 500;
}

/* ===== HERO SECTION ===== */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-3xl) 0;
  margin-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

/* Geometric Lattice Overlay */
.hero-lattice {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(135deg, rgba(250, 249, 246, 0.95) 0%, rgba(247, 231, 206, 0.9) 50%, rgba(250, 249, 246, 0.95) 100%);
  z-index: 1;
}

.hero-lattice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0L100 50L50 100L0 50z' fill='none' stroke='%234A1942' stroke-width='0.5' opacity='0.08'/%3E%3Ccircle cx='50' cy='50' r='3' fill='none' stroke='%23B76E79' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
  animation: lattice-shift 30s linear infinite;
}

@keyframes lattice-shift {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

/* Dermal Layer Translucent Overlays */
.hero-layers {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-layer {
  position: absolute;
  border-radius: var(--radius-xl);
  opacity: 0.4;
}

.hero-layer-1 {
  top: 10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, var(--soft-lavender) 0%, transparent 70%);
}

.hero-layer-2 {
  top: 30%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse, var(--champagne) 0%, transparent 70%);
}

.hero-layer-3 {
  bottom: 20%;
  right: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(183, 110, 121, 0.3) 0%, transparent 70%);
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: var(--spacing-md);
  padding: 0.5rem 1rem;
  background: rgba(183, 110, 121, 0.08);
  border: 1px solid rgba(183, 110, 121, 0.2);
  border-radius: var(--radius-sm);
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--deep-plum);
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
}

.hero-title strong {
  font-weight: 500;
  display: block;
}

.hero-subtitle {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.5;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: linear-gradient(135deg, var(--deep-plum) 0%, var(--deep-plum-light) 100%);
  color: var(--pearl-white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--deep-plum-light) 0%, var(--deep-plum) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--pearl-white);
}

.btn-secondary {
  background: transparent;
  color: var(--deep-plum);
  border: 1px solid var(--deep-plum);
}

.btn-secondary:hover {
  background: var(--deep-plum);
  color: var(--pearl-white);
}

.btn-accent {
  background: linear-gradient(135deg, var(--rose-gold) 0%, var(--rose-gold-dark) 100%);
  color: var(--pearl-white);
  box-shadow: var(--shadow-rose);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--rose-gold-light) 0%, var(--rose-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(183, 110, 121, 0.25);
  color: var(--pearl-white);
}

.btn-ghost {
  background: transparent;
  color: var(--rose-gold);
  padding: 0.75rem 1.25rem;
}

.btn-ghost:hover {
  background: rgba(183, 110, 121, 0.08);
  color: var(--rose-gold-dark);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ===== CARDS ===== */

.card {
  position: relative;
  background: var(--pearl-white-pure);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: rgba(183, 110, 121, 0.2);
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.card-elevated {
  box-shadow: var(--shadow-soft);
}

.card-featured {
  border-color: var(--rose-gold);
  border-width: 2px;
}

.card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--deep-plum), var(--rose-gold));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Hexagonal Accent for Cards */
.card-hexagon {
  position: relative;
  overflow: hidden;
}

.card-hexagon::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 92px;
  background: linear-gradient(135deg, var(--champagne) 0%, var(--soft-lavender) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.3;
  transition: all var(--transition-base);
}

.card-hexagon:hover::after {
  opacity: 0.5;
  transform: scale(1.1);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--champagne-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  color: var(--deep-plum);
}

.card-title {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--deep-plum);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--rose-gold);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-base);
}

.card-link:hover {
  color: var(--deep-plum);
  gap: 0.75rem;
}

/* ===== FEATURE SECTIONS ===== */

.section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: var(--spacing-sm);
}

.section-title {
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Alternating Section Backgrounds */
.section-light {
  background: var(--pearl-white);
}

.section-champagne {
  background: var(--champagne-light);
}

.section-plum {
  background: var(--deep-plum);
  color: var(--pearl-white);
}

.section-plum h2,
.section-plum h3 {
  color: var(--pearl-white);
}

.section-plum p {
  color: rgba(250, 249, 246, 0.85);
}

.section-plum .section-label {
  color: var(--rose-gold-light);
}

/* ===== FEATURE GRID ===== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.feature-item {
  text-align: center;
  padding: var(--spacing-lg);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--champagne) 0%, var(--soft-lavender) 100%);
  border-radius: var(--radius-lg);
  position: relative;
}

/* Hexagonal Feature Icon */
.feature-icon-hex {
  width: 72px;
  height: 83px;
  background: linear-gradient(135deg, var(--deep-plum) 0%, var(--rose-gold) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pearl-white);
  font-size: 1.5rem;
  margin: 0 auto var(--spacing-md);
}

.feature-title {
  font-family: var(--font-header);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--deep-plum);
  margin-bottom: var(--spacing-sm);
}

.feature-text {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ===== INFO BOXES & CALLOUTS ===== */

.info-box {
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) 0;
}

.info-box-clinical {
  background: var(--champagne-light);
  border-left: 4px solid var(--deep-plum);
}

.info-box-research {
  background: var(--soft-lavender);
  border-left: 4px solid var(--rose-gold);
}

.info-box-protocol {
  background: linear-gradient(135deg, var(--champagne-light) 0%, var(--soft-lavender) 100%);
  border: var(--border-accent);
}

.info-box-title {
  font-family: var(--font-label);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-plum);
  margin-bottom: var(--spacing-sm);
}

/* Quote/Testimonial Block */
.quote-block {
  position: relative;
  padding: var(--spacing-xl) var(--spacing-lg);
  background: var(--champagne-light);
  border-radius: var(--radius-lg);
  text-align: center;
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-lg);
  font-family: var(--font-header);
  font-size: 4rem;
  color: var(--rose-gold);
  opacity: 0.3;
  line-height: 1;
}

.quote-text {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--deep-plum);
  margin-bottom: var(--spacing-md);
}

.quote-author {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ===== TABLES ===== */

.table-wrapper {
  overflow-x: auto;
  margin: var(--spacing-lg) 0;
  border-radius: var(--radius-lg);
  border: var(--border-light);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pearl-white-pure);
}

thead {
  background: var(--champagne-light);
}

th {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-plum);
  text-align: left;
  padding: var(--spacing-md);
}

td {
  padding: var(--spacing-md);
  border-top: var(--border-light);
  color: var(--text-secondary);
}

tr:hover {
  background: var(--champagne-light);
}

/* ===== FORMS ===== */

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--pearl-white-pure);
  border: 1px solid var(--platinum-silver);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.1);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--spacing-xs);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--rose-gold);
}

.form-check-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */

.site-footer {
  background: var(--deep-plum);
  color: rgba(250, 249, 246, 0.8);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

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

.footer-brand .logo-text {
  color: var(--pearl-white);
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  color: rgba(250, 249, 246, 0.7);
  font-size: 0.9375rem;
  margin-bottom: var(--spacing-md);
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose-gold-light);
  margin-bottom: var(--spacing-md);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(250, 249, 246, 0.7);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--pearl-white);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(250, 249, 246, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-legal {
  display: flex;
  gap: var(--spacing-md);
}

.footer-legal a {
  color: rgba(250, 249, 246, 0.6);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-legal a:hover {
  color: var(--pearl-white);
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(250, 249, 246, 0.5);
}

/* ===== ANIMATIONS ===== */

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

/* Intersection Observer Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gentle Parallax Effect */
.parallax {
  transform: translateY(var(--parallax-offset, 0));
  transition: transform 0.1s linear;
}

/* Hexagon Pulse Animation */
@keyframes hexPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.6;
  }
}

.hex-pulse {
  animation: hexPulse 4s ease-in-out infinite;
}

/* Shimmer Effect for Loading */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--champagne-light) 0%,
    var(--pearl-white) 50%,
    var(--champagne-light) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ===== UTILITY CLASSES ===== */

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text Colors */
.text-plum { color: var(--deep-plum); }
.text-rose { color: var(--rose-gold); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--pearl-white); }

/* Background Colors */
.bg-pearl { background-color: var(--pearl-white); }
.bg-champagne { background-color: var(--champagne-light); }
.bg-lavender { background-color: var(--soft-lavender); }
.bg-plum { background-color: var(--deep-plum); }

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.py-sm { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-xl { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
  }

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

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

  .hero-layers {
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header-inner {
    height: 70px;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pearl-white);
    padding: var(--spacing-lg);
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    overflow-y: auto;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 1rem;
    border-bottom: var(--border-light);
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: var(--champagne-light);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-xs);
    display: none;
  }

  .nav-item.active .dropdown-menu {
    display: block;
  }

  .mega-menu {
    min-width: auto;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
  }

  .mega-menu-title {
    grid-column: span 1;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: var(--spacing-xl) 0;
  }

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

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

  .hero-layers {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    max-width: none;
  }

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

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

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .btn {
    width: 100%;
  }

  .hero-cta {
    flex-direction: column;
  }

  .card {
    padding: var(--spacing-md);
  }
}

/* ===== PRINT STYLES ===== */

@media print {
  .site-header,
  .site-footer,
  .mobile-menu-toggle,
  .btn {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* ===== ACCESSIBILITY ===== */

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--rose-gold);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--deep-plum);
  color: var(--pearl-white);
  padding: 0.5rem 1rem;
  z-index: 1000;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 0;
}

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

  html {
    scroll-behavior: auto;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border-light: 1px solid var(--deep-plum);
    --shadow-soft: none;
    --shadow-medium: none;
  }

  .btn {
    border: 2px solid currentColor;
  }
}
