/* ArthroMedica Polska - Professional Medical Styling */
:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --accent-teal: #0d9488;
  --accent-teal-light: #f0fdfa;
  --accent-orange: #ea580c;
  --accent-orange-light: #fff7ed;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #38bdf8;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Advisory Safety Bar (Google Ads Compliance) */
.advisory-bar {
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  padding: 8px 16px;
  font-size: 0.82rem;
  color: #475569;
  text-align: center;
}

.advisory-bar strong {
  color: #0f172a;
}

.advisory-bar a {
  text-decoration: underline;
  color: var(--primary);
}

/* Header & Navigation */
.header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  color: #ffffff;
  font-size: 1.2rem;
}

.brand-logo span {
  color: var(--accent-teal);
  font-weight: 600;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 2px;
  position: relative;
}

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-primary);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 16px 20px;
  gap: 14px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 8px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0274b0 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #015c8c 100%);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-teal {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #0f766e 100%);
  color: #ffffff;
}

.btn-teal:hover {
  background: #0f766e;
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-main);
  border-color: #cbd5e1;
  color: var(--primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.badge-blue {
  background-color: var(--primary-light);
  color: #0369a1;
}

.badge-teal {
  background-color: var(--accent-teal-light);
  color: #0f766e;
}

.badge-orange {
  background-color: var(--accent-orange-light);
  color: #c2410c;
}

/* Hero Section */
.hero-section {
  padding: 64px 0 54px;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  border-bottom: 1px solid var(--border-color);
}

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

.hero-section h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 18px;
  font-weight: 800;
}

.hero-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #ffffff;
}

.hero-photo-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-photo-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.hero-photo-tag strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.hero-photo-tag span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Trust Strip */
.trust-strip {
  background: #ffffff;
  padding: 26px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.trust-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-col-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.trust-col strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.trust-col span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Quiz Section */
.quiz-section {
  padding: 70px 0;
  background-color: var(--bg-main);
}

.quiz-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.quiz-meter-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  position: absolute;
  top: 0;
  left: 0;
}

.quiz-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-teal) 100%);
  width: 20%;
  transition: width 0.3s ease;
}

.quiz-header-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.quiz-question-txt {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.quiz-option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.quiz-option-btn {
  text-align: left;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.quiz-option-btn:hover {
  border-color: var(--primary);
  background-color: #f0f9ff;
}

.quiz-option-btn.selected {
  border-color: var(--primary);
  background-color: #e0f2fe;
  font-weight: 600;
}

.quiz-option-btn .opt-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.quiz-option-btn.selected .opt-indicator {
  border-color: var(--primary);
  background: var(--primary);
}

.quiz-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* Quiz Result View */
.quiz-result-view {
  display: none;
  text-align: center;
  padding: 10px 0;
}

.quiz-result-view.active {
  display: block;
}

.score-display-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 20px 0 28px;
}

.score-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.pdf-export-panel {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

/* Content Sections */
.science-section {
  padding: 70px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.science-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.science-img-box img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* Botanical Section */
.botanical-section {
  padding: 70px 0;
  background: #f8fafc;
}

.botanical-header-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.botanical-header-grid img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

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

.herb-pill-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.herb-pill-card h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.herb-pill-card strong {
  display: block;
  font-size: 0.82rem;
  color: var(--accent-teal);
  margin-bottom: 10px;
}

.herb-pill-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-q {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  background: #ffffff;
  user-select: none;
}

.faq-q:hover {
  background-color: #f8fafc;
}

.faq-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-card.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 22px 18px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: none;
  line-height: 1.6;
}

.faq-card.active .faq-a {
  display: block;
}

/* Clinical Disclaimer Box */
.clinical-disclaimer-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  margin: 50px auto 30px;
}

.clinical-disclaimer-box p {
  font-size: 0.88rem;
  color: #92400e;
  line-height: 1.5;
}

.clinical-disclaimer-box p + p {
  margin-top: 6px;
}

/* Articles Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.article-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.article-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-content h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.article-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

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

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

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

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 0 28px;
  border-top: 1px solid #1e293b;
  margin-top: 40px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  font-size: 0.82rem;
  text-align: center;
  color: #64748b;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  z-index: 1000;
  display: none;
}

.cookie-modal.show {
  display: block;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .science-grid,
  .botanical-header-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .herbal-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .herbal-cards-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .quiz-box {
    padding: 24px 18px;
  }
  .cookie-modal {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}
