﻿/* ===================================================================
   CzystyOrganizm.pl - Portal Wiedzy o Zdrowiu i Profilaktyce
   Clean, Modern & Compliant Health Information Portal Styles
   =================================================================== */

:root {
  --primary: #108569;
  --primary-dark: #0a5c48;
  --primary-light: #e6f6f2;
  --secondary: #1a4d6b;
  --accent: #e99522;
  --accent-light: #fef6ec;
  --text-main: #1f2937;
  --text-muted: #596780;
  --text-light: #9ca3af;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --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;
}

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

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

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

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

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

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

/* ---------------- TOP BANNER & NOTICE ---------------- */
.top-notice {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 6px 0;
  text-align: center;
}

/* ---------------- HEADER & NAVIGATION ---------------- */
.site-header {
  background-color: #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;
  padding: 16px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--secondary);
}

.brand-logo svg {
  width: 34px;
  height: 34px;
  fill: var(--primary);
}

.brand-logo span.accent {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}

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

.btn-header {
  background-color: var(--primary);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-header:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  margin: 5px 0;
  transition: var(--transition);
}

/* ---------------- HERO SECTION ---------------- */
.hero-section {
  background: linear-gradient(135deg, #f0fdf9 0%, #e0f2fe 100%);
  padding: 60px 0 70px;
  border-bottom: 1px solid var(--border-color);
}

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #d1fae5;
  color: #065f46;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--secondary);
  margin-bottom: 18px;
}

.hero-content p {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(16, 133, 105, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
}

.btn-outline:hover {
  background-color: rgba(26, 77, 107, 0.05);
}

.hero-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid #ffffff;
}

.hero-img-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-img-box:hover img {
  transform: scale(1.02);
}

/* ---------------- STATS RIBBON ---------------- */
.stats-ribbon {
  background-color: #ffffff;
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.stat-item {
  padding: 10px 15px;
}

.stat-number {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------------- SECTIONS COMMON ---------------- */
.section {
  padding: 70px 0;
}

.section-alt {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ---------------- CARDS & GRIDS ---------------- */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.info-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------------- FEATURE ROW (SPLIT CONTENT) ---------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 70px;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.feature-text h3 {
  font-size: 1.7rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.check-list {
  list-style: none;
  margin: 20px 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ---------------- MEDICAL NOTICE BOX ---------------- */
.medical-box {
  background: #f8fafc;
  border-left: 4px solid var(--secondary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 30px 0;
}

.medical-box h4 {
  font-size: 1.05rem;
  color: var(--secondary);
  margin-bottom: 6px;
}

.medical-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------------- FAQ ACCORDION ---------------- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.25s ease;
}

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

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ---------------- NEWSLETTER / ADVICE BOX ---------------- */
.newsletter-card {
  background: linear-gradient(135deg, var(--secondary) 0%, #112d42 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.newsletter-card h3 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.newsletter-card p {
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex-grow: 1;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.98rem;
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--primary);
}

.newsletter-form button {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: #0d6e56;
}

.newsletter-disclaimer {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 14px;
}

/* ---------------- CONTACT & LEGAL PAGES ---------------- */
.page-header {
  background: #f1f5f9;
  padding: 45px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.legal-content {
  background: #ffffff;
  padding: 45px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin: 40px auto;
  max-width: 860px;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.45rem;
  color: var(--secondary);
  margin: 28px 0 12px;
}

.legal-content h3 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin: 20px 0 10px;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.legal-content ul {
  padding-left: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  margin: 40px 0;
}

.contact-card {
  background: #ffffff;
  padding: 35px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.contact-card h3 {
  font-size: 1.35rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

.contact-info-list {
  list-style: none;
  margin: 20px 0;
}

.contact-info-list li {
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  color: var(--text-muted);
}

.contact-info-list strong {
  color: var(--text-main);
  min-width: 80px;
}

.contact-form .form-group {
  margin-bottom: 18px;
}

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

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 133, 105, 0.1);
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 60px 0 25px;
  font-size: 0.92rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 45px;
}

.footer-col h4 {
  color: #f8fafc;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 14px;
}

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

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

.footer-links a {
  color: #94a3b8;
}

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

.footer-disclaimer-box {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 30px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
  border-top: 1px solid #1e293b;
  font-size: 0.85rem;
}

/* ---------------- COOKIE CONSENT BANNER ---------------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 580px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  z-index: 9999;
  display: none;
  animation: slideUp 0.3s ease;
}

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

.cookie-content h4 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 6px;
}

.cookie-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-btn-accept {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-decline {
  background-color: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
}

/* ---------------- RESPONSIVE STYLES ---------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
    display: none;
  }
  .main-nav.show {
    display: flex;
  }
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
