/* ==========================================================================
   DENTALINS — SECTION HEADER COMPONENT (section-header.css)
   Standart section başlık düzeni: tag + title + subtitle.
   Tüm section'ların başlangıcında tutarlı tipografi.
   BEM: .section-header
   ========================================================================== */


/* ======================================================================
   1. SECTION HEADER BASE
   ====================================================================== */

.section-header {
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: var(--space-10);
  }
}

/* Center variant */
.section-header--center {
  text-align: center;
}

.section-header--center .section-header__subtitle {
  margin-left: auto;
  margin-right: auto;
}


/* ======================================================================
   2. TAG (üst etiket)
   ====================================================================== */

.section-header__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-primary-500);
  margin-bottom: var(--space-3);
}

/* Accent line before tag */
.section-header__tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-primary-400);
  border-radius: var(--radius-full);
}

.section-header--center .section-header__tag::before {
  display: none;
}

/* Dark section variant */
.section--dark .section-header__tag {
  color: var(--color-primary-300);
}

.section--dark .section-header__tag::before {
  background: var(--color-primary-300);
}


/* ======================================================================
   3. TITLE
   ====================================================================== */

.section-header__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-secondary-500);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

/* Small-screen title reduction */
@media (max-width: 479px) {
  .section-header__title {
    font-size: var(--text-2xl);
  }

  .section-header__subtitle {
    font-size: var(--text-base);
  }

  .section-header {
    margin-bottom: var(--space-6);
  }
}

@media (min-width: 768px) {
  .section-header__title {
    font-size: var(--text-4xl);
  }
}

.section--dark .section-header__title {
  color: var(--color-neutral-0);
}


/* ======================================================================
   4. SUBTITLE
   ====================================================================== */

.section-header__subtitle {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 640px;
  margin: 0;
}

.section--dark .section-header__subtitle {
  color: rgba(255, 255, 255, 0.65);
}
