/* =========================================================
   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;
}

/* =========================================================
   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,
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
  color: #ffffff !important;
  transform: scale(1.08);
}

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

/* =========================================================
   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; 
}

.mobile-hamburger:focus,
.mobile-hamburger:active {
  outline: none;
  box-shadow: none;
}

/* =========================================================
   OVERLAY + MENU MOBILE
========================================================= */
.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;
}

.mobile-menu {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 80%;
  max-width: 320px;
  background: transparent;
  padding: 80px 30px;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 3100;
}

body.menu-open .mobile-menu {
  transform: translateX(0);
}

.mobile-hamburger span,
.mobile-menu-close span {
  display: block;
  height: 3px;
  background-color: #ffffff;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mobile-hamburger span {
  width: 28px;
  transition: all 0.3s ease;
}

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);
}

.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;
}

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

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

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

.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;
  font-size: 1.3rem;
  font-weight: 600;
  display: block;
  transition: color 0.2s ease;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active,
.mobile-menu ul li a[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.mobile-menu .btn-fale-conosco {
  display: block;
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
}

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;
  }

  .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;
  }
}
