/* ==========================================================================
   SYNOVIAFLEX (SVF) - CLINICAL SWISS-ITALIAN DESIGN SYSTEM
   Preset 1: "Clinica Svizzera & Pino Alpino"
   Colors: Ice White, Deep Teal Pine (#0f766e), Titanium (#64748b), Pure Slate (#0f172a)
   ========================================================================== */

:root {
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-light: #f0fdfa;
  --primary-glow: rgba(15, 118, 110, 0.15);
  
  --secondary: #0e7490;
  --secondary-light: #e0f2fe;

  --accent-amber: #c58f44;
  --accent-amber-light: #fef3c7;
  --accent-gold: #b45309;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --bg-page: #ffffff;
  --bg-clinical: #f4f8fb;
  --bg-card: #ffffff;

  --border-subtle: #e2e8f0;
  --border-focus: #0f766e;

  --font-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-teal: 0 10px 25px -5px rgba(15, 118, 110, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  --header-height: 72px;
  --header-mobile-height: 60px;
}

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

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

body {
  font-family: var(--font-base);
  color: var(--slate-800);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

ul, ol {
  list-style: none;
}

/* ---------------- LAYOUT UTILITIES ---------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

.container-wide {
  max-width: 1320px;
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-sm {
  padding-top: 48px;
  padding-bottom: 48px;
}

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

.section-dark {
  background-color: var(--slate-900);
  color: #ffffff;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  border: 1px solid rgba(15, 118, 110, 0.2);
  margin-bottom: 16px;
}

.section-badge.amber {
  background: var(--accent-amber-light);
  color: var(--accent-gold);
  border-color: rgba(197, 143, 68, 0.25);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: var(--slate-400);
}

/* ---------------- TYPOGRAPHY & BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  min-height: 48px;
  touch-action: manipulation;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.45);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
}

.btn-secondary:hover {
  background-color: var(--slate-50);
  border-color: var(--slate-400);
}

.btn-accent {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #115e59 0%, #0f766e 100%);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  min-height: 38px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
  min-height: 56px;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

/* ---------------- HEADER & NAVIGATION ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--slate-900);
}

.brand-logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.05em;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.25);
}

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

.brand-badge-mini {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--slate-100);
  color: var(--slate-600);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 6px 2px;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--slate-600);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn.active {
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Cart Trigger */
.cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: var(--slate-100);
  color: var(--slate-800);
  transition: all var(--transition-fast);
}

.cart-trigger:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--slate-100);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--slate-800);
  transition: all var(--transition-normal);
}

/* Mobile Header (<768px and strict <480px 1-row layout) */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .site-header {
    height: var(--header-mobile-height);
  }
  .header-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .brand-logo {
    font-size: 1.15rem;
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
  }
  .brand-logo-mark {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
    flex-shrink: 0;
  }
  .brand-logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .brand-badge-mini {
    display: none;
  }
  .header-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .lang-switcher {
    padding: 2px;
  }
  .lang-btn {
    padding: 3px 6px;
    font-size: 0.7rem;
  }
  .cart-trigger {
    width: 36px;
    height: 36px;
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
  }
}

/* ---------------- MOBILE DRAWER MENU ---------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background-color: #ffffff;
  z-index: 1200;
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth);
}

.drawer-backdrop.active .mobile-drawer,
.mobile-drawer.active {
  transform: translateX(-340px);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--slate-700);
}

.drawer-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  flex: 1;
}

.drawer-link {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--slate-800);
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--slate-50);
}

/* ---------------- HERO SCIENTIFIC SECTION ---------------- */
.hero-manifesto {
  position: relative;
  padding: 60px 0 70px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef5f8 100%);
  overflow: hidden;
}

.hero-manifesto::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  margin-bottom: 22px;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--slate-700);
  margin-bottom: 30px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--slate-200);
}

.hero-stat-card {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-600);
  line-height: 1.35;
}

/* Hero Media Card */
.hero-media-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
}

.hero-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-doctor-bio {
  padding: 20px 24px;
}

