/* ==========================================================================
   Central de Ajuda — Baú do Milhão
   Tema replicado do Zendesk (Customer Support Theme)

   >>> AJUSTE AQUI: todas as cores e fontes da central estão neste bloco.
   ========================================================================== */
:root {
  /* --- Marca ------------------------------------------------------------ */
  --brand-blue:        #123FA8;   /* azul principal (header/hero/footer)     */
  --brand-blue-dark:   #0B2B74;   /* azul escuro (gradiente/rodapé)          */
  --brand-blue-light:  #2A62E0;   /* azul claro (hover/links)                */
  --brand-yellow:      #FFC800;   /* amarelo do Baú (botões/destaques)       */
  --brand-yellow-dark: #E5B200;   /* amarelo hover                           */

  /* --- Neutros ---------------------------------------------------------- */
  --text:        #1C2430;
  --text-muted:  #5C6879;
  --text-invert: #FFFFFF;
  --bg:          #FFFFFF;
  --bg-soft:     #F5F7FB;
  --border:      #E1E6EF;

  /* --- Estados ---------------------------------------------------------- */
  --info-bg:     #EAF1FF;
  --info-border: var(--brand-blue-light);
  --warn-bg:     #FFF7E0;
  --warn-border: var(--brand-yellow);
  --success:     #1F9D57;

  /* --- Tipografia ------------------------------------------------------- */
  --font-sans: "Poppins", "Montserrat", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-base: 16px;
  --lh-base: 1.65;

  /* --- Layout ----------------------------------------------------------- */
  --maxw: 1160px;
  --radius:    14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow:    0 2px 10px rgba(18, 63, 168, .07);
  --shadow-lg: 0 12px 32px rgba(18, 63, 168, .14);
}

/* --------------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-light); text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-yellow); color: var(--brand-blue-dark);
  padding: 10px 18px; font-weight: 600; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------- Header */
/* ------------------------------------------------------------------- Header */
.site-header {
  background: #123272;
  border-bottom: 1px solid #123272;
  position: sticky; top: 0; z-index: 50;
}

.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 76px;
}

.logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

.logo img {
  max-height: 46px;
  width: auto;
  display: block;
}

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a.nav-link {
  color: #fff;
  font-weight: 500;
  font-size: .95rem;
}

.header-nav a.nav-link:hover {
  color: #FFD000;
  text-decoration: none;
}

.btn-signin {
  background: #fff;
  color: #17429B;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
}

.btn-signin:hover {
  background: #FFD000;
  color: #17429B;
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

/* --------------------------------------------------------------------- Hero */
.hero {
  background: var(--brand-blue-dark) url("img/hero-fundo.png") center / cover no-repeat;
  color: var(--text-invert);
  padding: 72px 0 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero--home { padding-top: 40px; }
.hero-mascot {
  display: block;
  margin: 0 auto 12px;
  width: clamp(128px, 12vw, 172px);
  height: auto;
}
.hero h1 {
  margin: 0 0 14px; font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800; letter-spacing: -.02em;
}
.hero p.hero-sub {
  margin: 0 auto 32px; max-width: 640px;
  font-size: 1.05rem; color: rgba(255,255,255,.88);
}
.search-box { max-width: 680px; margin: 0 auto; position: relative; }
.search-box input[type="search"] {
  width: 100%; border: 0; border-radius: var(--radius-pill);
  padding: 18px 150px 18px 28px;
  font-family: inherit; font-size: 1rem; color: var(--text);
  box-shadow: var(--shadow-lg);
}
.search-box input[type="search"]:focus {
  outline: 3px solid var(--brand-yellow); outline-offset: 2px;
}
.search-box button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; cursor: pointer;
  background: var(--brand-yellow); color: var(--brand-blue-dark);
  font-family: inherit; font-weight: 700; font-size: .95rem;
  padding: 13px 30px; border-radius: var(--radius-pill);
}
.search-box button:hover { background: var(--brand-yellow-dark); }

/* -------------------------------------------------------------- Breadcrumbs */
.breadcrumbs { padding: 22px 0 0; font-size: .875rem; color: var(--text-muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--border); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--brand-blue); }
.breadcrumbs li[aria-current] { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------- Home: grid */
main { padding-bottom: 72px; }

.section-title {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em;
  margin: 56px 0 24px;
}

.category-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.category-card {
  display: block; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.category-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue-light); text-decoration: none;
}
.category-card h3 {
  margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; color: var(--brand-blue);
}
.category-card p { margin: 0 0 14px; color: var(--text-muted); font-size: .95rem; }
.category-card .count { font-size: .82rem; font-weight: 600; color: var(--brand-yellow-dark); }

/* ------------------------------------------------------- Listas de artigos */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { border-bottom: 1px solid var(--border); }
.article-list li:last-child { border-bottom: 0; }
.article-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 4px; color: var(--text); font-weight: 500;
}
.article-list a::before {
  content: "›"; color: var(--brand-yellow-dark); font-weight: 700; font-size: 1.1rem;
}
.article-list a:hover { color: var(--brand-blue); text-decoration: none; }

