/* ============================================================
   HOME.CSS — Estilos exclusivos da página inicial
   Visões de Riqueza — Blog de Finanças Pessoais
   ============================================================ */

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-bg);
}

/* Gradiente radial decorativo de fundo */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(55, 138, 221, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 45%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(74, 144, 217, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: calc(var(--header-h) + var(--sp-16)) var(--sp-8) var(--sp-16);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  max-width: 580px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

.hero__eyebrow-line {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--clr-gold);
}

.hero__title {
  font-size: clamp(var(--fs-4xl), 5vw, var(--fs-7xl));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__title-accent {
  color: var(--clr-gold);
  font-style: italic;
}

.hero__desc {
  font-size: var(--fs-lg);
  color: var(--clr-text-2);
  line-height: 1.75;
  max-width: 460px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--sp-8);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-border);
}

.hero__stat-number {
  font-family: var(--ff-serif);
  font-size: var(--fs-3xl);
  font-weight: 600;
  color: var(--clr-gold);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin-top: var(--sp-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Lado direito do hero: artigos em destaque em cards flutuantes --- */
.hero__visual {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: relative;
}

.hero__featured-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  transition: border-color var(--t-normal), transform var(--t-normal), box-shadow var(--t-normal);
  text-decoration: none;
  color: inherit;
}

.hero__featured-card:hover {
  border-color: var(--clr-gold-border);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.hero__featured-card:first-child {
  transform: translateX(12px);
}

.hero__featured-card:first-child:hover {
  transform: translateX(16px);
}

.hero__featured-card:nth-child(3) {
  transform: translateX(24px);
}

.hero__featured-card:nth-child(3):hover {
  transform: translateX(28px);
}

.hero__card-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.hero__card-title {
  font-family: var(--ff-serif);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--clr-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__card-meta {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin-top: var(--sp-1);
}

/* ============================================================
   SEÇÃO: ARTIGOS EM DESTAQUE
   ============================================================ */
.featured-articles {
  background: var(--clr-bg-2);
}

/* ============================================================
   SEÇÃO: SOBRE O AUTOR (mini)
   ============================================================ */
.author-mini {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-10) var(--sp-12);
  display: flex;
  align-items: center;
  gap: var(--sp-10);
  position: relative;
  overflow: hidden;
}

.author-mini::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
}

.author-mini__avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--r-full);
  background: var(--clr-bg-elevated);
  border: 2px solid var(--clr-gold-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--clr-gold);
}

.author-mini__name {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-1);
}

.author-mini__role {
  font-size: var(--fs-sm);
  color: var(--clr-gold);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-3);
}

.author-mini__bio {
  font-size: var(--fs-base);
  color: var(--clr-text-2);
  line-height: 1.7;
  max-width: 560px;
}

@media (max-width: 767px) {
  .author-mini {
    flex-direction: column;
    text-align: center;
    padding: var(--sp-8) var(--sp-6);
    gap: var(--sp-5);
  }
  .author-mini__bio { max-width: 100%; }
}

/* ============================================================
   HERO RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
  }
  .hero__visual {
    display: none; /* visual decorativo some em tablet */
  }
  .hero__content {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-bottom: var(--sp-8);
  }
  .hero__inner {
    padding-top: calc(var(--header-h) + var(--sp-10));
  }
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__stats {
    gap: var(--sp-6);
  }
}
