/*
 * Vivcity premium healthcare header
 * Clean, modern and deliberately restrained: strong information hierarchy,
 * lightweight navigation surface, compact emergency access and a clear CTA.
 */
.viv-header {
  --viv-container: 1480px;
  --viv-logo-width: 238px;
  --viv-topbar: var(--viv-primary-deep);
  --viv-header-bg: #fff;
  --viv-nav-card: var(--viv-primary-soft);
  --viv-divider: var(--viv-primary-soft-2);
  --viv-menu-color: var(--viv-primary-deep);
  --viv-menu-hover: var(--viv-primary);
  --viv-menu-size: 15px;
  --viv-menu-gap: 24px;
  --viv-appt-bg: var(--viv-accent);
  --viv-appt-color: #fff;
  --viv-social: #ffffff;
  --viv-emergency: #e64558;
  --viv-mega-bg: #ffffff;
  --viv-mega-accent: var(--viv-primary);
  position: relative;
  z-index: 999;
  width: 100%;
  background: var(--viv-header-bg);
  color: var(--viv-menu-color);
  font-family: var(--viv-font-ui);
}

.viv-header *,
.viv-header *::before,
.viv-header *::after { box-sizing: border-box; }

.viv-header svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.viv-container {
  width: min(calc(100% - 72px), var(--viv-container));
  margin-inline: auto;
}

/* ---------- Top utility strip ---------- */
.viv-utility-bar {
  min-height: 38px;
  color: var(--viv-primary-soft-2);
  background:
    radial-gradient(circle at 18% -160%, color-mix(in srgb,color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white)) 33%,transparent), transparent 42%),
    linear-gradient(90deg, var(--viv-topbar), var(--viv-primary-deep) 60%, var(--viv-primary-deep));
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.viv-utility-bar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.viv-utility-bar__left,
.viv-utility-bar__right,
.viv-care-note,
.viv-utility-link,
.viv-socials {
  display: flex;
  align-items: center;
}

.viv-utility-bar__left { min-width: 0; gap: 0; }
.viv-utility-bar__right { margin-left: auto; gap: 12px; }

.viv-care-note {
  gap: 9px;
  padding-right: 19px;
  margin-right: 19px;
  border-right: 1px solid rgba(255,255,255,.14);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .018em;
  white-space: nowrap;
}

.viv-care-note__pulse {
  position: relative;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white));
  box-shadow: 0 0 0 4px color-mix(in srgb,color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white)) 12%,transparent);
}

.viv-care-note__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid color-mix(in srgb,color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white)) 36%,transparent);
  border-radius: inherit;
  animation: vivPulse 2.1s ease-out infinite;
}

@keyframes vivPulse {
  0% { opacity: .85; transform: scale(.75); }
  72%, 100% { opacity: 0; transform: scale(1.55); }
}

.viv-utility-link {
  gap: 7px;
  padding: 0 17px;
  color: color-mix(in srgb,var(--viv-primary-soft) 90%,transparent);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 540;
  line-height: 1;
  transition: color .2s ease, opacity .2s ease;
}

.viv-utility-link + .viv-utility-link { border-left: 1px solid rgba(255,255,255,.13); }
.viv-utility-link:hover { color: #fff; }
.viv-utility-link__icon { color: color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white)); font-size: 13px; }
.viv-utility-bar__label {
  color: rgba(255,255,255,.88);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.viv-socials { gap: 7px; }
.viv-utility-bar__label {
  color: #ffffff;
}
.viv-socials a {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff !important;
  text-decoration: none;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.viv-socials a:hover {
  transform: translateY(-1px);
  color: #ffffff !important;
  background: rgba(255, 255, 255, .23);
  border-color: rgba(255, 255, 255, .42);
  box-shadow: 0 4px 12px color-mix(in srgb,var(--viv-primary-deep) 14%,transparent), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.viv-socials svg {
  width: 12px;
  height: 12px;
  color: #ffffff !important;
  fill: #ffffff !important;
}
.viv-socials svg path {
  fill: #ffffff !important;
}

/* ---------- Main navigation ---------- */
.viv-mainbar {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(255,255,255,.985)),
    var(--viv-header-bg);
  border-bottom: 1px solid var(--viv-divider);
}

.viv-mainbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb,var(--viv-primary) 14%,transparent) 35%, color-mix(in srgb,var(--viv-accent) 13%,transparent) 65%, transparent);
}

.viv-mainbar__inner {
  min-height: 94px;
  display: grid;
  grid-template-columns: minmax(0, 202px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.viv-brand-zone { min-width: 0; }
.viv-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  padding-left: 15px;
}

.viv-brand__accent {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--viv-primary) 0 58%, var(--viv-accent) 58% 100%);
  box-shadow: 0 6px 16px color-mix(in srgb,var(--viv-primary) 16%,transparent);
}

.viv-brand img {
  display: block;
  width: min(var(--viv-logo-width), 195px, 100%);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.viv-menu-zone { min-width: 0; display: flex; justify-content: center; }
.viv-menu-frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  padding: 5px 12px;
  border-radius: 18px;
  background: var(--viv-nav-card);
  border: 1px solid color-mix(in srgb,var(--viv-primary) 7.5%,transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.viv-menu,
.viv-menu ul { list-style: none; margin: 0; padding: 0; }

.viv-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--viv-menu-gap);
}

.viv-menu > li { position: relative; }
.viv-menu > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 2px;
  color: var(--viv-menu-color);
  text-decoration: none;
  font-size: var(--viv-menu-size);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -.015em;
  white-space: nowrap;
  transition: color .18s ease;
}

.viv-menu > li > a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--viv-menu-hover), color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white)));
  transform: translateX(-50%);
  transition: width .2s ease;
}

.viv-menu > li:hover > a,
.viv-menu > li.current-menu-item > a,
.viv-menu > li.current-menu-parent > a,
.viv-menu > li.current-menu-ancestor > a { color: var(--viv-menu-hover); }

