/*
 Theme Name: Astra Child - Batata da Madsen
 Template: astra
 Version: 1.0.0
*/

/* ==================================================================
   0) TOKENS DE MARCA — azul-marinho / grafite / off-white / acento
   ================================================================== */
:root {
  --navy: #0A2647;
  --navy-deep: #071A33;
  --graphite: #2B2E33;
  --graphite-soft: #4A4E57;
  --paper: #F6F5F2;
  --white: #ffffff;
  --gold: #C79A2B;      /* dourado discreto, não neon */
  --red: #9C2B2B;       /* vermelho controlado, só acento */
  --ink: #14161A;

  --cat-trajetoria: var(--gold);
  --cat-seguranca: var(--red);
  --cat-brasil: var(--navy);

  --radius: 10px;
  --shadow-soft: 0 2px 12px rgba(10,20,40,.08);
  --shadow-hover: 0 12px 28px rgba(10,20,40,.16);
}

/* ==================================================================
   1) TIPOGRAFIA
   ================================================================== */
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--graphite);
  line-height: 1.65;
  background: var(--paper);
}
h1, h2, h3,
.entry-title, .site-title {
  font-family: 'Oswald', 'Bebas Neue', sans-serif;
  text-transform: none;
  letter-spacing: .01em;
  color: var(--ink);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; margin-bottom: .6em; }
h3 { font-size: 1.15rem; }
a { color: var(--navy); }

/* ==================================================================
   2) BARRA DE DISCLAIMER (topo, fixa acima do header)
   ================================================================== */
.bdm-disclaimer-bar {
  background: var(--ink);
  color: #cfd3da;
  text-align: center;
  font-size: .78rem;
  padding: 7px 12px;
  letter-spacing: .02em;
}
.bdm-disclaimer-bar strong { color: var(--gold); font-weight: 600; }

/* header padrão do Astra */
.site-header,
.ast-header-break-point .main-header-bar {
  background: var(--white);
  border-bottom: 1px solid #e7e5e0;
  box-shadow: none;
}
.site-title, .site-title a {
  font-family: 'Oswald', sans-serif !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
}
.main-header-menu .menu-item > a {
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  color: var(--graphite);
}
.main-header-menu .menu-item > a:hover { color: var(--navy); }

/* menu mobile */
.ast-mobile-menu-buttons-fill .mobile-menu-toggle-icon,
button.menu-toggle {
  background-color: var(--navy) !important;
  border-radius: 6px;
}
.ast-mobile-menu-buttons-fill .mobile-menu-toggle-icon .astra-icon-bar,
.ast-mobile-menu-toggle-icon .astra-icon-bar {
  background-color: var(--white) !important;
}
.ast-mobile-header-wrap { padding: 10px 0; }

/* ==================================================================
   3) HERO PRINCIPAL
   ================================================================== */
.bdm-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 65%, #133a63 100%);
  overflow: hidden;
}
.bdm-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 24px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}
.bdm-hero-text { max-width: 620px; }
.bdm-hero-photo {
  justify-self: center;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  background: var(--graphite);
}
.bdm-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bdm-hero-photo.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a91a0;
  font-size: .85rem;
  text-align: center;
  padding: 20px;
}
@media (max-width: 900px) {
  .bdm-hero-inner { grid-template-columns: 1fr; padding: 40px 20px; }
  .bdm-hero-photo { max-width: 280px; order: -1; }
  .bdm-hero-text { max-width: 100%; }
}
.bdm-hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.bdm-hero h1 {
  color: #fff;
  margin: 0 0 14px;
}
.bdm-hero p.bdm-hero-sub {
  font-size: 1.05rem;
  color: #d6dbe4;
  max-width: 620px;
  margin-bottom: 26px;
}
.bdm-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.bdm-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.bdm-btn:hover { transform: translateY(-2px); }
.bdm-btn-primary { background: var(--gold); color: var(--ink); }
.bdm-btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }

/* ==================================================================
   4) LAYOUT GERAL DE SEÇÕES DA HOME
   ================================================================== */
.bdm-section { padding: 56px 0; }
.bdm-section-alt { background: var(--white); }
.bdm-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.bdm-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 12px;
}
.bdm-section-head h2 { margin: 0; }
.bdm-section-head .bdm-see-all {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--graphite-soft);
  white-space: nowrap;
}

