/* Header and menu styles for the index page. */
body.index-page .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  height: 118px;
  min-height: 118px;
  margin-inline: auto;
  padding: 14px clamp(34px, 4.5vw, 64px) 28px;
  background: linear-gradient(to bottom, rgba(255,255,255,.95) 0%, rgba(255,255,255,.78) 55%, rgba(255,255,255,0) 100%);
  backdrop-filter: none;
  transform: none;
}

body.index-page .index-header-message {
  position: absolute;
  top: 14px;
  right: 110px;
  bottom: auto;
  left: 300px;
  margin: 0;
  color: var(--green);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

body.index-page .header-logos { align-items: flex-start; gap: 18px; }
body.index-page .company-logo { width: 54px; max-height: none; }
body.index-page .brand-logo { width: 188px; max-height: none; }

body.index-page .quick-links {
  display: none;
  gap: 10px;
  align-self: center;
  margin-left: auto;
  padding-top: 0;
}

body.index-page .quick-links a {
  min-width: 320px;
  min-height: 68px;
  padding: 16px 22px 17px;
  border-color: #a9b3af;
  background: #fff;
  font-size: 23px;
  line-height: 1.15;
  white-space: nowrap;
}

body.index-page .menu-button {
  align-self: flex-start;
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.index-page .menu-button picture {
  display: block;
  width: 100%;
}

body.index-page .menu-button img {
  width: 100%;
  height: auto;
}

body.index-page .menu-button i,
body.index-page .menu-button small {
  display: none;
}

body.index-page .drawer {
  position: fixed;
  top: 92px;
  right: clamp(34px, 4.5vw, 64px);
  left: auto;
  width: min(280px, calc(100vw - 34px));
  height: auto;
  max-height: calc(100svh - 34px);
  padding: 22px 31px 26px;
  border: 1.5px solid var(--green);
  border-radius: 38px;
  background: rgba(255,255,255,.98);
  box-shadow: none;
  opacity: 0;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

body.index-page .nav-toggle:checked ~ .drawer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body.index-page .drawer-close {
  top: 12px;
  right: 14px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #1d2925;
  font-size: 25px;
  font-weight: 300;
}

body.index-page .drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--green);
}

body.index-page .drawer-company-logo {
  width: 33px;
  height: auto;
}

body.index-page .drawer-brand-logo {
  width: 111px;
  height: auto;
}

body.index-page .drawer a {
  display: block;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  color: #222;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.32;
}

body.index-page .drawer a:hover,
body.index-page .drawer a:focus-visible,
body.index-page .drawer a:active {
  background: transparent;
  color: var(--green);
}

body.index-page .drawer a[href="company.html"] {
  margin-top: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--green);
}

body.index-page .drawer a[href="partner.html"] {
  margin-bottom: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--green);
}

body.index-page .drawer .drawer-contact {
  display: inline-block;
  margin: 0 0 9px;
  padding: 10px 12px;
  background: #b8d5cb;
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 700px) {
  body.index-page .site-header {
    height: 56px;
    min-height: 56px;
    padding: 4px 13px 9px;
    background: linear-gradient(to bottom, rgba(255,255,255,.94) 0%, rgba(255,255,255,.76) 58%, rgba(255,255,255,0) 100%);
  }

  body.index-page .index-header-message {
    top: 4px;
    right: 58px;
    bottom: auto;
    left: 132px;
    font-size: 9px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body.index-page .header-logos { align-items: flex-start; gap: 6px; }
  body.index-page .company-logo { width: 27px; }
  body.index-page .brand-logo { width: 94px; }

  body.index-page .menu-button {
    width: 42px;
    height: 42px;
  }

  body.index-page .menu-button i {
    width: 25px;
    height: 3px;
    margin: 3px 0;
  }

  body.index-page .menu-button small {
    margin-top: 0;
    font-size: 8px;
  }

  body.index-page .drawer {
    top: 52px;
    right: 13px;
    width: min(246px, calc(100vw - 28px));
    max-height: calc(100svh - 20px);
    padding: 20px 26px 22px;
    border-radius: 34px;
  }

  body.index-page .drawer-brand {
    margin-bottom: 11px;
    padding-bottom: 10px;
  }

  body.index-page .drawer-company-logo {
    width: 29px;
  }

  body.index-page .drawer-brand-logo {
    width: 100px;
  }

  body.index-page .drawer a {
    padding: 6px 0;
    font-size: 13px;
  }
}

/* Shared image menu button for non-index pages that keep their current layout. */
body.menu-image-page .site-header,
body.menu-image-page .header-logos {
  align-items: flex-start;
}

body.menu-image-page .menu-button {
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.menu-image-page .menu-button picture {
  display: block;
  width: 100%;
}

body.menu-image-page .menu-button img {
  width: 100%;
  height: auto;
}

body.menu-image-page .menu-button i,
body.menu-image-page .menu-button small {
  display: none;
}

body.menu-image-page .drawer {
  position: fixed;
  top: 72px;
  right: 30px;
  left: auto;
  width: min(280px, calc(100vw - 34px));
  height: auto;
  max-height: calc(100svh - 34px);
  padding: 22px 31px 26px;
  border: 1.5px solid var(--green);
  border-radius: 38px;
  background: rgba(255,255,255,.98);
  box-shadow: none;
  opacity: 0;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

body.menu-image-page .nav-toggle:checked ~ .drawer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body.menu-image-page .drawer-close {
  top: 12px;
  right: 14px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #1d2925;
  font-size: 25px;
  font-weight: 300;
}

@media (max-width: 700px) {
  body.menu-image-page .site-header {
    height: 56px;
    min-height: 56px;
    padding: 6px 22px 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: none;
  }

  body.menu-image-page .header-logos {
    gap: 5px;
  }

  body.menu-image-page .company-logo {
    width: 27px;
    max-height: none;
  }

  body.menu-image-page .brand-logo {
    width: 106px;
    max-height: none;
  }

  body.menu-image-page .menu-button {
    width: 48px;
    height: 48px;
    align-self: flex-start;
    margin-top: 0;
  }

  body.menu-image-page .drawer {
    top: 58px;
    right: 13px;
    width: min(246px, calc(100vw - 28px));
    max-height: calc(100svh - 20px);
    padding: 20px 26px 22px;
    border-radius: 34px;
  }

  body.menu-image-page .drawer a {
    padding: 6px 0;
    font-size: 13px;
  }
}
