/* ==================================================
   AW26 HEADER
   ================================================== */

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

.aw-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.aw-site-header .aw-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  min-height: 96px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Logo */

.aw-site-header .aw-header-brand {
  display: block;
  flex-shrink: 0;
}

.aw-site-header .combined-header-logo {
  display: block;
  width: 300px;
  height: auto;
  max-height: 75px;
  object-fit: contain;
}

/* Main navigation */

.aw-site-header #site-navigation {
  display: block !important;
  position: static;
  width: auto;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #291a3d;
}

.aw-site-header .aw-header-menu,
.aw-site-header .aw-nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aw-site-header .aw-header-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.aw-site-header .aw-header-menu > li {
  margin: 0;
}

.aw-site-header .aw-header-menu > li > a,
.aw-site-header .aw-nav-dropdown > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
  color: #291a3d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

/* Dropdown controls */

.aw-site-header .aw-nav-dropdown {
  position: relative;
}

.aw-site-header .aw-nav-dropdown > summary {
  cursor: pointer;
  list-style: none;
}

.aw-site-header .aw-nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.aw-site-header .aw-nav-dropdown > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.aw-site-header .aw-nav-dropdown[open] > summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

/* Dropdown panels */

.aw-site-header .aw-nav-submenu {
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 110;
  width: 280px;
  padding: 10px;
  border: 1px solid #e9e1ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px #291a3d26;
}

.aw-site-header .aw-nav-submenu li {
  display: block;
  margin: 0;
}

.aw-site-header .aw-nav-submenu a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: #291a3d;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  white-space: normal;
}

.aw-site-header .aw-nav-submenu a:hover,
.aw-site-header .aw-nav-submenu a:focus-visible {
  background: #eee8f3;
}

.aw-site-header .aw-nav-submenu .aw-nav-view-all {
  margin-top: 6px;
  border-top: 1px solid #e9e1ef;
  font-weight: 800;
}

/* Phone and advice button */

.aw-site-header .aw-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.aw-site-header .aw-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #953fb9;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.aw-site-header .aw-header-phone svg {
  flex-shrink: 0;
}

.aw-site-header .aw-header-advice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 30px;
  background: #5d9228;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.aw-site-header .aw-header-advice:hover {
  background: #4c7b20;
}

/* Hidden desktop elements */

.aw-site-header #menu-toggle,
.aw-site-header .aw-header-menu .aw-nav-mobile-contact {
  display: none;
}

/* Keyboard focus */

.aw-site-header summary:focus-visible,
.aw-site-header a:focus-visible,
.aw-site-header button:focus-visible {
  outline: 3px solid #86be36;
  outline-offset: 4px;
}

/* ==================================================
   COLLAPSED NAVIGATION
   ================================================== */

@media (max-width: 1400px) {
  .aw-site-header .aw-header-inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .aw-site-header .combined-header-logo {
    width: 260px;
  }

  .aw-site-header #site-navigation {
    order: 4;
    width: 100%;
  }

  .aw-site-header .aw-header-menu {
    display: block;
    padding: 12px 0;
  }

  .aw-site-header .aw-header-menu > li > a,
  .aw-site-header .aw-nav-dropdown > summary {
    padding: 12px 4px;
    white-space: normal;
  }

  .aw-site-header .aw-nav-submenu {
    position: static;
    width: 100%;
    padding: 4px 10px 10px;
    border: 0;
    background: #f7f3fa;
    box-shadow: none;
  }

  .aw-site-header .aw-header-actions {
    margin-left: auto;
  }

  /* Existing homepage.js controls .is-open */

  .js-enabled .aw-site-header .aw-header-inner {
    flex-wrap: nowrap;
  }

  .js-enabled .aw-site-header #site-navigation {
    display: none !important;
    position: absolute;
    top: 100%;
    left: var(--aw-container-gutter, 28px);
    right: var(--aw-container-gutter, 28px);
    width: auto;
    max-height: 75vh;
    overflow-y: auto;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #e9e1ef;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 14px 30px #291a3d20;
  }

  .js-enabled .aw-site-header #site-navigation.is-open {
    display: block !important;
  }

  .js-enabled .aw-site-header #menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #291a3d;
    color: #fff;
    cursor: pointer;
  }
}

@media (max-width: 900px) {
  .aw-site-header .combined-header-logo {
    width: 220px;
  }
}

@media (max-width: 760px) {
  .aw-site-header .aw-header-advice {
    display: none;
  }

  .aw-site-header .aw-header-menu .aw-nav-mobile-contact {
    display: block;
  }
}

@media (max-width: 600px) {
  .aw-site-header .aw-header-inner {
    min-height: 80px;
    gap: 12px;
  }

  .aw-site-header .combined-header-logo {
    width: 175px;
    max-height: 60px;
  }

  .aw-site-header .aw-header-phone-number {
    display: none;
  }

  .aw-site-header .aw-header-phone {
    justify-content: center;
    width: 44px;
  }

  .aw-site-header .aw-header-actions {
    gap: 0;
  }
}

@media (max-width: 360px) {
  .aw-site-header .combined-header-logo {
    width: 160px;
  }
}