/* ============================================
   PROFISSIONAISFIT - PAGES PREMIUM
   Hero + Page-Header escuros para páginas
   internas (institucionais, diretório, blog,
   notícias). Carregado APENAS nessas páginas.
   NUNCA em /profissional/*.
   ============================================ */

/* ---------------------------------------------
   .hero-modern  →  Hero premium escuro
   (institucionais + diretório SEO)
--------------------------------------------- */
.hero-modern {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, #0a0f1e 0%, var(--color-secondary) 30%, var(--color-secondary-light) 60%, var(--color-primary-dark) 100%);
  overflow: hidden;
  padding-top: calc(var(--header-height) + var(--space-3xl));
  /* padding-bottom intencionalmente ausente:
     respeita o inline padding-bottom existente nos HTMLs */
  isolation: isolate;
}

.hero-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 50%, rgba(20, 184, 166, 0.22), transparent 70%),
    radial-gradient(ellipse 400px 300px at 80% 20%, rgba(249, 115, 22, 0.10), transparent 70%),
    radial-gradient(ellipse 300px 300px at 50% 90%, rgba(37, 99, 235, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-modern::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.hero-modern > .container {
  position: relative;
  z-index: 2;
}

/* Conteúdo do hero ----------------------------------- */
.hero-modern .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-modern .hero-grid {
  position: relative;
  z-index: 2;
}

/* Breadcrumb interno ao hero ------------------------- */
.hero-modern .directory-breadcrumb {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-lg);
}

.hero-modern .directory-breadcrumb a {
  color: var(--color-primary-200);
  transition: color var(--transition-fast);
}

.hero-modern .directory-breadcrumb a:hover {
  color: var(--color-white);
}

.hero-modern .directory-breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

.hero-modern .directory-breadcrumb span.current {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* Badge glass ---------------------------------------- */
.hero-modern .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  color: var(--color-primary-200);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
}

.hero-modern .hero-badge i {
  font-size: 0.95rem;
}

/* Tipografia ----------------------------------------- */
.hero-modern .hero-title {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-lg);
}

.hero-modern .hero-title span {
  background: linear-gradient(135deg, var(--color-primary-light), #5EEAD4, var(--color-primary-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-modern .hero-description {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.0625rem;
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 0;
}

.hero-modern .hero-actions,
.hero-modern .directory-cta-row {
  margin-top: var(--space-xl);
}

.hero-modern .directory-cta-row .btn {
  /* mantém variants do style.css globais */
}

/* Elementos secundários do hero ---------------------- */
.hero-modern .hero-meta,
.hero-modern .hero-tags {
  margin-top: var(--space-lg);
  color: rgba(255, 255, 255, 0.7);
}

.hero-modern .hero-tags .tag,
.hero-modern .hero-tags span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}

/* ---------------------------------------------
   .page-header--premium  →  versão escura para
   /noticias/ (mantém .page-header padrão como
   modificável via classe extra opcional)
--------------------------------------------- */
.page-header.page-header--premium {
  position: relative;
  background: linear-gradient(150deg, #0a0f1e 0%, var(--color-secondary) 30%, var(--color-secondary-light) 60%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  overflow: hidden;
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  isolation: isolate;
}

.page-header.page-header--premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 50%, rgba(20, 184, 166, 0.22), transparent 70%),
    radial-gradient(ellipse 400px 300px at 80% 20%, rgba(249, 115, 22, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-header.page-header--premium::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.page-header.page-header--premium > .container,
.page-header.page-header--premium .container {
  position: relative;
  z-index: 2;
}

.page-header.page-header--premium h1,
.page-header.page-header--premium .page-header-title {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.page-header.page-header--premium p,
.page-header.page-header--premium .page-header-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.0625rem;
  max-width: 720px;
  line-height: 1.7;
}

.page-header.page-header--premium a {
  color: var(--color-primary-200);
}

.page-header.page-header--premium a:hover {
  color: var(--color-white);
}

/* ---------------------------------------------
   Mobile  ≤ 768px
--------------------------------------------- */
@media (max-width: 768px) {
  .hero-modern {
    padding-top: calc(var(--header-height) + var(--space-2xl));
  }

  .hero-modern .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
    letter-spacing: -0.02em;
  }

  .hero-modern .hero-description {
    font-size: 1rem;
  }

  .page-header.page-header--premium {
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .page-header.page-header--premium h1,
  .page-header.page-header--premium .page-header-title {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
    letter-spacing: -0.02em;
  }
}

/* ---------------------------------------------
   Mobile  ≤ 480px
--------------------------------------------- */
@media (max-width: 480px) {
  .hero-modern {
    padding-top: calc(var(--header-height) + var(--space-xl));
  }

  .hero-modern .hero-badge {
    padding: 8px 16px;
    font-size: 0.75rem;
    margin-bottom: var(--space-lg);
  }

  .hero-modern .hero-title {
    font-size: clamp(1.6rem, 8vw, 2rem);
    line-height: 1.15;
  }

  .hero-modern .hero-description {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .hero-modern .directory-breadcrumb {
    font-size: 0.8125rem;
    gap: 6px;
    margin-bottom: var(--space-md);
  }

  .page-header.page-header--premium {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
  }
}

/* ---------------------------------------------
   Reduced motion
--------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-modern,
  .page-header.page-header--premium {
    transition: none;
  }
}
