@import url('https://fonts.cdnfonts.com/css/century-gothic');

/* ==========================================================================
   ZHA-INSPIRED HEADER, NAV & COMPONENTS STYLES
   HEADER & FOOTER ARE BLACK (#0C0C0C / #080808) AS REQUESTED
   ========================================================================== */

/* 1. HEADER NAVBAR (BLACK THEME) */
#navbar.jmd-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 76px !important;
  z-index: 9999 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 clamp(24px, 4vw, 64px) !important;

  background: rgba(10, 10, 10, 0.45) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
}

#navbar.jmd-navbar.scrolled {
  height: 68px !important;
  background: rgba(8, 8, 8, 0.75) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

/* BRAND LOGO & TYPOGRAPHY */
.jmd-brand-logo {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  text-decoration: none !important;
}

.jmd-logo-image {
  height: 46px !important;
  width: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: brightness(1) contrast(1.1) !important;
}

.jmd-brand-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 2.5px !important;
  color: var(--text-light) !important;
  text-transform: uppercase !important;
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.1 !important;
}

.jmd-brand-sub {
  font-size: 9px !important;
  font-weight: 400 !important;
  letter-spacing: 3.5px !important;
  color: var(--text-cyan) !important;
  margin-top: 2px !important;
}

/* DESKTOP NAV LINKS */
.jmd-desktop-nav {
  display: flex !important;
  align-items: center !important;
  gap: 36px !important;
  height: 100% !important;
}

.jmd-desktop-nav.nav-items-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-8px) !important;
}

.jmd-desktop-nav .nav-link {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none !important;
  padding: 8px 0 !important;
  position: relative !important;
  transition: color 0.3s ease !important;
}

.jmd-desktop-nav .nav-link:hover,
.jmd-desktop-nav .nav-link.active,
.jmd-desktop-nav .nav-link.jmd-active-link {
  color: var(--text-light) !important;
}

.jmd-desktop-nav .nav-link::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background: #ffffff !important;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.jmd-desktop-nav .nav-link:hover::after,
.jmd-desktop-nav .nav-link.active::after {
  width: 100% !important;
}

/* MEGA MENU CONTAINERS (BLACK THEME) */
.nav-item-has-mega {
  position: relative !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.nav-icon {
  width: 7px !important;
  height: 7px !important;
  margin: -4px 0 0 8px !important;
  border-right: 1.5px solid currentColor !important;
  border-bottom: 1.5px solid currentColor !important;
  transition: transform 0.3s ease !important;
  display: inline-block !important;
  transform: rotate(45deg) !important;
}

.nav-item-has-mega:hover .nav-icon {
  transform: translateY(3px) rotate(225deg) !important;
}

.nav-item-has-mega:focus-within .nav-icon {
  transform: translateY(3px) rotate(225deg) !important;
}

.jmd-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: middle;
}

/* SIMPLE DROPDOWN MENU (Matches old project) */
.jmd-desktop-dropdown {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.jmd-dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  z-index: 10000 !important;

  display: block !important;
  width: 220px !important;
  margin: 0 !important;
  padding: 10px !important;

  visibility: hidden !important;
  opacity: 0 !important;

  background: #30302e !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 2px !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45) !important;

  transform: translate(-50%, 10px) !important;
  pointer-events: none !important;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease !important;
}

.jmd-desktop-dropdown:hover .jmd-dropdown-menu {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translate(-50%, 0) !important;
}

.jmd-dropdown-link {
  display: block !important;
  width: 100% !important;
  padding: 12px 16px !important;

  color: #d6d6d2 !important;
  background: transparent !important;

  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;

  transition:
    color 0.2s ease,
    background-color 0.2s ease !important;
}

.jmd-dropdown-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.mega-menu {
  position: fixed !important;
  top: 76px !important;
  left: 50vw !important;
  transform: translateX(-50%) translateY(15px) !important;
  width: min(1100px, calc(100vw - 32px)) !important;
  height: 440px !important;
  background: rgba(14, 14, 14, 0.98) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7) !important;
  display: flex !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 10000 !important;
}

.nav-item-has-mega:hover .mega-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

.nav-item-has-mega:focus-within .mega-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* MEGA MENU COLUMNS */
.mega-menu-left {
  width: 280px !important;
  padding: 40px 30px !important;
  background: rgba(8, 8, 8, 0.6) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.mega-menu-heading {
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--text-light) !important;
  margin-bottom: 12px !important;
}

.mega-menu-desc {
  font-size: 12px !important;
  color: var(--text-light-muted) !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
}

