/* ==========================================================================
   МЪЖКА ГРИЖА - БЛОГ & УЕЛНЕС УЕБСАЙТ (БОЛГАРИЯ)
   Основен стилов файл | Съвместим с Google Ads & GDPR
   ========================================================================== */

:root {
  /* Основни цветове вдъхновени от Българското Знаме */
  --color-white: #FFFFFF;
  --color-offwhite: #F8F9FA;
  --color-light-gray: #EDF2F7;
  --color-green: #00875A;
  --color-green-hover: #006B47;
  --color-green-light: #E6F4EA;
  --color-red: #C8102E;
  --color-red-hover: #A00B22;
  --color-red-light: #FDF2F2;
  
  /* Контрастни неутрални цветове */
  --color-dark: #1A202C;
  --color-text: #2D3748;
  --color-muted: #718096;
  --color-border: #E2E8F0;
  
  /* Сенки и радиуси */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   1. Основно нулиране и глобални стилове
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }

p {
  margin-bottom: 1.2rem;
}

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

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

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

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

/* Flag Accent Top Line */
.flag-stripe {
  height: 4px;
  background: linear-gradient(90deg, #FFFFFF 33.3%, #00875A 33.3%, #00875A 66.6%, #C8102E 66.6%);
  width: 100%;
}

/* --------------------------------------------------------------------------
   2. Навигация и Хедър
   -------------------------------------------------------------------------- */
.header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

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

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

.logo-badge {
  background: var(--color-green);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-text span {
  color: var(--color-green);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
}

.nav-link {
  color: var(--color-dark);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-green);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

.btn-primary:hover {
  background: var(--color-red-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.35);
}

.btn-secondary {
  background: var(--color-green);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 135, 90, 0.2);
}

.btn-secondary:hover {
  background: var(--color-green-hover);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-green);
  color: var(--color-green);
}

.btn-outline:hover {
  background: var(--color-green-light);
  color: var(--color-green-hover);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-dark);
}

/* --------------------------------------------------------------------------
   3. Hero Секция & Заглавен Блок
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%);
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-green-light);
  color: var(--color-green);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(0, 135, 90, 0.2);
}

.hero-title {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-title span {
  color: var(--color-green);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-white);
}

.hero-img-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

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

.hero-card-overlay .author-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-dark);
}

.hero-card-overlay .author-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   4. Секция История и Блог Карти
   -------------------------------------------------------------------------- */
.section {
  padding: 4.5rem 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-tag {
  color: var(--color-green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.story-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.story-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--color-green);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.story-highlight {
  background: var(--color-green-light);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-green);
  margin: 1.5rem 0;
  font-weight: 600;
  color: var(--color-green-hover);
}

/* --------------------------------------------------------------------------
   5. Грид за Статии
   -------------------------------------------------------------------------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

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

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

.article-img {
  height: 200px;
  background-color: var(--color-light-gray);
  position: relative;
  overflow: hidden;
}

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

.article-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.article-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.article-excerpt {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   6. Интерактивен Модул (Викторина & Тест за Виталност)
   -------------------------------------------------------------------------- */
.quiz-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-green);
  max-width: 780px;
  margin: 0 auto;
}

.quiz-progress-bar {
  height: 10px;
  background: var(--color-light-gray);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-green) 0%, var(--color-red) 100%);
  width: 25%;
  transition: width 0.4s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-question {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--color-dark);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-option {
  padding: 1.2rem 1.5rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-option:hover {
  border-color: var(--color-green);
  background: var(--color-green-light);
}

.quiz-option.selected {
  border-color: var(--color-green);
  background: var(--color-green-light);
  color: var(--color-green-hover);
}

.quiz-radio {
  width: 20px;
  height: 20px;
  accent-color: var(--color-green);
}

/* --------------------------------------------------------------------------
   7. Лид Форма (Само Име и Телефон - Google Ads Съвместима)
   -------------------------------------------------------------------------- */
.lead-form-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  max-width: 520px;
  margin: 0 auto;
}

.lead-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 4px rgba(0, 135, 90, 0.15);
}

.form-privacy-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   8. Сертификати Секция
   -------------------------------------------------------------------------- */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.cert-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  cursor: pointer;
}

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

.cert-icon-wrap {
  width: 120px;
  height: 150px;
  margin: 0 auto 1rem;
}

.cert-title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.cert-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   9. Подножие (Footer & Google Ads Policies)
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-dark);
  color: #A0AEC0;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: 4px solid var(--color-green);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  color: var(--color-white);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--color-green);
}

.footer-heading {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

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

.footer-links li {
  margin-bottom: 0.7rem;
}

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

.footer-links a:hover {
  color: var(--color-white);
}

.disclaimer-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #8898AA;
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   10. Cookie Banner & Modal
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 1.2rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 3px solid var(--color-green);
  transition: transform 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-text {
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-text a {
  color: #68D391;
  text-decoration: underline;
}

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

/* Modal Lightbox for Certificates */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   11. Адаптивен дизайн (Media Queries)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid, .story-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--color-green);
  }
  .nav-list.mobile-open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}