.viv-menu > li:hover > a::before,
.viv-menu > li.current-menu-item > a::before,
.viv-menu > li.current-menu-parent > a::before,
.viv-menu > li.current-menu-ancestor > a::before { width: 22px; }

.viv-menu > li.menu-item-has-children > a::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-right: 1.5px solid var(--viv-slate);
  border-bottom: 1.5px solid var(--viv-slate);
  transform: rotate(45deg);
  transition: transform .18s ease, border-color .18s ease;
}
.viv-menu > li.menu-item-has-children:hover > a::after {
  border-color: var(--viv-menu-hover);
  transform: translateY(2px) rotate(225deg);
}

/* Dropdowns */
.viv-menu .sub-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 12px);
  left: -22px;
  width: 286px;
  padding: 12px;
  border: 1px solid color-mix(in srgb,var(--viv-primary) 10%,transparent);
  border-radius: 20px;
  background:
    linear-gradient(180deg, color-mix(in srgb,var(--viv-primary-soft) 96%,transparent) 0, rgba(255, 255, 255, .99) 26px),
    #fff;
  box-shadow:
    0 24px 65px color-mix(in srgb,var(--viv-primary-deep) 16%,transparent),
    0 7px 22px color-mix(in srgb,var(--viv-primary-deep) 7%,transparent),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(.985);
  transform-origin: top left;
  transition:
    opacity .2s ease,
    visibility .2s ease,
    transform .24s cubic-bezier(.2,.75,.25,1);
}

/* Small bridge keeps the menu open while the pointer travels into the panel. */
.viv-menu .sub-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 16px;
  background: transparent;
}

/* Crisp pointer and a slim brand accent give the dropdown its own visual identity. */
.viv-menu > li > .sub-menu::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 34px;
  width: 10px;
  height: 10px;
  border-top: 1px solid color-mix(in srgb,var(--viv-primary) 10%,transparent);
  border-left: 1px solid color-mix(in srgb,var(--viv-primary) 10%,transparent);
  background: var(--viv-primary-soft);
  transform: rotate(45deg);
}

.viv-menu > li > .sub-menu {
  background:
    linear-gradient(90deg, var(--viv-menu-hover), color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white))) top left / 100% 3px no-repeat,
    linear-gradient(180deg, var(--viv-primary-soft) 0, #ffffff 30px);
}

.viv-menu li:hover > .sub-menu,
.viv-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.viv-menu .sub-menu li {
  position: relative;
  margin: 0;
}

.viv-menu .sub-menu li + li {
  margin-top: 3px;
}

.viv-menu .sub-menu a {
  position: relative;
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 35px 10px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--viv-primary-deep);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 610;
  letter-spacing: -.008em;
  background: transparent;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

/* Tiny brand marker: subtle at rest, brighter on interaction. */
.viv-menu .sub-menu a::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--viv-primary-soft-2);
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--viv-primary) 0%,transparent);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* Direction cue on the right, always visible for items that own another level. */
.viv-menu .sub-menu a::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--viv-slate);
  border-right: 1.5px solid var(--viv-slate);
  opacity: 0;
  transform: translate(-3px, -50%) rotate(45deg);
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
}

.viv-menu .sub-menu .menu-item-has-children > a::after {
  opacity: .78;
}

.viv-menu .sub-menu li:hover > a,
.viv-menu .sub-menu li:focus-within > a,
.viv-menu .sub-menu .current-menu-item > a,
.viv-menu .sub-menu .current-menu-parent > a,
.viv-menu .sub-menu .current-menu-ancestor > a {
  color: var(--viv-primary);
  border-color: color-mix(in srgb,var(--viv-primary) 10%,transparent);
  background: linear-gradient(90deg, color-mix(in srgb,var(--viv-primary) 10.5%,transparent), color-mix(in srgb,var(--viv-primary) 3.5%,transparent));
  box-shadow: inset 3px 0 0 var(--viv-menu-hover), 0 7px 18px color-mix(in srgb,var(--viv-primary) 4.5%,transparent);
  transform: translateX(2px);
}

.viv-menu .sub-menu li:hover > a::before,
.viv-menu .sub-menu li:focus-within > a::before,
.viv-menu .sub-menu .current-menu-item > a::before,
.viv-menu .sub-menu .current-menu-parent > a::before,
.viv-menu .sub-menu .current-menu-ancestor > a::before {
  background: var(--viv-menu-hover);
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--viv-primary) 10%,transparent);
  transform: scale(.92);
}

.viv-menu .sub-menu li:hover > a::after,
.viv-menu .sub-menu li:focus-within > a::after,
.viv-menu .sub-menu .current-menu-item > a::after {
  opacity: 1;
  border-color: var(--viv-menu-hover);
  transform: translate(0, -50%) rotate(45deg);
}

.viv-menu .sub-menu a:focus-visible {
  outline: 2px solid color-mix(in srgb,var(--viv-primary) 34%,transparent);
  outline-offset: 2px;
}

/* Second and third levels open beside the current panel like a compact mega-menu stack. */
.viv-menu .sub-menu .sub-menu {
  top: -12px;
  left: calc(100% + 12px);
  width: 270px;
  transform-origin: top left;
}

.viv-menu .sub-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: 23px;
  left: -5px;
  width: 10px;
  height: 10px;
  border-left: 1px solid color-mix(in srgb,var(--viv-primary) 10%,transparent);
  border-bottom: 1px solid color-mix(in srgb,var(--viv-primary) 10%,transparent);
  background: #fff;
  transform: rotate(45deg);
}

/* Menus near the right edge open inward to avoid clipping off-screen. */
.viv-menu > li:nth-last-child(-n+3) > .sub-menu {
  left: auto;
  right: -22px;
  transform-origin: top right;
}

.viv-menu > li:nth-last-child(-n+3) > .sub-menu::before {
  left: auto;
  right: 34px;
}

.viv-menu > li:nth-last-child(-n+3) .sub-menu .sub-menu {
  left: auto;
  right: calc(100% + 12px);
  transform-origin: top right;
}

