:root {
  /* Colors */
  --color-dark-beige: #7d6d67;
  --color-white: #ffffff;
}
html {
  font-size: 62.5%;
  font-family: sans-serif;
  /*  disable unwanted auto-enlargement of small text in mobile Webkit and Windows Mobile */
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Canela Text Web", sans-serif;
  color: var(--color-white);
  background: var(--color-dark-beige);
  overscroll-behavior: none;
}

/* Helpers */
.img-responsive {
  max-width: 100%;
  width: 100%;
  height: auto;
}
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.col-d-hide {
  @media only screen and (min-width: 1025px) {
    display: contents;
  }
}

/* Fonts */
@font-face {
  font-family: "Canela Text Web";
  src: url("/assets/fonts/CanelaText-Thin-Web.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "DecagramRegular";
  src: url("/assets/fonts/De1000-Rg.woff2") format("woff2"), url("/assets/fonts/De1000-Rg.woff") format("woff"),
    url("/assets/fonts/De1000-Rg.ttf") format("truetype"); /* Safari, Android, iOS */
  font-style: normal;
  font-weight: 600;
  text-rendering: optimizeLegibility;
}
@font-face {
  font-family: "SilvanaText";
  src: url("../fonts/SilvanaText-Light.woff2") format("woff2"), url("../fonts/SilvanaText-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Typography */
.font-canela {
  font-family: "Canela Text Web";
  font-weight: 100;
  font-style: normal;
}
.font-silvana {
  font-family: "SilvanaText";
  font-weight: 300;
  font-style: normal;
}
.font-decagram {
  font-family: "DecagramRegular";
  font-weight: 600;
  font-style: normal;
}

h2,
.h2 {
  font-size: 2.4rem;
  font-weight: 250;
}

.heading-m {
  font-size: 2.4rem;
  line-height: 32px;

  @media only screen and (min-width: 768px) {
    font-size: clamp(2.4rem, 3vw, 3.2rem);
    line-height: clamp(32px, 4vw, 40px);
  }
}

/* Layout */
.container {
  padding-inline: clamp(20px, 6vw, 80px);

  @media only screen and (min-width: 768px) and (max-width: 1024px), only screen and (min-width: 1025px) {
    padding-inline: clamp(20px, 7.92vw, 110px);
  }
}

/* Hero Section */
.siteHeader {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.siteHeader__title {
  z-index: 1;
  user-select: none;
  pointer-events: none;
}
.siteHeader__title > svg {
  width: clamp(163px, 25vw, 245px);
  height: clamp(40px, 6vw, 60px);

  @media only screen and (max-width: 767px) {
    max-width: 163px;
    max-height: 40px;
  }
}

.heroVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: auto;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .heroSection {
    height: 100svh;
  }

  .heroVideo {
    object-position: center center;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion) {
  .heroVideo {
    animation-play-state: paused;
  }
}

/* Villas Section */
.siteMain {
}
.villasSection {
  background: var(--color-dark-beige);
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
.villasSection__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100vh; /* fallback */
  min-height: 100dvh;
  padding-inline: clamp(20px, 6vw, 80px);

  @media only screen and (min-width: 768px) and (max-width: 1024px), only screen and (min-width: 1025px) {
    padding-inline: 0;
    display: block;
    margin-block: 0;
  }

  &.zile,
  &.grey {
    background: #f3efec;
  }
  &.reva {
    background: #e2dbd6;
  }
}

.villasSection__content {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  color: #2c2927;

  @media only screen and (max-width: 767px) {
    padding-inline: 0;
  }

  @media only screen and (min-width: 768px) and (max-width: 1024px) {
    position: absolute;
    top: clamp(40px, 8vw, 80px);
    margin-bottom: 0;
    color: #ffffff;
    padding-top: 0;
  }

  @media only screen and (min-width: 1025px) {
    position: absolute;
    top: clamp(80px, 12vw, 120px);
    margin-bottom: 0;
    color: #ffffff;
    padding-top: 0;
  }
}

.villasSection__item.reva .villasSection__content {
  @media only screen and (min-width: 768px) and (max-width: 1024px), only screen and (min-width: 1025px) {
    right: 0;
    text-align: right;
  }
}
.villasSection__item:not(:has(.villaSubtitle)) .villaTitle {
  margin-bottom: 0;
}
.villaImg {
  /* aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: cover; */
  display: none;

  @media only screen and (min-width: 768px) and (max-width: 1024px), only screen and (min-width: 1025px) {
    display: block;
    width: 100%;
    min-height: 100svh;
    height: 100svh;
    margin-bottom: 0;
  }
}
.villaImg.villaImg--mob {
  display: none;

  @media only screen and (max-width: 767px) {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    height: auto;
    width: 100%;
  }
}

.villaTitle {
  margin-block: clamp(11px, 2vw, 20px) clamp(4px, 1vw, 10px);
  font-size: clamp(2rem, 3vw, 2.4rem);
  text-wrap: nowrap;
}
.villaSubtitle {
  letter-spacing: 10%;
  margin-block: 0;
  text-transform: uppercase;
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: clamp(14px, 2vw, 16px);
}

/* Footer Section */
.siteFooter {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-block: clamp(40px, 8vw, 80px) 80px;
  background-image: url("/assets/img/footer_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100svh;
  height: 100%;

  @media only screen and (min-width: 1025px) {
    padding-block: clamp(80px, 12vw, 120px);
  }
}
.siteFooter__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #4e3a33;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.siteFooter__main {
  position: relative;
  z-index: 2;
  opacity: 1;
  max-height: 100%;
  padding-bottom: 60px;

  @media only screen and (min-width: 1024px) {
    max-width: 52.1484vw;
  }
  @media only screen and (min-width: 1728px) {
    max-width: 46.6435vw;
  }
}

.siteFooter__lead {
  margin-bottom: 64px;
  margin-top: 0;
}

.siteFooter__title {
  margin: 0;
}
.siteFooter__title > span {
  display: block;
  margin-top: 32px;
}

/* Email Signup Section */
.siteFooter__signup {
  margin-top: auto;
}

.emailSignup {
  position: relative;
  z-index: 2;
}
.emailSignup__content {
  display: flex;
  flex-direction: column;
}
.emailSignup__title {
  text-transform: uppercase;
  margin-block: 0 clamp(1.2rem, 2vw, 2rem);
  letter-spacing: 1.2px;
  font-size: 1.1rem;
  line-height: 14px;

  @media only screen and (min-width: 768px) and (max-width: 1024px), only screen and (min-width: 1025px) {
    font-size: 1.3rem;
    line-height: 16px;
  }
}

.emailSignup__form {
  @media only screen and (min-width: 1024px) {
    max-width: 37.3vw;
  }
  @media only screen and (min-width: 1728px) {
    max-width: 22.12vw;
  }
}

.emailSignup__inputGroup {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  border: 1px solid rgba(234, 231, 227, 0.8);
  overflow: hidden;
  transition: border 0.3s ease;
}

.emailSignup__inputGroup:focus-within {
  border-color: rgba(255, 255, 255, 0.6);
}

.emailSignup__input {
  flex: 1;
  padding-inline: 11px;
  padding-block: 7px 9px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--color-white);

  &::placeholder {
    color: var(--color-white);
  }

  &:focus {
    outline: none;
  }
}

.emailSignup__button {
  padding-inline: 14px;
  padding-block: 16px;
  background: rgba(234, 231, 227, 0.8);
  color: #2c2927;
  border: none;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 10%;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 61px;
  line-height: 14px;
  font-size: 1.1rem;

  @media only screen and (min-width: 768px) and (max-width: 1024px), only screen and (min-width: 1025px) {
    font-size: 1.3rem;
    line-height: 16px;
  }

  &:hover {
    background: var(--color-white);
  }

  &:active {
    transform: translateY(0);
  }
}

.emailSignup__message {
  margin-top: 1.2rem;
  font-size: 1.3rem;
  display: none;
}

/*
   GSAP Animations
   ========================================================================== */
.panel {
  width: 100%;
  min-height: 100vh; /* fallback */
  min-height: 100dvh;
  position: relative;
  box-sizing: border-box;
  top: 0;
}
.fadeInY,
.fadeInOpacity,
.fadeInText {
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
.fadeInOpacity {
  will-change: opacity;
}

.siteHeader.panel {
  z-index: 2;
}
.siteMain.panel {
  z-index: 3;
}
.siteFooter.panel {
  z-index: 4;
}
