/* ===========================================
   NAVBAR COMPONENT
   =========================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
  /* z-index: 999; */
}
.navbar__inner {
  display: flex;
  align-items: center;
  height: 96px;
  gap: 4px;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 14px;
  flex-shrink: 0;
}
.navbar__logo img { height: 86px; width: auto; max-width: 220px; object-fit: contain; }
.navbar__logo-text .brand-name {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}
.navbar__logo-text .brand-name .teal  { color: var(--teal); }
.navbar__logo-text .brand-name .orange { color: var(--orange); }
.navbar__logo-text .brand-tagline {
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: .5px;
}

/* Nav links */
.navbar__links {
  display: flex;
  align-items: center;
  flex: 1;
  /* overflow: hidden; */
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: #000000;
  white-space: nowrap;
  transition: color var(--t);
}
.nav-link:hover { color: var(--teal); }
.nav-link__arrow {
  transition: transform var(--t);
}
.nav-item:hover .nav-link__arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 9999;
  pointer-events: none;
  /* Small bridge so mouse can move between link and dropdown */
  padding-top: 4px;
  margin-top: -4px;
}
/* Pseudo-element bridge prevents gap from closing dropdown */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 8px;
  background: transparent;
  display: block;
}
.nav-item:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 14.5px;
  color: var(--text-mid);
  white-space: nowrap;
  transition: background .15s, color .15s;
  border-radius: 0;
}
.nav-dropdown a:first-child { border-radius: var(--r-md) var(--r-md) 0 0; padding-top: 12px;}
.nav-dropdown a:last-child  { border-radius: 0 0 var(--r-md) var(--r-md); padding-bottom: 12px;}
.nav-dropdown a:hover { background: var(--teal-light); color: var(--teal);}

/* Grouped hospital item with a side (flyout) submenu */
.nav-dropdown__group { position: relative; }
.nav-dropdown__group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 10px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-dropdown__group-label .ic { color: var(--text-light); }
.nav-dropdown__group:hover > .nav-dropdown__group-label {
  background: var(--teal-light);
  color: var(--teal);
}
.nav-dropdown__group:hover > .nav-dropdown__group-label .ic { color: var(--teal); }
.nav-dropdown__group:first-child > .nav-dropdown__group-label { border-radius: var(--r-md) var(--r-md) 0 0; padding-top: 12px; }
.nav-dropdown__group:last-child  > .nav-dropdown__group-label { border-radius: 0 0 var(--r-md) var(--r-md); padding-bottom: 12px; }

.nav-flyout {
  position: absolute;
  top: -1px;
  left: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
  padding: 6px 0;
  /* bridge so the mouse can travel from label to flyout */
  margin-left: -6px;
  padding-left: 6px;
}
.nav-dropdown__group:hover > .nav-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: all;
}
.nav-flyout a {
  display: block;
  padding: 9px 16px;
  font-size: 14.5px;
  color: var(--text-mid);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-flyout a:hover { background: var(--teal-light); color: var(--teal); }
.nav-flyout__see-all {
  border-top: 1px solid var(--border-light);
  margin-top: 4px;
  padding-top: 10px !important;
  font-weight: 700;
  color: var(--orange) !important;
}

/* On smaller desktop widths where there isn't room to the right,
   flip the flyout to open to the left instead. */
@media (max-width: 1400px) {
  .nav-flyout {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: -6px;
    padding-left: 0;
    padding-right: 6px;
    transform: translateX(6px);
  }
  .nav-dropdown__group:hover > .nav-flyout { transform: translateX(0); }
}

/* Right actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.navbar__ai-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--orange);
  border-radius: var(--r-xl);
  padding: 7px 16px;
  font-size: 14.5px;
  color: var(--orange);
  font-weight: 600;
  background: transparent;
  transition: all var(--t);
  white-space: nowrap;
}
.navbar__ai-btn:hover { background: var(--orange); color: #fff; }
.navbar__ai-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.navbar__lang {
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 6px 26px 6px 10px;
  font-size: 14.5px;
  color: var(--text-mid);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none;
  cursor: pointer;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: all var(--t);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 84px; left: 0; right: 0; bottom: 0;
  background: #fff;
  overflow-y: auto;
  z-index: 999;
  padding: 16px 20px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16.5px;
  font-weight: 500;
  color: #000000;
}
.mobile-nav a:hover { color: var(--teal); }

.mobile-nav__group { border-bottom: 1px solid var(--border); }
.mobile-nav__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  font-size: 16.5px;
  font-weight: 500;
  color: #000000;
  cursor: pointer;
  list-style: none;
}
.mobile-nav__group summary::-webkit-details-marker { display: none; }
.mobile-nav__group[open] summary .ic { transform: rotate(180deg); }
.mobile-nav__group summary .ic { transition: transform var(--t); color: var(--text-light); }
.mobile-nav__sub { padding: 0 0 10px 14px; }
.mobile-nav__sub a {
  border-bottom: none;
  padding: 9px 0;
  font-size: 15px;
  color: var(--text-mid);
  font-weight: 500;
}
.mobile-nav__sub a:first-child { font-weight: 700; color: var(--teal); }

/* Responsive */
@media (max-width: 1180px) {
  .navbar__links  { display: none; }
  .navbar__ai-btn { display: none; }
  .navbar__hamburger { display: flex; }
}
@media (max-width: 480px) {
  .navbar__inner { height: 78px; }
  .navbar__logo img { height: 62px; max-width: 160px; }
}
/* ===========================================
   STICKY "GET CONSULTATION NOW" BUTTON
   A vertical tab fixed to the right edge of the
   viewport, centred top-to-bottom, with a slim
   scroll-progress "scroller" running alongside it
   (rendered inside the Navbar component).
   =========================================== */
.sticky-consult-wrap {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sticky-consult__scroller {
  width: 4px;
  height: 140px;
  border-radius: var(--r-xl);
  background: var(--teal-light);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.sticky-consult__scroller-fill {
  width: 100%;
  height: 0%;
  background: var(--teal);
  border-radius: var(--r-xl);
  transition: height .15s linear;
}
.sticky-consult {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  padding: 18px 10px;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: background var(--t), padding-right var(--t);
}
.sticky-consult:hover { background: var(--orange-dark); padding-right: 16px; }
.sticky-consult__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  letter-spacing: .3px;
}

@media (max-width: 720px) {
  .sticky-consult-wrap { top: auto; bottom: 90px; right: 12px; transform: none; flex-direction: row-reverse; }
  .sticky-consult__scroller { height: 44px; }
  .sticky-consult { flex-direction: row; border-radius: var(--r-xl); padding: 12px; }
  .sticky-consult__label { display: none; }
}



/* ===========================================
   MOBILE NAVBAR
   Hamburger LEFT + Logo RIGHT
   =========================================== */

@media (max-width: 720px) {

  .navbar__inner {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Hamburger on LEFT */
  .navbar__actions {
    order: 1;
    margin-left: 0;
    margin-right: auto;
  }

  .navbar__hamburger {
    display: flex;
    order: 1;
    padding: 8px;
  }

  /* Logo on RIGHT */
  .navbar__logo {
    order: 2;
    margin-left: auto;
    margin-right: 0;
  }

  .navbar__logo img {
    height: 62px;
    width: auto;
    max-width: 160px;
  }

  /* Hide desktop navigation */
  .navbar__links {
    display: none;
  }

  /* Hide AI button if present */
  .navbar__ai-btn {
    display: none;
  }
}