/* ==========================================================================
   SUNLINK - Seção Hero (Segunda Dobra)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Estrutura da Seção Hero
   -------------------------------------------------------------------------- */
.sunlink-hero {
  position: relative;
  width: 100%;
  background-color: var(--sunlink-bg, #FFFFFF);
  padding-top: 56px;
  padding-bottom: 40px;
}

.sunlink-hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  width: 100%;
  max-width: var(--header-max-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--header-padding-x, 24px);
  padding-right: var(--header-padding-x, 24px);
}

/* --------------------------------------------------------------------------
   Coluna de Conteúdo (Textos e Ação)
   -------------------------------------------------------------------------- */
.sunlink-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Eyebrow / Cartola */
.sunlink-hero-eyebrow {
  display: inline-block;
  color: var(--sunlink-blue, #102D50);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Título Principal (único <h1> da página) */
.sunlink-hero-title {
  color: var(--sunlink-blue, #102D50);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
}

/* Descrição */
.sunlink-hero-description {
  color: #475569; /* Azul acinzentado de alta legibilidade */
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 520px;
}

/* Grupo de Ação (Botão CTA + Texto de Apoio) */
.sunlink-hero-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Botão CTA Hero */
.sunlink-btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sunlink-yellow, #F8C544);
  color: var(--sunlink-blue, #102D50);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 8px; /* Cantos levemente arredondados */
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color var(--sunlink-transition-fast, 0.2s ease),
              transform 0.1s ease,
              box-shadow var(--sunlink-transition-fast, 0.2s ease);
  white-space: nowrap;
}

.sunlink-btn-hero:hover {
  background-color: var(--sunlink-yellow-hover, #eab733);
}

.sunlink-btn-hero:active {
  background-color: var(--sunlink-yellow-active, #d9a524);
  transform: scale(0.98);
}

.sunlink-btn-hero:focus-visible {
  outline: 2px solid var(--sunlink-focus-ring, #102D50);
  outline-offset: 3px;
}

/* Texto Secundário de Apoio */
.sunlink-hero-support-text {
  color: #64748B;
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Coluna de Mídia (Imagem da Casa com Painéis Solares)
   -------------------------------------------------------------------------- */
.sunlink-hero-media {
  width: 100%;
}

.sunlink-hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 28px;
  overflow: hidden;
  background-color: var(--sunlink-border-light, #F3F4F6);
}

.sunlink-hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 28px;
}

/* --------------------------------------------------------------------------
   Responsividade: Telas Médias e Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .sunlink-hero-container {
    gap: 40px;
  }

  .sunlink-hero-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .sunlink-hero {
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .sunlink-hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .sunlink-hero-eyebrow {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .sunlink-hero-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .sunlink-hero-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .sunlink-hero-action {
    width: 100%;
    margin-bottom: 4px;
  }

  .sunlink-btn-hero {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    text-align: center;
  }

  .sunlink-hero-support-text {
    width: 100%;
    text-align: center;
  }

  .sunlink-hero-image-wrapper {
    border-radius: 20px;
  }

  .sunlink-hero-img {
    border-radius: 20px;
  }
}
