/* =====================================================
   COMPONENTS.CSS — APP PEREGRINATUS
   Header · Navegação · Footer · Upgrade Plano
   Mobile First | Consistente com o sistema visual
===================================================== */

/* =====================================================
   COMPONENTES GLOBAIS (HEADER, NAV, FOOTER, UPGRADE)
   Scope: body (evita conflito com Blocksy)
===================================================== */

/* =========================
   HEADER
========================= */
body .app-header {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  padding: .8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 56px;
  border-bottom: 1px solid #e6ecf2;
}


body .app-header .app-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2f5d8c;
  text-decoration: none;
}

body .app-header .app-header-actions {
  display: flex;
  gap: .6rem;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.app-logo-img {
  height: 34px;
  width: auto;
}

.app-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2f5d8c;
  letter-spacing: .5px;
}
.app-brand:hover {
  opacity: .85;
}

/* =========================
   BOTÕES HEADER
========================= */

body .app-header .header-btn {
  background: #f6f8fb;
  border-radius: 999px;
  padding: .4rem .8rem;
  font-size: .75rem;
  color: #2f5d8c;
  text-decoration: none;
  font-weight: 600;
}

body .app-header .header-btn:hover {
  background: #e2e6ec;
}

/* =========================
   NAVEGAÇÃO
========================= */

body .app-nav {
  background: #ffffff;
  border-top: 1px solid #e2e6ec;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 200;
}

body .app-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: .4rem 0;
  margin: 0;
  list-style: none;
}

body .app-nav li {
  text-align: center;
}

body .app-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: .7rem;
  color: #555555;
  text-decoration: none;
  gap: .2rem;
}

body .app-nav a.active,
body .app-nav a:hover {
  color: #2f5d8c;
}

body .app-nav .icon {
  width: 22px;
  height: 22px;
  color: #2f5d8c;
}

/* =========================
   FOOTER
========================= */

body .app-footer {
  background: #ffffff;
  border-top: 1px solid #e2e6ec;
  padding: .8rem .5rem;
  text-align: center;
  font-size: 1rem; /* maior e legível */
  color: #555555;
  margin-top: 2rem;
}

/* NAV */

.app-footer .app-nav ul {
  list-style: none;
  padding: 0;          /* remove deslocamento */
  margin: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

/* ITENS */

.app-footer .app-nav li {
  flex: 1;
}

/* LINKS */

.app-footer .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  font-size: .85rem;
  color: #2f5d8c;
  text-decoration: none;
}

.app-footer .nav-item span {
  font-size: .75rem;
}

/* hover */

.app-footer .nav-item:hover {
  color: #1f466b;
}

/* texto copyright */

.app-footer .footer-copy {
  margin-top: .5rem;
  font-size: .75rem;
  color: #777;
}

.app-footer {
  position: sticky;
  bottom: 0;
  z-index: 100;
}
/* =========================
   UPGRADE PLANO / PREMIUM
   (scoped aos wrappers)
========================= */

body.single-caminhos .caminho-wrapper .upgrade-box,
body.single-etapas .etapa-wrapper .upgrade-box,
body.single-fornecedores .fornecedor-wrapper .upgrade-box,
body .upgrade-box {
  background: linear-gradient(135deg,#fff2c2,#ffe08a);
  border-radius: 1rem;
  padding: 1.4rem;
  text-align: center;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

body.single-caminhos .upgrade-box h3,
body.single-etapas .upgrade-box h3,
body.single-fornecedores .upgrade-box h3,
body .upgrade-box h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
  color: #1e2a3a;
}

body.single-caminhos .upgrade-box p,
body.single-etapas .upgrade-box p,
body.single-fornecedores .upgrade-box p,
body .upgrade-box p {
  font-size: .9rem;
  margin-bottom: 1rem;
}

body.single-caminhos .upgrade-box .btn,
body.single-etapas .upgrade-box .btn,
body.single-fornecedores .upgrade-box .btn,
body .upgrade-box .btn {
  background: #2f5d8c;
  color: #ffffff;
}

/* =========================
   BADGE PREMIUM
========================= */

body .badge-premium {
  background: #ffd700;
  color: #1e2a3a;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
}

/* =========================
   MENU MODAL
========================= */

body .menu-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  z-index: 999;
}

body .menu-modal.active {
  display: block;
}

body .menu-modal-content {
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 1.2rem;
  position: absolute;
  bottom: 0;
  width: 100%;
}

body .menu-modal-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body .menu-modal-content li {
  padding: .8rem 0;
  border-bottom: 1px solid #e2e6ec;
}

body .menu-modal-content a {
  text-decoration: none;
  color: #2f5d8c;
  font-weight: 600;
}
.modal-filtros.active {
  display: flex;
}

/* =========================
   RESPONSIVE (TABLET+)
========================= */

@media (min-width: 768px) {

  body .app-nav {
    position: static;
    border-top: none;
    border-bottom: 1px solid #e2e6ec;
  }

  body .app-nav ul {
    justify-content: center;
    gap: 2rem;
  }

  body .app-nav a {
    flex-direction: row;
    gap: .4rem;
    font-size: .85rem;
  }

  body .upgrade-box {
    max-width: 600px;
    margin: 2rem auto;
  }
  /* =========================
   BOTÕES CTA
========================= */
  .btn-cta {
  background: #f59e0b;
  color: #1f2937;
}

.btn-cta:hover {
  background: #d97706;
  color: #ffffff;
}

}
