/* =========================================================
   COMPONENTS
   Shared components used across the website
   ========================================================= */


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

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;
  padding: 10px;

  pointer-events: none;
}

.site-nav__inner {
  width: 100%;
  min-height: 64px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px;

  background: var(--color-surface);
  border: 1px solid var(--color-border);

  border-radius: 32px;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12);

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

  pointer-events: auto;
}


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

.site-nav__brand {
  display: inline-flex;
  align-items: center;

  color: var(--color-primary);

  font-size: 18px;
  font-weight: 800;
  line-height: 1;

  transition:
    color 220ms ease,
    opacity 220ms ease;
}

.site-nav__brand:hover {
  color: var(--color-primary);
  opacity: 1;
}


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

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

  color: var(--color-primary);
  opacity: 0.64;

  font-size: 14px;
  font-weight: 500;
  line-height: 1;

  transition:
    opacity 220ms ease;

  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  opacity: 1;
}


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

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

  width: 24px;
  height: 24px;

  color: var(--color-primary);
  opacity: 0.64;

  transition:
    opacity 220ms ease;
}

.site-nav__icon:hover,
.site-nav__icon:focus-visible {
  opacity: 1;
}

.site-nav__icon img,
.site-nav__icon svg {
  width: 100%;
  height: 100%;
}


/* =========================================================
   REUSABLE ACTION BUTTON
   ========================================================= */

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 36px;
  padding: 9px 16px;

  border: 1px solid currentColor;
  border-radius: 999px;

  color: var(--color-primary);
  background: transparent;

  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;

  white-space: nowrap;

  transition:
    color 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease;
}

.action-button:hover,
.action-button:focus-visible {
  color: var(--color-background);
  background: var(--color-primary);
  border-color: var(--color-primary);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  width: 100%;

  padding: 0 10px 10px;
}

.site-footer__inner {
  width: 100%;
  min-height: 128px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 24px 10px;

  color: var(--color-footer-text);
}


/* =========================================================
   FOOTER TOP / BOTTOM
   ========================================================= */

.site-footer__top,
.site-footer__bottom {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__top {
  min-height: 24px;
}

.site-footer__bottom {
  min-height: 24px;
}


/* =========================================================
   FOOTER BRAND COPYRIGHT
   ========================================================= */

.site-footer__brand {
  color: var(--color-footer-text);

  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
}


/* =========================================================
   FOOTER LINKS
   ========================================================= */

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-footer__link {
  color: var(--color-footer-text);
  opacity: 0.72;

  font-size: 14px;
  font-weight: 500;
  line-height: 16px;

  transition:
    opacity 220ms ease;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  opacity: 1;
}


/* =========================================================
   FOOTER SOCIAL MEDIA
   ========================================================= */

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--color-footer-text);
  opacity: 0.72;

  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  opacity: 1;
}

.site-footer__social-link svg,
.site-footer__social-link img {
  width: 16px;
  height: 16px;
}


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

@media (max-width: 768px) {

  .site-nav {
    padding: 8px;
  }

  .site-nav__inner {
    min-height: 56px;
    padding: 8px;
    border-radius: 28px;
  }

  .site-nav__links {
    gap: 16px;
  }

  .site-nav__link {
    font-size: 13px;
  }

  .site-footer {
    padding: 0 8px 8px;
  }

  .site-footer__inner {
    min-height: 128px;
    padding: 20px 8px;
  }

  .site-footer__links {
    gap: 16px;
  }

  .site-footer__link {
    font-size: 13px;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .site-nav__links {
    gap: 12px;
  }

  .site-nav__link {
    font-size: 12px;
  }

  .site-footer__links {
    gap: 12px;
  }

  .site-footer__link {
    font-size: 12px;
  }
}