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

.siteHeader {
  --headerHeight: 80px;

  width: 100%;

  position: fixed;

  top: 0;
  left: 0;

  z-index: 1000;

  background: rgba(247, 241, 230, 0.97);

  border-bottom: 1px solid rgba(56, 47, 39, 0.07);

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

  backdrop-filter: blur(12px);
}

body.admin-bar .siteHeader {
  top: 32px;
}

/* =========================================================
 * INNER
 * =========================================================
 */

.headerInner {
  min-height: var(--headerHeight);

  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 36px;
}

/* =========================================================
 * LOGO
 * =========================================================
 */

.headerLogo {
  display: flex;

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

  flex-shrink: 0;

  text-decoration: none;
}

.headerLogoImage {
  width: 112px;
  height: 62px;

  display: block;

  object-fit: contain;
  object-position: left center;
}

.headerLogoText {
  color: var(--colorText);

  font-family: var(--fontText);

  font-size: 16px;
  font-weight: 700;

  text-transform: uppercase;
}

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

.headerNavigation {
  min-width: 0;

  display: flex;

  align-items: center;
  justify-content: flex-start;
}

.headerMenu {
  display: flex;

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

  gap: 32px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.headerMenu li {
  margin: 0;
  padding: 0;

  list-style: none;
}

.headerMenu li a {
  position: relative;

  display: block;

  padding: 30px 0;

  color: #181511;

  font-family: var(--fontText);

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

  text-decoration: none;

  white-space: nowrap;

  transition: color 0.3s ease;
}

.headerMenu li a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 21px;

  width: 100%;
  height: 1px;

  background: var(--colorPrimary);

  transform: scaleX(0);

  transform-origin: right center;

  transition: transform 0.3s ease;
}

.headerMenu .current-menu-item > a,
.headerMenu .current-menu-ancestor > a {
  color: var(--colorPrimary);
}

.headerMenu .current-menu-item > a::after,
.headerMenu .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

/* =========================================================
 * ACTIONS
 * =========================================================
 */

.headerActions {
  display: flex;

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

  gap: 16px;

  flex-shrink: 0;
}

/* =========================================================
 * RATINGS
 * =========================================================
 */

.headerRating {
  min-height: 38px;

  display: flex;

  align-items: center;

  padding: 0 7px;

  border-left: 1px solid rgba(56, 47, 39, 0.2);

  border-right: 1px solid rgba(56, 47, 39, 0.2);
}

.headerRatingTitle {
  display: none !important;
}

.headerRatingItem {
  min-height: 38px;

  display: flex;

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

  gap: 7px;

  padding: 0 13px;

  color: #181511;

  font-family: var(--fontText);

  font-size: 15px;
  font-weight: 500;

  text-decoration: none;
}

.headerRatingItem + .headerRatingItem {
  border-left: 1px solid rgba(56, 47, 39, 0.16);
}

.headerRatingIcon {
  width: 22px;
  height: 22px;

  display: block;

  object-fit: contain;
}

/* =========================================================
 * CALL
 * =========================================================
 */

.headerCall {
  min-height: 48px;

  display: inline-flex;

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

  gap: 8px;

  padding: 0 22px;

  border: 1px solid var(--colorPrimary);

  border-radius: 6px;

  background: var(--colorPrimary);

  color: #ffffff;

  font-family: var(--fontText);

  font-size: 15px;
  font-weight: 500;

  text-decoration: none;
}

/* =========================================================
 * BURGER
 * =========================================================
 */

.headerBurger {
  width: 42px;
  height: 42px;

  display: none;

  flex-direction: column;

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

  gap: 5px;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;
}

