/* ==================================================
   HEADER
================================================== */

/* ==================================================
   HEADER BASE
================================================== */

.site-header {
  position: sticky;
  top: 0;

  z-index: 1000;

  background: rgba(247, 248, 250, 0.9);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 76px;

  gap: 2rem;
}

/* ==================================================
   BRAND
================================================== */

.brand {
  display: inline-flex;
  align-items: center;

  gap: 0.55rem;

  flex-shrink: 0;

  color: #181a1f;

  font-size: 1.1rem;
  font-weight: 700;
}

.brand__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 2rem;
  height: 2rem;

  background: #f59e0b;

  border-radius: 0.5rem;

  color: #ffffff;

  font-size: 0.9rem;
}

.brand__name {
  color: #181a1f;

  transition: color 0.25s ease;
}

.brand:hover .brand__name {
  color: #d97706;
}

/* ==================================================
   NAVIGATION
================================================== */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 1;
}

.site-nav__list {
  display: flex;
  align-items: center;

  gap: 2rem;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  position: relative;

  display: inline-flex;
  align-items: center;

  padding: 0.45rem 0.15rem;

  color: #6b7280;

  font-size: 0.85rem;
  font-weight: 500;

  transition: color 0.25s ease;
}

.site-nav__link::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 0;
  height: 2px;

  background: #f59e0b;

  border-radius: 2px;

  transition: width 0.25s ease;
}

.site-nav__link:hover {
  color: #181a1f;
}

.site-nav__link:hover::after {
  width: 100%;
}

.site-nav__link--active {
  color: #181a1f;

  font-weight: 600;
}

.site-nav__link--active::after {
  width: 100%;
}

/* ==================================================
   MOBILE NAV CTA
================================================== */

.site-nav__cta {
  display: none;
}

/* ==================================================
   DESKTOP CTA
================================================== */

.site-header__action {
  flex-shrink: 0;
}

.site-header__action .button {
  min-height: 2.5rem;

  padding-inline: 1.1rem;

  font-size: 0.8rem;
}

/* ==================================================
   MOBILE MENU BUTTON
================================================== */

.site-header__menu {
  display: none;

  border: 0;

  background: transparent;

  padding: 0;

  cursor: pointer;
}

.site-header__menu span {
  display: block;

  width: 1.4rem;
  height: 2px;

  background: #181a1f;

  border-radius: 2px;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* ==================================================
   TABLET
   1024px
================================================== */

@media (max-width: 1024px) {
  .site-header__inner {
    min-height: 72px;

    gap: 1.5rem;
  }

  /* Brand */

  .brand {
    font-size: 1rem;
  }

  .brand__icon {
    width: 1.9rem;
    height: 1.9rem;
  }

  /* Navigation */

  .site-nav__list {
    gap: 1.4rem;
  }

  .site-nav__link {
    font-size: 0.8rem;
  }

  /* Desktop CTA */

  .site-header__action .button {
    padding-inline: 1rem;

    font-size: 0.75rem;
  }
}

/* ==================================================
   MOBILE
   768px
================================================== */

@media (max-width: 768px) {
  /* ==================================================
       HEADER
    ================================================== */

  .site-header {
    z-index: 1000;
  }

  .site-header__inner {
    position: relative;

    min-height: 68px;

    gap: 0;
  }

  /* ==================================================
       BRAND
    ================================================== */

  .brand {
    font-size: 1rem;
  }

  .brand__icon {
    width: 1.85rem;
    height: 1.85rem;

    border-radius: 0.45rem;

    font-size: 0.8rem;
  }

  /* ==================================================
       HAMBURGER
    ================================================== */

  .site-header__menu {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 4px;

    width: 2rem;
    height: 2rem;

    margin-left: auto;

    z-index: 1002;
  }

  .site-header__menu span {
    width: 1.4rem;
    height: 2px;
  }

  /* ==================================================
       NAVIGATION OVERLAY
    ================================================== */

  .site-nav {
    position: fixed;

    top: 0;
    left: 0;

    display: none;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    width: 100%;
    height: 100vh;

    min-height: 100dvh;

    padding: 6rem 1.5rem 3rem;

    background: #f7f8fa;

    z-index: 1001;

    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  /* ==================================================
       NAVIGATION LIST
    ================================================== */

  .site-nav__list {
    display: flex;

    flex-direction: column;
    align-items: center;

    gap: 1.35rem;

    margin: 0;
    padding: 0;

    text-align: center;
  }

  .site-nav__item {
    position: static;
  }

  .site-nav__link {
    padding: 0.35rem 0;

    color: #6b7280;

    font-size: 1.25rem;
    font-weight: 600;

    transition: color 0.25s ease;
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link:hover {
    color: #181a1f;
  }

  .site-nav__link--active {
    color: #181a1f;
  }

  /* ==================================================
       MOBILE CTA
    ================================================== */

  .site-nav__cta {
    display: inline-flex;

    margin-top: 2rem;

    min-width: 170px;

    justify-content: center;
  }

  /* ==================================================
       HIDE DESKTOP CTA
    ================================================== */

  .site-header__action {
    display: none;
  }

  /* ==================================================
       HAMBURGER → X
    ================================================== */

  .site-header__menu.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header__menu.is-open span:nth-child(2) {
    opacity: 0;
  }

  .site-header__menu.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* ==================================================
   SMALL MOBILE
   480px
================================================== */

@media (max-width: 480px) {
  .site-header__inner {
    min-height: 62px;
  }

  /* ==================================================
       BRAND
    ================================================== */

  .brand {
    font-size: 0.95rem;
  }

  .brand__icon {
    width: 1.75rem;
    height: 1.75rem;

    font-size: 0.75rem;
  }

  /* ==================================================
       HAMBURGER
    ================================================== */

  .site-header__menu {
    width: 1.8rem;
    height: 1.8rem;
  }

  .site-header__menu span {
    width: 1.25rem;
  }

  /* ==================================================
       NAVIGATION
    ================================================== */

  .site-nav {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .site-nav__list {
    gap: 1.15rem;
  }

  .site-nav__link {
    font-size: 1.1rem;
  }

  .site-nav__cta {
    margin-top: 1.75rem;

    min-width: 160px;

    font-size: 0.8rem;
  }
}