.btn-mega-all {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--text-light) !important;
  text-decoration: none !important;
  border-bottom: 1px solid #ffffff !important;
  padding-bottom: 4px !important;
  width: fit-content !important;
  transition: opacity 0.2s !important;
}

.btn-mega-all:hover {
  opacity: 0.7 !important;
}

.mega-menu-middle {
  width: 320px !important;
  padding: 30px 30px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  overflow-y: auto !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.mega-menu-sub-link,
.mega-menu-link {
  padding: 10px 12px !important;
  color: #cccccc !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-radius: 4px !important;
  transition: all 0.25s ease !important;
}

.mega-menu-sub-link:hover,
.mega-menu-link:hover,
.mega-menu-sub-link.active {
  color: var(--text-light) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  padding-left: 18px !important;
}

.mega-menu-arrow {
  opacity: 0 !important;
  transform: translateX(-6px) !important;
  transition: all 0.25s ease !important;
}

.mega-menu-sub-link:hover .mega-menu-arrow,
.mega-menu-link:hover .mega-menu-arrow {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.mega-menu-right {
  flex: 1 !important;
  padding: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mega-menu-image-container {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

.mega-preview-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mega-menu-image-container:hover .mega-preview-img {
  transform: scale(1.04) !important;
}

.mega-menu-caption {
  position: absolute !important;
  bottom: 20px !important;
  left: 20px !important;
  right: 20px !important;
  background: rgba(10, 10, 10, 0.88) !important;
  backdrop-filter: blur(10px) !important;
  padding: 10px 16px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  color: var(--text-light) !important;
  text-transform: uppercase !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 2px !important;
}

/* HEADER ACTIONS (Search & Enquire) */
.jmd-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

.zha-search-trigger {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
}

.zha-search-trigger:hover {
  color: var(--text-light) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.zha-header-btn {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--text-light) !important;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 8px 18px !important;
  border-radius: 2px !important;
  transition: all 0.3s ease !important;
}

.zha-header-btn:hover {
  background: #ffffff !important;
  color: var(--text-primary) !important;
  border-color: #ffffff !important;
}

/* SEARCH MODAL OVERLAY (BLACK THEME) */
.zha-search-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10001 !important;
  background: rgba(8, 8, 8, 0.96) !important;
  backdrop-filter: blur(30px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.zha-search-modal.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.zha-search-inner {
  width: clamp(320px, 90vw, 800px) !important;
  position: relative !important;
}

.zha-search-close {
  position: absolute !important;
  top: -60px !important;
  right: 0 !important;
  background: transparent !important;
  border: none !important;
  color: var(--text-light) !important;
  font-size: 24px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: transform 0.3s ease !important;
}

.zha-search-close:hover {
  transform: rotate(90deg) !important;
}

.zha-search-label {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 3px !important;
  color: var(--text-cyan) !important;
  display: block !important;
  margin-bottom: 16px !important;
}

.zha-input-wrapper {
  position: relative !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
  display: flex !important;
  align-items: center !important;
}

.zha-input-wrapper input {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  font-size: clamp(20px, 4vw, 36px) !important;
  font-weight: 300 !important;
  color: var(--text-light) !important;
  padding: 16px 0 !important;
  font-family: inherit !important;
}

.zha-input-wrapper i,
.zha-input-wrapper .jmd-icon {
  color: var(--text-light) !important;
  font-size: 24px !important;
  width: 24px;
  height: 24px;
}

.zha-search-tags {
  margin-top: 30px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 12px !important;
  color: var(--text-cyan) !important;
}

.zha-search-tags a {
  color: var(--text-light) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  font-size: 11px !important;
  letter-spacing: 1px !important;
  transition: background 0.3s !important;
}

.zha-search-tags a:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

/* MOBILE FULLSCREEN OVERLAY (BLACK THEME) */
.fullscreen-menu {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10005 !important;
  background: #080808 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 30px 40px !important;
  overflow-y: auto !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fullscreen-menu.active {
  opacity: 1 !important;
  visibility: visible !important;
}

#jmd-mobile-menu.active .jmd-mobile-navigation,
#jmd-mobile-menu.active .jmd-mobile-navigation > *,
#jmd-mobile-menu.active .jmd-mobile-navigation a,
#jmd-mobile-menu.active .jmd-mobile-navigation summary {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

#jmd-mobile-menu.active .jmd-mobile-navigation a,
#jmd-mobile-menu.active .jmd-mobile-navigation summary {
  color: #ffffff !important;
}

.jmd-mobile-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.jmd-mobile-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}

.jmd-mobile-logo img {
  height: 40px !important;
  width: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

.jmd-mobile-brand-title {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  color: var(--text-light) !important;
}

.jmd-close-button {
  background: transparent !important;
  border: none !important;
  color: var(--text-light) !important;
  font-size: 24px !important;
  cursor: pointer !important;
}

.jmd-mobile-navigation {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin: auto 0 !important;
}

.jmd-mobile-expertise {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 12px 0;
}

.jmd-mobile-expertise summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  list-style: none;
  text-transform: uppercase;
}

.jmd-mobile-expertise summary::-webkit-details-marker {
  display: none;
}

.mobile-chevron {
  width: 8px;
  height: 8px;
  margin: -4px 3px 0 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.jmd-mobile-expertise[open] .mobile-chevron {
  transform: rotate(225deg);
}

.jmd-mobile-expertise-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  max-height: min(36vh, 300px);
  overflow-y: auto;
  padding: 18px 0 4px;
}

.jmd-mobile-expertise-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.jmd-mobile-expertise-links a:hover,
.jmd-mobile-expertise-links a:focus-visible,
.jmd-mobile-expertise-links a.active {
  color: #ffffff;
}

.jmd-mobile-link {
  font-size: clamp(20px, 5vw, 32px) !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.jmd-mobile-link:hover,
.jmd-mobile-link.active {
  color: var(--text-light) !important;
  padding-left: 10px !important;
}

.jmd-mobile-footer-info {
  font-size: 11px !important;
  letter-spacing: 2px !important;
  color: var(--text-light-muted) !important;
  display: flex !important;
  justify-content: space-between !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 20px !important;
}

@media (max-width: 1024px) {
  .jmd-desktop-nav,
  .zha-search-trigger,
  .zha-header-btn {
    display: none !important;
  }

  html body #menuToggle {
    display: flex !important;
  }
}

/* Keep the mobile menu control visible over the dark glass header. */
html body #menuToggle {
  width: 46px !important;
  height: 46px !important;
  padding: 10px !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border: 1px solid rgba(255, 255, 255, .32) !important;
  border-radius: 50% !important;
  background: rgba(10, 10, 10, .42) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

html body #menuToggle span {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  flex: 0 0 2px !important;
  border-radius: 2px !important;
  background: #fff !important;
}

html body #menuToggle.active span:nth-child(1),
html body #menuToggle.active span:nth-child(3) {
  background: #fff !important;
}

/* The global fullscreen navigation type scale is for primary links only. */
.fullscreen-menu .jmd-mobile-expertise-links a {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) 12px !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  min-height: 56px !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.015)) !important;
  font-size: clamp(11px, 3vw, 13px) !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  letter-spacing: .06em !important;
  text-align: left !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  transition: border-color .2s ease, background .2s ease, transform .2s ease !important;
}

