/* =========================
   HEADER
========================= */

.header {
  position: fixed;
  top: 0;
  left: 0;

  z-index: 1000;

  width: 100%;

  background: transparent;

  font-family: Arial, Helvetica, sans-serif;

  transition: background-color 0.35s ease, box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

.header-scrolled {
  background-color: rgba(255, 255, 255, 0.97);

  box-shadow: 0 8px 30px rgba(10, 35, 55, 0.08);

  backdrop-filter: blur(12px);
}

/* =========================
   CONTAINER
========================= */

.header-container {
  width: min(1380px, 100%);

  min-height: 96px;

  margin: 0 auto;

  display: flex;
  align-items: center;
}

/* =========================
   LOGO
========================= */

.header-logo {
  width: 90px;
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  flex-shrink: 0;
}

.header-logo img {
  display: block;
  width: 100px;
  height: auto;
  padding: 0;
  margin: 0;
}

/* =========================
   NAV
========================= */

.header-nav {
  display: flex;
  align-items: center;

  gap: 38px;

  margin-left: auto;
}

.header-nav a {
  position: relative;

  padding: 8px 0;

  color: #ffffff;

  font-size: 14px;
  font-weight: 600;

  letter-spacing: 0.01em;

  text-decoration: none;

  transition: color 0.3s ease;
}

.header-scrolled .header-nav a {
  color: var(--color-black);
}

.header-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 1px;

  width: 0;
  height: 2px;

  background-color: var(--color-accent);

  transition: width 0.3s ease;
}

.header-nav a:hover::after {
  width: 100%;
}

.header-nav a.nav-link-active::after {
  width: 100%;
}

/* =========================
   MOBILE BUTTON
========================= */

.header-menu-button {
  display: none;

  width: 44px;
  height: 44px;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;

  align-items: center;
  justify-content: center;

  flex-direction: column;

  gap: 5px;
}

.header-menu-button span {
  display: block;

  width: 22px;
  height: 1.5px;

  background-color: #ffffff;

  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.header-scrolled .header-menu-button span {
  background-color: #0b2745;
}

/* =========================
   HAMBURGER → X
========================= */

.header-menu-button-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.header-menu-button-active span:nth-child(2) {
  opacity: 0;
}

.header-menu-button-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* =========================
   HEADER OPEN
========================= */

.header-menu-open {
  background-color: rgba(255, 255, 255, 0.97);

  box-shadow: 0 8px 30px rgba(10, 35, 55, 0.08);

  backdrop-filter: blur(12px);
}

.header-menu-open .header-menu-button span {
  background-color: #0b2745;
}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
  position: fixed;

  top: 0;
  left: 0;

  z-index: 999;

  width: 100%;
  height: 100dvh;

  background: #0b2745;

  opacity: 0;
  visibility: hidden;

  transform: translateY(-20px);

  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.mobile-menu-open {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

.mobile-menu-content {
  width: min(100% - 44px, 600px);

  height: 100%;

  margin: 0 auto;

  padding: 105px 0 30px;

  display: flex;
  flex-direction: column;
}

/* =========================
   MOBILE MENU HEADER
========================= */

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 22px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu-header span:first-child {
  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.18em;

  color: #4e9f70;
}

.mobile-menu-header span:last-child {
  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.12em;

  color: rgba(255, 255, 255, 0.4);
}

/* =========================
   MOBILE NAV
========================= */

.mobile-menu-nav {
  display: flex;
  flex-direction: column;

  margin-top: 25px;
}

.mobile-menu-nav a {
  display: grid;

  grid-template-columns: 35px 1fr;

  align-items: center;

  min-height: 68px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  color: #ffffff;

  font-size: 30px;
  font-weight: 400;

  letter-spacing: -0.03em;

  text-decoration: none;

  opacity: 0;

  transform: translateY(15px);

  transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s ease;
}

.mobile-menu-open .mobile-menu-nav a {
  opacity: 1;

  transform: translateY(0);
}

.mobile-menu-nav a:hover {
  color: #4e9f70;
}

/* =========================
   MOBILE FOOTER
========================= */

.mobile-menu-footer {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-top: auto;

  padding-top: 25px;
}

.mobile-menu-footer span {
  font-size: 8px;
  font-weight: 700;

  letter-spacing: 0.1em;

  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.32);
}

.mobile-menu-footer span:not(:last-child)::after {
  content: "";

  display: inline-block;

  width: 3px;
  height: 3px;

  margin-left: 12px;

  vertical-align: middle;

  border-radius: 50%;

  background: #4e9f70;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {
  .header-container {
    padding: 0 30px;
  }

  .header-nav {
    gap: 25px;
  }

  .header-nav a {
    font-size: 13px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 760px) {
  .header-container {
    min-height: 82px;

    padding: 0 22px;
  }

  .header-logo {
    width: 125px;
    height: 82px;
  }

  .header-logo img {
    padding: 0;
    padding-right: 30px;
  }

  .header-nav {
    display: none;
  }

  .header-menu-button {
    display: flex;

    margin-left: auto;
  }

  .mobile-menu-content {
    padding-top: 105px;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 400px) {
  .mobile-menu-content {
    width: min(100% - 36px, 600px);
  }

  .mobile-menu-nav a {
    min-height: 62px;

    font-size: 27px;
  }

  .mobile-menu-footer {
    gap: 8px;
  }

  .mobile-menu-footer span {
    font-size: 7px;
  }
}
