﻿:root {
  --cor-base: #f4f4f6;
  --cor-sec: #002147;
  --cor-dest: #007bff;
  --texto-prim: #222222;
  --texto-sec: #6c757d;
  --branco: #ffffff;
  --sombra: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--cor-base);
  color: var(--texto-prim);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

/* Cabeçalho */
header {
  background-color: var(--cor-sec);
  color: var(--branco);
  padding: 12px 20px;
  text-align: center;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px var(--sombra);
}

header img {
  max-width: 250px;
  height: auto;
}

/* Main */
main {
  flex: 1;
  padding: 20px 10px 30px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Menus */
.mc,
.sm {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0 20px 0;
  gap: 10px;
}

.mb,
.sb {
  border: none;
  border-radius: 5px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  flex: 1 1 30%;
  max-width: 230px;
  min-width: 170px;
  text-align: center;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 3px var(--sombra);
}

/* Botões principais */
.mb {
  background-color: var(--cor-dest);
  color: var(--branco);
}

.mb i,
.sb i {
  font-size: 16px;
}

.mb:hover {
  background-color: #0063cc;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px var(--sombra);
}

/* Botões secundários */
.sb {
  background-color: #e1e5ee;
  color: var(--texto-prim);
}

.sb:hover {
  background-color: #d3d8e4;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px var(--sombra);
}

/* Submenus (começam escondidos) */
.sm {
  display: none;
  width: 100%;
}

/* Card de conteúdo */
.c {
  width: 100%;
  max-width: 940px;
  margin: 5px 10px 0 10px;
  padding: 24px 22px 26px 22px;
  background-color: var(--branco);
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--sombra);
}

.just {
  text-align: justify;
}

/* Rodapé */
footer {
  background-color: var(--cor-sec);
  color: var(--branco);
  text-align: center;
  padding: 12px 10px;
  font-size: 0.95em;
}

/* Tipografia */
h1 {
  font-size: 2.2em;
  color: var(--cor-sec);
  margin: 0 0 8px 0;
  line-height: 1.25;
}

h2 {
  font-size: 1.5em;
  color: var(--cor-sec);
  margin-top: 22px;
  margin-bottom: 6px;
  line-height: 1.3;
}

h2 i {
  margin-right: 6px;
  color: var(--cor-dest);
}

p {
  font-size: 1.03em;
  margin: 6px 0;
}

.tagline {
  font-size: 1.05em;
  color: var(--texto-sec);
  margin-bottom: 14px;
}

/* CTAs internos */
.cta-container {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-btn {
  border: none;
  border-radius: 5px;
  padding: 12px 20px;
  background-color: var(--cor-dest);
  color: var(--branco);
  font-size: 1em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px var(--sombra);
  text-decoration: none;
  line-height: 1.4;
}

.cta-btn:hover {
  background-color: #0063cc;
}

.cta-btn-sec {
  background-color: transparent;
  border: 1px solid var(--cor-sec);
  color: var(--cor-sec);
  box-shadow: none;
}

.cta-btn-sec:hover {
  background-color: var(--cor-sec);
  color: var(--branco);
}

/* Widget lateral do bot Telegram */
#telegram-bot-widget {
  position: fixed;
  top: 20%;
  right: 0;
  z-index: 9999;
  width: 320px;
  max-width: 90vw;
  background: #f9f9f9;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
}

.telegram-bot-header {
  background: #0088cc;
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px 0 0 0;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.telegram-bot-body {
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
}

.telegram-bot-footer {
  padding: 0 12px 12px 12px;
}

.telegram-bot-link {
  display: inline-block;
  background: #0088cc;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 2px 6px var(--sombra);
}

.telegram-bot-link:hover {
  background: #0063cc;
}

.telegram-bot-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

/* Responsivo */
@media (max-width: 768px) {
  header img {
    max-width: 210px;
  }

  .mb,
  .sb {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .c {
    padding: 18px 14px 20px 14px;
  }

  h1 {
    font-size: 1.9em;
  }

  h2 {
    font-size: 1.3em;
  }

  p {
    font-size: 0.98em;
  }

  /* Widget Telegram ajustado para mobile */
  #telegram-bot-widget {
    top: auto;
    bottom: 10px;
    right: 10px;
    width: calc(100% - 20px);
    border-radius: 10px;
  }
}
