/* RHpedia Home Page - Estilos da Home */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── HERO ─── */
.hero {
  background: var(--blue-dark);
  position: relative;
  overflow: visible;
  padding: 76px 48px 72px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(29,158,117,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 100% 80%, rgba(83,74,183,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 60%, rgba(24,95,165,0.3) 0%, transparent 60%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-border);
  margin-bottom: 24px;
  position: relative;
}
.hero-eyebrow span {
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--teal-border);
  opacity: 0.5;
}
.hero h1 {
  font-family: var(--font);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin: 0 auto 20px;
  position: relative;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--teal-border);
}
.hero-sub {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin: 0 auto 38px;
  line-height: 1.65;
  position: relative;
}
.hero-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  z-index: 8;
}
.hero-search input {
  width: 100%;
  padding: 16px 54px 16px 22px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 300;
  backdrop-filter: blur(8px);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.35); }
.hero-search input:focus {
  border-color: var(--teal-border);
  background: rgba(255,255,255,0.12);
}
.hero-search-btn {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--teal);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.hero-search-btn:hover { background: var(--teal-dark); }
.hero-search-btn svg { color: white; }

.hero-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 999;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(13, 22, 40, 0.22);
  overflow: hidden;
  text-align: left;
}

.hero-search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  border-bottom: 1px solid #edf0f3;
}

.hero-search-result-item:last-child {
  border-bottom: none;
}

.hero-search-result-item:hover {
  background: #f4f7fa;
}

.hero-search-result-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  opacity: 0.84;
}

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

.hero-search-result-title {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.hero-search-result-subtitle {
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.3;
}

.hero-search-empty {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-light);
  padding: 12px 14px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  position: relative;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 5px;
}
.hero-stat-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}
.hero-stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  align-self: stretch;
}

/* ─── MAIN LAYOUT ─── */
.main-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px 88px;
}

/* ─── SECTION HEADER ─── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 60px;
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.section-meta {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0 28px;
}

/* ─── QUICK BAND ─── */
.quick-band {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 30px;
  margin-top: 48px;
}
.quick-band-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.quick-band-title {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-light);
}
.quick-band-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
}
.quick-band-link:hover { text-decoration: underline; }
.quick-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-item {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 99px;
  background: var(--text);
  color: #ffffff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
  cursor: pointer;
}
.quick-item:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  color: #ffffff;
}

/* ─── DOMAIN GRID ─── */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.domain-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.domain-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.d-blue   { border-left: 3px solid var(--blue); }
.d-teal   { border-left: 3px solid var(--teal); }
.d-purple { border-left: 3px solid var(--purple); }
.d-amber  { border-left: 3px solid var(--amber); }
.d-green  { border-left: 3px solid var(--green); }
.d-gray   { border-left: 3px solid var(--gray); }

.domain-top {
  padding: 20px 24px 16px;
}
.domain-name {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.domain-count {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
}
.domain-divider {
  height: 1px;
  background: var(--border);
  margin: 0 24px;
}
.domain-topics {
  padding: 15px 24px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 400;
  padding: 5px 13px;
  border-radius: 99px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.12s;
  cursor: pointer;
  line-height: 1.3;
  color: #ffffff;
}
.topic-tag:hover { opacity: 0.8; transform: translateY(-1px); }

.d-blue   .topic-tag { background: var(--blue); }
.d-teal   .topic-tag { background: var(--teal-dark); }
.d-purple .topic-tag { background: var(--purple); }
.d-amber  .topic-tag { background: var(--amber-dark); }
.d-green  .topic-tag { background: var(--green-dark); }
.d-gray   .topic-tag { background: var(--gray); }

/* ─── FEATURED ARTICLES ─── */
.articles-strip {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 18px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-card-hero {
  height: 150px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, var(--teal) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}

.article-card-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(29, 158, 117, 0.28), transparent 60%);
}

.article-card-domain {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-border);
  position: relative;
}

.article-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card-title {
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  flex: 1;
}

.article-card-title-sm {
  font-size: 14px;
}

.article-card-desc {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.6;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-light);
  margin-top: auto;
}

.article-card-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray-border);
}

.articles-empty {
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text-light);
}

/* ─── VENDOR BANNER ─── */
.vendor-banner {
  margin-top: 56px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--blue-dark) 0%, #1a3a6b 40%, var(--teal-dark) 100%);
  padding: 48px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  overflow: hidden;
  position: relative;
}

.vendor-banner::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(29, 158, 117, 0.12);
  pointer-events: none;
}

.vendor-banner-text {
  position: relative;
}

.vendor-banner-eyebrow {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-border);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vendor-banner-eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--teal-border);
  opacity: 0.6;
}

.vendor-banner h2 {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 10px;
  max-width: 460px;
}

.vendor-banner p {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.52);
  max-width: 460px;
  line-height: 1.7;
}

.vendor-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
}

.btn-primary {
  padding: 13px 26px;
  border-radius: 10px;
  background: var(--teal);
  color: #ffffff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-secondary {
  padding: 13px 26px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ─── NEWSLETTER ─── */
.newsletter-section {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 48px;
}

.newsletter-eyebrow {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.newsletter-text h3 {
  font-family: var(--font);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}

.newsletter-text p {
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.65;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-row {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.newsletter-form input:focus {
  border-color: var(--blue-border);
}

.newsletter-form input::placeholder {
  color: var(--text-light);
}

.btn-subscribe {
  padding: 12px 22px;
  border-radius: 9px;
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-subscribe:hover {
  background: var(--blue-dark);
}

.newsletter-note {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 300;
  color: var(--text-light);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp 0.5s ease both; }
.hero h1      { animation: fadeUp 0.6s ease 0.07s both; }
.hero-sub     { animation: fadeUp 0.6s ease 0.14s both; }
.hero-search  { animation: fadeUp 0.6s ease 0.2s both; }
.hero-stats   { animation: fadeUp 0.6s ease 0.28s both; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { padding-left: 20px; padding-right: 20px; }
  .main-wrap { padding: 0 20px 60px; }
  .domains-grid { grid-template-columns: 1fr; }
  .articles-strip { grid-template-columns: 1fr; }
  .vendor-banner { flex-direction: column; padding: 32px 28px; }
  .newsletter-section { grid-template-columns: 1fr; padding: 32px 28px; }
  .newsletter-row { flex-direction: column; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 16px 48px;
  }

  .hero h1 {
    font-size: clamp(24px, 4vw, 32px);
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-search input {
    padding: 12px 44px 12px 16px;
    font-size: 14px;
  }

  .hero-search-results {
    top: calc(100% + 8px);
  }

  .hero-search-result-item {
    padding: 10px 12px;
  }

  .hero-search-result-title {
    font-size: 13px;
  }

  .hero-search-result-subtitle {
    font-size: 11px;
  }

  .hero-search-btn {
    width: 34px;
    height: 34px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
    justify-items: center;
  }

  .hero-stat-num {
    font-size: 20px;
  }

  .hero-stat-label {
    font-size: 9px;
  }

  .hero-stat-divider {
    display: none;
  }

  .main-wrap {
    padding: 0 16px 48px;
  }
}
