/* Header polish: stronger centred navigation and a more expressive brand mark. */
.site-header {
  min-height: 104px;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid rgba(51, 36, 64, .12);
  box-shadow: 0 8px 28px rgba(51, 36, 64, .07);
  isolation: isolate;
}

.site-header .logo-brand {
  position: relative;
  flex: 0 0 330px;
  width: 330px;
  height: 98px;
  margin-right: 0;
  overflow: visible;
  z-index: 2;
  animation: header-brand-reveal .75s cubic-bezier(.2, .85, .25, 1) both;
}

.site-header .logo-brand::after {
  content: '';
  position: absolute;
  left: 9%;
  right: 18%;
  bottom: 13px;
  height: 12px;
  border-radius: 50%;
  background: rgba(51, 36, 64, .16);
  filter: blur(13px);
  opacity: .48;
  z-index: -1;
  transition: opacity .35s ease, transform .35s ease;
}

.site-header .logo-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.48);
  transform-origin: left center;
  filter: drop-shadow(0 7px 10px rgba(51, 36, 64, .13));
  transition: transform .45s cubic-bezier(.2, .85, .25, 1), filter .45s ease;
}

.site-header .logo-brand:hover img,
.site-header .logo-brand:focus-visible img {
  transform: scale(1.6) translateY(-1px);
  filter: drop-shadow(0 12px 16px rgba(51, 36, 64, .22));
}

.site-header .logo-brand:hover::after,
.site-header .logo-brand:focus-visible::after {
  opacity: .75;
  transform: scaleX(1.08);
}

.site-header .nav {
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 1.35vw, 27px);
  margin-inline: auto;
}

.site-header .nav > a,
.site-header .nav-mega > a {
  position: relative;
  color: #291d33;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .012em;
  text-shadow: 0 0 0 currentColor;
  transition: color .25s ease, transform .25s ease;
}

.site-header .nav > a::after,
.site-header .nav-mega > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 25px;
  height: 2px;
  border-radius: 2px;
  background: #6e4e78;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .28s ease;
}

.site-header .nav > a:hover,
.site-header .nav > a:focus-visible,
.site-header .nav-mega > a:hover,
.site-header .nav-mega > a:focus-visible {
  color: #6e4e78;
  transform: translateY(-1px);
}

.site-header .nav > a:hover::after,
.site-header .nav > a:focus-visible::after,
.site-header .nav-mega > a:hover::after,
.site-header .nav-mega > a:focus-visible::after {
  transform: scaleX(1);
}

@media (min-width: 1451px) {
  .site-header .nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }

  .site-header .header-socials {
    margin-left: auto;
  }
}

@media (min-width: 1181px) and (max-width: 1450px) {
  .site-header {
    gap: 12px;
  }

  .site-header .logo-brand {
    flex-basis: 270px;
    width: 270px;
  }

  .site-header .logo-brand img {
    transform: scale(1.42);
  }

  .site-header .logo-brand:hover img,
  .site-header .logo-brand:focus-visible img {
    transform: scale(1.5) translateY(-1px);
  }

  .site-header .nav {
    gap: 13px;
  }

  .site-header .nav > a,
  .site-header .nav-mega > a {
    font-size: 12px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .site-header .logo-brand {
    flex-basis: 235px;
    width: 235px;
    height: 86px;
  }

  .site-header .logo-brand img {
    transform: scale(1.3);
  }

  .site-header .nav > a,
  .site-header .nav-mega > a {
    font-size: 11.5px;
    font-weight: 700;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 74px;
  }

  .site-header .logo-brand {
    flex-basis: 225px;
    width: 225px;
    height: 68px;
  }

  .site-header .logo-brand img {
    transform: scale(1.23);
  }

  .site-header .logo-brand:hover img,
  .site-header .logo-brand:focus-visible img {
    transform: scale(1.29);
  }

  .site-header .nav.open {
    align-items: stretch;
    gap: 2px;
    box-shadow: 0 18px 35px rgba(51, 36, 64, .14);
  }

  .site-header .nav > a,
  .site-header .nav-mega > a {
    justify-content: center;
    min-height: 46px;
    font-size: 14px;
  }

  .site-header .nav > a::after,
  .site-header .nav-mega > a::after {
    bottom: 5px;
  }
}

@media (max-width: 560px) {
  .site-header .logo-brand {
    flex-basis: 196px;
    width: 196px;
    height: 62px;
  }

  .site-header .logo-brand img {
    transform: scale(1.18);
  }
}

@keyframes header-brand-reveal {
  from { opacity: 0; transform: translateX(-16px) scale(.94); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .logo-brand { animation: none; }
  .site-header .logo-brand img,
  .site-header .logo-brand::after,
  .site-header .nav a { transition: none; }
}

/* Homepage assurance band */
.bal-trust {
  position: relative;
  min-height: 112px;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
  background:
    radial-gradient(circle at 50% -80%, rgba(255,255,255,.92), transparent 55%),
    #dcefe3;
  border-block: 1px solid rgba(51,36,64,.1);
  box-shadow: inset 0 1px rgba(255,255,255,.78), 0 12px 30px rgba(51,36,64,.06);
  overflow: hidden;
}

.bal-trust::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.48) 45%, transparent 64%);
  transform: translateX(-110%);
  animation: trust-sheen 7s ease-in-out infinite 1.2s;
}

.bal-trust span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 70px;
  padding: 14px 18px;
  color: #2b2034;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .005em;
  border: 1px solid rgba(51,36,64,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.48);
  box-shadow: 0 8px 20px rgba(51,36,64,.055), inset 0 1px rgba(255,255,255,.8);
  animation: trust-item-in .6s cubic-bezier(.2,.8,.2,1) both;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.bal-trust span::before {
  content: '✓';
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border-radius: 50%;
  background: #493654;
  box-shadow: 0 7px 15px rgba(51,36,64,.2);
  transition: transform .35s cubic-bezier(.2,.85,.25,1), background .3s ease;
}

.bal-trust span:nth-child(2)::before { content: '◇'; }
.bal-trust span:nth-child(3)::before { content: '⌁'; }
.bal-trust span:nth-child(4)::before { content: '↗'; }
.bal-trust span:nth-child(2) { animation-delay: .08s; }
.bal-trust span:nth-child(3) { animation-delay: .16s; }
.bal-trust span:nth-child(4) { animation-delay: .24s; }

.bal-trust span:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.82);
  border-color: rgba(83,58,94,.25);
  box-shadow: 0 14px 28px rgba(51,36,64,.12), inset 0 1px #fff;
}

.bal-trust span:hover::before {
  transform: rotate(-8deg) scale(1.1);
  background: #6e4e78;
}

@keyframes trust-item-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes trust-sheen {
  0%, 65% { transform: translateX(-110%); }
  82%, 100% { transform: translateX(110%); }
}

@media (max-width: 900px) {
  .bal-trust {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 18px;
  }

  .bal-trust span {
    justify-content: flex-start;
    min-width: 0;
    min-height: 64px;
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(51,36,64,.1);
  }

  .bal-trust span::before {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 560px) {
  .bal-trust { grid-template-columns: 1fr; }
  .bal-trust span { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .bal-trust::before,
  .bal-trust span { animation: none; }
}
