/* assets/css/navbar.css */

/* ===== DESKTOP TOP BAR ===== */
.desktop-top-bar {
  width: 100%;
  height: 2.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

@media (min-width: 1280px) {
  .desktop-top-bar {
    display: flex;
  }
}

.top-bar-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-icon {
  margin: 0.25rem 0.5rem 0 0.5rem;
  width: 20px;
  height: 20px;
}

.phone-number {
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

/* ===== MAIN NAVBAR ===== */
.main-navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

@media (min-width: 1280px) {
  .main-navbar {
    top: 2.5rem;
  }
}

/* Logo */
.navbar-logo {
  flex-shrink: 0;
  transition: all 0.3s ease;
  display: block;
  flex: 0.25;
}

@media (min-width: 640px) {
  .navbar-logo {
    width: 9rem;
  }
}

@media (min-width: 768px) {
  .navbar-logo {
    width: 10rem;
  }
}

@media (max-width: 1279px) {
  .navbar-logo {
    opacity: 0;
    transform: translateY(-0.5rem);
    pointer-events: none;
  }
}

.navbar-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Desktop Navigation Links */
.desktop-nav-links {
  display: none;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
}

@media (min-width: 1280px) {
  .desktop-nav-links {
    display: flex;
  }
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.875rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1280px) {
  .nav-list {
    font-size: 1rem;
  }
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.insights-link {
  border: 2px solid #fcd34d;
  padding: 0.125rem 0.5rem;
  border-radius: 0.125rem;
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  z-index: 50;
  padding: 0.5rem;
  display: block;
}

@media (min-width: 1280px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-nav-container {
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-phone-section {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  border: 2px solid;
  background-color: rgba(230, 241, 239, 0.6);
  backdrop-filter: blur(4px);
}

.mobile-phone-icon {
  margin: 0.25rem 0.5rem 0 0.5rem;
  width: 20px;
  height: 20px;
}

.mobile-phone-number {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) {
  .mobile-phone-number {
    font-size: 1.25rem;
  }
}

.mobile-menu-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  color: white;
  font-weight: 500;
  min-width: 90px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.mobile-menu-btn:hover {
  opacity: 0.9;
}

.mobile-menu-btn i {
  width: 20px;
  height: 20px;
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-container {
  position: fixed;
  right: 0.75rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  bottom: 7rem;
}

@media (min-width: 1280px) {
  .whatsapp-container {
    bottom: 1.25rem;
  }
}

/* WhatsApp Message Bubble */
.whatsapp-message {
  position: absolute;
  right: 60px;
  bottom: -0.25rem;
  z-index: 50;
  display: none;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.message-bubble-wrapper {
  position: relative;
}

.message-bubble {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 2px solid;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  font-weight: 400;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s;
}

.message-bubble:hover {
  transform: scale(1.02);
}

.wave-emoji {
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.message-text {
  font-weight: 500;
}

.message-close {
  margin-left: 0.75rem;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  transition: color 0.2s;
}

.message-close:hover {
  color: #374151;
}

.message-arrow {
  position: absolute;
  top: 5px;
  right: -7px;
  width: 1rem;
  height: 1rem;
  transform: rotate(-50deg);
  border-right: 2px solid;
  border-bottom: 2px solid;
}

/* WhatsApp Icon */
.whatsapp-icon {
  display: block;
  transition: transform 0.2s;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
}

.whatsapp-icon img {
  width: 50px;
  height: 50px;
  display: block;
}

/* ===== MOBILE NAVIGATION MODAL ===== */
.mobile-nav-modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 85%;
  z-index: 50;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 80%;
}

@media (min-width: 768px) {
  .mobile-nav-modal {
    width: 50%;
  }
}

@media (min-width: 1280px) {
  .mobile-nav-modal {
    display: none;
  }
}

.mobile-nav-modal.active {
  transform: translateY(-5.5rem);
}

.modal-close-btn {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  z-index: 20;
  border-radius: 9999px;
  padding: 0.25rem;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
  transition: opacity 0.2s;
}

.modal-close-btn:hover {
  opacity: 0.8;
}

.modal-close-btn i {
  width: 25px;
  height: 25px;
}

.modal-nav-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0 2.5rem;
}

.modal-nav-link {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  cursor: pointer;
  border-bottom: 1px solid white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.modal-nav-link p {
  margin: 0;
  transition: color 0.3s ease;
}

.insights-modal-link p {
  border: 1px solid #fcd34d;
  padding: 0.125rem 0.5rem;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 1279px) {
  .desktop-nav-links {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  .mobile-bottom-nav {
    display: none !important;
  }

  .mobile-nav-modal {
    display: none !important;
  }
}

/* ===== SMOOTH SCROLLING ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

@media (max-width: 1279px) {
  html {
    scroll-padding-top: 80px;
  }
}

/* ===== PREVENT BODY SCROLL WHEN MODAL OPEN ===== */
body.modal-open {
  overflow: hidden;
}
