: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(1.75rem, 3.5vw, 2.5rem);
  --text-36px: clamp(1.625rem, 3vw, 2.25rem);
  --text-30px: clamp(1.5rem, 2.5vw, 1.875rem);
  --text-20px: 1.25rem;
  --text-18px: 1.125rem;
  --text-14px: 0.875rem;
  --text-12px: 0.75rem;
  --text-base: 16px;

  /* For gradiented border */
  --frame-top-spacing: 2rem;
  --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: 33deg 43% 44%;
  /* --brown: 47deg 42% 60%; */

  --color-primary: hsl(var(--primary));
  --color-gold: hsl(var(--gold));
  --color-white: hsl(var(--white));
  --color-brown: hsl(var(--brown));

  --brown-gradient: linear-gradient(90deg, var(--color-brown) 0%, var(--color-gold) 100%);
}

* {
  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) {
  --hero-height: 0px;
  --frame-top-spacing: -2rem;
}

.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: var(--brown-gradient) 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;
}

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: var(--brown-gradient);
  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-gold);
    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-up"] {
  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: 1.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.75rem;
}

.wysiwyg ul {
  list-style: revert;
}

.wysiwyg a {
  color: var(--color-gold);

  &:hover {
    text-decoration: underline;
  }
}

.bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-img-content {
  display: flex;
  align-items: center;
  height: 528px;
  background: linear-gradient(rgba(0, 0, 0, 0.6)), var(--bg-image) center / cover no-repeat;

  &.parallax {
    background-attachment: fixed;
  }

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    text-align: center;

    .title {
      font-size: var(--text-50px);
      line-height: 1.25;
      color: var(--color-white);
      letter-spacing: 0.02em;
    }

    .link {
      background: transparent;
      color: var(--color-white);
      border: 1px solid var(--color-white);

      &:hover {
        color: inherit;
      }

      &::before {
        background: var(--color-white);
      }
    }
  }
}

.swiper:not(.swiper-initialized) .swiper-button-prev,
.swiper:not(.swiper-initialized) .swiper-button-next {
  display: none;
}

.swiper-button-prev,
.swiper-button-next {
  --swiper-navigation-sides-offset: 23px;
  --swiper-navigation-size: 42px;

  width: var(--swiper-navigation-size) !important;
  border-radius: 100%;
  background-color: hsl(var(--gold) / 0.5);
  color: var(--color-white) !important;
  transition: background-color 0.25s ease-in-out;

  &::after {
    display: none;
  }

  &:hover {
    background-color: hsl(var(--gold) / 1);
  }

  svg {
    width: 22px !important;
  }
}

footer {
  padding-block: 3.125rem 15rem;
  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;
    }
  }

  .copyrights {
    text-align: center;
    padding-block-start: 2rem;
    font-size: var(--text-14px);

    a:hover {
      color: var(--color-white);
    }

    .site-by {
      white-space: nowrap;
    }
  }
}

@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;
    }
  }
}

body.menu-open {
  overflow: hidden;
}

@keyframes sb-slide-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sb-hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.simple-booking {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding-block: 0.75rem;
  background: var(--brown-gradient);
}

.simple-booking.in-hero {
  position: relative;
  left: auto;
  right: auto;
  bottom: var(--frame-top-spacing);
  z-index: 2;
  width: 100%;
  background: transparent;
  padding-block: 0;
  animation: sb-hero-fade-in 0.55s ease-out 0.25s both;
}

/* Slide up when JS moves it from hero back to fixed bottom */
.simple-booking.slide-in {
  animation: sb-slide-up 0.4s ease-out both;
}

.simple-booking__close {
  display: none;
}

.book-now-mobile {
  display: none;
  opacity: 0;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 1rem var(--container-padding);
  font-size: var(--text-40px);
  letter-spacing: -0.01em;
  color: var(--color-white);
  background: var(--brown-gradient);
}

.whatsapp-link {
  position: fixed;
  bottom: calc(var(--sb-height, 0px) + 1.25rem);
  left: 2rem;
  z-index: 102;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 100%;
  transition: bottom 0.4s ease;
  animation: whatsapp-appear 0.3s ease 0.8s both;
}

@keyframes whatsapp-appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 1366px) {
  .site-header {
    nav {
      gap: 1rem;
    }

    .container {
      padding-inline: var(--frame-side);
    }

    nav>ul {
      gap: 1rem;
    }

    nav>ul>li>a {
      font-size: var(--text-base);
    }
  }
}

@media (max-width: 1023px) {
  :root {
    --padding-site: 0.5rem;
    --frame-top-spacing: 1rem;
  }

  .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 {
      flex-direction: column;

      a {
        max-width: 100%;
      }
    }
  }

  footer {
    padding-block-end: 8rem;

    .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;
  }

  .whatsapp-link {
    bottom: calc(var(--book-now-height, 0px) + 2.25rem);
  }

  body.booking-open .whatsapp-link {
    bottom: calc(var(--sb-height, 0px) + 1.5rem);
  }

  /* Mobile booking engine — hidden until book-now is tapped */
  .simple-booking,
  .simple-booking.in-hero {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: var(--brown-gradient);
    z-index: 101;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    animation: none;
  }

  .simple-booking.in-hero #sb-container_sb__form-field--checkavailability {
    background-color: var(--color-brown) !important;
  }

  .simple-booking {
    padding-block: 1rem;
  }

  .simple-booking.is-open {
    transform: translateY(0);
  }

  .simple-booking__close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 auto 1rem;
  }

  .sb {
    padding: 0 !important;
  }

  /* Homepage: book-now-mobile hidden on load, fades in on first scroll */
  body.home .book-now-mobile {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  body.home .book-now-mobile.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}