/* ═══ utility bar + header + nav ═══ */

/* ── utility bar ── */
.als-util {
  background: var(--navy-ink);
  color: var(--on-navy);
}
.als-util__in {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 38px;
  font-size: 13.5px;
  font-weight: 500;
}
.als-util__b {
  color: #fff;
  font-weight: 600;
}
.als-util__sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.18);
}
.als-util__r {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── header ── */
.als-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
/* 24 not 34: with the phone block unwrapped the row needs 1209px at gap:34, and the
   container is 1200. Measured, not guessed. */
.als-header__in {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 24px;
}
.als-logo {
  display: flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  min-height: 44px;
}
.als-header__ph {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.1;
  text-decoration: none;
  flex: none;
  white-space: nowrap;
}
.als-header__ph-l {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.als-header__ph-n {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* ── nav ── */
.als-nav {
  margin: 0 auto;
}
.als-nav__list {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.als-nav__l {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  white-space: nowrap;
}
.als-nav__l:hover {
  color: var(--navy);
}
.als-nav__l[aria-current] {
  color: var(--navy);
}
.als-nav__l[aria-current]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -31px;
  height: 3px;
  background: var(--red);
}
.als-caret {
  width: 9px;
  height: 6px;
  background: currentColor;
  opacity: 0.5;
  transition: transform 0.2s ease;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* desktop dropdown */
.als-has-sub {
  position: relative;
}
.als-sub {
  position: absolute;
  top: 100%;
  left: -8px;
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 18px 44px rgba(30, 43, 77, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.16s ease;
}
.als-has-sub:hover > .als-sub,
.als-has-sub:focus-within > .als-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.als-sub__l {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 8px;
}
.als-sub__l::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
  flex: none;
}
.als-sub__l:hover {
  background: var(--mist);
  color: var(--navy);
}
.als-sub__l:hover::before {
  opacity: 1;
}
.als-sub__l[aria-current] {
  color: var(--red);
}
.als-sub__l[aria-current]::before {
  opacity: 1;
}

/* ── burger ── */
.als-burger {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0;
}
.als-burger__i {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: background 0.18s ease;
}
.als-burger__i::before,
.als-burger__i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.22s ease;
}
.als-burger__i::before {
  top: -6px;
}
.als-burger__i::after {
  top: 6px;
}
.als-burger[aria-expanded="true"] .als-burger__i {
  background: transparent;
}
.als-burger[aria-expanded="true"] .als-burger__i::before {
  transform: translateY(6px) rotate(45deg);
}
.als-burger[aria-expanded="true"] .als-burger__i::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* the panel's own call button — `.als-nav__l` would left-align it, so match that weight */
.als-nav .als-nav__call {
  display: none;
}

/* Measured: logo 232 + nav 638 + phone 73 + button 64 + gaps 102 + gutters 56 = 1165px.
   The desktop nav genuinely does not fit below ~1180, so the burger takes over at 1200. */
@media (max-width: 1200px) {
  .als-header__ph {
    display: none;
  }
  .als-burger {
    display: flex;
  }
  .als-header__cta {
    margin-left: auto;
  }
  /* --nav-top is set from the header's real bottom edge when it opens: the utility
	   bar is above the sticky header only until the page scrolls. */
  .als-nav {
    position: fixed;
    inset: var(--nav-top, var(--header-h)) 0 0 0;
    z-index: 40;
    background: #fff;
    margin: 0;
    padding: 14px var(--gutter) 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.3, 1);
  }
  .als-nav[data-open="true"] {
    transform: none;
  }
  .als-nav__list {
    flex-direction: column;
    gap: 0;
  }
  .als-nav__list > li {
    border-bottom: 1px solid var(--line);
  }
  .als-nav__l {
    justify-content: space-between;
    padding: 16px 2px;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    min-height: 44px;
  }
  .als-nav__l[aria-current]::after {
    display: none;
  }
  .als-caret {
    width: 11px;
    height: 7px;
    opacity: 0.55;
  }

  .als-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin: 0 0 14px;
    padding: 6px;
    background: var(--mist);
    border: 1px solid var(--line);
    box-shadow: none;
  }
  .als-has-sub[data-open="true"] > .als-sub {
    display: block;
  }
  .als-has-sub[data-open="true"] > .als-nav__l {
    color: var(--red);
  }
  .als-has-sub[data-open="true"] > .als-nav__l .als-caret {
    transform: rotate(180deg);
    opacity: 1;
  }
  .als-sub__l {
    font-size: 15px;
    font-weight: 600;
    padding: 12px;
    min-height: 44px;
  }
  .als-sub__l::before {
    opacity: 0.5;
  }

  .als-nav .als-nav__call {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    background: var(--red);
    color: #fff;
    border-radius: var(--r-md);
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    min-height: 44px;
  }
}

@media (max-width: 992px) {
  .als-util {
    display: none;
  }
}
@media (max-width: 640px) {
  :root {
    --header-h: 66px;
  }
  .als-header__in {
    gap: 12px;
  }
  .als-header__cta {
    margin-left: auto;
  }
  /* 150 not 186: logo 186 + button 95 + burger 44 + gaps 24 = 349 in a 319px content box */
  .als-logo__img {
    width: 150px;
    height: 31px;
  }
  .als-header__cta {
    padding: 0 14px;
  }
  .als-util__in {
    height: 34px;
    gap: 10px;
    font-size: 12.5px;
    justify-content: center;
  }
  .als-util__hide-sm {
    display: none;
  }
  .als-util__r {
    margin-left: 0;
  }
}

.als-header__cta {
  flex: none;
  white-space: nowrap;
}

/* ── dropdown gains a pillar row and an emergency card ── */
.als-sub__pillar {
  display: block;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.als-sub__pillar:hover {
  background: var(--mist);
}
.als-sub__pillar-t {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy);
}
.als-sub__pillar-d {
  display: block;
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 3px;
}
.als-sub__call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 13px 12px;
  border-radius: 8px;
  text-decoration: none;
  background: var(--navy-deep);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
}
.als-sub__call:hover {
  background: var(--navy);
}
.als-sub__call-n {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.01em;
}
