.aphnav63-header,
.aphnav63-header * {
  box-sizing: border-box;
}

.aphnav63-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: #fff;
  border-bottom: 2px solid #c20405;
  color: #001d3d;
  font-family: "Poppins", sans-serif;
}

.aphnav63-header .aphnav63-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 12px 28px;
}

.aphnav63-header .aphnav63-brand {
  display: block;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
}

.aphnav63-header .aphnav63-brand img {
  display: block;
  width: 105px;
  height: 105px;
  object-fit: contain;
}

.aphnav63-header .aphnav63-menu {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(12px, 1.4vw, 24px);
  min-width: 0;
  margin: 0;
  padding: 0;
  background: #fff;
}

.aphnav63-header .aphnav63-menu > a,
.aphnav63-header .aphnav63-services-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #001d3d;
  font:
    600 14px/1.5 "Poppins",
    sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.aphnav63-header .aphnav63-menu > a:hover,
.aphnav63-header .aphnav63-services-toggle:hover {
  color: #c20405;
}

.aphnav63-header .aphnav63-services {
  position: relative;
  flex: 0 0 auto;
}

.aphnav63-header .aphnav63-dropdown {
  position: absolute;
  top: 100%;
  left: -18px;
  display: grid;
  width: 280px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e0e5ed;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgb(0 29 61 / 15%);
}

.aphnav63-header .aphnav63-dropdown[hidden] {
  display: none;
}

.aphnav63-header .aphnav63-dropdown a {
  display: block;
  padding: 12px;
  border-radius: 6px;
  color: #001d3d;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.aphnav63-header .aphnav63-dropdown a:hover {
  background: #f0f4fa;
  color: #c20405;
}

.aphnav63-header .aphnav63-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #001d3d;
  background: #fff;
  color: #001d3d;
  font:
    600 14px/1.5 "Poppins",
    sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.aphnav63-header .aphnav63-cta:hover {
  background: #001d3d;
  color: #fff;
}

.aphnav63-header .aphnav63-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #dce3ee;
  border-radius: 6px;
  background: #fff;
  color: #001d3d;
  font-size: 26px;
  cursor: pointer;
}

.aphnav63-header :is(a, button):focus-visible {
  outline: 3px solid #397cc7;
  outline-offset: 4px;
}

/* Compact laptops, tablets and mobiles */
@media (max-width: 1199px) {
  .aphnav63-header .aphnav63-inner {
    padding: 10px 22px;
    gap: 16px;
  }

  .aphnav63-header .aphnav63-brand img {
    width: 85px;
    height: 85px;
  }

  .aphnav63-header .aphnav63-toggle {
    display: inline-flex;
  }

  .aphnav63-header .aphnav63-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    max-height: min(70vh, 620px);
    max-height: min(70dvh, 620px);
    padding: 12px 22px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 2px solid #c20405;
    box-shadow: 0 18px 30px rgb(0 29 61 / 12%);
  }

  .aphnav63-header.aphnav63-is-open .aphnav63-menu {
    display: flex;
  }

  .aphnav63-header .aphnav63-menu > a,
  .aphnav63-header .aphnav63-services-toggle {
    width: 100%;
    min-height: 48px;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f5;
    font-size: 15px;
    white-space: normal;
  }

  .aphnav63-header .aphnav63-services-toggle {
    justify-content: space-between;
    text-align: left;
  }

  .aphnav63-header .aphnav63-dropdown {
    position: static;
    width: 100%;
    margin: 6px 0 10px;
    padding: 6px;
    background: #f3f6fb;
    border: 0;
    box-shadow: none;
  }

  .aphnav63-header .aphnav63-cta {
    width: 100%;
    margin-top: 16px;
    background: #001d3d;
    color: #fff;
  }
}

@media (max-width: 480px) {
  .aphnav63-header .aphnav63-inner {
    padding: 10px 16px;
  }

  .aphnav63-header .aphnav63-brand img {
    width: 76px;
    height: 76px;
  }

  .aphnav63-header .aphnav63-menu {
    padding-inline: 16px;
  }
}


/* Services button: full row is clickable */
.aphnav63-header .aphnav63-services-toggle {
    cursor: pointer;
    touch-action: manipulation;
}

.aphnav63-header .aphnav63-services-toggle > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    pointer-events: none;
    transition: transform 180ms ease;
}

.aphnav63-header
.aphnav63-services-toggle[aria-expanded="true"] > span {
    transform: rotate(180deg);
}

/* Explicit visibility overrides */
.aphnav63-header .aphnav63-dropdown[hidden] {
    display: none !important;
}

.aphnav63-header .aphnav63-dropdown:not([hidden]) {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}

@media (max-width: 1199px) {
    .aphnav63-header .aphnav63-services {
        width: 100%;
        min-width: 0;
    }

    .aphnav63-header .aphnav63-services-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        text-align: left;
    }

    .aphnav63-header .aphnav63-dropdown:not([hidden]) {
        position: static !important;
        width: 100%;
        max-width: 100%;
        margin: 8px 0 12px;
        padding: 6px;
        border-radius: 8px;
        background: #f1f5fb;
        box-shadow: none;
    }

    .aphnav63-header .aphnav63-dropdown a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 12px;
        color: #001d3d;
        font-size: 14px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aphnav63-header .aphnav63-services-toggle > span {
        transition: none;
    }
}