.viv-menu > li:nth-last-child(-n+3) .sub-menu .sub-menu::before {
  left: auto;
  right: -5px;
  border-left: 0;
  border-bottom: 0;
  border-right: 1px solid color-mix(in srgb,var(--viv-primary) 10%,transparent);
  border-top: 1px solid color-mix(in srgb,var(--viv-primary) 10%,transparent);
}


/* ---------- Mega menu ---------- */
.viv-menu > .viv-menu-item--mega { position: static; }
.viv-menu > .viv-menu-item--mega > .sub-menu { display: none !important; }

.viv-mega-menu {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 8px);
  left: 50%;
  width: min(1120px, calc(100vw - 72px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(.985);
  transform-origin: top center;
  transition: opacity .2s ease, visibility .2s ease, transform .24s cubic-bezier(.2,.75,.25,1);
}

.viv-mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  height: 32px;
}

.viv-menu > .viv-menu-item--mega:hover > .viv-mega-menu,
.viv-menu > .viv-menu-item--mega.viv-mega-open > .viv-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.viv-mega-menu__surface {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-height: min(72vh, 720px);
  overflow: hidden auto;
  border: 1px solid color-mix(in srgb,var(--viv-primary) 13%,transparent);
  border-radius: 24px;
  background: var(--viv-mega-bg);
  box-shadow: 0 28px 80px color-mix(in srgb,var(--viv-primary-deep) 16%,transparent), 0 8px 24px color-mix(in srgb,var(--viv-primary-deep) 8%,transparent);
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white)) var(--viv-primary-soft);
}

/* Desktop mega-menu scrollbar: slim, subtle, and in Vivacity's teal palette. */
.viv-mega-menu__surface::-webkit-scrollbar {
  width: 7px;
}
.viv-mega-menu__surface::-webkit-scrollbar-track {
  background: var(--viv-primary-soft);
  border-radius: 999px;
}
.viv-mega-menu__surface::-webkit-scrollbar-thumb {
  background: color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white));
  border: 1px solid var(--viv-primary-soft);
  border-radius: 999px;
}
.viv-mega-menu__surface::-webkit-scrollbar-thumb:hover {
  background: var(--viv-mega-accent, var(--viv-primary));
}

.viv-mega-menu__surface::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--viv-mega-accent), color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white)) 58%, var(--viv-accent));
}

.viv-mega-menu__intro {
  position: sticky;
  top: 0;
  min-height: 100%;
  padding: 34px 30px 30px;
  color: var(--viv-primary-soft-2);
  background:
    radial-gradient(circle at 5% 0%, color-mix(in srgb,color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white)) 18%,transparent), transparent 42%),
    linear-gradient(145deg, var(--viv-primary-deep), var(--viv-primary-deep) 72%, var(--viv-primary));
  overflow: hidden;
}

.viv-mega-menu__intro::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255,255,255,.035), 0 0 0 45px rgba(255,255,255,.02);
  pointer-events: none;
}

.viv-mega-menu__brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  padding: 9px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.viv-mega-menu__brand-mark span {
  width: 7px;
  border-radius: 999px;
  background: color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white));
}
.viv-mega-menu__brand-mark span:first-child { height: 16px; }
.viv-mega-menu__brand-mark span:last-child { height: 25px; background: var(--viv-accent); }

.viv-mega-menu__kicker {
  display: block;
  margin-bottom: 8px;
  color: color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white));
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.viv-mega-menu__title {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 720;
}

.viv-mega-menu__description {
  margin: 12px 0 0;
  color: color-mix(in srgb,var(--viv-primary-soft-2) 76%,transparent);
  font-size: 12.8px;
  line-height: 1.7;
}

.viv-mega-menu__cta {
  position: relative;
  z-index: 3;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 26px;
  padding: 7px 8px 7px 15px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
  color: #fff;
  background: rgba(255,255,255,.08);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
}

.viv-mega-menu__cta:hover {
  color: #fff;
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.24);
  transform: translateY(-1px);
}

.viv-mega-menu__cta-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--viv-primary-deep);
  background: #fff;
}
.viv-mega-menu__cta-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.viv-mega-menu__content {
  padding: 28px 28px 26px;
  min-width: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb,var(--viv-primary-soft) 70%,transparent), rgba(255,255,255,0) 120px),
    var(--viv-mega-bg);
}

.viv-mega-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.viv-mega-row + .viv-mega-row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--viv-primary-soft-2);
}

.viv-mega-column {
  grid-column: span var(--viv-mega-span, 4);
  min-width: 0;
  padding: 4px;
}

.viv-mega-column__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--viv-mega-accent);
  font-size: 9.5px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.viv-mega-column__eyebrow::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--viv-mega-accent);
}

.viv-mega-column__title {
  margin: 0;
  color: var(--viv-primary-deep);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 760;
  letter-spacing: -.016em;
}

.viv-mega-column__description {
  margin: 6px 0 12px;
  color: var(--viv-slate);
  font-size: 11.3px;
  line-height: 1.55;
}

.viv-mega-links {
  display: grid !important;
  gap: 5px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
}

.viv-mega-links li { position: static !important; margin: 0 !important; padding: 0 !important; }

.viv-mega-links a {
  position: relative;
  min-height: 50px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--viv-primary-deep);
  text-decoration: none;
  background: transparent;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.viv-mega-link__marker {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white));
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--viv-primary) 0%,transparent);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.viv-mega-link__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.viv-mega-link__copy strong {
  color: inherit;
  font-size: 14.5px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.006em;
}

