/* ==========================================================================
   SECÇÃO: HERO — DIREÇÃO DE ARTE EDITORIAL "HUMAN SYSTEMS"
   --------------------------------------------------------------------------
   - Composição assimétrica em 12 colunas com eixos de tensão controlada.
   - Tipografia estrutural: EB Garamond monumental + Manrope de precisão.
   - Artefacto SVG "Human Systems": 3 Esferas de ressonância clínica e
     o emblema escultural PsicoNutri no ponto focal áureo.
   - Nós de dados institucionais integrados (OPP / ERS / Ciclo de Vida)
     com badges simétricos em proporção e padding.
   - Performance de topo, conformidade WCAG e total responsividade.
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 992px) {
  .hero {
    min-height: calc(100svh - var(--header-height));
  }
}

/* --------------------------------------------------------------------
   ATMOSFERA DE ILUMINAÇÃO & MALHA ARQUITETÓNICA
   -------------------------------------------------------------------- */
.hero__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero__glow--primary {
  top: -12%;
  right: -6%;
  width: min(700px, 65vw);
  height: min(700px, 65vw);
  background: radial-gradient(
    circle,
    rgba(201, 162, 78, 0.16) 0%,
    rgba(201, 162, 78, 0.03) 60%,
    transparent 80%
  );
  animation: hero-ambient-breathe 18s ease-in-out infinite alternate;
}

.hero__glow--secondary {
  bottom: 0%;
  left: -10%;
  width: min(550px, 55vw);
  height: min(550px, 55vw);
  background: radial-gradient(
    circle,
    rgba(27, 95, 168, 0.09) 0%,
    transparent 70%
  );
}

@keyframes hero-ambient-breathe {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 40px) scale(1.08); }
}

/* --------------------------------------------------------------------
   ESTRUTURA PRINCIPAL & CONTAINER (RESPONSIVO)
   -------------------------------------------------------------------- */
.hero__container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Mobile: padding superior compacto de 24px e gap de 16px */
  padding-block: var(--space-4) var(--space-4);
  gap: var(--space-3);
}

@media (min-width: 992px) {
  .hero__container {
    padding-block: var(--space-5) var(--space-4);
    gap: var(--space-6);
  }
}

/* --------------------------------------------------------------------
   OVERLINE EDITORIAL INSTITUCIONAL
   -------------------------------------------------------------------- */
.hero__overline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: 0; /* em mobile o gap do contentor (16px) é a única separação */
}

@media (min-width: 992px) {
  .hero__overline {
    gap: var(--space-3);
    padding-bottom: var(--space-4);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
}

@media (min-width: 992px) {
  .hero__badge {
    padding: var(--space-2) var(--space-3);
  }
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-gold);
  box-shadow: 0 0 0 0 rgba(201, 162, 78, 0.7);
  animation: hero-dot-pulse 2.2s infinite;
}

@keyframes hero-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 78, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(201, 162, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 78, 0); }
}

.hero__badge-text {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-navy-deep);
}

/* --------------------------------------------------------------------
   GRELHA EDITORIAL ASSIMÉTRICA
   -------------------------------------------------------------------- */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
  flex: 1;
}

@media (max-width: 767px) {
  .hero__content {
    display: contents;
  }

  .hero__header {
    order: 1;
  }

  .hero__lead {
    order: 2;
  }

  .hero__visual {
    order: 3;
  }

  .hero__actions-wrap {
    order: 4;
  }
}

@media (min-width: 992px) {
  .hero__grid {
    grid-template-columns: 1.18fr 0.82fr;
    gap: var(--space-8);
    align-items: stretch;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: start;
  }
}

/* --------------------------------------------------------------------
   COLUNA 1: TIPOGRAFIA DE AUTORIDADE & CONVERSÃO
   -------------------------------------------------------------------- */
.hero__content {
  max-width: 44rem;
}

.hero__header {
  margin-bottom: var(--space-4);
}

@media (max-width: 767px) {
  .hero__header {
    margin-bottom: 0;
  }
}

.hero__title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.hero__title-brand {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 2.5rem + 4.5vw, 6.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-navy-deep);
  line-height: 0.95;
}

/* Tagline com presença equilibrada */
.hero__title-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.55rem);
  font-weight: 400;
  color: var(--color-navy-deep);
  line-height: 1.3;
  margin-top: 0.5em;
}

.hero__title-em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-gold-dark);
}

.hero__lead {
  margin-bottom: var(--space-6);
  color: var(--color-grey);
  max-width: 42ch;
  line-height: 1.65;
}

@media (max-width: 767px) {
  .hero__lead {
    margin-bottom: var(--space-3);
  }
}

/* --------------------------------------------------------------------
   ZONA DE AÇÃO
   -------------------------------------------------------------------- */
.hero__actions-wrap {
  display: flex;
}

.hero__cta-btn {
  box-shadow: 0 10px 28px -8px rgba(27, 95, 168, 0.45);
}

@media (max-width: 767px) {
  .hero__actions-wrap {
    margin-block: var(--space-2);
  }
}

/* --------------------------------------------------------------------
   COLUNA 2: ARTEFACTO ESCULTURAL "HUMAN SYSTEMS"
   -------------------------------------------------------------------- */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: 0;
  gap: 0;
  margin-top: var(--space-3);
}

