/* Header, navigation, mega menu, and mobile drawer. */

.hd-chrome > header.wp-block-template-part {
  display: contents;
}

.hd-topbar {
  position: relative;
  z-index: 5;
}

.hd-topbar,
.hd-navbar {
  margin-block-start: 0 !important;
}

.hd-topbar {
  padding-top: 0.48rem !important;
  padding-bottom: 0.48rem !important;
  border-radius: calc(var(--hd-radius-xl) - 1px) calc(var(--hd-radius-xl) - 1px) 0 0;
  background: var(--wp--preset--color--accent);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.hd-topbar p,
.hd-topbar a,
.hd-navbar p,
.hd-navbar a,
.hd-footer p,
.hd-footer li,
.hd-footer a {
  font-family: var(--wp--preset--font-family--sans);
}

.hd-topbar__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 42px);
  width: 100%;
  min-height: 28px;
}

.hd-topbar__contact,
.hd-topbar__item {
  display: inline-flex;
  align-items: center;
}

.hd-topbar__contact {
  gap: clamp(12px, 1.6vw, 22px);
  min-width: 0;
}

.hd-topbar .hd-topbar__item {
  gap: 0.55rem;
  min-width: 0;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--wp--preset--font-family--sans);
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(31, 42, 46, 0.24);
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.hd-topbar .hd-topbar__item p {
  margin-block: 0;
  color: rgba(255, 255, 255, 0.94);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.hd-topbar .hd-topbar__item a {
  color: rgba(255, 255, 255, 0.94);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-decoration: none;
}

.hd-topbar__item::before {
  content: "";
  display: block;
  width: 1.06rem;
  height: 1.06rem;
  flex: 0 0 auto;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.hd-topbar__item--phone::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.1 4.25 9 3.5c.72-.28 1.53.04 1.87.73l.86 1.73c.29.59.15 1.3-.35 1.73l-1.13.98a10.78 10.78 0 0 0 5.08 5.08l.98-1.13c.43-.5 1.14-.64 1.73-.35l1.73.86c.69.34 1.01 1.15.73 1.87l-.75 1.9c-.28.71-.97 1.18-1.73 1.18C10.99 18.08 5.92 13.01 5.92 6.48c0-.76.47-1.45 1.18-1.73Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.1 4.25 9 3.5c.72-.28 1.53.04 1.87.73l.86 1.73c.29.59.15 1.3-.35 1.73l-1.13.98a10.78 10.78 0 0 0 5.08 5.08l.98-1.13c.43-.5 1.14-.64 1.73-.35l1.73.86c.69.34 1.01 1.15.73 1.87l-.75 1.9c-.28.71-.97 1.18-1.73 1.18C10.99 18.08 5.92 13.01 5.92 6.48c0-.76.47-1.45 1.18-1.73Z'/%3E%3C/svg%3E");
}

.hd-topbar__item--email::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.75 6.75h14.5v10.5H4.75V6.75Z'/%3E%3Cpath d='m5.25 7.25 6.75 5.5 6.75-5.5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.75 6.75h14.5v10.5H4.75V6.75Z'/%3E%3Cpath d='m5.25 7.25 6.75 5.5 6.75-5.5'/%3E%3C/svg%3E");
}

.hd-topbar__item--address::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s6.25-5.72 6.25-11.1A6.25 6.25 0 0 0 5.75 9.9C5.75 15.28 12 21 12 21Z'/%3E%3Cpath d='M12 12.3a2.35 2.35 0 1 0 0-4.7 2.35 2.35 0 0 0 0 4.7Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s6.25-5.72 6.25-11.1A6.25 6.25 0 0 0 5.75 9.9C5.75 15.28 12 21 12 21Z'/%3E%3Cpath d='M12 12.3a2.35 2.35 0 1 0 0-4.7 2.35 2.35 0 0 0 0 4.7Z'/%3E%3C/svg%3E");
}

.hd-topbar .hd-topbar__item:hover,
.hd-topbar .hd-topbar__item:focus-visible,
.hd-topbar .hd-topbar__item a:focus-visible {
  color: var(--wp--preset--color--white);
}

.hd-topbar .hd-topbar__item:focus-visible,
.hd-topbar .hd-topbar__item a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
  border-radius: 6px;
}

.hd-topbar__item--address {
  margin-left: auto;
  text-align: right;
}

