/* =========================================================
   HEADER BASE
========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.site-header .navbar {
  margin: 0 auto;
  padding: 0.4rem 0;
  background: linear-gradient(90deg, #ffffff 0%, var(--primary) 100%);
}

body {
  padding-top: 40px;
  transition: padding-top 0.28s ease;
}

/* =========================================================
   BRAND
========================================================= */
.brand-logo-img {
  height: 50px;
  object-fit: contain;
}

.brand-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  margin-left: 4px;
}

/* =========================================================
   NAV DESKTOP
========================================================= */
.navbar .nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--background-clip) !important;
  transition: color 0.25s ease, transform 0.25s ease;
}

.navbar .nav-link:hover {
  color: #ffffff !important;
  transform: scale(1.08);
}

.navbar-nav .nav-item {
  padding: 0 20px;
}

@media (min-width: 1800px) {
  .navbar .nav-link {
    font-size: 1.1rem;
  }
}

/* =========================================================
   CTA (DESKTOP + MOBILE)
========================================================= */
.btn-fale-conosco {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-fale-conosco:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* =========================
   HAMBURGER
========================= */
.mobile-hamburger {
  display: none;
  background: transparent;
  border: none;
  padding: 5px;
  cursor: pointer;
  flex-direction: column; 
  gap: 5px; 
  z-index: 2100; 
}

/* REMOVE FOCUS MARGIN */
.mobile-hamburger:focus,
.mobile-hamburger:active {
  outline: none;
  box-shadow: none;
}

/* =========================
   OVERLAY
========================= */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

body.menu-open .mobile-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* PAINEL DO MENU (Lado direito) */
.mobile-menu {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 80%;
  max-width: 320px;
  background: transparent;
  padding: 80px 30px; /* Espaço para o botão fechar */
  box-shadow: 0px 0 0px rgba(0,0,0,0.93);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 3100;
}

/* Quando o menu abre */
body.menu-open .mobile-menu {
  transform: translateX(0);
}

/* Estilo comum para os traços (Hambúrguer e Close) */
.mobile-hamburger span,
.mobile-menu-close span {
  display: block;
  height: 3px;
  background-color: #ffffff; 
  border-radius: 10px;        /* Deixa as pontas arredondadas */
  transition: all 0.3s ease;
}

/* Ajuste específico do Hambúrguer (Header) */
.mobile-hamburger span {
  width: 28px;
  transition: all 0.3s ease;
}

/* Transform hamburger into X when menu opens */
body.menu-open .mobile-hamburger span:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}

body.menu-open .mobile-hamburger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .mobile-hamburger span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

/* Ajuste específico do Botão de Fechar (X) */
.mobile-menu-close {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close span {
  width: 100%;
  position: absolute; /* Necessário para sobrepor e formar o X */
}

/* Formação do X Arredondado */
.mobile-menu-close span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
  opacity: 0; /* Esconde a barra do meio */
}

.mobile-menu-close span:nth-child(3) {
  transform: rotate(-45deg);
}


/* ESTILIZAÇÃO DA LISTA DE LINKS */
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu ul li a {
  text-decoration: none;
  color: #ffffff; /* Cor dos links */
  font-size: 1.3rem;
  font-weight: 600;
  display: block;
  transition: color 0.2s;
}

.mobile-menu ul li a:hover {
  color: var(--primary); /* Ou a cor de destaque do seu site */
}

/* AJUSTE NO BOTÃO FALE CONOSCO DENTRO DO MENU */
.mobile-menu .btn-fale-conosco {
  display: block;
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
}

/* When menu open, prevent scroll */
body.menu-open { overflow: hidden; touch-action: none; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 767px) {

  .desktop-only,
  .collapse.navbar-collapse {
    display: none !important;
  }

  .mobile-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* =========================================================
   TELAS GRANDES (>= 1920px) — Header / Navbar
   Fontes e navbar maiores para monitores 21"+
========================================================= */
@media (min-width: 1920px) {
  body {
    padding-top: 60px;
  }


  .brand-logo-img {
    height: 65px;
  }

  .brand-sub {
    font-size: 1.05rem;
    margin-left: 6px;
  }

  .navbar .nav-link {
    font-size: 1.1rem;
  }

  .navbar-nav .nav-item {
    padding: 0 35px;
  }

  .btn-fale-conosco {
    padding: 0.85rem 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
  }
}
