/* =========================================
   HEADER
========================================= */

.site-header {
  background: var(--ink);
  color: #fff;
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-wrap {
  min-height: 82px;
  max-width: 1400px;
  padding: 0 32px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wrap > nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nav-wrap > nav .primary-menu {
  pointer-events: auto;
}

/* =========================================
   BRAND
========================================= */

.brand {
  font: 900 26px / 0.72 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.035em;
  max-width: 130px;
}

.brand span {
  color: var(--red);
}

/* =========================================
   HAMBURGER NAVIGATION
   Always used on desktop and mobile
========================================= */

.menu-toggle {
  display: flex;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #fff;
  width: 42px;
  height: 42px;
  padding: 10px 7px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   NAVIGATION MENU
   Hidden until hamburger is clicked
========================================= */

.primary-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 82px;
  background: var(--ink);
  padding: 18px 32px 26px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  list-style: none;
  margin: 0;
  text-transform: uppercase;
  font: 700 14px var(--display);
  letter-spacing: 0.08em;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.primary-menu.is-open {
  display: flex;
}

.primary-menu a {
  padding: 10px 0;
  position: relative;
}

.primary-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--red);
  transition:
    right 0.22s,
    background 0.22s;
}

.primary-menu a:hover::after {
  right: 0;
  background: var(--red);
}

/* Current page indicator */

.primary-menu .current-menu-item a::after {
  right: 0;
  background: var(--red);
}

/* Current page + hover */

.primary-menu .current-menu-item a:hover::after {
  background: #fff;
}

/* =========================================
   BUTTONS
========================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;

  background: var(--red);
  color: #fff;

  padding: 15px 21px;

  text-transform: uppercase;
  letter-spacing: 0.08em;
  font: 800 16px var(--display);

  transition:
    transform 0.2s,
    background 0.2s;
}

.button:hover {
  background: #bd2418;
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button--light {
  background: var(--paper);
  color: var(--ink);
}

.button--light:hover {
  background: var(--silver);
}

/* =========================================
   SOCIAL
========================================= */

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  list-style: none;
  padding: 0;
  margin: 15px 0 0;
}

.social-list a {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border: 1px solid #555;

  transition:
    background 0.2s,
    color 0.2s;
}

.social-list svg {
  display: block;
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-list a:hover {
  background: var(--silver);
  color: var(--ink);
}

/* =========================================
   SOCIAL RAIL
========================================= */

.social-rail {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-rail__link {
  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  padding: 0;
  border: 0;
  border-radius: 0;

  background: transparent;
  color: #fff;

  line-height: 0;

  transition: transform 0.2s;
}

.social-rail__link:hover {
  transform: translateX(-4px);
  background: transparent;
}

/* =========================================
   SOCIAL ICONS
========================================= */

.social-rail__link img,
.social-rail__link svg {
  display: block;
  max-width: none;
  max-height: none;
}

/* Facebook */

.social-rail__link--facebook img,
.social-rail__link--facebook svg {
  width: 42px;
  height: 42px;
}

/* Instagram */

.social-rail__link--instagram img,
.social-rail__link--instagram svg {
  width: 44px;
  height: 44px;
}

/* WhatsApp */

.social-rail__link--whatsapp img,
.social-rail__link--whatsapp svg {
  width: 43px;
  height: 43px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 70px;
    padding: 0 20px;
  }

  .brand {
    font-size: 23px;
  }

  .primary-menu {
    top: 70px;
    padding: 12px 20px 22px;
  }

  .social-rail {
    right: 14px;
    bottom: 14px;
    gap: 9px;
  }

  .social-rail__link {
    width: 48px;
    height: 48px;
  }

  .social-rail__link--facebook img,
  .social-rail__link--facebook svg {
    width: 37px;
    height: 37px;
  }

  .social-rail__link--instagram img,
  .social-rail__link--instagram svg {
    width: 39px;
    height: 39px;
  }

  .social-rail__link--whatsapp img,
  .social-rail__link--whatsapp svg {
    width: 38px;
    height: 38px;
  }
}
