/* ============================================
   Jonitas Joint Health Guide - Main Stylesheet
   Color Theme: Forest Green (#2E7D32), Orange CTA (#FF6F00)
   ============================================ */

:root {
  --primary: #2E7D32; --primary-light: #4CAF50; --primary-dark: #1B5E20;
  --cta: #FF6F00; --cta-hover: #E65100; --bg: #FAFAFA; --bg-white: #FFFFFF;
  --text: #212121; --text-light: #757575; --border: #E0E0E0;
  --success: #4CAF50; --warning: #FF9800; --danger: #F44336;
  --shadow: 0 2px 8px rgba(0,0,0,0.1); --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
  --radius: 8px; --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.header-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; padding: 12px 0; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow);
}
.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.header-brand { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.discount-badge {
  background: var(--cta); color: white; padding: 6px 14px; border-radius: 20px;
  font-weight: 700; font-size: 0.85rem; animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; padding: 60px 0 80px; text-align: center; position: relative; overflow: hidden;
}
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%; background: rgba(255,255,255,0.03); border-radius: 50%; }
.hero-title { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); opacity: 0.95; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px; background: var(--cta); color: white;
  padding: 18px 36px; border-radius: 50px; font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(255,111,0,0.4); transition: all 0.3s ease; border: none; cursor: pointer;
}
.hero-cta:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,111,0,0.5); text-decoration: none; }

.section { padding: 60px 0; }
.section-title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; text-align: center; margin-bottom: 16px; color: var(--text); }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 40px; }
.benefit-card { background: var(--bg-white); padding: 32px 24px; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.benefit-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.8rem; }
.benefit-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.benefit-text { color: var(--text-light); font-size: 0.95rem; }

.quiz-section { background: var(--bg-white); padding: 48px 0; }
.quiz-container { background: linear-gradient(135deg, #f8fdf8 0%, #e8f5e9 100%); border: 2px solid var(--primary-light); border-radius: var(--radius-lg); padding: 32px 24px; max-width: 800px; margin: 0 auto; }
.quiz-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 8px; color: var(--primary-dark); }
.quiz-subtitle { text-align: center; color: var(--text-light); margin-bottom: 32px; }

.body-diagram { display: flex; justify-content: center; margin-bottom: 32px; }
.body-svg { max-width: 200px; height: auto; }
.body-part { fill: #e0e0e0; stroke: #bdbdbd; stroke-width: 1; transition: all 0.3s ease; cursor: pointer; }
.body-part:hover { fill: #c8e6c9; }
.body-part.active { fill: var(--primary-light); stroke: var(--primary); }
.body-part.severe { fill: var(--danger); stroke: #c62828; }
.body-part.moderate { fill: var(--warning); stroke: #ef6c00; }
.body-part.mild { fill: #fff176; stroke: #f9a825; }

.pain-sliders { display: grid; gap: 20px; margin-bottom: 32px; }
.pain-item { background: white; padding: 16px 20px; border-radius: var(--radius); box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.pain-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pain-label { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pain-value { background: var(--primary); color: white; padding: 4px 12px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; min-width: 40px; text-align: center; }
.pain-value.severe { background: var(--danger); }
.pain-value.moderate { background: var(--warning); color: var(--text); }
.pain-value.mild { background: #fdd835; color: var(--text); }
.pain-slider { width: 100%; height: 8px; -webkit-appearance: none; appearance: none; background: #e0e0e0; border-radius: 4px; outline: none; cursor: pointer; }
.pain-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; background: var(--primary); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: transform 0.2s ease; }
.pain-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.pain-slider::-moz-range-thumb { width: 24px; height: 24px; background: var(--primary); border-radius: 50%; cursor: pointer; border: none; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }

.quiz-results { background: white; padding: 24px; border-radius: var(--radius); text-align: center; display: none; }
.quiz-results.show { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.score-display { font-size: 3rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.score-label { font-size: 1.25rem; font-weight: 600; margin-bottom: 16px; }
.score-label.healthy { color: var(--success); }
.score-label.mild { color: #fdd835; }
.score-label.moderate { color: var(--warning); }
.score-label.severe { color: var(--danger); }
.score-message { color: var(--text-light); margin-bottom: 24px; }
.score-cta { display: inline-block; background: var(--cta); color: white; padding: 14px 28px; border-radius: 50px; font-weight: 700; }
.score-cta:hover { background: var(--cta-hover); text-decoration: none; }

.ingredients-section { background: white; }
.ingredients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.ingredient-card { background: var(--bg); padding: 24px; border-radius: var(--radius-lg); border-left: 4px solid var(--primary); transition: transform 0.3s ease; }
.ingredient-card:hover { transform: translateX(4px); }
.ingredient-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; color: var(--primary-dark); }
.ingredient-benefit { color: var(--text-light); font-size: 0.95rem; }

.reviews-section { background: var(--bg); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.review-card { background: white; padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.review-stars { color: #FFC107; font-size: 1.2rem; margin-bottom: 12px; }
.review-text { color: var(--text); font-style: italic; margin-bottom: 16px; line-height: 1.6; }
.review-author { font-weight: 600; color: var(--primary-dark); }
.review-location { color: var(--text-light); font-size: 0.85rem; }

.order-section { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: white; }
.order-container { max-width: 500px; margin: 0 auto; }
.order-form { background: white; color: var(--text); padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-input {
  width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; transition: border-color 0.3s ease;
}
.form-input:focus { outline: none; border-color: var(--primary); }
.form-button {
  width: 100%; padding: 16px; background: var(--cta); color: white; border: none;
  border-radius: var(--radius); font-size: 1.1rem; font-weight: 700; cursor: pointer;
  transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(255,111,0,0.3);
}
.form-button:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255,111,0,0.4); }
.form-trust { display: flex; justify-content: center; gap: 24px; margin-top: 20px; font-size: 0.9rem; color: var(--text-light); }
.form-trust span { display: flex; align-items: center; gap: 6px; }

.faq-section { background: white; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; padding: 20px 0; background: none; border: none; text-align: left;
  font-size: 1.1rem; font-weight: 600; color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light); line-height: 1.6;
}
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }

.footer { background: var(--text); color: white; padding: 40px 0; text-align: center; }
.footer-text { opacity: 0.8; font-size: 0.9rem; margin-bottom: 16px; }
.footer-disclaimer { opacity: 0.6; font-size: 0.8rem; max-width: 600px; margin: 0 auto; }

.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; background: white;
  padding: 12px 16px; box-shadow: 0 -4px 12px rgba(0,0,0,0.1); z-index: 99;
  display: none;
}
.sticky-cta.show { display: block; }
.sticky-button {
  width: 100%; padding: 14px; background: var(--cta); color: white; border: none;
  border-radius: var(--radius); font-size: 1rem; font-weight: 700; cursor: pointer;
}

.success-message { background: #e8f5e9; color: var(--primary-dark); padding: 16px; border-radius: var(--radius); margin-bottom: 16px; display: none; }
.success-message.show { display: block; }
.error-message { background: #ffebee; color: var(--danger); padding: 16px; border-radius: var(--radius); margin-bottom: 16px; display: none; }
.error-message.show { display: block; }

@media (max-width: 768px) {
  .hero { padding: 40px 0 60px; }
  .section { padding: 40px 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .quiz-container { padding: 24px 16px; }
  .pain-sliders { gap: 16px; }
  .order-form { padding: 24px 16px; }
  .form-trust { flex-direction: column; gap: 12px; align-items: center; }
  .sticky-cta { display: block; }
  body { padding-bottom: 70px; }
}
