/* ============================================
   Human Health Decoded - Main Styles
   Professional, science-backed design system
   ============================================ */

:root {
  /* Color Palette - Trust & Wellness */
  --primary-teal: #2C7A7B;
  --primary-teal-light: #38B2AC;
  --primary-teal-dark: #234E52;
  --accent-coral: #ED8936;
  --accent-sage: #68D391;
  
  /* Neutrals */
  --gray-50: #F7FAFC;
  --gray-100: #EDF2F7;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E0;
  --gray-600: #4A5568;
  --gray-700: #2D3748;
  --gray-900: #1A202C;
  
  /* Typography */
  --font-display: 'Crimson Text', Georgia, serif;
  --font-body: 'Source Sans Pro', -apple-system, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  
  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Base Styles & Reset
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-teal-dark);
  text-decoration: underline;
}

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

/* ============================================
   Navigation
   ============================================ */

.navbar {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-200);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.logo svg {
  width: 45px;
  height: 45px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-teal);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-teal);
  text-decoration: none;
}

.nav-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-700);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-teal-dark) 0%, var(--primary-teal) 100%);
  color: white;
  padding: var(--spacing-xl) 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: 1.375rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent-coral);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #DD6B20;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-secondary {
  background: white;
  color: var(--primary-teal);
  border: 2px solid white;
}

.btn-secondary:hover {
  background: transparent;
  color: white;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary-teal);
  border: 2px solid var(--primary-teal);
}

.btn-outline:hover {
  background: var(--primary-teal);
  color: white;
  text-decoration: none;
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

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

.section-title {
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: var(--spacing-sm);
}

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

/* ============================================
   Cards & Content Blocks
   ============================================ */

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

.card {
  background: white;
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-teal-light), var(--primary-teal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: 2rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================
   Trust Badges & Signals
   ============================================ */

.trust-section {
  background: white;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--spacing-lg) 0;
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

.trust-badge svg {
  width: 28px;
  height: 28px;
  color: var(--primary-teal);
}

/* ============================================
   Review Section Specific
   ============================================ */

.review-header {
  background: linear-gradient(to bottom, white, var(--gray-100));
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--gray-200);
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.rating-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  color: #F6AD55;
  font-size: 1.5rem;
  letter-spacing: 0.1rem;
}

.rating-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-700);
}

.review-date {
  color: var(--gray-600);
  font-size: 1rem;
}

.article-content {
  background: white;
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  max-width: 850px;
  margin: var(--spacing-lg) auto;
}

.article-content h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  color: var(--primary-teal-dark);
}

.article-content h3 {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  color: var(--gray-800);
}

.article-content ul, 
.article-content ol {
  margin-left: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.article-content li {
  margin-bottom: 0.5rem;
}

.highlight-box {
  background: var(--gray-100);
  border-left: 4px solid var(--primary-teal);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
  border-radius: 4px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: var(--spacing-lg) 0;
}

.pros, .cons {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border: 2px solid;
}

.pros {
  border-color: var(--accent-sage);
}

.cons {
  border-color: var(--accent-coral);
}

.pros h3, .cons h3 {
  margin-top: 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-light));
  color: white;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  text-align: center;
  margin: var(--spacing-lg) 0;
}

.cta-box h3 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.cta-box p {
  opacity: 0.95;
  margin-bottom: var(--spacing-md);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
}

.footer-section p {
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-300);
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary-teal-light);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .pros-cons {
    grid-template-columns: 1fr;
  }
  
  .trust-badges {
    gap: 1.5rem;
  }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .nav-container {
    padding: 1rem;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

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

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

.bg-white { background: white; }
.bg-gray { background: var(--gray-100); }
