/* ============================================================
   HEADER & NAVBAR STYLES
   File: public/Assets/css/navbar.css
   ============================================================ */

/* Top Info Bar with #005d6e background and white text/icons */
.site-topbar {
  background-color: #005d6e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  color: #ffffff;
  padding: 8px 0;
  font-weight: 500;
}

.topbar-info {
  gap: 22px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  font-weight: 500;
}

.topbar-icon {
  color: #ffffff;
  flex-shrink: 0;
}

.topbar-item a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.topbar-item a:hover {
  color: #ffffff;
  opacity: 0.85;
}

/* Social media icons container */
.topbar-socials {
  gap: 8px;
}

/* Social icons with circular badges and white icons */
.topbar-social-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.25s ease;
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.topbar-social-btn:hover {
  transform: translateY(-2px) scale(1.08);
  background-color: #ffffff;
  color: #005d6e !important;
  border-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.text-teal-light {
  color: #00d2f0 !important;
}

.topbar-link {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.topbar-link:hover {
  color: #00d2f0;
  opacity: 1;
}

.topbar-emergency-badge {
  background: rgba(220, 53, 69, 0.25);
  border: 1px solid rgba(255, 107, 107, 0.5);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.topbar-emergency-badge:hover {
  background: #dc3545;
  color: #ffffff;
  border-color: #dc3545;
  transform: scale(1.03);
}

.emergency-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ff4757;
  display: inline-block;
  box-shadow: 0 0 8px #ff4757;
  animation: emergencyBlink 1.2s infinite ease-in-out;
}

@keyframes emergencyBlink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(0.8);
  }
}

/* Main Site Navbar */
.site-navbar-main {
  background-color: #ffffff;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 12px rgba(14, 49, 70, 0.05);
}

.brand-logo-link {
  text-decoration: none;
}

.brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name-group {
  display: flex;
  flex-direction: column;
}

.brand-main-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  color: #0e3146;
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.brand-sub-title {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #728a99;
  margin-top: 1px;
}

/* Center Links */
.navbar-links-center {
  gap: 28px;
}

.nav-menu-item {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #2b4352;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-menu-item:hover {
  color: #008299;
}

.nav-menu-item.nav-item-active {
  color: #005d6e !important;
  font-weight: 700;
}

/* Book Appointment CTA Button (New Color & Icon) */
.btn-book-appointment {
  background: linear-gradient(135deg, #008fa8 0%, #005d6e 100%);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 93, 110, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-book-appointment:hover {
  background: linear-gradient(135deg, #007c93 0%, #004d5b 100%);
  box-shadow: 0 6px 18px rgba(0, 93, 110, 0.4);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-leading-icon {
  font-size: 14px;
}

/* Mobile Hamburger Toggler */
.navbar-mobile-toggler {
  background: #f7fafc;
  border: 1px solid #d9e5ea;
  border-radius: 6px;
  color: #0e3146;
  font-size: 22px;
  padding: 4px 10px;
  cursor: pointer;
  line-height: 1;
}

.nav-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: inherit;
}

.nav-caret {
  font-size: 10px;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  opacity: 0.75;
}

.nav-dropdown-wrap:hover .nav-caret,
.nav-caret-up {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  margin-top: 4px;
  left: 0;
  min-width: 260px;
  max-width: 330px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(14, 49, 70, 0.13), 0 3px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 93, 110, 0.12);
  border-top: 3px solid #005d6e;
  padding: 4px 0;
  z-index: 1060;
  animation: navDropIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 480px;
  overflow-y: auto;
}

@media (min-width: 992px) and (max-width: 1240px) {
  .navbar-links-center {
    gap: 16px;
  }

  .nav-menu-item {
    font-size: 12.8px;
  }

  .btn-book-appointment {
    padding: 8px 15px;
    font-size: 12.8px;
  }
}

/* Safe Hover Bridge */
.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

/* Lines Type Dropdown Item with Divider Lines */
.nav-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: #2b4352;
  text-decoration: none;
  border-radius: 0;
  border-bottom: 1px solid #edf3f6;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.35;
}

.nav-dropdown-item:last-child {
  border-bottom: none;
}

.nav-dropdown-item:hover {
  background-color: #f7fbfc;
  color: #005d6e;
  border-left-color: #009cb7;
  padding-left: 22px;
}

.nav-dropdown-item.nav-dropdown-item-active {
  background-color: #eef7f9;
  color: #005d6e !important;
  border-left-color: #005d6e;
  font-weight: 700;
  padding-left: 22px;
}

/* Scrollbar for large dropdowns */
.nav-dropdown-panel::-webkit-scrollbar {
  width: 5px;
}

.nav-dropdown-panel::-webkit-scrollbar-thumb {
  background: #c3d6de;
  border-radius: 4px;
}

@keyframes navDropIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Drawer */
.mobile-nav-drawer {
  background-color: #ffffff;
  border-top: 1px solid #edf2f5;
  padding: 16px 0 20px;
  animation: fadeInDown 0.2s ease-in-out;
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #2b4352;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  background-color: #f4f8fa;
  color: #008299;
}

.mobile-nav-link-active {
  color: #005d6e !important;
  background-color: #edf7f9;
}

/* Mobile Accordion */
.mob-accordion {
  width: 100%;
}

.mobile-nav-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.mob-caret {
  font-size: 11px;
  transition: transform 0.2s ease;
  color: #728a99;
}

.mob-caret-up {
  transform: rotate(180deg);
  color: #005d6e;
}

.mob-accordion-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 0 6px 14px;
  margin-left: 8px;
  border-left: 2px solid #e2edf1;
}

.mob-sub-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: #476274;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 0;
  border-bottom: 1px solid #edf2f5;
  transition: all 0.18s ease;
}

.mob-sub-link:last-child {
  border-bottom: none;
}

.mob-sub-link:hover {
  background-color: #f4f8fa;
  color: #008299;
  padding-left: 14px;
}

.mob-sub-link.mob-sub-link-active {
  color: #005d6e !important;
  font-weight: 700;
  background-color: #edf7f9;
  border-left: 3px solid #005d6e;
  padding-left: 12px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}