/* ---- Destaque (1 matéria grande) ---- */
.bdm-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.bdm-featured-media { position: relative; min-height: 320px; background-size: cover; background-position: center; }
.bdm-featured-media .bdm-cat-tag { position: absolute; top: 18px; left: 18px; }
.bdm-featured-body { padding: 34px 34px 34px 0; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.bdm-featured-body h2 { color: #fff; font-size: 1.7rem; margin-bottom: 12px; }
.bdm-featured-body p { color: #c8ccd4; font-size: .98rem; margin-bottom: 18px; }
.bdm-featured-meta { font-size: .78rem; color: #9aa2b0; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 782px) {
  .bdm-featured { grid-template-columns: 1fr; }
  .bdm-featured-media { min-height: 220px; }
  .bdm-featured-body { padding: 26px; }
}

/* ---- Categoria tag reutilizável ---- */
.bdm-cat-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 11px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
}
.bdm-cat-tag.cat-seguranca-publica { background: var(--red); }
.bdm-cat-tag.cat-trajetoria,
.bdm-cat-tag.cat-noticias { background: var(--gold); color: var(--ink); }
.bdm-cat-tag.cat-brasil { background: var(--navy); }

/* ---- Grade de notícias recentes (título + imagem, sem trecho longo) ---- */
.bdm-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.bdm-news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.bdm-news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.bdm-news-thumb { aspect-ratio: 16/10; background-size: cover; background-position: center; position: relative; }
.bdm-news-thumb .bdm-cat-tag { position: absolute; top: 12px; left: 12px; }
.bdm-news-body { padding: 16px 18px 20px; }
.bdm-news-date { font-size: .74rem; color: var(--graphite-soft); margin-bottom: 6px; }
.bdm-news-card h3 { font-size: 1.02rem; line-height: 1.35; margin: 0; }
.bdm-news-card h3 a { color: var(--ink); text-decoration: none; }
.bdm-news-card h3 a:hover { color: var(--navy); }

@media (max-width: 992px) { .bdm-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bdm-news-grid { grid-template-columns: 1fr; } }

/* ---- Bloco Trajetória (institucional) ---- */
.bdm-trajetoria {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.bdm-trajetoria-media {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--graphite);
  box-shadow: var(--shadow-soft);
}
.bdm-trajetoria-body p { color: var(--graphite-soft); margin-bottom: 20px; }
@media (max-width: 782px) {
  .bdm-trajetoria { grid-template-columns: 1fr; }
  .bdm-trajetoria-media { aspect-ratio: 16/9; }
}

/* ---- Temas e bandeiras ---- */
.bdm-temas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.bdm-tema-card {
  background: var(--white);
  border: 1px solid #e7e5e0;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 20px 18px;
}
.bdm-tema-card .bdm-tema-num { font-family: 'Oswald', sans-serif; font-size: 1.6rem; color: var(--gold); font-weight: 700; }
.bdm-tema-card h3 { font-size: .95rem; margin: 6px 0 8px; }
.bdm-tema-card p { font-size: .82rem; color: var(--graphite-soft); margin: 0; }
@media (max-width: 992px) { .bdm-temas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bdm-temas-grid { grid-template-columns: 1fr; } }

/* ---- Banner institucional secundário ---- */
.bdm-inst-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: 50% 20%;
}
.bdm-inst-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,26,51,.94) 30%, rgba(7,26,51,.55) 70%, rgba(7,26,51,.15) 100%);
}
.bdm-inst-banner-body { position: relative; z-index: 2; padding: 30px 36px; max-width: 560px; color: #fff; }
.bdm-inst-banner-body span { color: var(--gold); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bdm-inst-banner-body h3 { color: #fff; font-size: 1.4rem; margin: 8px 0 6px; }
.bdm-inst-banner-body p { color: #d6dbe4; font-size: .92rem; margin: 0; }
@media (max-width: 600px) { .bdm-inst-banner-body { padding: 24px; } }

/* ---- Presença digital ---- */
.bdm-social-grid { display: flex; gap: 18px; flex-wrap: wrap; }
.bdm-social-card {
  flex: 1 1 220px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  transition: transform .15s ease;
}
.bdm-social-card:hover { transform: translateY(-3px); }
.bdm-social-card strong { display: block; font-family: 'Oswald', sans-serif; font-size: 1.05rem; color: var(--gold); margin-bottom: 4px; }
.bdm-social-card span { font-size: .82rem; color: #b7bcc6; }

/* ---- Transparência mini-box ---- */
.bdm-transparencia-box {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.bdm-transparencia-box p { margin: 0; flex: 1 1 380px; color: var(--graphite); font-size: .93rem; }
.bdm-transparencia-box strong { color: var(--ink); }

/* ==================================================================
   5) RODAPÉ
   ================================================================== */
.site-footer, footer.site-footer {
  background: var(--ink) !important;
  color: #b7bcc6;
}
.footer-adv .widget-title, .site-footer .widget-title {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.site-footer a { color: #d6dbe4; }
.site-footer a:hover { color: var(--gold); }
.bdm-footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 20px;
  padding-top: 16px;
  font-size: .78rem;
  color: #8a91a0;
}

/* ==================================================================
   6) CARDS DE POST (arquivo de categoria / notícias)
   ================================================================== */
.ast-article-post, article.type-post {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ast-article-post:hover, article.type-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.ast-taxonomy-container a, .entry-meta .cat-links a, .cat-links a {
  background: var(--navy);
  color: #fff !important;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* limpeza geral */
.widget_recent_comments, .widget_archive { display: none; }