.fullscreen-menu .jmd-mobile-expertise-links a::before {
  color: #8de2df !important;
  content: "0" counter(mobile-expertise) !important;
  counter-increment: mobile-expertise !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
}

.fullscreen-menu .jmd-mobile-expertise-links a::after {
  color: rgba(255,255,255,.6) !important;
  content: "↗" !important;
  font-size: 12px !important;
}

.fullscreen-menu .jmd-mobile-expertise-links a:hover,
.fullscreen-menu .jmd-mobile-expertise-links a:focus-visible {
  border-color: rgba(141, 226, 223, .6) !important;
  background: rgba(141, 226, 223, .09) !important;
  letter-spacing: .06em !important;
  transform: translateY(-1px) !important;
}

.jmd-mobile-expertise-links { counter-reset: mobile-expertise; }

.jmd-mobile-expertise summary {
  min-height: 42px;
  letter-spacing: .14em;
}

/* Give Expertise its own featured entry in the mobile navigation. */
.jmd-mobile-expertise {
  padding: 0 !important;
  border: 0 !important;
}

.fullscreen-menu .jmd-mobile-expertise .jmd-expertise-trigger {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 88px !important;
  padding: 14px 48px !important;
  border: 1px solid rgba(141, 226, 223, .28) !important;
  background: linear-gradient(110deg, rgba(141, 226, 223, .075), rgba(255,255,255,.018) 65%) !important;
  color: #fff !important;
  text-align: center !important;
  list-style: none !important;
}

.jmd-expertise-trigger::-webkit-details-marker { display: none !important; }

.jmd-expertise-trigger-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 5px !important;
}

