

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4.16vw, 5rem);
  width: 100%;
  margin: 0;
  padding: 1.25rem calc((100vw - var(--shell)) / 2 + clamp(1.25rem, 4.16vw, 5rem));
  transition:
    top 0.25s ease,
    padding 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    backdrop-filter 0.25s ease,
    border-radius 0.25s ease;
}


.site-header.is-floating {
  position: fixed;
  top: 0;
  padding: 1rem calc((100vw - var(--shell)) / 2 + clamp(1.25rem, 4.16vw, 5rem));
  background: #ffffff;
  border: none;
  border-radius: 0;
}

.site-header > .header-shell {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4.16vw, 5rem);
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
}

.site-header > .header-shell .menu-toggle {
  grid-column: 3;
  justify-self: end;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(3.375rem, 5.2vw, 6.25rem);
  flex: 0 0 auto;
}


.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}


.menu-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}


.menu-toggle span {
  position: absolute;
  left: 50%;
  display: block;
  width: 1.25rem;
  height: 0.125rem;
  margin: 0;
  border-radius: 999rem;
  background: #101010;
  transform: translateX(-50%);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}


.menu-toggle span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, calc(-50% - 0.375rem));
}


.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}


.menu-toggle span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, calc(-50% + 0.375rem));
}


.mobile-drawer,
.mobile-backdrop {
  display: none;
}


.header-main {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(1.25rem, 2.08vw, 2.5rem);
  min-height: clamp(3.375rem, 5.2vw, 6.25rem);
  min-width: 0;
}


.search {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  width: clamp(9.25rem, 12.5vw, 15rem);
  min-width: clamp(9.25rem, 12.5vw, 15rem);
  padding: clamp(0.375rem, 0.52vw, 0.625rem) clamp(0.5rem, 0.62vw, 0.75rem);
  border: 0.0625rem solid var(--line);
  border-radius: 999rem;
  background: transparent;
}


.search-icon,
.search-icon::before {
  display: block;
  content: "";
  width: 1em;
  height: 1em;
  border-radius: 50%;
}


.search-icon {
  flex: 0 0 auto;
  position: relative;
  font-size: clamp(0.75rem, 0.94vw, 1.125rem);
  border: 0.125rem solid #808997;
}


.search-icon::before {
  position: absolute;
  right: -0.32rem;
  bottom: -0.22rem;
  width: 0.45rem;
  height: 0.1rem;
  border-radius: 999rem;
  background: #808997;
  transform: rotate(45deg);
}


.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #848c99;
  font-size: clamp(0.75rem, 0.94vw, 1.125rem);
  line-height: 1.366;
}


.main-nav,
.footer-nav,
.footer-meta {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.08vw, 2.5rem);
  flex-wrap: wrap;
}


.main-nav a,
.footer-nav a {
  font-size: clamp(0.75rem, 1.04vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
}


.main-nav a {
  transition: opacity 0.2s, text-decoration-color 0.2s;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.5rem;
}


.main-nav a:hover {
  opacity: 0.7;
}


.main-nav a.active {
  text-decoration-color: var(--text);
}


.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.62vw, 0.75rem);
}


.icon-button {
  width: clamp(1.5rem, 2vw, 2.25rem);
  height: clamp(1.5rem, 2vw, 2.25rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}


.icon-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}


.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  transition: opacity 0.2s, color 0.2s;
}

.mobile-nav a.active {
  color: var(--blue, #02B1F3);
  font-weight: 600;
}


.mobile-drawer-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


.site-footer {
  padding: 2rem 0;
  font-size: 0.9rem;
}


.site-footer .section-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.footer-left,
.footer-right {
  display: flex;
  align-items: center;
}


.footer-left {
  gap: clamp(2rem, 6vw, 6rem);
}


.footer-right {
  gap: clamp(1.5rem, 3vw, 3rem);
}


.footer-brand {
  width: 3.75rem;
}


.footer-nav,
.footer-meta {
  display: flex;
  align-items: center;
}


.footer-nav {
  gap: clamp(1.5rem, 4vw, 4rem);
  font-weight: 500;
}


.footer-meta {
  gap: clamp(1rem, 2.5vw, 2.5rem);
  color: rgba(16, 16, 16, 0.5);
}


.footer-copyright {
  color: rgba(18, 44, 95, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}


.footer-socials {
  display: flex;
  align-items: center;
}


.footer-socials img {
  height: 1.5rem;
}


@media (max-width: 68.75rem) {


  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem calc((100vw - var(--shell)) / 2 + 1.25rem) 0;
    transform: none;
  }


  .site-header.is-floating {
    top: 0;
    padding: 0.875rem calc((100vw - var(--shell)) / 2 + 1.25rem);
    border-radius: 0;
    width: 100%;
  }

  .site-header > .header-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 1rem;
  }

  .site-header > .header-shell .menu-toggle {
    grid-column: auto;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
  }


  .site-header.is-open .menu-toggle span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }


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


  .site-header.is-open .menu-toggle span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
  }


  .header-main,
  .header-actions {
    display: none;
  }


  .mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 320;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: var(--drawer-width);
    height: 100svh;
    padding: 4.5rem 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(1rem);
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }


  body.is-nav-open .mobile-drawer {
    transform: translateX(0);
  }


  .mobile-backdrop {
    position: fixed;
    inset: 0;
    right: var(--drawer-width);
    z-index: 280;
    display: block;
    border: 0;
    background: rgba(16, 16, 16, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }


  body.is-nav-open .mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }


  .mobile-drawer .search {
    min-width: 0;
    width: 100%;
  }


  .mobile-nav {
    gap: 0.875rem;
  }


  .mobile-nav a {
    font-size: 0.92rem;
  }


  .mobile-drawer-actions {
    margin-top: auto;
  }


  .mobile-drawer-actions .icon-button {
    width: 1.375rem;
    height: 1.375rem;
  }


  .site-footer .section-shell {
    flex-wrap: wrap;
    gap: 3rem;
  }


  .footer-left,
  .footer-right {
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }

  
  .footer-nav,
  .footer-meta {
    flex-wrap: wrap;
  }
}


@media (max-width: 45rem) {


  .site-header {
    padding: 0.75rem calc((100vw - var(--shell)) / 2 + 0.75rem) 0;
  }


  .site-header.is-floating {
    width: 100%;
    padding: 0.85rem calc((100vw - var(--shell)) / 2 + 0.9rem);
    border-radius: 0;
  }


  .brand {
    width: 4.875rem;
  }


  .footer-nav,
  .footer-meta {
    gap: 0.75rem 1rem;
  }


  .footer-nav a {
    font-size: 0.92rem;
  }


  .site-footer .section-shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
    padding-top: 3rem;
  }


  .footer-left,
  .footer-right,
  .footer-nav,
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }


  .footer-nav,
  .footer-meta {
    gap: 1rem;
  }


  .footer-right {
    gap: 2rem;
  }
}