.viv-mega-link__arrow {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border-radius: 8px;
  color: var(--viv-slate);
  background: var(--viv-primary-soft);
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.viv-mega-link__arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.viv-mega-links a:hover,
.viv-mega-links a:focus-visible {
  color: var(--viv-primary);
  border-color: color-mix(in srgb,var(--viv-primary) 11%,transparent);
  background: linear-gradient(90deg, color-mix(in srgb,var(--viv-primary) 7.5%,transparent), color-mix(in srgb,var(--viv-primary) 2.5%,transparent));
  box-shadow: 0 8px 18px color-mix(in srgb,var(--viv-primary) 5%,transparent);
  transform: translateX(2px);
  outline: none;
}

.viv-mega-links a:hover .viv-mega-link__marker,
.viv-mega-links a:focus-visible .viv-mega-link__marker {
  background: var(--viv-mega-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--viv-primary) 10%,transparent);
  transform: scale(.92);
}

.viv-mega-links a:hover .viv-mega-link__arrow,
.viv-mega-links a:focus-visible .viv-mega-link__arrow {
  color: #fff;
  background: var(--viv-mega-accent);
  transform: translate(1px, -1px);
}

/* ---------- Primary actions ---------- */
.viv-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.viv-emergency {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px 6px 7px;
  border: 1px solid rgba(230,69,88,.13);
  border-radius: 15px;
  background: #fff;
  color: var(--viv-emergency);
  text-decoration: none;
  box-shadow: 0 5px 18px color-mix(in srgb,var(--viv-primary-deep) 4.5%,transparent);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.viv-emergency:hover {
  color: var(--viv-emergency);
  transform: translateY(-1px);
  border-color: rgba(230,69,88,.24);
  box-shadow: 0 8px 22px rgba(230,69,88,.08);
}

.viv-emergency__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--viv-emergency), #f26a78);
  box-shadow: 0 7px 16px rgba(230,69,88,.18);
}
.viv-emergency__icon svg { width: 17px; height: 17px; }

.viv-emergency__copy,
.viv-appointment__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  white-space: nowrap;
  line-height: 1.05;
}
.viv-emergency__copy small,
.viv-appointment__copy small {
  font-size: 9.5px;
  font-weight: 720;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.viv-emergency__copy small { color: #9a7e82; }
.viv-emergency__copy strong { color: #bd3042; font-size: 12.5px; font-weight: 760; }

.viv-appointment {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px 0 6px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--viv-appt-bg), var(--viv-accent));
  color: var(--viv-appt-color);
  text-decoration: none;
  box-shadow: 0 10px 24px color-mix(in srgb,var(--viv-accent) 18%,transparent);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.viv-appointment:hover {
  color: var(--viv-appt-color);
  transform: translateY(-1px);
  filter: saturate(1.03) brightness(.995);
  box-shadow: 0 13px 28px color-mix(in srgb,var(--viv-accent) 24%,transparent);
}

.viv-appointment__icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.12);
}
.viv-appointment__icon svg { width: 15px; height: 15px; }
.viv-appointment__copy small { color: rgba(255,255,255,.72); font-size: 8.5px; }
.viv-appointment__copy strong { color: var(--viv-appt-color); font-size: 11.6px; font-weight: 740; }
.viv-appointment__arrow {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.11);
}
.viv-appointment__arrow svg { width: 13px; height: 13px; }

.viv-mobile-toggle,
.viv-mobile-overlay,
.viv-mobile-panel { display: none; }

/* ---------- Sticky state ---------- */
.viv-header--sticky-enabled.is-stuck {
  position: fixed;
  inset: 0 0 auto;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: vivHeaderDown .22s ease both;
}
.viv-header--sticky-enabled.is-stuck .viv-utility-bar { display: none; }
.viv-header--sticky-enabled.is-stuck .viv-mainbar { background: rgba(255,255,255,.91); }
.viv-header--sticky-enabled.is-stuck .viv-mainbar__inner { min-height: 76px; }
.viv-header--sticky-enabled.is-stuck .viv-brand img { max-height: 54px; }
.viv-header--sticky-enabled.is-stuck .viv-menu-frame { padding-block: 3px; }
.viv-header--sticky-enabled.is-stuck .viv-menu > li > a { min-height: 43px; }
.viv-header--sticky-enabled.is-stuck .viv-emergency { min-height: 46px; }
.viv-header--sticky-enabled.is-stuck .viv-appointment { min-height: 48px; }
.viv-header--sticky-shadow.is-stuck { box-shadow: 0 10px 32px color-mix(in srgb,var(--viv-primary-deep) 7.5%,transparent); }
.admin-bar .viv-header--sticky-enabled.is-stuck { top: 32px; }

.viv-header-spacer { width: 100%; height: 0; pointer-events: none; }

@keyframes vivHeaderDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive squeeze ---------- */
@media (max-width: 1460px) {
  .viv-container { width: min(calc(100% - 44px), var(--viv-container)); }
  .viv-mainbar__inner { grid-template-columns: minmax(0, 202px) minmax(0, 1fr) auto; gap: 16px; }
  .viv-menu-frame { padding-inline: 10px; }
  .viv-menu { gap: 18px; }
  .viv-menu > li > a { font-size: 14px; }
  .viv-appointment__arrow { display: none; }
}

