/* ==========================================================
   HERO PRINCIPAL
========================================================== */

.desktop-hero {
  position: relative;

  min-height: 560px;

  overflow: hidden;

  background: var(--color-black);
}

.desktop-hero__background {
  position: absolute;

  inset: 0;

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  z-index: 0;
}

.desktop-hero__overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.92) 0%,
      rgba(0,0,0,.78) 18%,
      rgba(0,0,0,.38) 45%,
      rgba(0,0,0,.25) 70%,
      rgba(0,0,0,.65) 100%
    );

  z-index: 1;
}

.desktop-hero__layout {
  position: relative;

  z-index: 2;

  display: flex;

  justify-content: space-between;
  align-items: center;

  min-height: 560px;
}

.desktop-hero__content {
  width: 560px;
}

.desktop-hero__eyebrow {
  font-size: 3rem;
  font-weight: 300;

  color: var(--color-white);

  text-transform: uppercase;

  margin-bottom: 8px;
}

.desktop-hero__title {
  color: var(--color-gold);

  line-height: .88;

  margin-bottom: 12px;
}

.desktop-hero__subtitle {
  font-size: 3rem;
  font-weight: 300;

  color: var(--color-white);

  text-transform: uppercase;

  margin-bottom: 28px;
}

.desktop-hero__description {
  width: 500px;

  font-size: 1.1rem;
  line-height: 1.8;

  color: var(--color-text-soft);

  margin-bottom: 34px;
}

.desktop-hero__actions {
  display: flex;

  gap: 16px;
}

/* ==========================================================
   COLUNA DIREITA DO HERO
========================================================== */

.desktop-hero-sidebar {
  width: 320px;

  display: flex;
  flex-direction: column;

  gap: 20px;
}

.desktop-rule-card,
.desktop-popular-categories {
  background:
    rgba(8,10,12,.82);

  backdrop-filter: blur(12px);

  border: 1px solid var(--border-dark);

  border-radius: var(--radius-large);

  padding: 28px;

  box-shadow: var(--shadow-large);
}

.desktop-rule-card__header {
  display: flex;

  align-items: center;

  gap: 18px;

  margin-bottom: 22px;
}

.desktop-rule-card__icon {
  width: 42px;
  height: 42px;
}

.desktop-rule-card h2 {
  line-height: 1.4;

  text-transform: uppercase;

  font-size: 1.2rem;
}

.desktop-rule-card p {
  line-height: 1.8;

  margin-bottom: 26px;
}

/* ==========================================================
   CATEGORIAS POPULARES
========================================================== */

.desktop-sidebar-title {
  margin-bottom: 22px;

  font-size: 1rem;

  text-transform: uppercase;

  letter-spacing: 1px;
}

.desktop-popular-categories__list {
  display: flex;

  flex-direction: column;

  gap: 16px;
}

.desktop-popular-categories__item a {
  display: flex;

  justify-content: space-between;
  align-items: center;
}

.desktop-popular-categories__name {
  display: flex;

  align-items: center;

  gap: 10px;
}

.desktop-popular-categories__name img {
  width: 16px;
}

.desktop-popular-categories__count {
  color: var(--color-gold);
}

.desktop-popular-categories__all {
  display: flex;

  justify-content: space-between;
  align-items: center;

  margin-top: 24px;

  color: var(--color-gold);
}

/* ==========================================================
   CONTEÚDO ABAIXO DA IMAGEM
========================================================== */

.desktop-home-content {
  background: var(--color-page);

  padding-top: 28px;
  padding-bottom: 80px;
}

.desktop-home-layout {
  display: grid;

  grid-template-columns:
    1fr
    320px;

  gap: 24px;
}

.desktop-home-main {
  min-width: 0;
}

/* ==========================================================
   CATEGORIAS
========================================================== */

.desktop-quick-categories {
  display: grid;

  grid-template-columns: repeat(7,1fr);

  gap: 0;

  background: var(--color-surface);

  border: 1px solid var(--border-dark);

  border-radius: var(--radius-large);

  overflow: hidden;

  margin-bottom: 32px;
}

.desktop-quick-category {
  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 14px;

  height: 112px;

  border-right: 1px solid var(--border-dark);
}

.desktop-quick-category:last-child {
  border-right: none;
}

.desktop-quick-category img {
  width: 42px;
  height: 42px;
}

.desktop-quick-category span {
  text-transform: uppercase;

  font-size: .9rem;

  color: var(--color-white);
}

.desktop-quick-category:hover {
  background: rgba(255,255,255,.02);
}

/* ==========================================================
   TÍTULOS DAS SEÇÕES
========================================================== */

.desktop-section-heading {
  display: flex;

  justify-content: space-between;
  align-items: center;

  margin-bottom: 22px;
}

.desktop-section-heading__title {
  display: flex;

  align-items: center;

  gap: 12px;
}

.desktop-section-heading__title img {
  width: 22px;
}

.desktop-section-heading__link {
  display: flex;

  align-items: center;

  gap: 8px;

  color: var(--color-gold);

  text-transform: uppercase;

  font-size: .82rem;
}

/* ==========================================================
   GRID DOS ANÚNCIOS
========================================================== */

.desktop-listing-grid {
  display: grid;

  grid-template-columns:
    repeat(4,1fr);

  gap: 22px;
}

/* ==========================================================
   COLUNA DIREITA
========================================================== */

.desktop-content-sidebar {
  display: flex;

  flex-direction: column;

  gap: 24px;
}

.desktop-free-listing {
  background:
    linear-gradient(
      180deg,
      var(--color-gold-light),
      var(--color-gold)
    );

  border-radius: var(--radius-large);

  padding: 28px;

  color: var(--color-black);
}

.desktop-free-listing h2 {
  color: var(--color-black);

  margin-bottom: 14px;
}

.desktop-free-listing p {
  color: rgba(0,0,0,.72);

  margin-bottom: 24px;
}

/* ==========================================================
   BENEFÍCIOS
========================================================== */

.desktop-benefits {
  display: grid;

  grid-template-columns:
    repeat(4,1fr);

  gap: 18px;

  margin-top: 48px;
}

.desktop-benefit {
  display: flex;

  gap: 18px;

  padding: 26px;

  background: var(--color-surface);

  border: 1px solid var(--border-dark);

  border-radius: var(--radius-large);
}

.desktop-benefit img {
  width: 36px;
  height: 36px;
}

.desktop-benefit h3 {
  font-size: 1rem;

  margin-bottom: 8px;
}

.desktop-benefit p {
  font-size: .88rem;

  line-height: 1.7;
}

/* ==========================================================
   NOTEBOOKS
========================================================== */

@media (max-width: 1380px) {
  .desktop-hero__content {
    width: 500px;
  }

  .desktop-hero__eyebrow,
  .desktop-hero__subtitle {
    font-size: 2.5rem;
  }

  .desktop-quick-category {
    height: 100px;
  }

  .desktop-benefits {
    grid-template-columns:
      repeat(2,1fr);
  }
}

/* ==========================================================
   TRANSIÇÃO DO BACKGROUND DO HERO
========================================================== */

.desktop-hero__background {
  opacity: 0;

  transform: scale(1.015);

  transition:
    opacity 700ms ease,
    transform 1200ms ease;
}

.desktop-hero__background--loading {
  opacity: 0;
}

.desktop-hero__background--visible {
  opacity: 1;

  transform: scale(1);
}