:root {
  --hs-blue: #0b3d91;
  --hs-blue-2: #0d6efd;
  --hs-bg: #f5f7fb;
  --hs-text: #0f172a;
}

body {
  background: var(--hs-bg);
  color: var(--hs-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "EB Garamond", sans-serif;
}

/* HEADER */
header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 18px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
}

header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
    font-size: 26px;
    font-weight: 700;
}
.logo span { color: #d30000; }

.logo a {
    text-decoration: none !important;
    color: inherit;
}

.logo-img {
  height: 80px;
  width: auto;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}

nav.menu {
  display: flex;
  gap: 18px;
  align-items: center;
}

nav.menu a {
  text-decoration: none;
  color: var(--hs-text);
  font-weight: 600;
  opacity: 0.9;
}

nav.menu a:hover {
  opacity: 1;
}

.btn-highlight {
  background: var(--hs-blue-2);
  color: white !important;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
}

/* Título estilo “anton” */
.anton-regular {
  font-family: "Anton", sans-serif;
  letter-spacing: 0.4px;
}

/* Cards de gráficos */
.chart-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.chart-card .card-header {
  background: linear-gradient(
    90deg,
    var(--hs-blue) 0%,
    var(--hs-blue-2) 100%
  );
  color: white;
  border: 0;
}

.kpi {
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.kpi .label {
  opacity: 0.75;
  font-weight: 700;
}

.kpi .value {
  font-size: 1.4rem;
  font-weight: 900;
}

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 18px 80px;
}

.subtle {
  opacity: 0.75;
  font-weight: 600;
}

@media (max-width: 768px) {
  nav.menu {
    display: none;
  }

  /* igual sua ideia de mobile */
  header .inner {
    padding: 12px 14px;
  }
}

/* ================= HEADER + IDIOMA ================= */

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu a {
  text-decoration: none;
  font-weight: 600;
  color: var(--hs-text);
}

.btn-highlight {
    background: linear-gradient(135deg, #d32f2f, #ff5252) !important;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.3s ease;
}

/* ---------- Language Switcher ---------- */

.language-switcher {
  position: relative;
}

.flag-current {
  width: 32px;
  height: 25px;
  border-radius: 4px;
  cursor: pointer;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  display: none;
  gap: 8px;
  z-index: 1000;
}

.language-dropdown.active {
  display: flex;
}

.flag-option,
.flag-option-mobile {
  width: 32px;
  height: 25px;
  cursor: pointer;
  border-radius: 4px;
}

/* ---------- Mobile Menu ---------- */

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #222;
  margin: 5px 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  transition: right .3s ease;
  z-index: 1000;
}

.mobile-menu-overlay.active {
  right: 0;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  z-index: 999;
}

.mobile-menu-backdrop.active {
  display: block;
}

.mobile-menu-items {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}