@media (max-width: 1270px) {
  .viv-menu { gap: 13px; }
  .viv-menu > li > a { font-size: 13.5px; }
  .viv-emergency__copy { display: none; }
  .viv-emergency { padding: 6px; }
  .viv-appointment__copy small { display: none; }
  .viv-utility-link--email { display: none; }
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1220px) {
  .viv-container { width: min(calc(100% - 32px), var(--viv-container)); }
  .viv-utility-bar,
  .viv-utility-bar__inner { min-height: 36px; }
  .viv-care-note { font-size: 11px; }
  .viv-utility-link { font-size: 11px; padding-inline: 14px; }
  .viv-utility-bar__label { display: none; }

  .viv-mainbar__inner {
    min-height: 78px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }
  .viv-brand { padding-left: 12px; }
  .viv-brand__accent { top: 7px; bottom: 7px; width: 3px; }
  .viv-brand img { width: min(var(--viv-logo-width), 195px); max-height: 54px; }
  .viv-menu-zone { display: none; }

  .viv-header-actions { gap: 8px; }
  .viv-emergency { min-height: 44px; padding: 5px; border-radius: 13px; }
  .viv-emergency__icon { width: 32px; height: 32px; border-radius: 10px; }
  .viv-emergency__copy { display: none; }

  .viv-appointment { min-height: 44px; width: 44px; padding: 5px; border-radius: 13px; }
  .viv-appointment__icon { width: 32px; height: 32px; border-radius: 10px; background: transparent; border: 0; }
  .viv-appointment__copy,
  .viv-appointment__arrow { display: none; }

  .viv-mobile-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid color-mix(in srgb,var(--viv-primary) 10%,transparent);
    border-radius: 13px;
    background: var(--viv-primary-soft);
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
  }
  .viv-mobile-toggle:hover { background: var(--viv-primary-soft-2); border-color: color-mix(in srgb,var(--viv-primary) 16%,transparent); }
  .viv-mobile-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 99px;
    background: var(--viv-menu-color);
  }

  .viv-mobile-overlay {
    position: fixed;
    z-index: 9997;
    inset: 0;
    display: block;
    background: color-mix(in srgb,var(--viv-primary-deep) 42%,transparent);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .viv-mobile-panel {
    position: fixed;
    z-index: 9998;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -24px 0 60px color-mix(in srgb,var(--viv-primary-deep) 16%,transparent);
    transform: translateX(104%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.2,.7,.2,1), visibility .3s ease;
  }

  .viv-header.menu-open .viv-mobile-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .viv-header.menu-open .viv-mobile-panel { transform: translateX(0); visibility: visible; }

  .viv-mobile-panel__head {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--viv-primary-soft-2);
  }
  .viv-mobile-brand { display: inline-flex; align-items: center; }
  .viv-mobile-brand img { display: block; width: min(var(--viv-logo-width), 210px); max-height: 56px; object-fit: contain; object-position: left center; }

  .viv-mobile-close {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--viv-primary-soft-2);
    border-radius: 13px;
    background: var(--viv-primary-soft);
    cursor: pointer;
  }
  .viv-mobile-close span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--viv-primary-deep);
  }
  .viv-mobile-close span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
  .viv-mobile-close span:last-child { transform: translate(-50%,-50%) rotate(-45deg); }

  .viv-mobile-panel__body { overflow-y: auto; padding: 10px 20px 26px; }
  .viv-mobile-panel .viv-menu { display: block; }
  .viv-mobile-panel .viv-menu > li { position: relative; border-bottom: 1px solid var(--viv-mist); }
  .viv-mobile-panel .viv-menu > li > a {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 0 42px 0 4px;
    color: var(--viv-primary-deep);
    font-size: 15px;
    font-weight: 660;
  }
  .viv-mobile-panel .viv-menu > li > a::before,
  .viv-mobile-panel .viv-menu .menu-item-has-children > a::after { display: none; }

  .viv-mobile-panel .viv-menu .sub-menu {
    position: static;
    width: auto;
    padding: 0 0 9px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .viv-mobile-panel .viv-menu .sub-menu::before,
  .viv-mobile-panel .viv-menu .sub-menu::after { display: none; }
  .viv-mobile-panel .viv-menu .sub-menu .sub-menu { padding-left: 12px; }
  .viv-mobile-panel .viv-menu .submenu-open > .sub-menu { display: block; }
  .viv-mobile-panel .viv-menu .sub-menu a {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 13.5px;
    background: var(--viv-primary-soft);
    margin-bottom: 4px;
    transform: none;
    box-shadow: none;
  }
  .viv-mobile-panel .viv-menu .sub-menu a::before,
  .viv-mobile-panel .viv-menu .sub-menu a::after { display: none; }

  .viv-submenu-toggle {
    position: absolute;
    top: 8px;
    right: 0;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: var(--viv-primary-soft);
    cursor: pointer;
  }
  .viv-submenu-toggle::before,
  .viv-submenu-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    border-radius: 99px;
    background: var(--viv-slate);
    transform: translate(-50%,-50%);
    transition: transform .2s ease;
  }
  .viv-submenu-toggle::after { transform: translate(-50%,-50%) rotate(90deg); }
  .submenu-open > .viv-submenu-toggle::after { transform: translate(-50%,-50%) rotate(0); }

  .viv-mobile-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
  }
  .viv-mobile-emergency,
  .viv-mobile-appointment {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 15px;
    text-decoration: none;
  }
  .viv-mobile-emergency { color: var(--viv-emergency); background: rgba(230,69,88,.055); border: 1px solid rgba(230,69,88,.12); }
  .viv-mobile-appointment { color: #fff; background: linear-gradient(135deg, var(--viv-appt-bg), var(--viv-accent)); }
  .viv-mobile-emergency > span:first-child,
  .viv-mobile-appointment > span:first-child {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
  }
  .viv-mobile-emergency > span:first-child { color: #fff; background: var(--viv-emergency); }
  .viv-mobile-appointment > span:first-child { background: rgba(255,255,255,.17); }
  .viv-mobile-emergency > span:last-child,
  .viv-mobile-appointment > span:last-child { display: flex; flex-direction: column; gap: 2px; line-height: 1.05; }
  .viv-mobile-emergency small,
  .viv-mobile-appointment small { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
  .viv-mobile-emergency strong,
  .viv-mobile-appointment strong { font-size: 12px; font-weight: 760; }

  .viv-mobile-contact {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--viv-primary-soft-2);
  }
  .viv-mobile-contact a {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--viv-slate);
    text-decoration: none;
    font-size: 12.5px;
  }
  .viv-mobile-contact svg { width: 14px; height: 14px; color: var(--viv-menu-hover); }

  body.viv-menu-open { overflow: hidden; }
  .admin-bar .viv-mobile-panel { top: 32px; }
}

@media (max-width: 782px) {
  .admin-bar .viv-header--sticky-enabled.is-stuck { top: 46px; }
  .admin-bar .viv-mobile-panel { top: 46px; }
}