.headerBurger span {
  width: 24px;
  height: 2px;

  display: block;

  border-radius: 10px;

  background: #181511;

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

.headerBurger.isActive span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.headerBurger.isActive span:nth-child(2) {
  opacity: 0;
}

.headerBurger.isActive span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.headerMobile,
.headerMobileOverlay {
  display: none;
}

/* =========================================================
 * DESKTOP HOVERS
 * =========================================================
 */

@media (hover: hover) and (pointer: fine) {
  .headerMenu li a:hover {
    color: var(--colorPrimary);
  }

  .headerMenu li a:hover::after {
    transform: scaleX(1);
  }
}

/* =========================================================
 * <= 1280
 * =========================================================
 */

@media (max-width: 1280px) {
  .headerInner {
    gap: 20px;
  }

  .headerMenu {
    gap: 18px;
  }

  .headerMenu li a {
    font-size: 14px;
  }

  .headerLogoImage {
    width: 96px;
  }

  .headerRatingItem {
    padding: 0 8px;

    font-size: 13px;
  }

  .headerCall {
    padding: 0 17px;

    font-size: 14px;
  }
}

/* =========================================================
 * TABLET / MOBILE <= 1200
 * =========================================================
 */

@media (max-width: 1200px) {
  body.headerMenuOpen {
    overflow: hidden;
  }

  .siteHeader {
    --headerHeight: 72px;
  }

  .headerInner {
    min-height: var(--headerHeight);

    grid-template-columns:
      auto
      1fr
      auto;

    gap: 10px;
  }

  .headerLogoImage {
    width: 92px;
    height: 56px;
  }

  .headerNavigation,
  .headerRating,
  .headerCall {
    display: none;
  }

  .headerActions {
    justify-self: end;
  }

  .headerBurger {
    display: flex;
  }

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

  .headerMobileOverlay {
    width: 100vw;

    height: calc(100dvh - var(--headerHeight));

    position: absolute;

    z-index: 998;

    top: 100%;
    left: 0;

    display: block;

    background: rgba(20, 16, 12, 0.28);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
      opacity 0.4s ease,
      visibility 0.4s ease;
  }

  body.headerMenuOpen .headerMobileOverlay {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
  }

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

  .headerMobile {
    width: 100%;

    height: calc(100dvh - var(--headerHeight));

    position: absolute;

    z-index: 999;

    top: 100%;
    left: 0;

    display: block;

    overflow: hidden;

    visibility: hidden;

    opacity: 0;

    background: var(--colorPrimary);

    color: var(--colorBackground);

    transform: translateX(100%);

    transition:
      opacity 0.5s ease,
      transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
      visibility 0.7s;
  }

  body.headerMenuOpen .headerMobile {
    visibility: visible;

    opacity: 1;

    transform: translateX(0);
  }

  /* =======================================================
   * DECOR
   * =======================================================
   */

  .headerMobileDecor {
    position: absolute;

    z-index: 0;

    inset: 0;

    overflow: hidden;

    pointer-events: none;
  }

  .headerMobileDecor::after {
    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
      90deg,
      rgba(38, 48, 29, 0.18),
      transparent 55%,
      rgba(38, 48, 29, 0.1)
    );
  }

  .headerMobileCircle {
    position: absolute;

    border-radius: 50%;

    background: var(--colorBackground);
  }

  .headerMobileCircleOne {
    width: 165px;
    height: 165px;

    top: 12%;
    right: -55px;

    opacity: 0.055;
  }

  .headerMobileCircleTwo {
    width: 220px;
    height: 220px;

    left: -125px;
    bottom: 20%;

    opacity: 0.04;
  }

  .headerMobileCircleThree {
    width: 55px;
    height: 55px;

    top: 53%;
    right: 13%;

    opacity: 0.09;
  }

  .headerMobileLine {
    position: absolute;

    color: var(--colorBeige);

    opacity: 0.22;
  }

  .headerMobileLineOne {
    width: 120%;
    height: 310px;

    top: 17%;
    left: -10%;
  }

  .headerMobileLineTwo {
    width: 125%;
    height: 300px;

    left: -15%;
    bottom: 12%;
  }

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

  .headerMobileInner {
    width: calc(100vw - 40px);

    height: 100%;

    position: relative;

    z-index: 2;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    gap: 35px;

    padding-top: 45px;
    padding-bottom: 25px;

    overflow-y: auto;

    scrollbar-width: none;
  }

  .headerMobileInner::-webkit-scrollbar {
    display: none;
  }

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

  .headerMobileMenu {
    counter-reset: headerMobileMenu;

    display: flex;

    flex-direction: column;

    gap: 28px;

    margin: 0;
    padding: 0;

    list-style: none;
  }

  .headerMobileMenu li {
    counter-increment: headerMobileMenu;

    display: grid;

    grid-template-columns:
      44px
      minmax(0, 1fr);

    align-items: start;

    gap: 8px;

    margin: 0;
    padding: 0;

    opacity: 0;

    list-style: none;

    transform: translateX(35px);

    transition:
      opacity 0.6s ease,
      transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .headerMobileMenu li::before {
    content: counter(headerMobileMenu, decimal-leading-zero);

    color: var(--colorGold);

    font-family: var(--fontTitle);

    font-size: 20px;
    font-weight: 700;
  }

  .headerMobileMenu li a {
    position: relative;

    width: max-content;

    max-width: 100%;

    color: var(--colorBackground);

    font-family: var(--fontTitle);

    font-size: 27px;
    font-weight: 700;
    line-height: 0.95;

    text-decoration: none;

    text-transform: uppercase;
  }

  .headerMobileMenu li a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 100%;
    height: 1px;

    background: var(--colorBeige);

    transform: scaleX(0);

    transform-origin: right center;

    transition: transform 0.3s ease;
  }

  .headerMobileMenu .current-menu-item > a::after,
  .headerMobileMenu .current-menu-ancestor > a::after {
    transform: scaleX(1);
  }

  body.headerMenuOpen .headerMobileMenu li {
    opacity: 1;

    transform: translateX(0);
  }

  body.headerMenuOpen .headerMobileMenu li:nth-child(1) {
    transition-delay: 0.15s;
  }

  body.headerMenuOpen .headerMobileMenu li:nth-child(2) {
    transition-delay: 0.23s;
  }

  body.headerMenuOpen .headerMobileMenu li:nth-child(3) {
    transition-delay: 0.31s;
  }

  body.headerMenuOpen .headerMobileMenu li:nth-child(4) {
    transition-delay: 0.39s;
  }

  body.headerMenuOpen .headerMobileMenu li:nth-child(5) {
    transition-delay: 0.47s;
  }

  body.headerMenuOpen .headerMobileMenu li:nth-child(6) {
    transition-delay: 0.55s;
  }

  body.headerMenuOpen .headerMobileMenu li:nth-child(7) {
    transition-delay: 0.63s;
  }

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

  .headerMobileBottom {
    display: flex;

    flex-direction: column;

    gap: 20px;

    padding-top: 15px;

    opacity: 0;

    transform: translateY(25px);

    transition:
      opacity 0.6s ease 0.4s,
      transform 0.7s ease 0.4s;
  }

  body.headerMenuOpen .headerMobileBottom {
    opacity: 1;

    transform: translateY(0);
  }

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

  .headerMobileContact {
    display: flex;

    align-items: center;

    gap: 13px;
  }

  .headerMobileContactIcon {
    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    color: var(--colorBackground);
  }

  .headerMobileContactIcon svg {
    width: 100%;
    height: 100%;

    display: block;
  }

  .headerMobileContactContent {
    display: flex;

    flex-direction: column;

    gap: 4px;
  }

  .headerMobileSchedule {
    color: rgba(248, 246, 240, 0.62);

    font-family: var(--fontText);

    font-size: 12px;
  }

  .headerMobilePhone {
    color: var(--colorBackground);

    font-family: var(--fontText);

    font-size: 18px;
    font-weight: 600;

    text-decoration: none;
  }

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

  .headerMobileBooking {
    width: 100%;

    min-height: 58px;

    display: flex;

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

    gap: 20px;

    padding: 0 20px;

    border: 1px solid var(--colorBackground);

    border-radius: 8px;

    background: var(--colorBackground);

    color: var(--colorPrimary);

    font-family: var(--fontText);

    font-size: 14px;
    font-weight: 600;

    text-transform: uppercase;

    cursor: pointer;
  }
}

