/* Saudação mensal — painel profissional / futurista */

.header-hero.header-hero-pro {
  position: relative;
  isolation: isolate;
  width: max-content;
  max-width: min(100%, 560px);
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.header-hero-pro .hero-pro-aura {
  position: absolute;
  inset: -8px -12px;
  border-radius: 20px;
  background: radial-gradient(
    ellipse 80% 120% at 70% 50%,
    color-mix(in srgb, var(--hero-mes-cor, #2563eb) 28%, transparent),
    transparent 70%
  );
  filter: blur(14px);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
  animation: hero-pro-pulse 4s ease-in-out infinite;
}

@keyframes hero-pro-pulse {
  0%, 100% { opacity: 0.65; transform: scale(0.98); }
  50% { opacity: 0.95; transform: scale(1); }
}

.header-hero-pro .header-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-pro-panel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 42%, rgba(15, 23, 42, 0.06) 100%);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid color-mix(in srgb, var(--hero-mes-cor, #2563eb) 38%, rgba(255, 255, 255, 0.35));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 28px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 32px color-mix(in srgb, var(--hero-mes-cor, #2563eb) 18%, transparent);
  overflow: hidden;
}

.hero-pro-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 48%,
    transparent 62%
  );
  pointer-events: none;
}

.hero-pro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 14px 10px 16px;
  min-width: 0;
  flex: 0 1 auto;
}

.hero-pro-eyebrow {
  font-size: clamp(0.48rem, 0.85vw, 0.58rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hero-mes-escura, #1e40af) 70%, #64748b);
  opacity: 0.9;
}

.hero-pro-welcome {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin: 0;
  line-height: 1.05;
  white-space: nowrap;
}

.hero-pro-saudacao-label {
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--hero-mes-escura, #1e40af) 55%, #475569);
  text-transform: uppercase;
}

.hero-pro-nome {
  font-size: clamp(0.92rem, 1.75vw, 1.08rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(
    120deg,
    var(--hero-mes-escura, #1e40af) 0%,
    var(--hero-mes-cor, #2563eb) 55%,
    color-mix(in srgb, var(--hero-mes-cor, #2563eb) 65%, white) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-pro-sep {
  width: 1px;
  align-self: stretch;
  margin: 10px 0;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--hero-mes-cor, #2563eb) 55%, transparent) 35%,
    color-mix(in srgb, var(--hero-mes-cor, #2563eb) 55%, transparent) 65%,
    transparent
  );
  flex-shrink: 0;
}

.hero-pro-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  min-width: 0;
  flex: 0 1 auto;
}

.hero-pro-logo {
  position: relative;
  margin: 0;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid color-mix(in srgb, var(--hero-mes-cor, #2563eb) 35%, rgba(255, 255, 255, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 14px rgba(15, 23, 42, 0.12);
}

.hero-pro-logo--banner {
  width: clamp(128px, 19vw, 176px);
  height: clamp(46px, 6.2vw, 54px);
}

.hero-pro-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-pro-logo--emblem {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid color-mix(in srgb, var(--hero-mes-cor, #2563eb) 40%, rgba(255, 255, 255, 0.85));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 14px rgba(15, 23, 42, 0.12);
}

.hero-pro-logo--emblem .hero-pro-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-pro-logo-frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.hero-pro-logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  animation: hero-pro-shine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-pro-shine {
  0%, 78%, 100% { left: -120%; opacity: 0; }
  82% { opacity: 1; }
  95% { left: 140%; opacity: 0; }
}

.hero-pro-campanha-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  max-width: 140px;
}

.hero-pro-campanha-meta .header-hero-campanha {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: inherit;
}

.hero-pro-campanha-meta .header-hero-ribbon {
  display: none;
}

.hero-pro-campanha-meta .header-hero-ribbon.hero-pro-ribbon-fallback {
  display: flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.hero-pro-campanha-meta .header-hero-ribbon.hero-pro-ribbon-fallback .header-hero-ribbon-img,
.hero-pro-campanha-meta .header-hero-ribbon.hero-pro-ribbon-fallback .header-hero-ribbon-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-pro-campanha-meta .header-hero-campanha-texto {
  max-width: none;
}

.hero-pro-campanha-meta .header-hero-campanha-titulo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  margin: 0;
}

.hero-pro-campanha-meta .header-hero-mes-nome {
  font-size: clamp(0.52rem, 0.95vw, 0.62rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hero-mes-escura) 75%, #334155) !important;
}

.hero-pro-campanha-meta .header-hero-campanha-destaque {
  font-family: inherit !important;
  font-size: clamp(0.88rem, 1.55vw, 1.05rem) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em;
  color: transparent !important;
  background: linear-gradient(120deg, var(--hero-mes-escura), var(--hero-mes-cor));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-pro-campanha-meta .header-hero-mes {
  margin: 2px 0 0 !important;
  font-size: clamp(0.42rem, 0.75vw, 0.5rem) !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  color: color-mix(in srgb, var(--hero-mes-escura) 50%, #64748b) !important;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.header-hero-pro .header-hero-welcome {
  color: inherit !important;
}

@media (max-width: 900px) {
  .header-hero.header-hero-pro {
    max-width: 100%;
    width: 100%;
  }

  .hero-pro-panel {
    flex-direction: column;
    align-items: stretch;
    border-radius: 14px;
  }

  .hero-pro-sep {
    width: auto;
    height: 1px;
    margin: 0 12px;
    background: linear-gradient(
      90deg,
      transparent,
      color-mix(in srgb, var(--hero-mes-cor) 45%, transparent) 50%,
      transparent
    );
  }

  .hero-pro-copy {
    align-items: center;
    text-align: center;
    padding: 10px 12px 6px;
  }

  .hero-pro-welcome {
    align-items: center;
  }

  .hero-pro-brand {
    justify-content: center;
    padding: 6px 12px 10px;
  }

  .hero-pro-campanha-meta {
    max-width: min(160px, 42vw);
  }
}

@media (max-width: 520px) {
  .hero-pro-logo--banner {
    width: min(168px, 72vw);
    height: clamp(42px, 11vw, 48px);
  }

  .hero-pro-nome {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pro-aura,
  .hero-pro-logo::after {
    animation: none;
  }
}
