/* ==========================================================================
   Vitaminvitalitypath - Scientific Mobility & Wellness Editorial Portal
   Published by CA FINANCES | Clean Human Craft Stylesheet
   ========================================================================== */

:root {
  --primary: #0e3a40;
  --primary-light: #16535c;
  --primary-dark: #07262a;
  --secondary: #245e4f;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --success: #16a34a;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --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);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--surface-alt);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
}

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

/* Layout Utilities */
.site-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Editorial Top Banner */
.top-notice-bar {
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.8125rem;
  padding: 8px 16px;
  text-align: center;
}

.top-notice-bar a {
  text-decoration: underline;
  font-weight: 600;
  margin-left: 4px;
}

/* Header Top Meta */
.header-meta-bar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-meta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.header-meta-items {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.header-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  transition: color 0.2s ease;
}

.header-meta-link:hover {
  color: #ffffff;
}

/* Main Navigation */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon-box {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(14, 58, 64, 0.2);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: block;
}

.brand-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

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

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

.btn-nav-action {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-action:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text-main);
}

.mobile-nav-panel {
  display: none;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.mobile-nav-link:hover {
  background: var(--surface-subtle);
  color: var(--primary);
}

/* Editorial Badges & Tags */
.badge-editorial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface-subtle);
  color: var(--primary);
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
}

.badge-gold {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.badge-verified {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

/* Hero Section */
.hero-editorial {
  background: linear-gradient(135deg, #f8fafc 0%, #eef6f6 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

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

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.18;
  margin-top: 14px;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.125rem;
  color: #475569;
  margin-bottom: 24px;
  line-height: 1.65;
}

.hero-meta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.hero-meta-item svg {
  color: var(--secondary);
  width: 18px;
  height: 18px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 12px 26px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(14, 58, 64, 0.15);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(14, 58, 64, 0.2);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border-strong);
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--surface-subtle);
  border-color: var(--primary);
}

.hero-card-featured {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Scientific Stats Grid */
.stats-bar-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 12px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

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

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Content Sections */
.section-padding {
  padding: 70px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px auto;
}

.section-heading {
  font-size: 2.125rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 10px;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Card Grids */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card-editorial {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.card-editorial-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.card-editorial-text {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.card-editorial-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Interactive Assessment Tool / Quiz Widget */
.interactive-widget-box {
  background: #ffffff;
  border: 2px solid #0e3a40;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  margin-top: 20px;
}

.widget-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.step-indicator-pills {
  display: flex;
  gap: 8px;
}

.step-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-pill.active {
  background: var(--primary);
  color: #ffffff;
}

.step-pill.completed {
  background: var(--secondary);
  color: #ffffff;
}

.quiz-option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.quiz-choice-btn {
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.quiz-choice-btn:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quiz-choice-btn.selected {
  background: #f0fdfa;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(36, 94, 79, 0.2);
}

.quiz-result-box {
  background: linear-gradient(135deg, #f0fdfa 0%, #e6f7f5 100%);
  border: 1px solid #99f6e4;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
}

/* Interactive Tabs for Body Mobility */
.tabs-nav-bar {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
}

.tab-nav-btn {
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  bottom: -2px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-nav-btn:hover {
  color: var(--primary);
}

.tab-nav-btn.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
  font-weight: 700;
}

.tab-pane-content {
  display: none;
}

.tab-pane-content.active {
  display: block;
  animation: fadeInTab 0.3s ease;
}

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

/* FAQ Accordion */
.faq-accordion-group {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-accordion-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-accordion-item.open {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.faq-accordion-header:hover {
  color: var(--primary);
}

.faq-accordion-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.faq-accordion-item.open .faq-accordion-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}

.faq-accordion-content {
  padding: 0 24px 22px 24px;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.65;
  border-top: 1px solid var(--surface-subtle);
  padding-top: 14px;
}

/* Scientific Citation Box */
.citation-block {
  background: var(--surface-subtle);
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 0.9375rem;
  color: #334155;
}

.citation-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
  display: block;
}

/* Forms */
.form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-main);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 58, 64, 0.12);
}

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

/* Alert Boxes */
.alert-feedback {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  display: none;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Footer */
.site-footer {
  background: #092327;
  color: #cbd5e1;
  padding-top: 60px;
  border-top: 1px solid #134e4a;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
  padding-left: 2px;
}

.footer-disclaimer-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 36px;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-disclaimer-title {
  color: #fde68a;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: #64748b;
}

/* Legal Documents Content Layout */
.legal-content-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  margin: 40px auto;
  max-width: 960px;
}

.legal-content-wrap h2 {
  font-size: 1.5rem;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-content-wrap h3 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content-wrap p,
.legal-content-wrap ul,
.legal-content-wrap ol {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content-wrap ul,
.legal-content-wrap ol {
  padding-left: 24px;
}

.legal-content-wrap li {
  margin-bottom: 8px;
}

.legal-meta-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.875rem;
}

/* Table styles for cookie policy etc */
.editorial-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.875rem;
}

.editorial-table th,
.editorial-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}

.editorial-table th {
  background: var(--surface-subtle);
  font-weight: 700;
  color: var(--primary-dark);
}

.editorial-table tr:nth-child(even) {
  background: var(--surface-alt);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links-desktop,
  .btn-nav-action {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 2rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .cards-grid-3,
  .cards-grid-2 {
    grid-template-columns: 1fr;
  }
  .quiz-option-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .legal-content-wrap {
    padding: 24px;
  }
}