.hd-topbar__separator {
  margin: 0;
  border: 0;
  width: 1px;
  height: 1.05rem;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.48);
}

.hd-navbar {
  position: sticky;
  top: 0;
  z-index: 1050;
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
  border-bottom: var(--hd-border-subtle-dark);
  background: var(--hd-surface-white-strong);
  box-shadow: 0 10px 28px rgba(31, 42, 46, 0.045);
}

body.admin-bar .hd-navbar {
  top: 32px;
}

.hd-navbar .wp-block-group.alignwide {
  min-height: 52px;
  gap: clamp(18px, 3vw, 44px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.hd-brand-lockup {
  gap: 14px;
  min-width: 0;
}

.hd-brand-logo {
  margin: 0;
}

.hd-brand-logo img {
  display: block;
  /* WordPress image block sizing can override the brand lockup width. */
  width: clamp(198px, 19vw, 270px) !important;
  height: auto;
  max-width: 100%;
}

.hd-header-nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  width: 100%;
}

.hd-desktop-nav {
  position: relative;
  justify-self: center;
}

.hd-desktop-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 1.8vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hd-desktop-nav__item {
  position: relative;
}

.hd-desktop-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  color: rgba(31, 42, 46, 0.78);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 180ms ease;
}

.hd-desktop-nav__link:hover,
.hd-desktop-nav__link:focus-visible,
.hd-desktop-nav__item--services:hover > .hd-desktop-nav__link,
.hd-desktop-nav__item--services:focus-within > .hd-desktop-nav__link {
  color: var(--wp--preset--color--accent);
}

.hd-desktop-nav__link:focus-visible {
  outline: 2px solid rgba(46, 124, 134, 0.18);
  outline-offset: 5px;
}

.hd-desktop-nav__link--placeholder,
.hd-desktop-nav__link--placeholder:hover,
.hd-desktop-nav__link--placeholder:focus-visible,
.hd-mobile-menu-list__placeholder,
.hd-mobile-menu-list__placeholder:hover,
.hd-mobile-menu-list__placeholder:focus-visible {
  color: rgba(31, 42, 46, 0.48);
  cursor: default;
  pointer-events: none;
}

.hd-desktop-nav__link--trigger {
  position: relative;
}

.hd-desktop-nav__chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 180ms ease;
}

.hd-desktop-nav__item--services:hover .hd-desktop-nav__chevron,
.hd-desktop-nav__item--services:focus-within .hd-desktop-nav__chevron {
  transform: translateY(1px) rotate(225deg);
}

.hd-mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 40;
  width: min(960px, calc(100vw - 40px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.hd-mega-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 18px;
}

.hd-desktop-nav__item--services:hover .hd-mega-menu,
.hd-desktop-nav__item--services:focus-within .hd-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hd-mega-menu__panel {
  position: relative;
  padding: 20px;
  border: var(--hd-border-soft-dark);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 34px 70px rgba(31, 42, 46, 0.16);
}

.hd-mega-menu__panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: var(--hd-mega-pointer-left, 50%);
  width: 22px;
  height: 22px;
  border-top: var(--hd-border-soft-dark);
  border-left: var(--hd-border-soft-dark);
  background: var(--wp--preset--color--white);
  transform: translateX(-50%) rotate(45deg);
}

.hd-mega-menu__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 22px;
  align-items: start;
}

.hd-mega-menu__services {
  min-width: 0;
}

.hd-mega-menu__heading-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hd-mega-menu__eyebrow {
  margin: 0;
  color: #539ea6;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hd-mega-menu__heading-line {
  width: 44px;
  height: 2px;
  border-radius: var(--hd-radius-pill);
  background: rgba(83, 158, 166, 0.4);
}

.hd-mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(var(--hd-menu-rows, 1), auto);
  grid-auto-flow: column;
  align-items: stretch;
  gap: 0 22px;
}

.hd-mega-menu__grid.is-layout-flow > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.hd-mega-menu__service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: var(--hd-border-soft-dark);
}

.hd-mega-menu__grid > .hd-mega-menu__service:nth-child(-n + 2) {
  padding-top: 6px;
}

.hd-mega-menu__grid > .hd-mega-menu__service:nth-last-child(-n + 2) {
  border-bottom: 0;
  padding-bottom: 6px;
}

.hd-mega-menu__service-copy {
  display: grid;
  gap: 4px;
}

