:root { --alf-header-hover: #e8f4ff; --alf-header-hover-text: #005ab0; --alf-radius-compact: 10px; --alf-radius-button: 15px; }
body .header,
body .header :is(.header-glass-panel, .mega-menu, .alf-profile-menu) {
  background: #fff !important;
  border: 1px solid #e5ebf2;
  border-radius: 20px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 24px rgb(22 36 59 / 8%) !important;
}

body .header .navigation {
  background: transparent;
  border-radius: inherit;
  padding: 10px 15px;
}

body .header :is(.header-glass-control, .mobile-toggle),
body .header .nav-actions :is(button, .header-glass-control) {
  background: #f4f8fd;
  color: #16243b;
  border-color: transparent;
  border-radius: var(--alf-radius-button);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body .header :is(.desktop-nav > a, .desktop-nav > button, .header-more-toggle, .header-more-panel a, .header-glass-control, .mobile-toggle):hover,
body .header .nav-actions :is(button, .header-glass-control):hover {
  background: var(--alf-header-hover) !important;
  color: var(--alf-header-hover-text) !important;
  box-shadow: none;
}

body .header :is(.desktop-nav > a, .desktop-nav > button, .header-more-toggle, .header-glass-control, .mobile-toggle):is(:active, [aria-expanded="true"], [aria-current="page"]),
body .header .nav-actions :is(button, .header-glass-control):is(:active, [aria-expanded="true"]) {
  background: var(--blue, #0081fb) !important;
  color: #fff !important;
  box-shadow: none;
}

body .header :is(a, button):focus-visible {
  outline: 2px solid #0064bf;
  outline-offset: 2px;
}


body .header :is(.desktop-nav > a, .desktop-nav > button, .header-more-toggle, .header-more-panel a, .header-glass-control, .mobile-toggle),
body .header .nav-actions :is(button, .header-glass-control) {
  border-radius: var(--alf-radius-compact);
}
/* The Services menu uses the same surfaces and states as the header. */
body .header .mega-menu {
  top: calc(100% + 8px);
  padding: clamp(12px, 2vw, 24px);
  gap: clamp(12px, 2vw, 24px);
  max-height: calc(100dvh - 100px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #a9bdd4 transparent;
}

body .header .mega-group {
  min-width: 0;
}

body .header .mega-group h3 {
  margin: 0 0 8px;
  padding: 0 8px;
  color: #16243b;
  font-size: clamp(.8125rem, 1.2vw, .9375rem);
  line-height: 1.35;
}

body .header .mega-group :is(a, button) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
  border-radius: var(--alf-radius-compact);
  color: #394a61;
  font-size: .875rem;
  line-height: 1.35;
  white-space: normal;
}

body .header .mega-group :is(a, button):is(:hover, :focus-visible) {
  background: var(--alf-header-hover);
  color: var(--alf-header-hover-text);
}

body .header .mega-group :is(a, button):active {
  background: var(--blue, #0081fb);
  color: #fff;
}

@supports selector(::-webkit-scrollbar) {
  body .header .mega-menu {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  body .header .mega-menu::-webkit-scrollbar {
    width: 12px;
  }

  body .header .mega-menu::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 12px;
  }

  body .header .mega-menu::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 10px;
    background: #a9bdd4;
    background-clip: padding-box;
  }
}
/* Quote is a regular navigation item on every public page. */
body .header a[data-free-quote]:not(:hover):not(:active):not([aria-expanded="true"]) {
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

body .header a[data-free-quote]::before,
body .header a[data-free-quote]::after {
  content: none !important;
}

body .header .desktop-nav .header-more-toggle {
  padding-inline: 12px;
}

body .header .nav-actions button.alf-header-avatar {
  border-radius: var(--alf-radius-compact) !important;
}

body .header .nav-actions button.alf-header-avatar img {
  border-radius: inherit !important;
}

@media (max-width: 600px) {
  body .header .navigation {
    padding: 8px 12px;
  }
}

@media (max-width: 359px) {
  body .header .navigation {
    padding: 7px 10px;
  }
}

/* Services available through a custom project inquiry. */
.service-available-tag {
  flex: none;
  padding: 2px 6px;
  border-radius: 5px;
  background: #e8f6ee;
  color: #176342;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.45;
}

.mobile-service-links button[data-upcoming] {
  gap: 10px;
  justify-content: space-between;
  text-align: left;
}

#modal .custom-service-dialog { max-width: 490px; }
#modal .custom-service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 12px;
  color: #0063b9;
  background: #edf6ff;
}
#modal .custom-service-icon svg { width: 24px; height: 24px; }
#modal .custom-service-dialog .modal-heading { margin-bottom: 18px; }
#modal .custom-service-dialog .button { min-height: 44px; border-radius: 10px; }
#modal .custom-service-note { margin: 12px 0 0; color: #51617a; font-size: .875rem; line-height: 1.5; }
#alf-free-quote .fq-requested-project {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #edf6ff;
  color: #164572;
  font-weight: 700;
}

#modal .custom-service-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#modal .custom-service-actions [data-free-quote]::before { mask-image: url("/assets/quote-help.svg"); }
#modal .custom-service-team { margin-top: 20px; font-size: .875rem; }
#modal .custom-service-team > strong { display: block; }
#modal .custom-service-team-stack {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 6px;
}
#modal .custom-service-avatars { display: flex; padding-left: 6px; }
#modal .custom-service-avatar { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
#modal .custom-service-avatars .custom-service-avatar { margin-left: -6px; border: 2px solid white; }
#modal .custom-service-team-more {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #edf6ff;
  color: #0063b9;
  font-weight: 800;
  letter-spacing: .05em;
}
