.service-header {
  height: 158px;
}

.service-header .header-inner {
  height: 96px;
}

.service-primary-nav {
  position: relative;
  display: block;
  border-top: 1px solid #eee9e7;
  border-bottom: 1px solid #eee9e7;
  background: #fff;
}

.service-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.2vw, 42px);
  min-height: 62px;
}

.service-nav-inner > a,
.service-nav-inner > .nav-dropdown > button {
  display: block;
  width: auto;
  padding: 20px 0 17px;
  border-bottom: 3px solid transparent;
  color: #57545b;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.service-nav-inner > a:hover,
.service-nav-inner > a:focus-visible,
.service-nav-inner > a.active,
.service-nav-inner > .nav-dropdown > button:hover,
.service-nav-inner > .nav-dropdown > button:focus-visible {
  border-bottom-color: #78b28e;
  color: #16083e;
}

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

.mega-dropdown {
  position: static;
}

.mega-menu {
  position: fixed;
  top: 150px;
  left: 50%;
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 168px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid #e4e0e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(22, 8, 62, .16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.mega-dropdown:hover .mega-menu,
.mega-dropdown:focus-within .mega-menu,
.mega-dropdown.open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-menu-top {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid #e4e0e1;
  background: #faf7f5;
}

.mega-menu-top strong,
.mega-menu-top span {
  display: block;
}

.mega-menu-top strong {
  color: #16083e;
  font-size: 1.05rem;
}

.mega-menu-top span {
  color: #706d72;
  font-size: .78rem;
}

.mega-menu-top > a {
  color: #315f45;
  font-size: .86rem;
  font-weight: 800;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 12px;
}

.mega-menu-group {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid #eee9e7;
}

.mega-menu-group:last-child {
  border-right: 0;
}

.mega-menu-group h2 {
  margin: 0 0 8px;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .025em;
}

.mega-menu-group h2 a {
  color: #315f45;
}

.mega-menu-group > a {
  display: block;
  padding: 5px 7px;
  border-radius: 5px;
  color: #57545b;
  font-size: .77rem;
  line-height: 1.28;
}

.mega-menu-group > a:hover,
.mega-menu-group > a:focus-visible,
.mega-menu-group > a.active {
  background: #faf7f5;
  color: #16083e;
}

.mega-menu-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 15px 24px;
  border-top: 1px solid #e4e0e1;
  background: #fff;
}

.mega-menu-bottom a {
  color: #4f916a;
  font-size: .8rem;
  font-weight: 800;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .mega-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mega-menu-group:nth-child(3) {
    border-right: 0;
  }
}

@media (max-width: 1100px) {
  .service-header {
    height: 84px;
  }

  .service-header .header-inner {
    height: 84px;
  }

  .service-primary-nav {
    position: absolute;
    top: 84px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 84px);
    padding: 0;
    overflow-y: auto;
    border-top: 1px solid #eee9e7;
    border-bottom: 0;
    box-shadow: 0 18px 30px rgba(22, 8, 62, .1);
  }

  .primary-nav.open {
    display: block;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }

  .service-nav-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    width: min(100%, 760px);
    min-height: 0;
    padding: 14px 24px 24px;
  }

  .service-nav-inner > a,
  .service-nav-inner > .nav-dropdown > button {
    width: 100%;
    padding: 12px 0;
    border-bottom: 0;
    text-align: left;
  }

  .mobile-nav-utility {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e4e0e1;
  }

  .mobile-nav-utility:before {
    content: 'Clinic information';
    margin-bottom: 5px;
    color: #4f916a;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .mobile-nav-utility a {
    padding: 10px 0;
    color: #57545b;
    font-size: .9rem;
    font-weight: 700;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > div:last-child {
    display: block;
  }

  .footer-grid a {
    overflow-wrap: anywhere;
  }

  .mega-dropdown {
    position: relative;
  }

  .mega-menu,
  .mega-dropdown:hover .mega-menu,
  .mega-dropdown:focus-within .mega-menu {
    position: static;
    display: none;
    width: 100%;
    max-height: 58vh;
    margin: 4px 0 10px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .mega-dropdown.open .mega-menu {
    display: block;
    transform: none;
  }

  .mega-menu-top {
    padding: 14px 16px;
  }

  .mega-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .mega-menu-group,
  .mega-menu-group:nth-child(3) {
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid #eee9e7;
  }

  .mega-menu-group > a {
    padding: 7px;
    font-size: .82rem;
  }

  .mega-menu-bottom {
    padding: 14px 18px;
  }
}

@media (max-width: 620px) {
  .mega-menu-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
  }

  .mega-menu-group h2 {
    font-size: .96rem;
  }

  .mega-menu-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.treatment-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.treatment-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid #e4e0e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(22, 8, 62, .08);
}

.treatment-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.treatment-gallery figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
}

.treatment-gallery figcaption span {
  color: #4f916a;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.treatment-gallery figcaption strong {
  color: #16083e;
}

.floating-whatsapp {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 20px 12px 15px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: #1f9d55;
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  box-shadow: 0 12px 34px rgba(17, 93, 48, .34);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  background: #187d43;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(17, 93, 48, .4);
}

.floating-whatsapp svg {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .treatment-gallery {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
    min-height: 0;
    justify-content: center;
    padding: 0;
  }

  .floating-whatsapp span {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