.hd-mega-menu__service-title {
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.hd-mega-menu__service-description {
  color: #6e7f84;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.44;
}

.hd-mega-menu__service-arrow {
  color: var(--wp--preset--color--accent);
  font-size: 1.2rem;
  line-height: 1;
  transform: translateX(0);
  transition: transform 180ms ease;
}

.hd-mega-menu__service:hover .hd-mega-menu__service-arrow,
.hd-mega-menu__service:focus-visible .hd-mega-menu__service-arrow {
  transform: translateX(4px);
}

.hd-mega-menu__service:hover .hd-mega-menu__service-title,
.hd-mega-menu__service:focus-visible .hd-mega-menu__service-title {
  color: var(--wp--preset--color--accent);
}

.hd-mega-menu__service:focus-visible {
  outline: 2px solid rgba(46, 124, 134, 0.16);
  outline-offset: 8px;
  border-radius: var(--hd-radius-md);
}

.hd-mega-menu__cta {
  position: relative;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 16px 0 16px 28px;
  border-radius: 0;
  background: transparent;
  min-height: 100%;
  box-shadow: none;
}

.hd-mega-menu__cta::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 1px;
  border-radius: var(--hd-radius-pill);
  background:
    linear-gradient(180deg, rgba(46, 124, 134, 0), rgba(46, 124, 134, 0.24) 18%, rgba(46, 124, 134, 0.24) 82%, rgba(46, 124, 134, 0)),
    linear-gradient(180deg, rgba(240, 248, 249, 0.9), rgba(255, 255, 255, 0.98));
}

.hd-mega-menu__cta-mark {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hd-mega-menu__cta-mark img {
  display: block;
  max-width: min(78px, 40%);
  width: auto;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.hd-mega-menu__cta-title {
  margin: 0;
  max-width: 11ch;
  justify-self: center;
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(1.22rem, 1.5vw, 1.48rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.16;
  text-align: center;
  text-wrap: balance;
}

.hd-mega-menu__cta-copy,
.hd-mega-menu__cta-note {
  margin: 0;
  color: #7a8b8f;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.88rem;
  line-height: 1.52;
  text-align: center;
}

.hd-mega-menu__cta-link {
  width: 100%;
}

.hd-mobile-menu-toggle,
.hd-mobile-menu-drawer {
  display: none;
}

.hd-mobile-menu-toggle {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(31, 42, 46, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(31, 42, 46, 0.08);
  cursor: pointer;
}

.hd-mobile-menu-toggle span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: var(--hd-radius-pill);
  background: var(--wp--preset--color--ink);
  transform: translateX(-50%);
}

.hd-mobile-menu-toggle span:nth-child(1) {
  top: 18px;
}

.hd-mobile-menu-toggle span:nth-child(2) {
  top: 25px;
}

.hd-mobile-menu-toggle span:nth-child(3) {
  top: 32px;
}

.hd-mobile-menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

.hd-mobile-menu-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 42, 46, 0.36);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity var(--hd-transition-fast);
}

.hd-mobile-menu-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(390px, calc(100vw - 20px));
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  border-left: var(--hd-border-soft-dark);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(234, 243, 244, 0.96) 0%, rgba(247, 248, 246, 0.98) 42%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: -18px 0 54px rgba(31, 42, 46, 0.2);
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hd-mobile-menu-drawer__header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px 16px 14px;
  border-bottom: var(--hd-border-soft-accent);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(46, 124, 134, 0.98) 0%, rgba(32, 88, 96, 0.96) 100%);
  color: var(--wp--preset--color--white);
  box-shadow: 0 16px 34px rgba(31, 42, 46, 0.12);
}

.hd-mobile-menu-drawer__title {
  text-align: center;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0;
}

.hd-mobile-menu-drawer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  color: inherit;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--hd-inset-highlight);
  transition:
    background-color var(--hd-transition-fast),
    transform var(--hd-transition-fast);
}

.hd-mobile-menu-drawer__icon:hover,
.hd-mobile-menu-drawer__icon:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hd-mobile-menu-drawer__icon:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.58);
  outline-offset: 3px;
}

.hd-mobile-menu-drawer__icon.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.hd-mobile-menu-drawer__body {
  position: relative;
  height: calc(100% - 76px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(247, 248, 246, 0.9) 100%);
}

