/* ==========================================================================
   MetaboForma Polska - Centrum Równowagi Metabolicznej
   Styling System: Clinical & Botanical Wellness (Google Ads Compliance Safe)
   ========================================================================== */

:root {
  --primary-navy: #1e3a8a;
  --primary-navy-dark: #0f172a;
  --primary-navy-light: #eff6ff;
  --accent-green: #059669;
  --accent-green-dark: #047857;
  --accent-green-light: #ecfdf5;
  --accent-emerald: #10b981;
  --highlight-amber: #d97706;
  --highlight-amber-light: #fef3c7;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-focus: #059669;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition: all 0.25s ease-in-out;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-secondary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-green-dark);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

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

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

/* Editorial Advisory Bar */
.advisory-bar {
  background: #fffbeb;
  border-bottom: 1px solid #fef3c7;
  color: #92400e;
  font-size: 0.84rem;
  padding: 8px 16px;
  text-align: center;
  font-weight: 500;
}

.advisory-bar a {
  color: #b45309;
  text-decoration: underline;
  margin-left: 6px;
}

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

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

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

.brand-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.brand-logo span {
  color: var(--accent-green);
  font-weight: 600;
  font-size: 1rem;
  margin-left: 2px;
}

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

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

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

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

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

.mobile-nav {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 16px 24px;
}

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

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
}

/* Badges & Buttons */
.pill-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.badge-green {
  background: var(--accent-green-light);
  color: var(--accent-green-dark);
}

.badge-blue {
  background: var(--primary-navy-light);
  color: var(--primary-navy);
}

.badge-orange {
  background: var(--highlight-amber-light);
  color: var(--highlight-amber);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: #ffffff;
}

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

/* Hero Section */
.hero-section {
  padding: 60px 0 70px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

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

.hero-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #ffffff;
  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 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  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;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
}

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

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

.trust-col-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  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);
}

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

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

.quiz-meter-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  margin-bottom: 28px;
  overflow: hidden;
}

.quiz-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  width: 20%;
  transition: width 0.35s ease;
}

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

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

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

.quiz-opt-btn {
  background: #f8fafc;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.quiz-opt-btn:hover {
  background: #ffffff;
  border-color: var(--accent-green);
  box-shadow: var(--shadow-sm);
}

.quiz-opt-btn.active {
  background: var(--accent-green-light);
  border-color: var(--accent-green);
}

.quiz-opt-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.quiz-opt-btn.active .quiz-opt-indicator {
  background: var(--accent-green);
  border-color: var(--accent-green);
}

.quiz-opt-txt {
  font-size: 0.96rem;
  color: var(--text-primary);
  font-weight: 500;
}

.quiz-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Result View */
.quiz-result-view {
  display: none;
  text-align: center;
}

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

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

.score-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-green);
  line-height: 1;
  margin-bottom: 12px;
}

.pdf-export-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border: 2px dashed #a7f3d0;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-top: 24px;
}

/* Science Section */
.science-section {
  padding: 70px 0;
  background: #ffffff;
}

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

.science-img-box {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-subtle);
}

.science-img-box img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* Botanical / Nutra 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 {
  width: 100%;
  height: 300px;
  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-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.herb-pill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-emerald);
}

.herb-pill-card h4 {
  color: var(--primary-navy);
  margin-bottom: 6px;
}

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

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

/* FAQ Section */
.faq-section {
  padding: 70px 0;
  background: #ffffff;
}

.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.faq-q {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.02rem;
}

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

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

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

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

/* Clinical Disclaimer Box */
.clinical-disclaimer-box {
  background: #fffbeb;
  border: 1.5px solid #fef3c7;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 40px auto;
}

.clinical-disclaimer-box p {
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.55;
}

.clinical-disclaimer-box p:last-child {
  margin-bottom: 0;
}

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

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

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

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

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

.article-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.article-body h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.article-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

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

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

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

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

/* Legal Pages */
.legal-content {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  margin: 40px auto;
}

.legal-content h1 {
  margin-bottom: 14px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 28px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content ul, .legal-content ol {
  margin-left: 24px;
  margin-bottom: 18px;
}

.legal-content li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

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

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

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

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

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

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

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

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

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .herbal-cards-row {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .quiz-box {
    padding: 24px 18px;
  }
  .legal-content {
    padding: 24px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}
