:root {
  --ff-main: "Heebo", sans-serif;
  --ff-titles: "Bellefair", serif;

  --lh-heading: 1;
  --lh-body: 1.5;

  --ls-titles: -0.01em;

  --text-96px: clamp(4rem, 8vw, 6rem);
  --text-80px: clamp(3.5rem, 7vw, 5rem);
  --text-58px: clamp(2.75rem, 5vw, 3.625rem);
  --text-52px: clamp(2.5rem, 4.5vw, 3.25rem);
  --text-50px: clamp(2.375rem, 4.2vw, 3.125rem);
  --text-40px: clamp(2rem, 3.5vw, 2.5rem);
  --text-36px: clamp(1.75rem, 3vw, 2.25rem);
  --text-30px: clamp(1.5rem, 2.5vw, 1.875rem);
  --text-20px: 1.25rem;
  --text-18px: 1.125rem;
  --text-12px: 0.75rem;
  --text-base: 16px;

  /* For gradiented border */
  --frame-top-spacing: 3rem;
  --frame-side: calc(var(--padding-site) * 2);

  --padding-site: 2rem;

  --container: 1480px;
  --container-padding: calc(var(--padding-site) * 4);

  --primary: 32deg 2% 15%;
  --gold: 47deg 51% 66%;
  --white: 0deg 0% 100%;
  --brown: 47deg 42% 60%;

  --color-primary: hsl(var(--primary));
  --color-gold: hsl(var(--gold));
  --color-white: hsl(var(--white));
  --color-brown: hsl(var(--brown));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--text-base);
}

body {
  padding: 0;
  margin: 0;
  font-family: var(--ff-main);
  color: var(--color-primary);
  line-height: var(--lh-body);
  font-weight: 300;
}

body:not(.has-hero) {
  --frame-top-spacing: -3rem;
}

.site-shell {
  position: relative;
  min-height: 100svh;
}

.site-shell::before {
  --frame-top: calc(var(--hero-height, 0px) + var(--header-height, 0px) - var(--frame-top-spacing));

  content: '';
  position: absolute;
  inset: var(--frame-top, 0) var(--frame-side) 54px var(--frame-side);
  border-image: linear-gradient(90deg, #9F7540 0%, var(--color-gold) 100%) 1;
  border-width: 1px;
  border-style: solid;
  pointer-events: none;
  z-index: 10;
}

main {
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: var(--lh-heading);
  font-family: var(--ff-titles);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition-property: color, background-color, box-shadow;
  transition-duration: 0.25s;
  transition-timing-function: ease-in-out;
}

img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
  padding-inline: 1.25rem;
  border: none;
  width: 100%;
  background-color: var(--color-white);
  font-family: inherit;
  font-size: var(--text-13px);
}

button {
  width: 100%;
  border: none;
  cursor: pointer;
  font-weight: 400;
  font-family: inherit;
  background-color: transparent;
}

.button {
  max-width: 240px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 2.8125rem;
  background: linear-gradient(90deg, var(--color-brown) 0%, var(--color-gold) 100%);
  color: var(--color-white);
  padding: 0 1.875rem;
  font-size: var(--text-18px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  border-width: 0;
  border-style: solid;
  position: relative;
  isolation: isolate;
  transition-property: box-shadow, color;
  transition-duration: 0.25s;
  transition-timing-function: ease-in-out;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-brown);
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    z-index: -1;
  }

  &:hover::before {
    opacity: 1;
  }
}

.button[data-variant="outline"] {
  color: hsl(30, 4%, 36%);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--color-gold);

  &:hover {
    box-shadow: none;
    color: var(--color-white);
  }
}

.container {
  max-width: calc(var(--container) + var(--padding-site) * 8);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

[data-aos^="fade"][data-aos^="fade"] {
  transform: translateY(50px);
  /* Shorter travel distance (Default was 100px) */
}

@keyframes filter-item-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-taxonomy].filter-entering {
  animation: filter-item-in 0.45s ease-out both;
}

.section-titles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: var(--text-50px);
    letter-spacing: var(--ls-titles);
  }
}

.page-heading {
  max-width: 720px;

  .icon {
    max-width: 48px;
    margin: auto;
  }

  .title {
    font-size: var(--text-58px);
  }

  .smaller {
    color: var(--color-gold);
    font-size: var(--text-20px);
    font-family: var(--ff-main);
    font-weight: 300;
  }

  .links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-block-start: 1rem;

    a {
      max-width: 240px;
      width: 100%;
    }
  }
}

.section-content {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  font-size: var(--text-18px);

  h2 {
    font-size: var(--text-36px);
  }

  &>p {
    line-height: var(--lh-body);
  }

  &.justified>p {
    text-align: justify;
  }
}

.rounded-deco {
  border-radius: 10px 40px 10px 40px;
}

.text-muted {
  opacity: 0.6;
}

.wysiwyg {
  font-size: var(--text-18px);
  line-height: 1.45;
}

.wysiwyg *+p {
  margin-top: 1.25rem;
}

.wysiwyg p+ul {
  margin-block-start: 0.75rem;
  padding-inline-start: 1.5rem;
}

.bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.swiper-button-prev,
.swiper-button-next {
  --swiper-navigation-sides-offset: 23px;

  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  background-color: hsl(var(--gold) / 0.5);
  color: var(--color-white);
  transition: background-color 0.25s ease-in-out;

  &:hover {
    background-color: hsl(var(--gold) / 1);
  }

  svg {
    width: 22px;
  }
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after,
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
  content: unset;
}

