/* ==========================================================================
   GUIA BANCÁRIO INTERATIVO DE SURUBIM - PE - TEMA PREMIUM FINANCIAL
   Portal Reduz.ia.br - surubim_pe/bancos/
   ========================================================================== */

:root {
  --primary: #0047bb;
  --primary_dark: #002f87;
  --primary_deep: #0b192c;
  --primary_light: #e8f0fe;
  --accent: #e5a500;
  --accent_light: #fef8e7;
  --success: #059669;
  --success_light: #d1fae5;
  --danger: #dc2626;
  --danger_light: #fee2e2;
  --surface: #ffffff;
  --surface_alt: #f8fafc;
  --surface_muted: #f1f5f9;
  --border: #e2e8f0;
  --border_strong: #cbd5e1;
  --text_main: #0f172a;
  --text_muted: #475569;
  --text_light: #94a3b8;
  --radius_sm: 8px;
  --radius_md: 14px;
  --radius_lg: 22px;
  --shadow_sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow_md: 0 6px 20px -2px rgba(0, 47, 135, 0.08);
  --shadow_lg: 0 16px 40px -4px rgba(0, 47, 135, 0.15);
  --font_main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font_display: 'Montserrat', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font_main);
  color: var(--text_main);
  background-color: var(--surface_alt);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   BANNER SUPERIOR GLOBAL
   ========================================================================== */
.top_notice_banner {
  background: linear-gradient(90deg, #0b192c 0%, #002f87 50%, #0047bb 100%);
  color: #ffffff;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top_notice_banner .badge_live {
  background: var(--accent);
  color: #0b192c;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top_notice_banner a {
  color: #fef08a;
  text-decoration: underline;
  margin-left: 6px;
  font-weight: 700;
}

.top_notice_banner a:hover {
  color: #ffffff;
}

/* ==========================================================================
   BARRA INSTITUCIONAL SUPERIOR (LINKS OBRIGATÓRIOS DO TOPO)
   ========================================================================== */
.institutional_top_bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  font-size: 12.5px;
}

.institutional_top_inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.institutional_links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 16px;
  align-items: center;
}

.institutional_links a {
  color: var(--text_muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
}

.institutional_links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.hub_status_indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface_muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary_dark);
}

.status_dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

/* ==========================================================================
   HERO HEADER
   ========================================================================== */
.page_hero {
  background: linear-gradient(135deg, #0b192c 0%, #002f87 55%, #0052cc 100%);
  color: #ffffff;
  padding: 48px 24px 42px;
  position: relative;
  overflow: hidden;
}

.page_hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(229, 165, 0, 0.15) 0%, rgba(0, 71, 187, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page_hero_inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero_breadcrumbs {
  font-size: 13.5px;
  color: #93c5fd;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hero_breadcrumbs a {
  color: #bfdbfe;
  text-decoration: none;
}

.hero_breadcrumbs a:hover {
  text-decoration: underline;
}

.page_hero h1 {
  font-family: var(--font_display);
  font-size: 2.35rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
}

.page_hero_subtitle {
  font-size: 1.12rem;
  line-height: 1.65;
  color: #e2e8f0;
  max-width: 920px;
  margin-bottom: 22px;
}

.hero_meta_bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
}

.hero_meta_bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   CARD DE COMPARTILHAMENTO (TOPO)
   ========================================================================== */
.share_action_card {
  max-width: 1100px;
  margin: -20px auto 30px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius_md);
  padding: 14px 22px;
  box-shadow: var(--shadow_md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 10;
}

.share_call_text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text_main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.share_buttons_group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.share_btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.share_btn.whatsapp {
  background: #25d366;
  color: #ffffff;
}

.share_btn.whatsapp:hover {
  background: #1eb956;
  transform: translateY(-1px);
}

.share_btn.facebook {
  background: #1877f2;
  color: #ffffff;
}

.share_btn.facebook:hover {
  background: #0f62cc;
  transform: translateY(-1px);
}

.share_btn.twitter {
  background: #0b192c;
  color: #ffffff;
}

.share_btn.twitter:hover {
  background: #000000;
  transform: translateY(-1px);
}

.share_btn.copylink {
  background: var(--surface_muted);
  color: var(--text_main);
  border-color: var(--border);
}

.share_btn.copylink:hover {
  background: var(--border);
  transform: translateY(-1px);
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL (LAYOUT CENTRAL)
   ========================================================================== */
.main_layout_container {
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.article_content {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius_lg);
  padding: 46px 50px;
  box-shadow: var(--shadow_sm);
}

@media (max-width: 768px) {
  .article_content {
    padding: 24px 18px;
  }
}

.article_content section {
  margin-bottom: 36px;
}

.article_content h2 {
  font-family: var(--font_display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary_dark);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary_light);
  line-height: 1.35;
}

.article_content h3 {
  font-family: var(--font_display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin: 26px 0 12px;
  line-height: 1.4;
}

.article_content p {
  font-size: 16px;
  color: #334155;
  margin-bottom: 18px;
  line-height: 1.8;
  text-align: justify;
}

.article_content ul, .article_content ol {
  margin: 14px 0 24px 24px;
  color: #334155;
}

.article_content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article_content li strong {
  color: var(--text_main);
}

/* ==========================================================================
   COMPONENTES INTERATIVOS (FILTROS, BUSCADOR E CARDS DE AGÊNCIAS)
   ========================================================================== */
.interactive_control_box {
  background: var(--surface_muted);
  border: 1px solid var(--border);
  border-radius: var(--radius_md);
  padding: 24px;
  margin: 30px 0 34px;
}

.interactive_title {
  font-family: var(--font_display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary_deep);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter_pills_group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter_pill {
  padding: 8px 16px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text_muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter_pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter_pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 71, 187, 0.25);
}

/* BUSCADOR INTERATIVO DE SERVIÇOS */
.service_finder_box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  padding: 14px 18px;
  border-radius: var(--radius_sm);
  border: 1px solid var(--border);
}

.finder_label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text_main);
}

