/* ===== Header And Navigation ===== */
.site-header {
  width: 100%;
  padding: 18px 30px 0 30px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.blue-header-page {
  --blue-header-offset: 88px;
}

.blue-header-page main {
  margin-top: calc(var(--blue-header-offset) * -1);
}

.blue-header-page .page-hero-blue:first-child {
  padding-top: calc(150px + var(--blue-header-offset));
}

.navigation {
  padding: 14px 48px;
  border-radius: 999px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background-color: var(--white);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);
}

.logo {
  width: 200px;
}

.custom-logo {
  width: 200px;
  height: auto;
  display: block;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.nav-links ul,
.nav-links .menu {
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 400;
}

.menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.burger-button,
.mobile-menu {
  display: none;
}

/* ===== Footer ===== */
.site-footer {
  padding: 70px 30px;
  background-color: var(--blue);
}

.site-footer * {
  color: var(--white);
}

.footer-grid {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
}

.footer-logo {
  width: 200px;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== Tablet Navigation ===== */
@media (max-width: 1240px) {
  .blue-header-page {
    --blue-header-offset: 94px;
  }

  .site-header {
    padding: 14px 20px 0 20px;
    position: sticky;
    top: 0;
  }

  .navigation {
    padding: 18px 22px;
    border-radius: 24px;
    align-items: center;
    flex-direction: row;
  }

  .logo {
    width: 180px;
  }

  .custom-logo {
    width: 180px;
  }

  .nav-links {
    display: none;
  }

  .navigation > .button {
    display: none;
  }

  .burger-button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    background-color: var(--blue);
    cursor: pointer;
  }

  .burger-button::before,
  .burger-button::after {
    content: "";
    width: 20px;
    height: 2px;
    position: absolute;
    background-color: var(--white);
  }

  .burger-button::before {
    top: 15px;
    box-shadow: 0 7px 0 var(--white);
  }

  .burger-button::after {
    top: 29px;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: var(--blue);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .menu-toggle:checked ~ .mobile-menu {
    transform: translateX(0);
  }

  .mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .mobile-menu-inner > a:not(.button) {
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
  }

  .mobile-menu-close {
    width: 44px;
    height: 44px;
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
  }

  .mobile-menu-close::before,
  .mobile-menu-close::after {
    content: "";
    width: 28px;
    height: 2px;
    position: absolute;
    top: 21px;
    left: 8px;
    background-color: var(--white);
  }

  .mobile-menu-close::before {
    transform: rotate(45deg);
  }

  .mobile-menu-close::after {
    transform: rotate(-45deg);
  }

  .footer-grid {
    flex-direction: column;
    gap: 38px;
  }
}

@media (max-width: 800px) {
  .blue-header-page .page-hero-blue:first-child {
    padding-top: calc(90px + var(--blue-header-offset));
  }
}
