/* ============================================================
   home.css — Estilos exclusivos da homepage/portal
   ============================================================ */

/* === HEADER NAV === */
.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-link {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray, #5a5a5a);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav-link--saude:hover  { color: var(--red, #c0392b); border-color: var(--red, #c0392b); }
.nav-link--financas:hover { color: #1a6e3c; border-color: #1a6e3c; }
.nav-link--bem-estar:hover { color: #7d5a1e; border-color: #7d5a1e; }
@media (max-width: 520px) {
  .header-nav { display: none; }
}

/* ============================================================
   MASTHEAD — Hero editorial
   ============================================================ */
.masthead {
  background: var(--black, #1a1a1a);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
  max-width: 100%;
}
.masthead-inner { max-width: 680px; }
.masthead-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.eyebrow-category {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}
.eyebrow--saude { background: var(--red, #c0392b); color: #fff; }
.eyebrow-date {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.75rem;
  color: #888;
}
.masthead-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #fff;
}
.masthead-link {
  color: inherit;
  text-decoration: none;
}
.masthead-link:hover { text-decoration: none; opacity: 0.9; }
.masthead-headline em {
  font-style: italic;
  color: #e74c3c;
}
.masthead-deck {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: #bbb;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.masthead-cta {
  display: inline-block;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--red, #c0392b);
  padding: 0.7rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.masthead-cta:hover {
  background: #a93226;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Visual card lado direito */
.masthead-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.visual-card {
  width: clamp(130px, 18vw, 200px);
  aspect-ratio: 1;
  border: 2px solid #e74c3c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.visual-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  color: #e74c3c;
}
.visual-label {
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(0.6rem, 1.2vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  line-height: 1.4;
  margin-top: 0.5rem;
}
@media (max-width: 600px) {
  .masthead { grid-template-columns: 1fr; }
  .masthead-visual { display: none; }
}

/* ============================================================
   AD HOME MID
   ============================================================ */
.ad-home-mid {
  min-height: 100px;
}
.ad-home-footer {
  min-height: 100px;
}

/* ============================================================
   ARTICLES SECTION
   ============================================================ */
.articles-section {
  padding: 3rem clamp(1rem, 4vw, 2rem);
  background: var(--bg, #f8f7f4);
}
.articles-inner {
  max-width: var(--max-w, 1100px);
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black, #1a1a1a);
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--border, #d8d4cc);
}

/* Grid */
.articles-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .articles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .articles-grid { grid-template-columns: 1fr; }
}

/* Cards */
.article-card {
  background: var(--white, #fff);
  border: 1px solid var(--border, #d8d4cc);
  border-top: 3px solid var(--black, #1a1a1a);
  padding: 1.25rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.article-card--featured {
  border-top-color: var(--red, #c0392b);
}
.article-card--coming {
  opacity: 0.55;
  cursor: default;
}
.article-card--coming:hover { transform: none; box-shadow: none; }

.card-badge {
  position: absolute;
  top: -1px;
  right: 1rem;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--red, #c0392b);
  color: #fff;
  padding: 2px 7px;
  border-radius: 0 0 2px 2px;
}
.card-coming-label {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.5rem;
}
.card-category {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.card-cat--saude   { color: var(--red, #c0392b); }
.card-cat--financas { color: #1a6e3c; }
.card-cat--bem-estar { color: #7d5a1e; }

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--black, #1a1a1a);
}
.card-title--muted { color: #888; }

.card-link {
  color: inherit;
  text-decoration: none;
}
.card-link:hover { color: var(--red, #c0392b); text-decoration: none; }

.card-excerpt {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.9rem;
  color: #5a5a5a;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.card-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.72rem;
  color: #aaa;
}
.card-read::before { content: '·'; margin-right: 0.5rem; }

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.categories-section {
  background: var(--white, #fff);
  border-top: 1px solid var(--border, #d8d4cc);
  padding: 2.5rem clamp(1rem, 4vw, 2rem);
}
.categories-inner {
  max-width: var(--max-w, 1100px);
  margin: 0 auto;
}
.categories-inner .section-title {
  margin-bottom: 1.5rem;
  display: block;
}
.categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--border, #d8d4cc);
  border-radius: 2px;
  text-decoration: none;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black, #1a1a1a);
  background: var(--bg, #f8f7f4);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.category-pill:hover { transform: translateY(-2px); text-decoration: none; }
.category-pill--saude:hover   { background: #fff5f4; border-color: var(--red, #c0392b); color: var(--red, #c0392b); }
.category-pill--financas:hover { background: #f0fff5; border-color: #1a6e3c; color: #1a6e3c; }
.category-pill--bem-estar:hover { background: #fffbf0; border-color: #7d5a1e; color: #7d5a1e; }
.pill-icon { font-size: 1.1rem; }