/* =========================================================
 * <= 700
 * =========================================================
 */

@media (max-width: 700px) {
  .siteHeader {
    --headerHeight: 58px;
  }

  .headerLogoImage {
    width: 76px;
    height: 48px;
  }
}

/* =========================================================
 * <= 500
 * =========================================================
 */

@media (max-width: 500px) {
  .headerMobileInner {
    width: calc(100vw - 30px);

    padding-top: 35px;
    padding-bottom: 20px;
  }

  .headerMobileMenu {
    gap: 24px;
  }

  .headerMobileMenu li {
    grid-template-columns:
      38px
      minmax(0, 1fr);
  }

  .headerMobileMenu li::before {
    font-size: 16px;
  }

  .headerMobileMenu li a {
    font-size: 22px;
  }
}

/* =========================================================
 * ADMIN BAR
 * =========================================================
 */

@media (max-width: 782px) {
  body.admin-bar .siteHeader {
    top: 46px;
  }
}

/* =========================================================
 * REDUCED MOTION
 * =========================================================
 */

@media (prefers-reduced-motion: reduce) {
  .headerMenu li a,
  .headerMenu li a::after,
  .headerBurger span,
  .headerMobileOverlay,
  .headerMobile,
  .headerMobileMenu li,
  .headerMobileBottom,
  .headerFloatingSocial,
  .headerFloatingSocialImage {
    transition: none !important;
  }
}

/* =========================================================
 * FLOATING SOCIALS
 * =========================================================
 */

.headerFloatingSocials {
  position: fixed;

  z-index: 999999;

  top: 50%;
  right: 18px;

  display: flex;

  flex-direction: column;

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

  gap: 4px;

  width: 54px;

  margin: 0;

  padding: 6px;

  transform: translateY(-50%);

  border: 1px solid rgba(82, 102, 63, 0.16);

  border-radius: 30px;

  background: rgba(247, 241, 230, 0.96);

  box-shadow: 0 10px 28px rgba(30, 25, 20, 0.12);

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

  backdrop-filter: blur(10px);
}

/* =========================================================
 * SOCIAL ITEM
 * =========================================================
 */

.headerFloatingSocial {
  width: 42px;
  height: 42px;

  display: flex;

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

  flex: 0 0 42px;

  margin: 0;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background: transparent;

  color: inherit;

  text-decoration: none;

  overflow: hidden;

  transition:
    transform 0.28s ease,
    background 0.28s ease;
}

/* =========================================================
 * SOCIAL IMAGE
 * =========================================================
 */

.headerFloatingSocialImage {
  width: 26px;
  height: 26px;

  display: block;

  max-width: 26px;

  margin: 0;

  padding: 0;

  object-fit: contain;

  pointer-events: none;

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

/* =========================================================
 * HOVER
 * =========================================================
 */

@media (hover: hover) and (pointer: fine) {
  .headerFloatingSocial:hover {
    background: rgba(82, 102, 63, 0.09);

    transform: translateX(-2px) scale(1.06);
  }

  .headerFloatingSocial:hover .headerFloatingSocialImage {
    transform: scale(1.1);
  }
}

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

@media (max-width: 1200px) {
  .headerFloatingSocials {
    display: none;
  }
}
