/* Shared header and footer sizing. Keep the duplicated static-page chrome aligned. */
.header .nav > .brand {
  display: block;
  flex: 0 0 172px !important;
  width: 172px !important;
}

.header .brand img {
  display: block;
  width: 172px !important;
  max-width: 172px !important;
  height: auto !important;
  aspect-ratio: 400 / 123;
  object-fit: contain;
}

.header.scrolled .nav > .brand {
  flex-basis: 150px !important;
  width: 150px !important;
}

.header.scrolled .brand img {
  width: 150px !important;
  max-width: 150px !important;
}

.header .nav-cta {
  flex: 0 0 auto;
}

.header .nav-cta .btn {
  flex: 0 0 auto;
  min-width: 197px;
  min-height: 52px;
  padding: .7rem 1.3rem;
  white-space: nowrap;
}

.footer .fbrand img {
  display: block;
  width: 180px !important;
  max-width: 180px !important;
  height: auto !important;
  aspect-ratio: 400 / 123;
  object-fit: contain;
}

@media (max-width: 1500px) {
  .header .nav-tel {
    display: none !important;
  }
}

@media (max-width: 1240px) {
  .header .nav-cta .btn {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .header {
    backdrop-filter: none;
    background: #fff;
  }

  .header .burger {
    display: flex;
  }

  .header .menu {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82vw, 340px);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 96px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: right .35s var(--ease);
    z-index: 70;
    overflow-y: auto;
  }

  .header .menu.open {
    right: 0;
  }

  .header .menu a {
    padding: .9rem .6rem;
    border-bottom: 1px solid var(--line-2);
  }

  .header .menu a::after {
    display: none;
  }

  .header .menu-cta {
    display: block;
  }

  .header .menu-cta a {
    border-bottom: 0;
  }

  .header .menu .btn {
    margin-top: 14px;
    text-align: center;
    justify-content: center;
  }

  .header .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(9, 20, 40, .5);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 65;
  }

  .nav-open .header .nav-scrim,
  .nav-open .nav-scrim {
    opacity: 1;
    visibility: visible;
  }

  .header .nav > .brand {
    flex-basis: 166px !important;
    width: 166px !important;
  }

  .header .brand img {
    width: 166px !important;
    max-width: 166px !important;
  }
}

@media (max-width: 768px) {
  .header .nav > .brand {
    flex-basis: 156px !important;
    width: 156px !important;
  }

  .header .brand img {
    width: 156px !important;
    max-width: 156px !important;
  }

  .footer .fbrand img {
    width: 150px !important;
    max-width: 150px !important;
  }
}