@media (max-width: 680px) {
  .viv-container { width: min(calc(100% - 24px), var(--viv-container)); }
  .viv-utility-bar__right,
  .viv-utility-link--email { display: none; }
  .viv-utility-bar__inner { justify-content: flex-start; }
  .viv-care-note {
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
    padding-right: 10px;
  }
  .viv-utility-link { padding: 0; }
  .viv-mainbar__inner { min-height: 72px; }
  .viv-brand img { width: min(var(--viv-logo-width), 190px); max-height: 50px; }
  .viv-header-actions { gap: 6px; }
  .viv-emergency { display: none; }
  .viv-appointment,
  .viv-mobile-toggle { width: 42px; height: 42px; min-height: 42px; border-radius: 12px; }
  .viv-appointment__icon { width: 30px; height: 30px; }
}

@media (max-width: 430px) {
  .viv-care-note { display: none; }
  .viv-utility-link { font-size: 10.5px; }
  .viv-brand img { width: min(var(--viv-logo-width), 172px); }
  .viv-mobile-panel__body { padding-inline: 16px; }
  .viv-mobile-quick-actions { grid-template-columns: 1fr; }
}


@media (max-width: 1220px) {
  .viv-mobile-panel .viv-menu > .viv-menu-item--mega { position: relative; }
  .viv-mobile-panel .viv-menu > .viv-menu-item--mega > .sub-menu { display: none !important; }
  .viv-mobile-panel .viv-mega-menu {
    position: static;
    width: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
    padding: 0 0 10px;
  }
  .viv-mobile-panel .submenu-open > .viv-mega-menu { display: block; }
  .viv-mobile-panel .viv-mega-menu::before { display: none; }
  .viv-mobile-panel .viv-mega-menu__surface {
    display: block;
    max-height: none;
    overflow: visible;
    border-radius: 16px;
    border-color: var(--viv-primary-soft-2);
    box-shadow: none;
  }
  .viv-mobile-panel .viv-mega-menu__surface::before { left: 16px; right: 16px; }
  .viv-mobile-panel .viv-mega-menu__intro {
    position: static;
    min-height: 0;
    padding: 20px 18px 18px;
  }
  .viv-mobile-panel .viv-mega-menu__brand-mark { display: none; }
  .viv-mobile-panel .viv-mega-menu__title { font-size: 18px; }
  .viv-mobile-panel .viv-mega-menu__description { font-size: 11.5px; }
  .viv-mobile-panel .viv-mega-menu__cta { margin-top: 15px; }
  .viv-mobile-panel .viv-mega-menu__content { padding: 15px 14px; }
  .viv-mobile-panel .viv-mega-row { display: block; }
  .viv-mobile-panel .viv-mega-row + .viv-mega-row { margin-top: 14px; padding-top: 14px; }
  .viv-mobile-panel .viv-mega-column { padding: 0; }
  .viv-mobile-panel .viv-mega-column + .viv-mega-column { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--viv-primary-soft-2); }
  .viv-mobile-panel .viv-mega-column__title { font-size: 13.5px; }
  .viv-mobile-panel .viv-mega-column__description { margin-bottom: 8px; }
  .viv-mobile-panel .viv-mega-links { margin-top: 7px !important; }
  .viv-mobile-panel .viv-mega-link__copy strong { font-size: 14px; }
  .viv-mobile-panel .viv-mega-link__arrow { width: 28px; height: 28px; }
  .viv-mobile-panel .viv-mega-link__arrow svg { width: 14px; height: 14px; }
  .viv-mobile-panel .viv-mega-links a {
    min-height: 46px;
    grid-template-columns: 8px minmax(0,1fr) 28px;
    margin: 0;
    padding: 7px 8px;
    background: var(--viv-primary-soft);
    border-color: var(--viv-mist);
  }
}


/* ---------- Interaction hardening: desktop mega menu + mobile/tablet canvas ---------- */
@media (min-width: 1221px) {
  .viv-menu > .viv-menu-item--mega > .viv-mega-menu {
    will-change: opacity, transform;
  }

  /* A larger invisible safe corridor prevents the mega panel from dropping while
     the pointer crosses the visual breathing space below the trigger. */
  .viv-menu > .viv-menu-item--mega > .viv-mega-menu::before {
    left: -18px;
    right: -18px;
    top: -34px;
    height: 38px;
    pointer-events: auto;
  }
}