.promoted { margin-top: 12px; }
.promoted .article-list {
  columns: 2; column-gap: 40px;
}
.promoted .article-list li { break-inside: avoid; }

/* ------------------------------------------------- Categoria: bloco de seção */
.section-block {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.section-block > h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; }
.section-block > h2 a { color: var(--brand-blue); }
.see-all {
  display: inline-block; margin-top: 12px;
  font-weight: 600; font-size: .9rem; color: var(--brand-blue);
}

/* ------------------------------------------------------------ Artigo: layout */
.article-layout {
  display: grid; grid-template-columns: 290px 1fr; gap: 44px;
  margin-top: 28px; align-items: start;
}
.article-sidebar {
  position: sticky; top: 96px;
  background: var(--bg-soft); border-radius: var(--radius); padding: 22px 20px;
}
.article-sidebar h2 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin: 0 0 12px;
}
.article-sidebar ul { list-style: none; margin: 0; padding: 0; }
.article-sidebar li { margin-bottom: 4px; }
.article-sidebar a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--text); line-height: 1.45;
}
.article-sidebar a:hover { background: #fff; color: var(--brand-blue); text-decoration: none; }
.article-sidebar a.is-current {
  background: var(--brand-blue); color: var(--text-invert); font-weight: 600;
}

.article-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  letter-spacing: -.02em; margin: 0 0 10px;
}
.article-meta {
  list-style: none; display: flex; gap: 10px; flex-wrap: wrap;
  margin: 0 0 28px; padding: 0 0 20px;
  border-bottom: 1px solid var(--border);
  font-size: .85rem; color: var(--text-muted);
}
.article-meta li + li::before { content: "·"; margin-right: 10px; }

/* ------------------------------------------------ Artigo: corpo (rich text) */
.article-body { font-size: 1.02rem; }
.article-body h2 {
  font-size: 1.5rem; font-weight: 800; margin: 40px 0 14px; letter-spacing: -.02em;
}
.article-body h3 {
  font-size: 1.2rem; font-weight: 700; margin: 32px 0 12px; color: var(--brand-blue);
}
.article-body h4 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 8px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { font-weight: 700; }
.article-body > *:first-child { margin-top: 0; }

.article-body .lead { font-size: 1.12rem; color: var(--text-muted); }
.article-body .eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
  font-weight: 700; color: var(--brand-yellow-dark);
}
.article-body .muted { color: var(--text-muted); font-size: .92rem; }
.article-body .legal {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text-muted); line-height: 1.55;
}
.article-body .highlight {
  background: var(--warn-bg); border-radius: var(--radius-sm);
  padding: 14px 18px; font-weight: 600;
}

.hero-block {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: var(--text-invert); border-radius: var(--radius);
  padding: 34px 30px; margin-bottom: 28px; text-align: center;
}
.hero-block h2 { margin: 0 0 8px; color: var(--text-invert); font-size: 1.8rem; }
.hero-block .lead { color: rgba(255,255,255,.9); margin: 0; }

/* Cards de prêmio */
.prize-card {
  border: 1px solid var(--border); border-left: 5px solid var(--brand-yellow);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.prize-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 18px; flex-wrap: wrap; margin-bottom: 10px;
}
.prize-name { font-weight: 800; font-size: 1.1rem; color: var(--brand-blue); }
.prize-sub { display: block; font-weight: 500; font-size: .85rem; color: var(--text-muted); }
.prize-value {
  background: var(--brand-yellow); color: var(--brand-blue-dark);
  font-weight: 800; font-size: .95rem; white-space: nowrap;
  padding: 7px 16px; border-radius: var(--radius-pill);
}
.badge {
  display: inline-block; background: var(--brand-blue); color: #fff;
  font-size: .65rem; font-weight: 700; letter-spacing: .05em;
  padding: 3px 9px; border-radius: var(--radius-pill); vertical-align: middle;
  margin-left: 6px;
}
.prize-card p { margin: 0; color: var(--text-muted); }

/* Passos numerados */
ol.steps { list-style: none; padding: 0; margin: 0 0 22px; counter-reset: step; }
ol.steps li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 18px; margin-bottom: 10px;
  background: var(--bg-soft); border-radius: var(--radius-sm);
}
ol.steps .step-n {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-blue); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
ol.steps li > div { flex: 1; }
ol.steps li p { margin: 0; }

/* Lista com check */
ul.check-list { list-style: none; padding: 0; }
ul.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 10px;
}
ul.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--success); font-weight: 800;
}

/* Avisos */
.callout {
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 22px 0;
  border-left: 5px solid var(--info-border); background: var(--info-bg);
}
.callout p:last-child { margin-bottom: 0; }
.callout-warning { background: var(--warn-bg); border-left-color: var(--warn-border); }

