/* =========================================
   LAYOUT.CSS — Topbar + Header (FIXED, sem “estouro”)
   ========================================= */

/* Alturas controladas por variável (ajuste fino se precisar) */
:root{
  --topbar-h: 64px;
  --header-h: 84px;
}

@media (max-width: 600px){
  :root{
    --topbar-h: 44px;
    --header-h: 64px;
  }
}

@media (max-width: 768px){
  body{
    padding-bottom: 72px;
  }
}

/* Base de segurança contra “vazamento” */
html, body{
  margin: 0;
  padding: 0;
  width: 100%;
}

body{
  overflow-x: hidden;
  /* Compensa os dois blocos fixos no topo */
  padding-top: calc(var(--topbar-h) + var(--header-h));
}

/* =========================
   TOPBAR (faixa roxa fixa)
   ========================= */
.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  height: var(--topbar-h);
  width: 100%;
  background: var(--brand-1);

  display: flex;
  align-items: center;
}

.topbar-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topbar-left,
.topbar-right{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* “bolinhas” douradas */
.topbar-pill{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--brand-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Telefone */
.topbar-phone{
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
}

/* Hover */
.topbar-pill:hover{ filter: brightness(0.95); }
.topbar-phone:hover{ opacity: .9; }

.topbar-pill{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--brand-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-img{
  width: 18px;     /* ajuste para 16–20 conforme o ícone */
  height: 18px;
  object-fit: contain;
  display: block;
}


/* =========================
   HEADER (nav branco fixo)
   ========================= */
/* HEADER (nav branco fixo) */
.site-header{
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 9998;

  height: var(--header-h);   /* <-- AQUI */
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);

  display: flex;
  align-items: center;
}


/* Conteúdo interno do header */
.header-row{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0; /* a altura vem de --header-h */
}

/* Se quiser “respiro” interno como no template */
.site-header .container{
  padding-top: 14px;
  padding-bottom: 14px;
}



/* Logo */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img{
  max-height: 80px;
  width: auto;
}

/* NAV */
.nav{
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--brand-1);
}

.nav a{
  font-weight: 500;
}

/* Botão “Contato” */
.nav-cta{
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
}

/* Responsivo: esconde nav no mobile */
@media (max-width: 820px){
  .nav{ display: none; }

  
}

@media (max-width: 820px){
  .brand img{
    max-height: 48px;
  }
}

.topbar-img{
  width: 25px;      /* aumente aqui */
  height: 40px;     /* aumente aqui */
  object-fit: contain;
  display: block;
  
}
.authority-photo img{
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}


/* =============== MENU MOBILE =============== */
.nav-toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
  align-items:center;
  justify-content:center;
  gap: 5px;
  flex-direction: column;
  cursor:pointer;
}

.nav-toggle span{
  width: 18px;
  height: 2px;
  background: rgba(0,0,0,.72);
  display:block;
  border-radius: 2px;
}

@media (max-width: 820px){
  .nav-toggle{ display:inline-flex; }
}

/* Overlay */
.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(2px);

  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  padding: 14px;
}

.mobile-menu.is-open{
  opacity: 1;
  pointer-events: auto;
}

/* Painel */
.mobile-menu__panel{
  width: min(520px, 100%);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  margin: calc(var(--topbar-h) + 10px) auto 0;
  border: 1px solid rgba(0,0,0,.08);
}

/* Cabeçalho do painel */
.mobile-menu__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.mobile-menu__logo{
  height: 44px;
  width: auto;
  display:block;
}

.mobile-menu__close{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
  cursor:pointer;
  font-size: 22px;
  line-height: 1;
}

/* Links */
.mobile-menu__nav{
  display:flex;
  flex-direction: column;
}

.mobile-menu__nav a{
  padding: 16px;
  color: #111;
  text-decoration: none;
  border-top: 1px solid rgba(0,0,0,.06);
  font-weight: 600;
}

.mobile-menu__nav a:hover{
  background: rgba(0,0,0,.03);
}

.mobile-menu__nav a.is-cta{
  color: var(--brand-1);
  font-weight: 800;
}
@media (max-width: 820px){
  .header-row{
    justify-content: space-between !important;
    gap: 0;
  }

  .nav-toggle{
    margin-left: 0 !important;
  }

}
.included-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 820px){
  .included-grid{
    grid-template-columns: 1fr;
  }
}

/* ── Mobile extras ── */
@media (max-width: 600px){
  .topbar-pill{
    width: 36px;
    height: 36px;
  }
  .topbar-img{
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 400px){
  .topbar-right{ display: none; }
  .topbar-phone{ font-size: .85rem; }
}