footer {
  padding-block: 3.125rem 6.25rem;
  background-color: var(--color-primary);
  color: var(--color-gold);

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.375rem;
    position: relative;

    .deco-img {
      position: absolute;
      right: 0;
    }

    .logo {
      max-width: 137px;
    }

    .content {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.75rem;
      position: relative;

      a:hover {
        color: var(--color-white);
      }
    }
  }

  .follow-us {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;

    .links {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .link {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: hsl(var(--white) / 0.1);
      border-radius: 100px;

      &:hover {
        background-color: var(--color-white);
      }
    }
  }

  .contact-us {
    text-align: center;
  }

  .footer-nav>ul {
    display: inline-flex;
    gap: 1rem;

    .current-menu-item a {
      color: var(--color-white);
      font-weight: 500;
    }
  }
}

@keyframes header-fade-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home .site-header .logo-wrap {
  animation: header-fade-down 0.8s ease-out both;
  animation-delay: 0.15s;
}

.home .site-header nav>ul {
  animation: header-fade-down 0.7s ease-out both;
  animation-delay: 0.4s;
}

.home .site-header .hamburger {
  animation: header-fade-down 0.6s ease-out both;
  animation-delay: 0.25s;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--color-white);
  background-color: transparent;
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;

  &.scrolled {
    background-color: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 2px 4px 0px hsl(var(--primary) / 0.25);

    nav>ul>li>a {
      color: var(--color-primary);
    }
  }

  &>.container {
    display: flex;
    align-items: center;
    padding-block: 1rem;
  }

  .right {
    flex: 1;
  }

  nav {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
  }

  nav>ul {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-block: 1.5rem;
    position: relative;
    border-top: 1px solid hsl(var(--white) / 0.25);
    border-bottom: 1px solid hsl(var(--white) / 0.25);
    transition: padding-block 0.4s ease, border-color 0.4s ease;
  }

  nav>ul>li>a {
    font-size: var(--text-20px);
    color: var(--color-white);

    &:hover {
      color: var(--color-gold);
    }
  }

  nav>ul>li.current-menu-item>a {
    color: var(--color-gold);
    font-weight: 500;
  }

  .logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    filter: brightness(0) invert(1);
    transition: height 0.4s ease, filter 0.4s ease;
  }

  .logo {
    height: 100%;
    width: auto;
    display: block;
  }

  &.scrolled .logo-wrap {
    height: 100px;
    filter: none;
  }

  &.scrolled nav>ul {
    padding-block: 0;
    border-color: transparent;
  }
}

body:not(.home) #main {
  padding-top: var(--header-height, 0px);
}

.swiper-wrapper {
  transition-timing-function: cubic-bezier(0.39, 0.57, 0.56, 1);
}

/* === Mobile menu === */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  flex-shrink: 0;

  span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
}

body.menu-open .hamburger {
  span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  span:nth-child(2) {
    opacity: 0;
  }

  span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

.mobile-menu {
  position: fixed;
  top: var(--header-height, 80px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background-color: hsl(var(--white) / 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 1.5rem 6rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;

  &.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
  }
}

.mobile-menu-nav {
  width: 100%;
  max-width: 360px;

  >ul {
    display: flex;
    flex-direction: column;

    li {
      border-bottom: 1px solid hsl(var(--primary) / 0.12);

      a {
        display: block;
        padding: 0.5rem;
        font-size: var(--text-20px);
        text-align: center;
        color: var(--color-primary);

        &:hover {
          color: var(--color-gold);
        }
      }
    }

    .current-menu-item>a {
      color: var(--color-gold);
      font-weight: 500;
    }
  }

  >ul:last-child li:last-child {
    border-bottom: none;
  }
}

.mobile-menu-social {
  display: flex;
  align-items: center;
  gap: 1rem;

  .link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--primary) / 0.08);
    border-radius: 100px;
    transition: background-color 0.25s ease;

    &:hover {
      background-color: hsl(var(--primary) / 0.18);
    }

    img {
      width: 20px;
      height: 20px;
      object-fit: contain;
      filter: brightness(0);
    }
  }
}

body.menu-open {
  overflow: hidden;
}

.book-now-mobile {
  display: none;
  opacity: 0;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 100;
  padding-inline: var(--container-padding);

  .link {
    width: 100%;
  }
}

@media (max-width: 1366px) {
  .site-header {
    nav {
      gap: 1rem;
    }

    nav>ul {
      gap: 1rem;
    }

    nav>ul>li>a {
      font-size: var(--text-base);
    }
  }
}

@media (max-width: 1023px) {
  :root {
    --padding-site: 0.5rem;
  }

  .button {
    max-width: 100%;
  }

  body:not(.has-hero) {
    --frame-top-spacing: -1rem;
  }

  .hamburger {
    display: flex;
  }

  .site-header>.container {
    justify-content: space-between;
  }

  .site-header nav>ul {
    display: none;
  }

  .site-header nav {
    gap: 0;
    width: auto;
  }

  .site-header {
    &.scrolled .logo-wrap {
      height: 60px;
    }

    .logo-wrap {
      height: 80px;
    }
  }

  .site-header .right {
    flex: 0 0 auto;
    order: 2;
  }

  .site-header .left {
    order: 1;
    flex: 0 0 auto;
  }

  .page-heading {
    .links {
      a {
        max-width: 100%;
      }
    }
  }

  footer {
    .footer-nav {
      width: 100%;
    }

    .footer-nav>ul {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      justify-items: center;
    }
  }

  .book-now-mobile {
    display: block;
    opacity: 1;
  }
}