/* CENTRAL MENU & NAVIGATION STYLES */

/* Sticky Header Base */
header#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

header#main-header.scrolled {
  padding: 0.75rem 0;
}

/* Nav Logo styling */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary, #0f172a);
}

.nav-logo svg {
  width: 40px;
  height: 40px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo:hover svg {
  transform: rotate(-10deg) scale(1.1);
}

.logo-text {
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--primary, #0f172a);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition, all 0.4s ease);
}

.logo-text br {
  display: block;
}

@media (min-width: 640px) {
  .logo-text {
    font-size: 1.25rem;
  }
  .logo-text br {
    display: none;
  }
}

/* Desktop Navigation Menu */
.nav-menu {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--primary-light, #1e293b);
  opacity: 0.85;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 0.25rem 0;
  font-size: 0.938rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent, #0d9488);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--accent, #0d9488);
}

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

.nav-cta {
  display: none;
}

/* Hamburger menu toggle button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1006;
  background: none;
  border: none;
  outline: none;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--primary, #0f172a);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Drawer Overlay Background */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1004;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile Drawer Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-light, #ffffff);
  box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(15, 23, 42, 0.1));
  z-index: 1005;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 7rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu .nav-link {
  font-size: 1.125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

/* Bottom Sticky Quick Call/WhatsApp Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 990;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  padding: 0.625rem 1rem;
  gap: 0.75rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-sticky-bar.visible {
  transform: translateY(0);
}

.mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.938rem;
  color: #f8fafc;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-btn-call {
  background: linear-gradient(135deg, var(--secondary, #1e40af), #1e3a8a);
}

.mobile-btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.mobile-btn svg {
  width: 20px;
  height: 20px;
}

/* Global Branded WhatsApp Button Style */
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35) !important;
  border: none !important;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ee274 0%, #16a090 100%) !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}


/* Media Queries for Navigation Grid */
@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
  .nav-cta {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  body.has-mobile-bar {
    padding-bottom: 70px !important;
  }
  .mobile-sticky-bar {
    display: grid !important;
  }
}

/* Dropdown Menu Styles (Desktop) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0.75rem 0;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--primary-light, #1e293b);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.25s ease;
  text-align: left;
}

.dropdown-menu a:hover {
  background-color: rgba(13, 148, 136, 0.06);
  color: var(--accent, #0d9488);
  padding-left: 1.5rem;
}

/* Mobile Dropdown Accordion Styles */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mobile-dropdown-toggle {
  background: none;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-size: 1.125rem;
  padding: 0.5rem 0;
  font-weight: 600;
  color: var(--primary-light, #1e293b);
  opacity: 0.85;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.mobile-dropdown-toggle:hover,
.mobile-dropdown-toggle.active {
  opacity: 1;
  color: var(--accent, #0d9488);
}

.mobile-dropdown-toggle.active .dropdown-icon {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  background: rgba(241, 245, 249, 0.6);
  border-radius: 8px;
  margin-top: 0.5rem;
}

.mobile-dropdown-menu a {
  font-size: 0.95rem;
  padding: 0.625rem 1rem;
  color: var(--primary-light, #1e293b);
  opacity: 0.8;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.mobile-dropdown-menu a:last-child {
  border-bottom: none;
}

.mobile-dropdown-menu a:hover {
  opacity: 1;
  color: var(--accent, #0d9488);
  padding-left: 1.25rem;
}

/* Fix WhatsApp & Call icon color overrides on all header/hero/sticky action buttons */
.btn-whatsapp svg,
.mobile-btn-whatsapp svg {
    fill: currentColor !important;
    stroke: none !important;
}

.btn-call svg,
.btn-outline svg,
.mobile-btn-call svg {
    stroke: currentColor !important;
    fill: none !important;
}