.hd-mobile-menu-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 18px 14px 22px;
  background: transparent;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity var(--hd-transition-fast);
}

.hd-mobile-menu-panel--root {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(0);
  opacity: 1;
}

.hd-mobile-menu-panel--services {
  transform: translateX(100%);
  opacity: 0;
}

.hd-mobile-menu-panel__breadcrumb {
  margin-bottom: 14px;
  padding: 0 4px;
  color: var(--wp--preset--color--accent);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hd-mobile-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hd-mobile-menu-list li + li {
  margin-top: 8px;
}

.hd-mobile-menu-list a,
.hd-mobile-menu-list__placeholder,
.hd-mobile-menu-list__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 0.95rem 1rem;
  border: var(--hd-border-soft-dark);
  border-radius: var(--hd-radius-md);
  background: rgba(255, 255, 255, 0.82);
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(31, 42, 46, 0.045);
  transition:
    border-color var(--hd-transition-fast),
    box-shadow var(--hd-transition-fast),
    color var(--hd-transition-fast),
    transform var(--hd-transition-fast),
    background-color var(--hd-transition-fast);
}

.hd-mobile-menu-list a:hover,
.hd-mobile-menu-list a:focus-visible,
.hd-mobile-menu-list__button:hover,
.hd-mobile-menu-list__button:focus-visible {
  border-color: var(--hd-border-color-accent);
  background: var(--hd-surface-white-strong);
  color: var(--wp--preset--color--accent);
  box-shadow: 0 16px 34px rgba(46, 124, 134, 0.08);
  transform: translateY(-1px);
}

.hd-mobile-menu-list a:focus-visible,
.hd-mobile-menu-list__button:focus-visible {
  outline: var(--hd-focus-outline);
  outline-offset: 3px;
}

.hd-mobile-menu-list__button {
  cursor: pointer;
}

.hd-mobile-menu-list__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-left: 1rem;
  border-radius: var(--hd-radius-pill);
  background: rgba(46, 124, 134, 0.08);
  color: var(--wp--preset--color--accent);
  font-size: 1.15rem;
  line-height: 1;
  transition:
    background-color var(--hd-transition-fast),
    transform var(--hd-transition-fast);
}

.hd-mobile-menu-list__button:hover .hd-mobile-menu-list__arrow,
.hd-mobile-menu-list__button:focus-visible .hd-mobile-menu-list__arrow {
  background: rgba(46, 124, 134, 0.14);
  transform: translateX(3px);
}

.hd-mobile-menu-list--services a {
  min-height: 52px;
  padding-top: 0.78rem;
  padding-bottom: 0.78rem;
  font-size: 0.96rem;
  font-weight: 600;
}

.hd-mobile-menu-cta {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px;
  border: var(--hd-border-soft-accent);
  border-radius: var(--hd-radius-lg);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    var(--hd-inset-highlight),
    0 16px 34px rgba(31, 42, 46, 0.055);
}

.hd-mobile-menu-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  width: 100%;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: var(--hd-radius-md);
  border: 1px solid var(--hd-border-color-accent);
  background: var(--hd-surface-white-strong);
  color: var(--wp--preset--color--accent);
  font-family: var(--wp--preset--font-family--sans);
  font-size: var(--wp--preset--font-size--cta);
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow:
    var(--hd-inset-highlight),
    0 12px 26px rgba(31, 42, 46, 0.045);
  transition:
    background-color var(--hd-transition-base),
    box-shadow var(--hd-transition-base),
    transform var(--hd-transition-base);
}

.hd-mobile-menu-cta__button:hover,
.hd-mobile-menu-cta__button:focus-visible {
  border-color: var(--hd-border-color-accent-hover);
  background: var(--hd-surface-white);
  color: var(--hd-color-hover-accent);
  box-shadow: 0 16px 34px rgba(46, 124, 134, 0.08);
  transform: translateY(-1px);
}

.hd-mobile-menu-cta__button:focus-visible {
  outline: var(--hd-focus-outline);
  outline-offset: 3px;
}

.hd-mobile-menu-cta__button--phone {
  border-color: transparent;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--white);
  box-shadow: var(--hd-shadow-cta);
}

.hd-mobile-menu-cta__button--phone:hover,
.hd-mobile-menu-cta__button--phone:focus-visible {
  border-color: transparent;
  background: var(--hd-color-hover-accent);
  color: var(--wp--preset--color--white);
  box-shadow: var(--hd-shadow-cta-hover);
}