.jmd-expertise-trigger-title {
  color: #fff !important;
  font-size: clamp(20px, 5vw, 32px) !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

.jmd-expertise-trigger-caption {
  color: #8de2df !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: .16em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
}

.jmd-expertise-trigger-icon {
  position: absolute !important;
  right: 20px !important;
  top: 50% !important;
  width: 16px !important;
  height: 16px !important;
  transform: translateY(-50%) !important;
  transition: transform .2s ease !important;
}

.jmd-expertise-chevron {
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 9px !important;
  height: 9px !important;
  border-right: 1.5px solid #8de2df !important;
  border-bottom: 1.5px solid #8de2df !important;
  transform: rotate(45deg) !important;
  transition: transform .2s ease !important;
}

.jmd-mobile-expertise[open] .jmd-expertise-chevron { transform: rotate(225deg) !important; }
.jmd-expertise-trigger:hover,
.jmd-expertise-trigger:focus-visible { border-color: rgba(141, 226, 223, .65) !important; }

@media (max-width: 600px) {
  .fullscreen-menu {
    padding: 22px 24px !important;
  }

  .jmd-mobile-navigation {
    width: 100% !important;
    gap: 12px !important;
  }

  /* Keep primary mobile menu links consistent with the homepage on every page. */
  .fullscreen-menu .jmd-mobile-navigation > .jmd-mobile-link {
    display: block !important;
    width: 100% !important;
    padding: 10px 0 !important;
    color: #fff !important;
    text-align: center !important;
    letter-spacing: .12em !important;
  }

  .fullscreen-menu .jmd-mobile-link:hover,
  .fullscreen-menu .jmd-mobile-link.active {
    padding-left: 0 !important;
  }

  .fullscreen-menu .jmd-mobile-expertise .jmd-expertise-trigger {
    min-height: 66px !important;
    padding: 9px 42px !important;
    border: 0 !important;
    background: transparent !important;
  }

  .fullscreen-menu .jmd-expertise-trigger-title {
    font-size: clamp(20px, 5vw, 32px) !important;
  }

  .jmd-mobile-expertise-links {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    max-height: min(42vh, 340px) !important;
    padding: 8px 0 0 !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
  }

  .fullscreen-menu .jmd-mobile-expertise-links a {
    grid-template-columns: 28px minmax(0, 1fr) 14px !important;
    gap: 10px !important;
    min-height: 46px !important;
    padding: 7px 4px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
    background: transparent !important;
    font-size: 11px !important;
    letter-spacing: .12em !important;
  }

  .fullscreen-menu .jmd-mobile-expertise-links a::before {
    display: grid !important;
    place-items: center !important;
    width: 23px !important;
    height: 23px !important;
    border: 1px solid rgba(141,226,223,.36) !important;
    border-radius: 50% !important;
    font-size: 8px !important;
  }

  .fullscreen-menu .jmd-mobile-expertise-links a::after {
    justify-self: end !important;
    font-size: 13px !important;
  }

  .jmd-mobile-footer-info {
    flex-wrap: wrap !important;
    gap: 8px 16px !important;
  }
}

/* =========================================================
   UNIVERSAL SUBPAGE HERO SECTION (.page-hero)
   ========================================================= */
.page-hero {
  position: relative !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 480px !important;
  height: 58vh !important;
  max-height: 680px !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: #091c1e !important;
  box-sizing: border-box !important;
  padding: 0 6% 60px 6% !important;
}

.page-hero-image {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
  filter: brightness(0.75) contrast(1.1) saturate(1.05) !important;
  transform: scale(1.02) !important;
  transition: transform 10s ease !important;
}

.page-hero:hover .page-hero-image {
  transform: scale(1.06) !important;
}

.page-hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(
    180deg,
    rgba(8, 20, 22, 0.65) 0%,
    rgba(8, 20, 22, 0.35) 45%,
    rgba(8, 20, 22, 0.85) 85%,
    rgba(8, 20, 22, 0.98) 100%
  ) !important;
}

.page-hero-container,
.page-hero-content {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 950px !important;
  text-align: left !important;
}

.category-badge,
.page-hero-category {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 3.5px !important;
  text-transform: uppercase !important;
  color: #5fd6db !important;
  margin-bottom: 20px !important;
  background: rgba(0, 143, 149, 0.25) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 6px 16px !important;
  border: 1px solid rgba(95, 214, 219, 0.3) !important;
  border-radius: 30px !important;
}

.page-hero-title {
  font-family: var(--font-heading, 'Inter', sans-serif) !important;
  font-size: clamp(3rem, 6.5vw, 5.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -1.5px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  margin: 0 0 18px 0 !important;
  text-transform: uppercase !important;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5) !important;
}

.page-hero-title em,
.page-hero-title .title-highlight {
  font-style: normal !important;
  color: #5fd6db !important;
  -webkit-text-fill-color: #5fd6db !important;
}

.page-hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem) !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  max-width: 780px !important;
  margin: 0 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5) !important;
}

