/* =====================================================
   HEADER BORELLO - STANDALONE
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =====================================================
   BASE
   ===================================================== */

.borello-header,
.borello-header * {
  box-sizing: border-box;
}

.borello-header {
  width: 100%;
  background: #f8f7ec;
  color: #2d2e33;
  font-family: "Inter", "Circular", Arial, sans-serif;
  position: relative;
  z-index: 1000;
}

.borello-header a {
  color: inherit;
  text-decoration: none;
}

/* =====================================================
   DESKTOP HEADER
   ===================================================== */

.borello-header__inner {
  width: 100%;
  max-width: 1160px;
  min-height: 88px;
  margin: 0 auto;
  padding: 18px 40px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.borello-header__logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.borello-header__logo {
  display: block;
  width: 145px;
  height: auto;
}

.borello-header__nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.borello-header__nav a {
  position: relative;
  display: inline-block;
  color: #2d2e33;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: none;
}

.borello-header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;

  width: 100%;
  height: 1px;
  background: currentColor;

  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.borello-header__nav a:hover::after,
.borello-header__nav a:focus::after {
  transform: scaleX(1);
}

/* =====================================================
   HAMBURGER
   ===================================================== */

.borello-header__toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.borello-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #2d2e33;
  border-radius: 999px;
}

/* =====================================================
   OFFCANVAS MOBILE
   ===================================================== */

.borello-header__offcanvas {
  display: none;
}

.borello-header__close {
  display: none;
}

/* =====================================================
   TABLET / MOBILE
   ===================================================== */

@media (max-width: 900px) {
  .borello-header__inner {
    min-height: 82px;
    padding: 14px 22px;
  }

  .borello-header__logo {
    width: 142px;
  }

  .borello-header__nav {
    display: none;
  }

  .borello-header__toggle {
    display: block;
  }

  .borello-header__offcanvas {
    display: block;
    position: fixed;
    top: 0;
    right: 0;

    width: min(72vw, 310px);
    height: 100vh;

    background: rgba(99, 102, 94, 0.9);
    color: #f1efd9;

    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;

    transition:
      transform 240ms ease,
      opacity 240ms ease,
      visibility 240ms ease;

    z-index: 1100;
    padding: 64px 26px 40px;
    overflow-y: auto;
  }

  .borello-header.is-menu-open .borello-header__offcanvas {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .borello-header__close {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;

    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .borello-header__close span {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 22px;
    height: 1.5px;
    background: #f1efd9;
    border-radius: 999px;
    transform-origin: center;
  }

  .borello-header__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .borello-header__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .borello-header__mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .borello-header__mobile-nav a {
    position: relative;
    display: inline-block;

    color: #f1efd9;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .borello-header__mobile-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;

    width: 100%;
    height: 1px;
    background: currentColor;

    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms ease;
  }

  .borello-header__mobile-nav a:hover::after,
  .borello-header__mobile-nav a:focus::after {
    transform: scaleX(1);
  }

  body.borello-menu-open {
    overflow: hidden;
  }
}

/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media (max-width: 480px) {
  .borello-header__inner {
    min-height: 82px;
    padding: 13px 18px;
  }

  .borello-header__logo {
    width: 140px;
  }

  .borello-header__offcanvas {
    width: 72vw;
    min-width: 250px;
    padding-top: 66px;
    padding-left: 24px;
  }

  .borello-header__mobile-nav {
    gap: 22px;
  }

  .borello-header__mobile-nav a {
    font-size: 15px;
    letter-spacing: 0.16em;
  }
}