.hd-mobile-menu-cta__icon {
  width: 1.04rem;
  height: 1.04rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hd-mobile-menu-drawer.is-open {
  pointer-events: auto;
}

.hd-mobile-menu-drawer.is-open .hd-mobile-menu-drawer__overlay {
  opacity: 1;
}

.hd-mobile-menu-drawer.is-open .hd-mobile-menu-drawer__panel {
  transform: translateX(0);
}

.hd-mobile-menu-drawer[data-current-panel="services"] .hd-mobile-menu-panel--root {
  transform: translateX(-10%);
  opacity: 0;
}

.hd-mobile-menu-drawer[data-current-panel="services"] .hd-mobile-menu-panel--services {
  transform: translateX(0);
  opacity: 1;
}

.hd-mobile-menu-open,
.hd-mobile-menu-open body {
  overflow: hidden;
}

/* Responsive rules scoped to header ownership.
 * Remaining !important declarations here are WordPress image sizing escape hatches.
 */

@media (max-width: 782px) {
  .hd-topbar__layout {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .hd-topbar__contact {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .hd-topbar .hd-topbar__item {
    font-size: 0.79rem;
  }

  .hd-topbar__item--address {
    margin-left: 0;
    text-align: center;
  }

  .hd-navbar {
    padding-top: 0.48rem !important;
    padding-bottom: 0.48rem !important;
  }

  .hd-brand-logo img {
    width: min(202px, 56vw) !important;
  }
  
  .hd-navbar .wp-block-group.alignwide {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
  }
  
  .hd-header-nav {
    display: flex;
    margin-left: auto;
    width: auto;
  }
  
  .hd-desktop-nav {
    display: none;
  }
  
  .hd-mobile-menu-toggle,
  .hd-mobile-menu-drawer {
    display: block;
  }
  
  .hd-navbar .hd-booking-link {
    display: none;
  }

  .hd-mobile-menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .hd-mobile-menu-toggle span {
    width: 18px;
  }

  .hd-mobile-menu-toggle span:nth-child(1) {
    top: 15px;
  }

  .hd-mobile-menu-toggle span:nth-child(2) {
    top: 21px;
  }

  .hd-mobile-menu-toggle span:nth-child(3) {
    top: 27px;
  }
}

@media (min-width: 783px) and (max-width: 1080px) {
  .hd-mega-menu {
    width: min(860px, calc(100vw - 28px));
  }
  
  .hd-mega-menu__content {
    grid-template-columns: 1fr;
  }
  
  .hd-mega-menu__cta {
    max-width: 300px;
    justify-self: end;
  }
}

@media (min-width: 783px) and (max-width: 920px) {
  .hd-header-nav {
    gap: 18px;
  }
  
  .hd-desktop-nav__list {
    gap: 16px;
  }
  
  .hd-desktop-nav__link {
    font-size: 0.94rem;
  }
  
  .hd-mega-menu__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
}

@media (max-width: 600px) {
  .hd-topbar {
    padding-right: var(--wp--preset--spacing--s) !important;
    padding-left: var(--wp--preset--spacing--s) !important;
    border-radius: calc(var(--hd-radius-lg) - 1px) calc(var(--hd-radius-lg) - 1px) 0 0;
  }

  .hd-topbar .hd-topbar__layout {
    justify-content: center;
  }

  .hd-topbar__layout,
  .hd-topbar__contact {
    flex-direction: column;
  }

  .hd-topbar .hd-topbar__item--email,
  .hd-topbar .hd-topbar__item--address,
  .hd-topbar__separator {
    display: none;
  }

  .hd-topbar__item {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .hd-navbar {
    padding-right: var(--wp--preset--spacing--s) !important;
    padding-left: var(--wp--preset--spacing--s) !important;
  }

  body.admin-bar .hd-navbar {
    top: 46px;
  }

  body.admin-bar .hd-mobile-menu-drawer__panel {
    top: 46px;
    height: calc(100% - 46px);
  }
}

@media (min-width: 601px) and (max-width: 782px) {
  body.admin-bar .hd-navbar {
    top: 32px;
  }

  body.admin-bar .hd-mobile-menu-drawer__panel {
    top: 32px;
    height: calc(100% - 32px);
  }
}