/* Keep all Expertise-page copy upright. */
.page-expertise em,
.cm-page em,
.hp-page em,
.ow-page em,
.fh-page em,
.sd-page em,
.rs-page em,
.rv-page em,
.ow-page .ow-image-caption p,
.ow-page .ow-closing-copy p,
.fh-page .fh-pause .fh-heading,
.sd-page .sd-pause .sd-heading,
.rs-page .rs-pause .rs-heading,
.rs-page .rs-hero-kicker {
  font-style: normal !important;
}

/* Keep all site copy in Century Gothic without changing Font Awesome glyphs. */
html body:not(#jmd-keep-icon-font) {
  font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif !important;
}

html body :not(#jmd-keep-icon-font) {
  font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif !important;
}

html body :not(#jmd-keep-icon-font).fa,
html body :not(#jmd-keep-icon-font).fas,
html body :not(#jmd-keep-icon-font).fa-solid,
html body :not(#jmd-keep-icon-font).far,
html body :not(#jmd-keep-icon-font).fa-regular {
  font-family: 'Font Awesome 6 Free' !important;
}

html body :not(#jmd-keep-icon-font).fab,
html body :not(#jmd-keep-icon-font).fa-brands {
  font-family: 'Font Awesome 6 Brands' !important;
}

/* Match every non-home hero to the Projects page dimensions and image treatment. */
html body .hero-section,
html body .page-hero,
html body .zha-contact-hero,
html body .zha-people-hero,
html body .cm-hero,
html body .hp-hero,
html body .fh-hero,
html body .sd-hero,
html body .rs-hero,
html body .rv-hero,
html body .ow-hero {
  position: relative !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 480px !important;
  height: clamp(480px, calc(100vh - 76px), 800px) !important;
  max-height: 800px !important;
  margin-top: 0 !important;
  padding: 0 6% 60px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

html body .page-hero-image,
html body .zha-contact-hero-bg,
html body .zha-people-hero-bg,
html body .cm-hero > img,
html body .hp-hero > img,
html body .fh-hero > img,
html body .sd-hero > img,
html body .rs-hero > img,
html body .rv-hero > img,
html body .ow-hero-image > img,
html body .team-bg-stripe img {
  filter: none !important;
}

html body .page-hero-image,
html body .zha-contact-hero-bg {
  background-position: center center !important;
  background-size: cover !important;
  transform: none !important;
}

html body .cm-hero > img,
html body .hp-hero > img,
html body .fh-hero > img,
html body .sd-hero > img,
html body .rs-hero > img,
html body .rv-hero > img,
html body .ow-hero-image > img {
  transform: none !important;
}

html body .hero-section::before,
html body .page-hero-overlay,
html body .zha-contact-hero-overlay,
html body .zha-people-hero-overlay,
html body .cm-hero::after,
html body .hp-hero::after,
html body .fh-hero::after,
html body .sd-hero::after,
html body .rs-hero::after,
html body .rv-hero::after,
html body .ow-hero::after {
  background: linear-gradient(
    180deg,
    rgba(8, 20, 22, .65) 0%,
    rgba(8, 20, 22, .35) 45%,
    rgba(8, 20, 22, .85) 85%,
    rgba(8, 20, 22, .98) 100%
  ) !important;
}

html body .hero-title {
  z-index: 2 !important;
}

@media (max-width: 700px) {
  html body .hero-section,
  html body .page-hero,
  html body .zha-contact-hero,
  html body .zha-people-hero,
  html body .cm-hero,
  html body .hp-hero,
  html body .fh-hero,
  html body .sd-hero,
  html body .rs-hero,
  html body .rv-hero,
  html body .ow-hero {
    padding: 0 6% 42px !important;
  }
}

@media (max-width: 360px) {
  html body .page-hero-title {
    font-size: clamp(2.15rem, 11vw, 2.6rem) !important;
    letter-spacing: -1px !important;
  }

  html body .clientele-content {
    padding: 48px 20px !important;
  }

  html body .clientele-content h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
  }

  html body .clientele-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Keep desktop mega menus centered and sized to compact laptop viewports. */
@media (min-width: 1025px) and (max-width: 1300px) {
  .mega-menu {
    height: min(440px, calc(100vh - 100px)) !important;
  }

  .mega-menu-left {
    width: 25% !important;
    min-width: 0 !important;
    padding: 32px 24px !important;
  }

  .mega-menu-middle {
    width: 30% !important;
    min-width: 0 !important;
    padding: 24px 18px !important;
  }

  .mega-menu-right {
    min-width: 0 !important;
    padding: 18px !important;
  }
}
