/* ==========================================
   NAVIGATION HEADER (PREMIUM SOLID WHITE BAR)
   Elite Serenity Infra
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(3, 54, 34, 0.08);
  box-shadow: 0 4px 20px -5px rgba(3, 54, 34, 0.08);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.header-scrolled,
.header-scrolled {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(3, 54, 34, 0.1) !important;
  box-shadow: 0 8px 28px -6px rgba(3, 54, 34, 0.12) !important;
}

.header.menu-open {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(3, 54, 34, 0.08) !important;
}

/* Nav links crisp high-contrast styling */
.header .nav-link {
  color: #033622 !important;
  font-weight: 600;
  text-shadow: none;
}

.header .nav-link:hover,
.header .nav-link.active,
.header .nav-item.open > .nav-link {
  color: var(--accent) !important;
}

.header .hamburger-line {
  background-color: #033622 !important;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 94px;
  gap: 24px;
}

/* ==========================================
   CLEAN BRAND LOGO (NO BOX / NO TAB / NO BORDER)
   ========================================== */
.logo-link,
.brand-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-width: 0 !important;
  z-index: 1002;
  transition: transform 0.25s ease;
}

.logo-link:hover,
.brand-tab:hover {
  transform: scale(1.04);
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.brand-tab-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.logo-img {
  height: 74px;
  max-height: 78px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  transition: transform 0.25s ease;
}

@media (max-width: 1024px) {
  .nav-wrapper {
    height: 82px;
  }
  .logo-img {
    height: 60px;
    max-height: 64px;
    max-width: 260px;
  }
}

@media (max-width: 576px) {
  .nav-wrapper {
    height: 74px;
  }
  .logo-img {
    height: 48px;
    max-height: 52px;
    max-width: 210px;
  }
}

/* ==========================================
   NAVIGATION MENU & LINKS (PROPORTIONATELY INCREASED)
   ========================================== */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: #374151;
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.15s ease;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active,
.nav-item.open > .nav-link {
  color: var(--primary);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  transition: transform 0.2s ease, stroke 0.15s ease;
}

.nav-item:hover .nav-chevron,
.nav-item.open .nav-chevron {
  transform: rotate(180deg);
  stroke: var(--accent);
}

/* Modern hover dropdown menu with zero-gap hover bridge */
.nav-dropdown {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  border: 1px solid rgba(3, 54, 34, 0.1);
  border-radius: 16px;
  box-shadow: 0 16px 40px -8px rgba(3, 54, 34, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  padding: 12px;
  min-width: 310px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1010;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 1025px) {
  .nav-menu:hover .nav-item:not(:hover) .nav-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(8px) !important;
    transition: none !important;
  }
  .nav-menu:hover .nav-item:not(:hover) .nav-chevron {
    transform: rotate(0deg) !important;
    transition: none !important;
  }
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: 12px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
  background-color: var(--primary-light);
  transform: translateX(2px);
}

.dropdown-link:hover .dropdown-link-title,
.dropdown-link:focus-visible .dropdown-link-title {
  color: var(--primary);
}

.dropdown-link:hover .dropdown-link-desc,
.dropdown-link:focus-visible .dropdown-link-desc {
  color: #334155;
}

.dropdown-link.active .dropdown-link-title {
  color: var(--accent);
  font-weight: 700;
}

.dropdown-link-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: #111827;
  margin-bottom: 3px;
  transition: color 0.15s ease;
}

.dropdown-link-desc {
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Call Sales Phone Pill Button */
.btn-pill-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #d89b2b 0%, var(--accent) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(196, 146, 43, 0.35);
  white-space: nowrap;
}

.btn-pill-phone:hover {
  background: linear-gradient(135deg, #e0ad42 0%, #ad7d1e 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(196, 146, 43, 0.45);
}

.btn-pill-phone svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Header Icon Action Buttons */
.btn-icon-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.btn-icon-header svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-header-call {
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid rgba(3, 54, 34, 0.22);
  box-shadow: 0 2px 8px rgba(3, 54, 34, 0.08);
}

.btn-header-call svg {
  width: 22px;
  height: 22px;
}

.btn-header-call:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(3, 54, 34, 0.25);
}

.btn-header-whatsapp {
  background: #ffffff;
  color: #128c7e;
  border: 1.5px solid rgba(37, 211, 102, 0.4);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.12);
}

.btn-header-whatsapp svg {
  width: 22px;
  height: 22px;
}

.btn-header-whatsapp:hover {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-icon-header:hover svg {
  transform: scale(1.08);
}

/* Mobile CTA contact buttons */
.mobile-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
}

.btn-mobile-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-mobile-call {
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-mobile-wa {
  background: #25D366;
  color: #ffffff;
  border: 1.5px solid #25D366;
}

/* Pill Action Buttons (Scaled Proportionately) */
.btn-pill-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 9999px;
  border: 1.5px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  font-size: 1.025rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-pill-login:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-pill-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #d3a035 0%, var(--accent) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.025rem;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(196, 146, 43, 0.3);
}

.btn-pill-start:hover {
  background: linear-gradient(135deg, #e0ad42 0%, #ad7d1e 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(196, 146, 43, 0.45);
}

.nav-mobile-cta {
  display: none;
}

/* Mobile Hamburger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive Header */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 72px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 20px;
    transition: var(--transition-normal);
    box-shadow: 0 10px 25px -3px rgba(3, 54, 34, 0.1);
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-cta {
    display: none;
  }
  
  .nav-mobile-cta {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
  }
  
  .nav-mobile-cta .btn-pill-login,
  .nav-mobile-cta .btn-pill-start {
    width: 100%;
    text-align: center;
  }

  .nav-item {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-item .nav-link {
    width: 100%;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 600;
  }
  
  .nav-dropdown {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: 1px solid var(--border-color);
    background: var(--bg-base);
    border-radius: 12px;
    width: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin-top: 8px;
    padding: 8px;
  }

  .nav-dropdown::before {
    display: none;
  }
  
  .nav-item.open .nav-dropdown {
    display: flex;
    flex-direction: column;
  }
}