.finder_select {
  flex: 1;
  min-width: 240px;
  padding: 10px 14px;
  border: 1px solid var(--border_strong);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text_main);
  background-color: var(--surface_alt);
  cursor: pointer;
}

.finder_select:focus {
  outline: none;
  border-color: var(--primary);
}

/* CARDS INTERATIVOS DAS AGÊNCIAS DE SURUBIM */
.agency_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
  margin: 28px 0;
}

.agency_card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius_md);
  overflow: hidden;
  box-shadow: var(--shadow_sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.agency_card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow_md);
  border-color: var(--primary_light);
}

.agency_card.highlighted {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 71, 187, 0.15);
}

.agency_card_header {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.agency_name {
  font-family: var(--font_display);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--primary_deep);
  line-height: 1.3;
}

.badge_type {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.badge_type.public {
  background: #dbeafe;
  color: #1e40af;
}

.badge_type.dev {
  background: #fef3c7;
  color: #92400e;
}

.badge_type.private {
  background: #f1f5f9;
  color: #334155;
}

.agency_card_body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: #475569;
}

.agency_info_row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.agency_info_row span.icon {
  font-size: 16px;
  flex-shrink: 0;
}

.agency_specialties {
  background: var(--surface_muted);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #334155;
  margin-top: 6px;
  line-height: 1.5;
}

.agency_card_footer {
  padding: 14px 22px;
  background: var(--surface_alt);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.status_badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.status_badge.open {
  background: var(--success_light);
  color: #065f46;
}

.status_badge.atm {
  background: #e0f2fe;
  color: #0369a1;
}

.status_badge.closed {
  background: var(--danger_light);
  color: #991b1b;
}

.btn_card_action {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.btn_card_action:hover {
  text-decoration: underline;
}

/* ==========================================================================
   IMAGENS INTERCALADAS COM LEGENDA, FONTE E AVISO ILUSTRATIVO
   ========================================================================== */
.article_figure {
  margin: 34px 0;
  border-radius: var(--radius_md);
  overflow: hidden;
  box-shadow: var(--shadow_md);
  border: 1px solid var(--border);
  background: var(--surface_alt);
}

.article_figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 520px;
}

.figure_caption_box {
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.caption_description {
  font-size: 14px;
  color: var(--text_main);
  font-weight: 600;
}

.caption_source {
  font-size: 12px;
  color: var(--text_muted);
}

.disclaimer_tag {
  color: #b45309;
  font-weight: 700;
}

/* ==========================================================================
   BOXES DE DESTAQUE, ALERTA E TABELAS
   ========================================================================== */
.info_highlight_box {
  background: var(--primary_light);
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius_md) var(--radius_md) 0;
  padding: 22px 26px;
  margin: 30px 0;
}

.info_highlight_box h4 {
  font-family: var(--font_display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary_dark);
  margin-bottom: 8px;
}

.info_highlight_box p {
  margin-bottom: 0;
  color: #1e3a8a;
  font-size: 15px;
}

.alert_warning_box {
  background: var(--accent_light);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius_md) var(--radius_md) 0;
  padding: 22px 26px;
  margin: 30px 0;
}

