/* ===== HEADER ===== */
.custom-header {
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(46, 24, 9, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  padding: 16px 0;
  border-bottom: 1px solid rgba(46, 24, 9, 0.05);
  transition: all 0.3s ease;
}

/* MANTÉM A MESMA ALTURA */
.custom-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  padding: 16px 0; /* MESMA ALTURA */
}

/* ===== CONTAINER ===== */
.container-fluid {
  max-width: 1320px;
  padding-left: 30px;
  padding-right: 30px;
  display: flex;
  align-items: center;
  width: 100%;
}

/* ===== LOGO ===== */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-text {
  font-size: 22px;
  font-weight: 700;
  color: #2e1809;
  letter-spacing: -0.5px;
  font-family: 'Cormorant Garamond', serif;
}

/* ============================================
   DESKTOP - MENU CENTRALIZADO
   ============================================ */

@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 1;
  }

  .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .navbar-nav .nav-link {
    color: #2e1809 !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
    text-decoration: none;
  }

  .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #572b07;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link.active::after {
    width: 60%;
  }

  .navbar-nav .nav-link:hover {
    color: #572b07 !important;
  }

  /* BOTÃO DESKTOP */
  .desktop-contact-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: #572b07;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(87, 43, 7, 0.2);
    flex-shrink: 0;
    margin-left: 20px;
  }

  .desktop-contact-btn:hover {
    background: #2e1809;
    transform: translateY(-2px);
  }

  .navbar-toggler,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ============================================
   MOBILE - TELA CHEIA
   ============================================ */

@media (max-width: 991.98px) {
  .custom-header {
    padding: 12px 0;
  }

  .custom-header.scrolled {
    padding: 12px 0;
  }

  .brand-text {
    font-size: 18px;
  }

  /* HAMBURGER */
  .navbar-toggler {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    border: none;
    padding: 8px;
    background: transparent;
    margin-left: auto;
    z-index: 1060;
    position: relative;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232e1809' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 26px;
    height: 26px;
    display: block;
  }

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

  /* MENU MOBILE */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #2e1809;
    z-index: 1055;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .mobile-menu-overlay.active {
    display: flex !important;
    opacity: 1;
  }

  .mobile-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px 40px;
    position: relative;
  }

  /* LOGO MOBILE */
  .mobile-logo-wrapper {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
  }

  /* FECHAR */
  .close-menu-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1060;
  }

  .close-menu-btn:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.15);
  }

  /* LINKS MOBILE */
  .mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .mobile-nav-link {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    padding: 12px 24px;
    text-align: center;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    max-width: 280px;
  }

  .mobile-nav-link:hover {
    color: #d6b88d !important;
    background: rgba(214, 184, 141, 0.1);
  }

  /* BOTÃO MOBILE */
  .mobile-contact-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #d6b88d;
    border: none;
    color: #2e1809;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(214, 184, 141, 0.2);
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .mobile-contact-btn:hover {
    transform: translateY(-2px);
    background: #ffffff;
    color: #2e1809;
  }
}