@media (max-width: 559px) {
  .hero__visual {
    padding-block: var(--space-3);
  }
}

@media (max-width: 767px) {
  .hero__visual {
    margin-top: 0;
  }
}

@media (min-width: 992px) {
  .hero__visual {
    margin-top: 0;
  }
}

.hero__system-stage {
  position: relative;
  width: min(300px, 76vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
}

@media (min-width: 560px) {
  .hero__system-stage {
    width: min(380px, 70vw);
  }
}

@media (min-width: 992px) {
  .hero__system-stage {
    width: min(480px, 100%);
    aspect-ratio: 1 / 1;
    flex-direction: row;
    gap: 0;
  }
}

.hero__system-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__system-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-geo-ring {
  transform-origin: center;
  animation: hero-spin-slow 90s linear infinite;
}

@keyframes hero-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-sphere-1 {
  animation: hero-sphere-pulse 12s ease-in-out infinite alternate;
}

.hero-sphere-2 {
  animation: hero-sphere-pulse 14s ease-in-out infinite alternate-reverse;
}

.hero-sphere-3 {
  animation: hero-sphere-pulse 16s ease-in-out infinite alternate;
}

@keyframes hero-sphere-pulse {
  0% { transform: scale(1); transform-origin: center; opacity: 0.35; }
  100% { transform: scale(1.03); transform-origin: center; opacity: 0.55; }
}

/* --------------------------------------------------------------------
   CHAMPAGNE GLASS TILES (BADGES SIMÉTRICOS)
   -------------------------------------------------------------------- */
.hero__node {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  display: inline-flex;
  max-width: min(206px, 58vw);
}

.hero__node--top {
  top: 0;
  right: 0;
}

.hero__node--bottom {
  bottom: 0;
  left: 0;
}

@media (min-width: 560px) {
  .hero__node {
    max-width: min(206px, 40vw);
  }
}

@media (min-width: 992px) {
  .hero__node {
    max-width: 206px;
  }
}

.hero__node-body {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 16px 9px 9px;
  position: relative;
  border-radius: 100px;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  background:
    rgba(252, 249, 243, 0.96) padding-box,
    linear-gradient(
      135deg,
      rgba(212, 170, 90, 0.8)  0%,
      rgba(201, 162, 78, 0.22) 40%,
      rgba(201, 162, 78, 0.18) 58%,
      rgba(212, 170, 90, 0.72) 100%
    ) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 6px 24px rgba(18, 54, 116, 0.09),
    0 2px 6px  rgba(18, 54, 116, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

@media (max-width: 559px) {
  .hero__node-body {
    gap: 8px;
    padding: 7px 12px 7px 7px;
    border-radius: 28px;
  }
}

.hero__node--top .hero__node-body::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 28px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #e8c870, #b08940);
  box-shadow: 0 0 8px rgba(174, 135, 56, 0.55);
}

.hero__node--bottom .hero__node-body::after {
  content: '';
  position: absolute;
  top: -15px;
  right: 28px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #e8c870, #b08940);
  box-shadow: 0 0 8px rgba(174, 135, 56, 0.55);
}

.hero__node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d9b05c 0%, #b08940 55%, #c9a24e 100%);
  box-shadow:
    0 3px 10px rgba(174, 135, 56, 0.42),
    0 1px 3px  rgba(174, 135, 56, 0.28),
    inset 0 1px 0 rgba(255, 235, 150, 0.4);
}

.hero__node-icon svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

@media (max-width: 559px) {
  .hero__node-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }

  .hero__node-icon svg {
    width: 11px;
    height: 11px;
  }
}

.hero__node-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero__node-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-navy-deep);
  line-height: 1.2;
}

@media (min-width: 560px) {
  .hero__node-label {
    white-space: nowrap;
  }
}

@media (min-width: 992px) {
  .hero__node-label {
    font-size: 0.8125rem;
  }
}

.hero__node-sub {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--color-grey);
  line-height: 1.42;
}

@media (min-width: 992px) {
  .hero__node-sub {
    font-size: 0.75rem;
  }
}

/* --------------------------------------------------------------------
   BARRA INFERIOR DE ANCORAGEM & TRANSIÇÃO
   -------------------------------------------------------------------- */
.hero__footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(14, 42, 78, 0.08);
}

@media (min-width: 768px) {
  .hero__footer {
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: center;
    gap: var(--space-7);
  }
}

.hero__footer-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero__footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(201, 162, 78, 0.1);
  color: var(--color-gold-dark);
  flex-shrink: 0;
}

.hero__footer-icon svg {
  width: 17px;
  height: 17px;
}

.hero__footer-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero__footer-text strong {
  font-size: var(--fs-small);
  color: var(--color-navy-deep);
}

.hero__footer-text span {
  font-size: 0.75rem;
  color: var(--color-grey);
}

/* --------------------------------------------------------------------
   ACESSIBILIDADE: PREFERS REDUCED MOTION
   -------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-geo-ring,
  .hero-sphere-1,
  .hero-sphere-2,
  .hero-sphere-3,
  .hero__glow--primary,
  .hero__badge-dot {
    animation: none !important;
  }
}