/* Calendário de sorteios */
.draw-list { display: grid; gap: 14px; margin-bottom: 22px; }
.draw-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px 20px; background: var(--bg-soft);
}
.draw-item h4 { margin-top: 0; }
.draw-item p { margin-bottom: 6px; }
.draw-item p:last-child { margin-bottom: 0; }

/* Tabelas */
.article-body table {
  width: 100%; border-collapse: collapse; margin: 0 0 22px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.article-body th, .article-body td {
  padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left;
}
.article-body th { background: var(--bg-soft); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* Placeholder de imagem (imagens serão adicionadas depois) */
.img-placeholder {
  display: block; background: var(--bg-soft);
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: 28px 20px; text-align: center;
  color: var(--text-muted); font-size: .88rem;
}

/* ------------------------------------------------------------------ Botões */
.btn {
  display: inline-block; font-weight: 700; font-size: 1rem;
  padding: 14px 32px; border-radius: var(--radius-pill);
  text-align: center; cursor: pointer; border: 2px solid transparent;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand-yellow); color: var(--brand-blue-dark); }
.btn-primary:hover { background: var(--brand-yellow-dark); color: var(--brand-blue-dark); }
.btn-secondary { background: var(--brand-blue); color: #fff; }
.btn-secondary:hover { background: var(--brand-blue-dark); color: #fff; }
.btn-outline { border-color: var(--brand-blue); color: var(--brand-blue); background: transparent; }
.btn-outline:hover { background: var(--brand-blue); color: #fff; }

/* ------------------------------------------------------- Rodapé do artigo */
.article-footer {
  margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--border);
}
.ask-more {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 22px 26px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.ask-more p { margin: 0; font-weight: 600; }
.back-to-top {
  display: inline-block; margin-top: 22px;
  font-weight: 600; font-size: .9rem; color: var(--brand-blue);
}

.related h2 { font-size: 1.15rem; font-weight: 700; margin: 40px 0 12px; }

/* ------------------------------------------------------------------ Rodapé */
.site-footer {
  background: var(--brand-blue-dark); color: rgba(255,255,255,.82);
  padding: 56px 0 28px; margin-top: 0;
}
.footer-cols {
  display: grid; gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.footer-cols h3 {
  color: var(--text-invert); font-size: .95rem; font-weight: 700;
  margin: 0 0 14px; text-transform: none;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 9px; }
.footer-cols a { color: rgba(255,255,255,.82); font-size: .9rem; }
.footer-cols a:hover { color: var(--brand-yellow); text-decoration: none; }

.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social a svg { width: 18px; height: 18px; display: block; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: grid; place-items: center;
  color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase;
}
.footer-social a:hover { background: var(--brand-yellow); color: var(--brand-blue-dark); }

.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .85rem; text-align: center; color: rgba(255,255,255,.7);
}
.footer-bottom a { color: var(--text-invert); font-weight: 600; }

/* ---------------------------------------------------------------- Pendente */
.pending-note {
  border: 1px dashed var(--brand-yellow-dark); background: var(--warn-bg);
  border-radius: var(--radius); padding: 22px 26px;
}
.pending-note p { margin: 0 0 10px; }
.pending-note p:last-child { margin: 0; }

/* -------------------------------------------------------------- Responsivo */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-sidebar { position: static; }
  .promoted .article-list { columns: 1; }
}

@media (max-width: 680px) {
  .site-header .wrap { min-height: 64px; flex-wrap: wrap; gap: 12px; }
  .header-nav { gap: 16px; width: 100%; margin-left: 0; padding-bottom: 12px; }
  .header-nav a.nav-link { font-size: .88rem; }
  .btn-signin { margin-left: auto; padding: 8px 18px; font-size: .88rem; }
  .hero { padding: 48px 0 56px; }
  .search-box input[type="search"] { padding: 16px 20px; }
  .search-box button {
    position: static; transform: none; width: 100%;
    margin-top: 12px; display: block;
  }
  .prize-head { flex-direction: column; gap: 8px; }
  .ask-more { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .hero, .site-footer, .article-sidebar, .ask-more, .back-to-top { display: none; }
  .article-layout { display: block; }
}

/* --------------------------------------------------------------- Combos */
.combo-grid {
  display: grid; gap: 20px; margin: 24px 0;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.combo-card {
  border: 1px solid var(--border); border-top: 5px solid var(--brand-yellow);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
}
.combo-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.combo-name { font-weight: 800; font-size: 1.1rem; color: var(--brand-blue); }
.combo-price {
  background: var(--brand-blue); color: #fff; font-weight: 800;
  padding: 6px 16px; border-radius: var(--radius-pill); white-space: nowrap;
}
.combo-card table { margin-bottom: 14px; font-size: .92rem; }
.combo-card th { width: 55%; }
.combo-card p { margin: 0; font-size: .92rem; color: var(--text-muted); }