@media (max-width: 1220px) {
  .viv-mobile-overlay {
    background: color-mix(in srgb,var(--viv-primary-deep) 50%,transparent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity .32s ease, visibility .32s ease;
  }

  .viv-mobile-panel {
    width: min(448px, 94vw);
    border-left: 1px solid color-mix(in srgb,var(--viv-primary) 8%,transparent);
    box-shadow: -30px 0 85px color-mix(in srgb,var(--viv-primary-deep) 22%,transparent);
    transform: translate3d(104%, 0, 0);
    opacity: .985;
    will-change: transform;
    transition: transform .42s cubic-bezier(.22,.82,.24,1), visibility .42s ease;
  }

  .viv-header.menu-open .viv-mobile-panel {
    transform: translate3d(0, 0, 0);
  }

  .viv-mobile-panel__head {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, var(--viv-primary-soft) 100%);
  }

  .viv-mobile-panel__head::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -1px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--viv-menu-hover), color-mix(in srgb,var(--viv-primary) 10%,transparent) 64%, transparent);
  }

  .viv-mobile-close {
    transition: transform .24s ease, background-color .24s ease, border-color .24s ease;
  }
  .viv-mobile-close:hover,
  .viv-mobile-close:focus-visible {
    transform: rotate(5deg);
    background: var(--viv-primary-soft-2);
    border-color: color-mix(in srgb,var(--viv-primary) 18%,transparent);
    outline: none;
  }

  .viv-mobile-panel__body {
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb,var(--viv-primary) 30%,transparent) transparent;
  }

  .viv-mobile-panel .viv-menu > li {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity .28s ease, transform .34s cubic-bezier(.22,.8,.24,1);
  }
  .viv-header.menu-open .viv-mobile-panel .viv-menu > li {
    opacity: 1;
    transform: translateX(0);
  }
  .viv-header.menu-open .viv-mobile-panel .viv-menu > li:nth-child(1) { transition-delay: .07s; }
  .viv-header.menu-open .viv-mobile-panel .viv-menu > li:nth-child(2) { transition-delay: .09s; }
  .viv-header.menu-open .viv-mobile-panel .viv-menu > li:nth-child(3) { transition-delay: .11s; }
  .viv-header.menu-open .viv-mobile-panel .viv-menu > li:nth-child(4) { transition-delay: .13s; }
  .viv-header.menu-open .viv-mobile-panel .viv-menu > li:nth-child(5) { transition-delay: .15s; }
  .viv-header.menu-open .viv-mobile-panel .viv-menu > li:nth-child(6) { transition-delay: .17s; }
  .viv-header.menu-open .viv-mobile-panel .viv-menu > li:nth-child(7) { transition-delay: .19s; }
  .viv-header.menu-open .viv-mobile-panel .viv-menu > li:nth-child(8) { transition-delay: .21s; }
  .viv-header.menu-open .viv-mobile-panel .viv-menu > li:nth-child(9) { transition-delay: .23s; }
  .viv-header.menu-open .viv-mobile-panel .viv-menu > li:nth-child(n+10) { transition-delay: .25s; }

  .viv-mobile-panel .viv-menu > li > a {
    transition: color .2s ease, transform .2s ease;
  }
  .viv-mobile-panel .viv-menu > li > a:hover,
  .viv-mobile-panel .viv-menu > li > a:focus-visible {
    color: var(--viv-menu-hover);
    transform: translateX(3px);
    outline: none;
  }

  .viv-submenu-toggle {
    overflow: hidden;
    border: 1px solid color-mix(in srgb,var(--viv-primary) 7%,transparent);
    transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
  }
  .viv-submenu-toggle:hover,
  .viv-submenu-toggle:focus-visible {
    background: var(--viv-primary-soft-2);
    border-color: color-mix(in srgb,var(--viv-primary) 14%,transparent);
    outline: none;
  }
  .submenu-open > .viv-submenu-toggle {
    background: color-mix(in srgb,var(--viv-primary) 10%,transparent);
    transform: rotate(180deg);
  }
  .submenu-open > .viv-submenu-toggle::before,
  .submenu-open > .viv-submenu-toggle::after {
    background: var(--viv-menu-hover);
  }

  /* Smooth accordion instead of display:none; this removes opening/closing jumps. */
  .viv-mobile-panel .viv-menu .sub-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
    transition:
      max-height .42s cubic-bezier(.22,.8,.24,1),
      opacity .22s ease,
      transform .28s ease,
      visibility .28s ease,
      padding .28s ease;
  }
  .viv-mobile-panel .viv-menu .submenu-open > .sub-menu {
    max-height: 1400px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding-top: 3px;
    padding-bottom: 9px;
    pointer-events: auto;
  }

  /* The custom mega menu becomes a controlled accordion inside the off-canvas. */
  .viv-mobile-panel .viv-mega-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    padding: 0;
    pointer-events: none;
    transition:
      max-height .55s cubic-bezier(.22,.8,.24,1),
      opacity .25s ease,
      transform .32s ease,
      visibility .32s ease,
      padding .32s ease;
  }
  .viv-mobile-panel .submenu-open > .viv-mega-menu {
    display: block;
    max-height: 5200px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 4px 0 12px;
    pointer-events: auto;
  }

  .viv-mobile-panel .viv-mega-menu__surface {
    border-radius: 18px;
    border: 1px solid color-mix(in srgb,var(--viv-primary) 11%,transparent);
    background: linear-gradient(180deg, var(--viv-primary-soft), var(--viv-primary-soft));
    box-shadow: 0 13px 32px color-mix(in srgb,var(--viv-primary-deep) 7%,transparent);
  }
  .viv-mobile-panel .viv-mega-menu__content {
    padding: 13px;
  }
  .viv-mobile-panel .viv-mega-row + .viv-mega-row {
    margin-top: 10px;
    padding-top: 10px;
  }
  .viv-mobile-panel .viv-mega-column {
    margin: 0;
    padding: 14px !important;
    border: 1px solid var(--viv-primary-soft-2);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 16px color-mix(in srgb,var(--viv-primary-deep) 3.5%,transparent);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .26s ease, transform .32s cubic-bezier(.22,.8,.24,1);
  }
  .viv-mobile-panel .viv-mega-column + .viv-mega-column {
    margin-top: 10px;
    padding-top: 14px !important;
    border-top: 1px solid var(--viv-primary-soft-2);
  }
  .viv-mobile-panel .submenu-open > .viv-mega-menu .viv-mega-column {
    opacity: 1;
    transform: translateY(0);
  }
  .viv-mobile-panel .submenu-open > .viv-mega-menu .viv-mega-column:nth-child(1) { transition-delay: .05s; }
  .viv-mobile-panel .submenu-open > .viv-mega-menu .viv-mega-column:nth-child(2) { transition-delay: .09s; }
  .viv-mobile-panel .submenu-open > .viv-mega-menu .viv-mega-column:nth-child(3) { transition-delay: .13s; }
  .viv-mobile-panel .submenu-open > .viv-mega-menu .viv-mega-column:nth-child(4) { transition-delay: .17s; }

  .viv-mobile-panel .viv-mega-column__eyebrow {
    margin-bottom: 5px;
    font-size: 9.5px;
  }
  .viv-mobile-panel .viv-mega-column__title {
    font-size: 15px;
  }
  .viv-mobile-panel .viv-mega-column__description {
    margin: 5px 0 9px;
    font-size: 11px;
  }
  .viv-mobile-panel .viv-mega-links {
    gap: 5px !important;
    margin-top: 8px !important;
  }
  .viv-mobile-panel .viv-mega-links a {
    min-height: 48px;
    grid-template-columns: 8px minmax(0,1fr) 30px;
    padding: 8px 8px;
    border-color: var(--viv-mist);
    border-radius: 11px;
    background: var(--viv-primary-soft);
  }
  .viv-mobile-panel .viv-mega-link__copy strong { font-size: 14.5px; }
  .viv-mobile-panel .viv-mega-link__arrow { width: 30px; height: 30px; }
  .viv-mobile-panel .viv-mega-link__arrow svg { width: 15px; height: 15px; }

  .viv-mobile-quick-actions,
  .viv-mobile-contact {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease .19s, transform .35s ease .19s;
  }
  .viv-header.menu-open .viv-mobile-quick-actions,
  .viv-header.menu-open .viv-mobile-contact {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .viv-mobile-panel {
    width: min(400px, 100vw);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .viv-header *, .viv-header *::before, .viv-header *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Mobile/tablet mega menu containment fix ----------
 * Keep the cloned mega menu fully inside the off-canvas at every responsive width.
 * This deliberately resets desktop positioning/sizing that can otherwise cause
 * horizontal drift or clipping inside narrow drawers.
 */
@media (max-width: 1220px) {
  .viv-mobile-panel,
  .viv-mobile-panel__body,
  .viv-mobile-menu-target {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  .viv-mobile-panel .viv-menu--mobile,
  .viv-mobile-panel .viv-menu--mobile > li,
  .viv-mobile-panel .viv-menu--mobile > li > a,
  .viv-mobile-panel .viv-menu--mobile .viv-mega-menu,
  .viv-mobile-panel .viv-menu--mobile .viv-mega-menu__surface,
  .viv-mobile-panel .viv-menu--mobile .viv-mega-menu__content,
  .viv-mobile-panel .viv-menu--mobile .viv-mega-row,
  .viv-mobile-panel .viv-menu--mobile .viv-mega-column,
  .viv-mobile-panel .viv-menu--mobile .viv-mega-links,
  .viv-mobile-panel .viv-menu--mobile .viv-mega-links > li,
  .viv-mobile-panel .viv-menu--mobile .viv-mega-links a {
    min-width: 0;
    max-width: 100%;
  }

  .viv-mobile-panel .viv-menu--mobile {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .viv-mobile-panel .viv-menu--mobile > .viv-menu-item--mega {
    width: 100%;
    overflow: visible;
  }

  .viv-mobile-panel .viv-menu--mobile > .viv-menu-item--mega > .viv-mega-menu {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    transform-origin: center top;
    box-sizing: border-box;
    overflow: hidden;
  }

  .viv-mobile-panel .viv-menu--mobile .viv-mega-menu__surface {
    width: 100%;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .viv-mobile-panel .viv-menu--mobile .viv-mega-menu__content {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .viv-mobile-panel .viv-menu--mobile .viv-mega-row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .viv-mobile-panel .viv-menu--mobile .viv-mega-column {
    width: 100% !important;
    grid-column: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .viv-mobile-panel .viv-menu--mobile .viv-mega-links,
  .viv-mobile-panel .viv-menu--mobile .viv-mega-links > li {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .viv-mobile-panel .viv-menu--mobile .viv-mega-links a {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none;
  }

  .viv-mobile-panel .viv-menu--mobile .viv-mega-links a:hover,
  .viv-mobile-panel .viv-menu--mobile .viv-mega-links a:focus-visible {
    transform: none;
  }
}

@media (max-width: 520px) {
  .viv-mobile-panel .viv-menu--mobile .viv-mega-menu__content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .viv-mobile-panel .viv-menu--mobile .viv-mega-column {
    padding: 12px !important;
  }
}

/* ---------- Touch interaction polish ----------
 * Remove the browser's default blue/cyan tap highlight from header controls on
 * touch devices. Keyboard focus-visible styles remain available for accessibility.
 */
.viv-header a,
.viv-header button,
.viv-header [role="button"],
.viv-header summary {
  -webkit-tap-highlight-color: transparent;
}

.viv-header a:focus:not(:focus-visible),
.viv-header button:focus:not(:focus-visible),
.viv-header [role="button"]:focus:not(:focus-visible),
.viv-header summary:focus:not(:focus-visible) {
  outline: none;
}

/* Desktop mega menu: visible, slim Vivacity teal scrollbar.
 * Applied only after JS creates the matching working scrollbar; otherwise the
 * native scrollbar remains available as a safe fallback.
 */
@media (min-width: 1221px) {
  .viv-mega-menu__surface.viv-mega-menu__surface--scrollbar-enhanced {
    scrollbar-width: none !important;
    -ms-overflow-style: none;
  }
  .viv-mega-menu__surface.viv-mega-menu__surface--scrollbar-enhanced::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .viv-mega-scrollbar {
    position: absolute;
    top: 13px;
    bottom: 13px;
    right: 8px;
    z-index: 12;
    width: 6px;
    border-radius: 99px;
    background: color-mix(in srgb,var(--viv-primary) 13%,transparent);
    pointer-events: auto;
    touch-action: none;
  }
  .viv-mega-scrollbar[hidden] { display: none !important; }
  .viv-mega-scrollbar__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: inherit;
    background: var(--viv-mega-accent, var(--viv-primary));
    box-shadow: 0 1px 4px color-mix(in srgb,var(--viv-primary-deep) 18%,transparent);
    cursor: grab;
    transition: background-color .15s ease;
    will-change: transform;
  }
  .viv-mega-scrollbar__thumb:hover,
  .viv-mega-scrollbar.is-dragging .viv-mega-scrollbar__thumb {
    background: var(--viv-primary);
  }
  .viv-mega-scrollbar.is-dragging .viv-mega-scrollbar__thumb { cursor: grabbing; }
}

/* Mobile off-canvas: a blurred/animated sticky header creates a fixed-position
   containing block, trapping the drawer at header height after scrolling.
   Remove that containing block only while the mobile drawer is open. */
@media (max-width: 1220px) {
  .viv-header--sticky-enabled.is-stuck.menu-open {
    animation: none;
    transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .viv-mobile-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
