/* ========================= */
/*         NAVBAR            */
/* ========================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 5%;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(194, 138, 34, 0.12);

  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 9px 7%;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 34px rgba(80, 55, 18, 0.08);
}

/* LOGO / MARCA */


.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #111;
  text-decoration: none;
}

.nav-logo-img {
  width: auto;
  height: 92px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nav-brand-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.nav-brand-text span {
  color: #b8892d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* LINKS */

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  color: #151515;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: #b8892d;
  transition: 0.25s ease;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a.nav-active {
  color: #b8892d;
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a.nav-active::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, #e0b85a, #9f6f19) !important;
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 26px rgba(159, 111, 25, 0.24);
  transition: all 0.25s ease !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(159, 111, 25, 0.32) !important;
  color: #fff !important;
}

/* HAMBURGER */

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1200;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #151515;
  border-radius: 99px;
  transition: 0.3s ease;
}

/* MOBILE */

@media (max-width: 980px) {
  .navbar {
    height: 78px;
    padding: 8px 20px;
  }

  .navbar.scrolled {
    height: 72px;
    padding: 7px 20px;
  }

  .nav-brand {
    gap: 8px;
    max-width: calc(100% - 60px);
  }

  .nav-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
  }

  .nav-brand-text {
    max-width: 210px;
    overflow: hidden;
  }

  .nav-brand-text strong {
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0.8px;
    white-space: nowrap;
  }

  .nav-brand-text span {
    font-size: 7px;
    line-height: 1.2;
    letter-spacing: 1.2px;
    max-width: 200px;
  }

  .nav-hamburger {
    display: flex;
    flex-shrink: 0;
  }
}

@media (max-width: 520px) {
  .navbar {
    height: 74px;
    padding: 8px 16px;
  }

  .nav-logo-img {
    width: 36px;
    height: 36px;
  }

  .nav-brand-text strong {
    font-size: 13px;
  }

  .nav-brand-text span {
    font-size: 6.5px;
    max-width: 160px;
  }
}
/* =====================================================
   MENU MOBILE FUNCIONANDO
   ===================================================== */

@media (max-width: 768px) {

  .nav-hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1201;
  }

  .nav-hamburger span {
    width: 26px;
    height: 2px;
    background: #151515;
    border-radius: 999px;
    transition: 0.3s ease;
  }

  .nav-links {
    position: fixed !important;

    top: 76px;
    right: -100%;

    width: 82vw;
    max-width: 320px;

    height: calc(100vh - 76px);

    background: #fffdf8;

    display: flex !important;
    flex-direction: column;

    align-items: flex-start;
    justify-content: flex-start;

    gap: 24px;

    padding: 34px 28px;

    box-shadow: -10px 0 40px rgba(0,0,0,.12);

    transition: right .35s ease;

    z-index: 1200;
  }

  .nav-links.open {
    right: 0 !important;
  }

  .nav-links a {
    width: 100%;
    display: block;
    font-size: 18px !important;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  /* ANIMAÇÃO X */

  .nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}