/* =========================================
   HealthBizNews — Style System
   ========================================= */

/* --- CSS Variables --- */
:root {
  --primary: #059669;
  --primary-dark: #047857;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --bg: #f0fdf4;
  --bg-white: #ffffff;
  --bg-section: #f8fafb;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 32px rgba(0,0,0,.12);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: .3s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== MARQUEE BAR ===== */
.marquee-bar {
  background: var(--primary);
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  margin-right: 40px;
  flex-shrink: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 0;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-icon { font-size: 26px; }
.logo-accent { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(5,150,105,.92), rgba(59,130,246,.85)),
              url('../img/hero.png') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.hero p { font-size: 18px; opacity: .9; line-height: 1.7; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  transition: all var(--transition);
  font-size: 15px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  padding: 12px 30px;
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
}
.btn-accent:hover { background: var(--accent-dark); }

/* ===== SECTION ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-section); }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-header h2 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 17px; }
.badge-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-num { font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* ===== ARTICLE CARDS ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.article-card__img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}
.article-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.article-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(5,150,105,.1);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  width: fit-content;
}
.article-card__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.article-card__excerpt { font-size: 14px; color: var(--text-light); line-height: 1.6; flex: 1; }
.article-card__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12px; color: var(--text-muted); }

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 56px; height: 56px;
  background: rgba(5,150,105,.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-light); }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial-stars { color: #f59e0b; font-size: 16px; margin-bottom: 12px; }
.testimonial-text { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.testimonial-name { font-weight: 600; font-size: 14px; }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 64px 0;
  text-align: center;
  border-radius: var(--radius);
  margin: 0 24px;
}
.cta-banner h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; }
.cta-banner p { font-size: 17px; opacity: .9; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===== ARTICLE PAGE ===== */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}
.article-content h1 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.article-content .article-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.article-content h2 { font-size: 26px; font-weight: 700; margin: 36px 0 14px; }
.article-content h3 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; }
.article-content p { font-size: 16px; line-height: 1.8; margin-bottom: 18px; color: var(--text); }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 18px; }
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(5,150,105,.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color var(--transition);
  background: var(--bg-white);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); outline: none; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.form-check input[type="checkbox"] { margin-top: 4px; }
.form-check label { font-size: 13px; color: var(--text-light); text-transform: none; letter-spacing: 0; }
.contact-info-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-info-item { margin-bottom: 24px; }
.contact-info-item h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.contact-info-item p { font-size: 15px; color: var(--text); }

/* ===== ABOUT PAGE ===== */
.about-hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.about-hero h1 { font-size: 42px; font-weight: 800; }
.about-hero p { font-size: 18px; opacity: .9; max-width: 600px; margin: 14px auto 0; }
.about-content { max-width: 860px; margin: 0 auto; padding: 60px 24px; }
.about-content h2 { font-size: 28px; font-weight: 700; margin: 40px 0 14px; color: var(--text); }
.about-content p { font-size: 16px; line-height: 1.8; margin-bottom: 18px; color: var(--text); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}
.team-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 14px;
}
.team-card h3 { font-size: 17px; font-weight: 700; }
.team-card .role { font-size: 13px; color: var(--primary); font-weight: 600; }
.team-card p { font-size: 14px; color: var(--text-light); margin-top: 8px; }

/* ===== LEGAL ===== */
.legal-content { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.legal-content h1 { font-size: 32px; font-weight: 800; margin-bottom: 24px; }
.legal-content h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.legal-content p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; color: var(--text); }
.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 8px; font-size: 15px; line-height: 1.7; }

/* ===== FOOTER ===== */
.footer {
  background: #111827;
  color: #d1d5db;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h3 { color: #fff; font-size: 20px; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.footer p { font-size: 14px; line-height: 1.7; }
.footer ul li { margin-bottom: 8px; }
.footer a { color: #9ca3af; transition: color var(--transition); font-size: 14px; }
.footer a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social a { color: #9ca3af; transition: color var(--transition); }
.footer-social a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6b7280;
}
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { color: #6b7280; }
.footer-legal-links a:hover { color: #fff; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1f2937;
  color: #fff;
  padding: 16px 24px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.cookie-banner.show { display: block; }
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-content p { font-size: 14px; margin: 0; }
.cookie-content a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ===== PRODUCT CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 2;
}
.product-badge.sale { background: #ef4444; }
.product-badge.new { background: var(--accent); }
.product-card__img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}
.product-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-card__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: rgba(59,130,246,.1);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  width: fit-content;
}
.product-card__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.product-card__desc { font-size: 14px; color: var(--text-light); line-height: 1.6; flex: 1; margin-bottom: 12px; }
.product-card__rating {
  font-size: 14px;
  color: #f59e0b;
  margin-bottom: 12px;
}
.product-card__rating span { color: var(--text-muted); font-size: 12px; }
.product-card__price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.price-current {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}
.price-old {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.btn-block { width: 100%; text-align: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero { min-height: 420px; padding: 60px 0; }
  .articles-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 28px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 0;
    box-shadow: var(--shadow);
  }
  .nav-links.active a { padding: 12px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cookie-content { flex-direction: column; text-align: center; }
  .cta-banner { margin: 0; border-radius: 0; }
  .cta-banner h2 { font-size: 26px; }
}