.hero-doctor-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.hero-doctor-role {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-doctor-quote {
  font-size: 0.9375rem;
  color: var(--slate-600);
  font-style: italic;
  line-height: 1.5;
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-title {
    font-size: 2.15rem;
  }
}

@media (max-width: 640px) {
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ---------------- ANATOMY INFOGRAPHIC SECTION ---------------- */
.anatomy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.anatomy-visual-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.anatomy-diagram-wrapper {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #eef5f8 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.anatomy-feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.anatomy-feature-item {
  display: flex;
  gap: 16px;
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.anatomy-feature-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.anatomy-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.anatomy-feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.anatomy-feature-text {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.55;
}

@media (max-width: 991px) {
  .anatomy-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- NAVIGATION CARDS (QUICK DIRECTS) ---------------- */
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.quick-nav-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.quick-nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.quick-nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.quick-nav-card:hover::before {
  opacity: 1;
}

.quick-nav-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.quick-nav-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.quick-nav-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.quick-nav-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 991px) {
  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .quick-nav-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- CLINICAL TIMELINE / DIARY ---------------- */
.diary-timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.diary-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: var(--slate-200);
}

.diary-step {
  position: relative;
  padding-left: 70px;
  margin-bottom: 40px;
}

.diary-step:last-child {
  margin-bottom: 0;
}

.diary-step-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--primary);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.diary-step-badge span {
  font-size: 1.15rem;
  line-height: 1;
}

.diary-step-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.diary-step-card:hover {
  transform: translateX(4px);
  border-color: var(--primary);
}

.diary-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.diary-step-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
}

.diary-step-text {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ---------------- FORMULA MATRIX CARDS ---------------- */
.formula-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.formula-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.formula-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.formula-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.formula-dosage {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.formula-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.formula-mechanism {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-500);
  margin-bottom: 14px;
}

.formula-desc {
  font-size: 0.9375rem;
  color: var(--slate-700);
  line-height: 1.6;
  flex: 1;
}

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

/* ---------------- COURSE PACKAGE CARDS (NO PRICES AS PER SPEC) ---------------- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}

.package-card {
  background: #ffffff;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.package-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-teal);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.package-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.3);
  white-space: nowrap;
}

.package-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
  text-align: center;
}

.package-bottles {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 20px;
}

.package-visual {
  text-align: center;
  margin-bottom: 24px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.package-visual img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.package-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.package-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--slate-700);
  line-height: 1.45;
}

.package-benefit-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.package-note {
  font-size: 0.75rem;
  color: var(--slate-500);
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 991px) {
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------------- ARTICLE CARDS ---------------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.article-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: var(--slate-100);
  overflow: hidden;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.article-card:hover .article-thumb img {
  transform: scale(1.04);
}

.article-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-bottom: 10px;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.35;
  margin-bottom: 12px;
}

.article-excerpt {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.article-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
}

@media (max-width: 991px) {
  .articles-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------------- ARTICLE SINGLE POST STYLES ---------------- */
.article-header {
  padding: 50px 0 30px 0;
  background: var(--bg-clinical);
  border-bottom: 1px solid var(--border-subtle);
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-bottom: 20px;
}

.article-post-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  max-width: 480px;
}

.article-author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.article-prose {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--slate-700);
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px;
}

.article-prose h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-prose h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 30px;
  margin-bottom: 12px;
}

.article-prose p {
  margin-bottom: 24px;
}

.article-prose ul, .article-prose ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-prose ul {
  list-style: disc;
}

.article-prose ol {
  list-style: decimal;
}

.article-prose li {
  margin-bottom: 8px;
}

.article-callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 36px 0;
}

.article-callout-title {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

/* ---------------- TRUST BADGES / LOGOS ---------------- */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 24px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-600);
  font-size: 0.875rem;
  font-weight: 600;
}

.trust-item svg {
  color: var(--primary);
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  background-color: var(--slate-900);
  color: var(--slate-400);
  padding-top: 60px;
  padding-bottom: 30px;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #ffffff;
}

.footer-disclaimer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--slate-400);
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ---------------- COOKIE CONSENT BANNER ---------------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--slate-200);
  z-index: 9999;
  display: none;
  animation: slideUp 0.3s ease-out forwards;
}

.cookie-banner.active {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-text {
  font-size: 0.8125rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 16px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 18px;
  }
  .cookie-actions {
    flex-direction: column;
  }
}