.alert_warning_box h4 {
  font-family: var(--font_display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #854d0e;
  margin-bottom: 8px;
}

.alert_warning_box p {
  margin-bottom: 0;
  color: #713f12;
  font-size: 15px;
}

.schedule_table_wrap {
  width: 100%;
  overflow-x: auto;
  margin: 26px 0;
  border-radius: var(--radius_sm);
  border: 1px solid var(--border);
}

.bank_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.bank_table th {
  background: var(--primary_dark);
  color: #ffffff;
  padding: 14px 16px;
  font-weight: 700;
}

.bank_table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: #334155;
}

.bank_table tr:nth-child(even) td {
  background: var(--surface_muted);
}

/* ==========================================================================
   CLUSTER DE PÁGINAS SECUNDÁRIAS (INTERLINKING)
   ========================================================================== */
.cluster_navigation_section {
  background: linear-gradient(180deg, var(--surface_muted) 0%, #e2e8f0 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius_md);
  padding: 30px 26px;
  margin: 44px 0 32px;
}

.cluster_title {
  font-family: var(--font_display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary_deep);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cluster_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.cluster_card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius_sm);
  padding: 22px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow_sm);
}

.cluster_card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow_md);
}

.cluster_card_tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary_light);
  padding: 4px 9px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 12px;
}

.cluster_card_title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text_main);
  margin-bottom: 8px;
  line-height: 1.4;
}

.cluster_card_desc {
  font-size: 13.5px;
  color: var(--text_muted);
  line-height: 1.55;
}

/* ==========================================================================
   SOBRE O AUTOR (BOX DE PERFIL NO FINAL DO ARTIGO)
   ========================================================================== */
.author_profile_box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius_md);
  padding: 26px;
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 38px;
  box-shadow: var(--shadow_sm);
}

.author_avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #002f87 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 47, 135, 0.2);
}

.author_bio h4 {
  font-family: var(--font_display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text_main);
  margin-bottom: 6px;
}

.author_bio p {
  font-size: 14px;
  color: var(--text_muted);
  line-height: 1.6;
  margin-bottom: 0;
  text-align: left;
}

/* ==========================================================================
   RODAPÉ COMPLETO COM TODOS OS ITENS OBRIGATÓRIOS
   ========================================================================== */
.bank_site_footer {
  background: #0b192c;
  color: #cbd5e1;
  padding: 58px 24px 28px;
  margin-top: 50px;
}

.footer_inner_grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 992px) {
  .footer_inner_grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer_inner_grid {
    grid-template-columns: 1fr;
  }
}

.footer_col h5 {
  font-family: var(--font_display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer_col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.footer_col p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #94a3b8;
}

.footer_col ul {
  list-style: none;
}

.footer_col li {
  margin-bottom: 10px;
}

.footer_col a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease;
  cursor: pointer;
}

.footer_col a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer_contact_item {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.footer_contact_item span {
  font-size: 18px;
  flex-shrink: 0;
}

.footer_bottom_bar {
  max-width: 1200px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #64748b;
}

.footer_bottom_bar a {
  color: #94a3b8;
  text-decoration: none;
  margin-left: 14px;
}

.footer_bottom_bar a:hover {
  color: #ffffff;
}

/* ==========================================================================
   MODAIS INSTITUCIONAIS & LEGAIS
   ========================================================================== */
.legal_modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 25, 44, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.legal_modal.active {
  display: flex;
}

.legal_modal_content {
  background: #ffffff;
  border-radius: var(--radius_md);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px 36px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal_close_btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.modal_close_btn:hover {
  color: #0f172a;
}
