:root{
  --bg: #f3f4f6;          /* cinza bem claro */
  --card: #ffffff;
  --text: #111827;        /* quase preto */
  --muted: #6b7280;       /* cinza texto */
  --line: #e5e7eb;        /* borda */
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 16px;
  --accent: #4f46e5;      /* lilás/azulado suave */
  --accent2: #06b6d4;     /* ciano */
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container-site{
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

/* =========================
   HEADER
   ========================= */
.site-top{
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 14px;
}

.brand{
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0; /* evita estourar em telas pequenas */
}

.brand-text{
  min-width: 0;
}

.brand-text strong{
  display:block;
  line-height: 1.1;
  font-size: 15.5px;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text small{
  display:block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* (novo) logo real (logo.png) */
.brand-logo-img{
  height: 42px;
  width: auto;
  display: block;
  border-radius: 12px;
  /* sombra leve pra dar “presença” */
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
}

/* (antigo) caso você ainda use o "M" em algum lugar */
.brand-logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 20px rgba(79,70,229,.25);
}

.btn-soft{
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn-soft:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  border-color: rgba(17,24,39,.12);
}

/* =========================
   NAV
   ========================= */
.site-nav{
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav-inner{
  display: flex;
  gap: 10px;
  padding: 10px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.nav-inner::-webkit-scrollbar{ display:none; } /* Chrome/Safari */

.nav-link{
  text-decoration: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.nav-link:hover{
  color: var(--text);
  background: #f9fafb;
  border-color: var(--line);
  transform: translateY(-1px);
}

.nav-link.active{
  color: var(--text);
  background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(6,182,212,.12));
  border-color: rgba(79,70,229,.25);
}

/* =========================
   CONTENT
   ========================= */
.site-main{
  flex: 1;
  padding: 24px 0 34px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.h1{
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: -.2px;
}

.p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.grid{
  display: grid;
  gap: 14px;
}

.grid-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 820px){
  .grid-2{ grid-template-columns: 1fr; }
  .brand-logo-img{ height: 38px; }
  .brand-text strong{ font-size: 14.8px; }
}

/* =========================
   NOTICES
   ========================= */
.notice{
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  border-radius: 14px;
}

.notice.warn{
  border-color: rgba(245,158,11,.35);
  background: rgba(245,158,11,.08);
}

/* =========================
   FOOTER
   ========================= */
.site-footer{
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner{
  padding: 16px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  flex-wrap: wrap;
}

.dot{ opacity: .6; }
.muted{ opacity: .9; }
