:root {
  --primary-color: #faf5ea;
  --dark-color: #222;
  --text-color: #333;
  --accent-color: #ffc700;
  --secondary-color: #ff4081;
  --bg-light: #faf5ea;

  --transition: all 0.3s ease-in-out;

  --site-width: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button {
  background-color: transparent;
  cursor: pointer;
  border: none;
}

html {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  tab-size: 4;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

body {
  margin: 0;
  /* overflow-x: hidden; */
}

/* #HERO */
.hero {
  background-color: #333;
  height: 100vh;
  width: 100%;
  /* background: url('https://images.pexels.com/photos/7585314/pexels-photo-7585314.jpeg')
    no-repeat center center/cover fixed;*/
  display: flex;
  justify-content: center;
  flex-direction: column;

  @media (max-width: 768px) {
    height: auto;
    background: url('https://images.pexels.com/photos/1570807/pexels-photo-1570807.jpeg?auto=compress&cs=tinysrgb&w=600&dpr=2')
      no-repeat center center/cover;
    background-attachment: scroll;
  }
}

.gradient-mask {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.6));
  /* background: #000; */
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  /* display: none; */
  /* z-index: -1; */

  @media (max-width: 768px) {
    height: auto;
  }
}

.video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;

  @media screen and (max-width: 768px) {
    height: auto;
    display: none;
  }
}

.hero-content {
  position: relative;
  padding-left: 0 2rem;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  /* max-width: 50%; */
  text-align: center;

  .hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 6rem;
    display: block;
    font-weight: 800;
    line-height: 1.2;
    max-width: 80%;
  }
  .hero-text {
    font-weight: 200;
    font-size: 1.5rem;
    max-width: 80%;
  }

  @media screen and (max-width: 768px) {
    .hero-title {
      font-size: 3rem;
      max-width: fit-content;
    }
    padding: 6rem 2rem;
    padding-bottom: 1rem;
    width: 100%;
    height: 100%;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .hero-content {
    .hero-title {
      font-size: 3rem;
    }
  }
}

.app-container,
.center-container {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;

  @media screen and (max-width: 1200px) {
    padding: 0 1rem;
  }
}

.full-width-container {
  width: 100%;
  padding: 0 2rem;
  @media screen and (max-width: 1200px) {
    padding: 0 1rem;
  }
}

/* #HEADER */
header {
  background: transparent;
  height: 84px;
  position: absolute;
  top: 0;
  width: 100%;

  padding: 0 2rem;
  z-index: 10;

  .header-center {
    max-width: var(--site-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
  }

  .logo {
    max-width: 120px;
    img {
      max-width: 100%;
      display: block;
    }
  }

  .menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary-color);

    @media screen and (max-width: 768px) {
      display: block;
    }
  }

  nav {
    ul {
      display: flex;
      gap: 2rem;
      li {
        a {
          font-size: 1rem;
          text-decoration: none;
          color: var(--primary-color);

          mix-blend-mode: difference;

          &:hover {
            color: var(--accent-color);
          }
        }
      }
    }

    .close-menu {
      display: none;
      color: var(--text-color);
      font-size: 2rem;
      position: absolute;
      top: 0;
      right: 0;
      z-index: 5;
      @media screen and (max-width: 768px) {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 6;
        color: var(--primary-color);
        font-size: 2rem;
      }
    }

    @media screen and (max-width: 768px) {
      display: none;

      &.show {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        align-items: center;
        justify-content: center;
      }

      justify-content: space-between;

      ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        font-size: 1.5rem;
        font-weight: 600;
        gap: 2rem;
        li a {
          font-size: 1.5rem;
          color: var(--primary-color);
        }
      }
    }
  }
}

.hero-about {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* height: 200px; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--bg-light);
  font-size: 1rem;
  font-weight: 200;
  padding: 2rem;

  @media screen and (max-width: 768px) {
    /* display: none; */
    flex-direction: column;
    gap: 1rem;
  }

  @media screen and (max-width: 768px) {
    position: relative;
  }
}

.services-section {
  /* height: 100vh; */
  width: 100%;

  /* overflow: hidden; */
  background-color: white;

  @media screen and (max-width: 1200px) {
    height: auto;
  }

  .wrapper {
    display: flex;
    align-items: center;
    /* height: 100%; */
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;

    gap: 8rem;

    @media screen and (max-width: 1200px) {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      height: auto;
    }
  }

  .services-content {
    flex: 1;
    color: var(--text-color);
    padding: 8rem 0;
    @media screen and (max-width: 768px) {
      padding: 2rem;
    }
  }
  .services-double-image {
    position: relative;
    flex: 1;
    overflow: visible;

    img:nth-child(1) {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 1;
      border-radius: 20px;
      max-height: 70%;
      @media screen and (max-width: 768px) {
        height: auto;
        max-height: 100%;
      }
    }
    img:nth-child(2) {
      object-fit: cover;
      opacity: 1;
      max-width: 60%;
      height: auto;
      position: absolute;
      bottom: -7rem;
      left: -3rem;
      border-radius: 20px;
      aspect-ratio: 1/1;

      @media screen and (max-width: 768px) {
        position: relative;
        bottom: auto;
        left: auto;
        max-width: 100%;
      }
    }

    @media screen and (max-width: 768px) {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      align-items: center;
      justify-content: center;
      padding: 2rem;
      img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
      }
    }
  }
}

/* #CTA */
.section-cta-container {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  min-height: 50vh;
  padding: 8rem 0;
  display: flex;
  /* grid-template-columns: repeat(2, 1fr); */
  gap: 8rem;
  align-items: center;

  @media screen and (max-width: 768px) {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
  }

  .cta-image {
    flex: 1;
    img {
      border-radius: 40px;
      object-fit: cover;
      filter: grayscale(0.6);
      transition: var(--transition);
      &:hover {
        filter: grayscale(0);
      }
    }

    @media screen and (max-width: 768px) {
      img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        /* max-height: 200px; */
      }
    }
  }

  .cta-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    flex: 1.5;
  }

  @media screen and (max-width: 768px) {
    height: auto;

    padding: 2rem;
    flex-direction: column;
  }
}

/* #GALLERY */

.section-gallery {
  display: flex;
  flex-direction: column;
  padding: 5rem 8rem;
  padding-bottom: 8rem;
  background-color: #333;
  margin-top: 15rem;
  position: relative;

  /* overflow: visible; */
  /* height: ; */

  @media screen and (max-width: 768px) {
    padding: 2rem;
    margin-top: 5rem;
  }

  .gallery-header {
    color: var(--primary-color);
    text-align: center;
    padding: 3rem;
    z-index: 5;
    transition: var(--transition);
    width: 100%;

    position: sticky;
    top: 40%;

    /* transform: translateY(-50%); */

    @media screen and (max-width: 768px) {
      /* top: 0; */
      padding: 2rem;
    }

    .title {
      font-size: 3rem;
      color: #faf5ea;
      margin-bottom: 2rem;
      white-space: nowrap;
      transition: var(--transition);

      @media screen and (max-width: 768px) {
        font-size: 2rem;
        white-space: normal;
      }
    }

    .author {
      font-size: 1.2rem;
      opacity: 0.8;
    }
  }

  img {
    object-fit: cover;
    border-radius: 20px;
    /* margin-top: 20rem; */
  }

  img:nth-child(2) {
    max-width: 40%;
    align-self: center;
    @media screen and (max-width: 768px) {
      max-width: 100%;
    }
  }
  img:nth-child(3) {
    max-width: 20%;
    align-self: flex-start;
    margin-top: 20rem;
    aspect-ratio: 1/2;
    @media screen and (max-width: 768px) {
      max-width: 100%;
    }
  }
  img:nth-child(4) {
    max-width: 50%;
    align-self: flex-end;
    margin-top: 20rem;
    @media screen and (max-width: 768px) {
      max-width: 100%;
    }
  }
}

/* #FAQ */
.accordion {
  margin-bottom: 3rem;
}

.accordion-item {
  overflow: hidden;
  color: var(--text-color);
  border-top: solid 1px var(--text-color);
  /* border-bottom: solid 1px var(--text-color); */
  padding: 1rem 0;

  &:last-child {
    border-bottom: solid 1px var(--text-color);
  }
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.accordion-header:hover {
}

.accordion-icon {
  transition: var(--transition);
  * {
    transition: var(--transition);
  }
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #666;
  font-weight: 300;
}

.accordion-content.open {
  padding: 1rem;
  padding-top: 0.5rem;
}

.accordion-item.open .accordion-content {
  max-height: 200px;
}

.accordion-item.open .fa-plus {
  display: none;
  color: var(--text-color);
}

.accordion-item:not(.open) .fa-minus {
  display: none;
  color: var(--text-color);
}

.section-header {
  margin-bottom: 2rem;
}

.cta-container {
  padding: 6rem;
  padding-bottom: 10rem;
  gap: 3rem;
  /* height: 100vh; */
  background-color: var(--accent-color);
  color: #333;
  position: relative;

  @media screen and (max-width: 768px) {
    padding: 2rem 0;
    height: auto;
  }

  .title {
    color: var(--primary-color);
  }

  .section-header {
    /* border: solid 1px red; */
    color: var(--primary-color);
    .text {
      color: var(--primary-color);
      padding: 1rem 0 0;
    }
    .centered {
      max-width: var(--site-width);
      margin: 0 auto;
    }

    @media screen and (max-width: 768px) {
      padding: 2rem;
      margin-bottom: 5rem;
      text-align: center;
    }
  }

  img.floating {
    border-radius: 0;
    max-width: 30%;
    position: absolute;
    bottom: 6rem;
    left: -3rem;
    z-index: 0;
    aspect-ratio: 2/1;
    border-radius: 20px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    @media screen and (max-width: 768px) {
      max-width: 50%;
      display: none;
    }
  }

  .wrapper {
    max-width: var(--site-width);
    margin: 0 auto;
    display: flex;
    height: 100%;
    gap: 6rem;

    @media screen and (max-width: 768px) {
      flex-direction: column;
      gap: 2rem;
      padding: 2rem;
    }

    .col {
      height: 100%;
      display: flex;
      flex-direction: column;

      &:nth-child(1) {
        flex: 1;
        position: relative;
      }
      &:nth-child(2) {
        justify-content: center;
        flex: 2;
        position: relative;
        /* z-index: 2; */

        @media screen and (max-width: 768px) {
          flex: 1;
        }

        img {
          border-radius: 20px;
          max-width: 35%;
          position: absolute;
          top: -7rem;
          right: 0rem;
          z-index: 0;
          @media screen and (max-width: 768px) {
            max-width: 80%;
            /* display: none; */
          }
          /* aspect-ratio: 1/2; */
        }
      }
    }
    .booking-container {
      border-radius: 20px;
      background-color: var(--primary-color);
      padding: 2rem;
      display: flex;
      gap: 2rem;
      flex-direction: column;
      align-items: center;
      position: relative;
      z-index: 1;
      max-width: 80%;

      @media screen and (max-width: 768px) {
        max-width: 100%;
      }

      .title {
        color: var(--text-color);
        font-size: 1.5rem;
        /* line-height: 1.3; */
        display: block;
        text-align: center;
        font-weight: 300;
        max-width: 70%;
      }
    }

    @media screen and (max-width: 1200px) {
      grid-template-columns: repeat(1, 1fr);
      height: auto;
    }
  }

  .booking-list {
    width: 100%;
    display: flex;
    flex-direction: column;

    border-radius: 20px;
    /* box-shadow: 0 0 70px rgba(99, 99, 99, 0.1); */

    .booking-list-item {
      padding: 1.5rem 1rem;
      border-bottom: solid 1px var(--text-color);
      display: flex;
      justify-content: space-between;
      align-items: center;

      .item-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        transition: var(--transition);
        &:hover {
          transform: translateX(5px);
        }
        .item-descr {
          font-size: 0.8rem;
          opacity: 0.8;
        }
      }

      a {
        padding: 0.5rem 1rem;
        background-color: var(--text-color);
        color: var(--primary-color);
        text-decoration: none;
        font-size: 0.8rem;
        transition: var(--transition);
        &:hover {
          opacity: 0.9;
        }
      }

      &:last-child {
        border-bottom: 0;
      }
    }
  }
}

footer {
  height: auto;
  background: #111;
  /* text-align: center; */
  padding: 6rem 2rem;
  color: var(--primary-color);
  display: flex;
  /* align-items: center;
  justify-content: center; */
  flex-direction: column;
  font-size: 0.875rem;
  gap: 3rem;
  height: 60vh;
  justify-content: space-between;

  @media screen and (max-width: 768px) {
    height: auto;
    padding: 2rem;
    gap: 2rem;
  }

  .footer-row {
    display: flex;
    gap: 4rem;
    align-items: flex-start;

    @media screen and (max-width: 768px) {
      flex-direction: column;
      gap: 2rem;
      /* text-align: center; */
      align-items: center;
    }

    a {
      font-size: 1rem;
      color: var(--primary-color);
      text-decoration: none;
      font-weight: 400;
      text-decoration: underline;
      &:hover {
        text-decoration: underline;
      }
    }
    .socials {
      display: flex;
      gap: 1.5rem;

      a {
        transition: var(--transition);
        &:hover {
          transform: translateY(-5px);
        }
      }
      i {
        font-size: 1.5rem;
      }
    }
  }
  .footer-logo {
    opacity: 0.1;
    width: 40%;

    @media screen and (max-width: 768px) {
      width: 100%;
    }
    img {
      width: 100%;
      filter: grayscale(1);
    }
  }
}

/* #BTN */
.btn {
  min-width: 280px;
  padding: 1rem 2rem;
  display: flex;
  text-align: center;
  align-items: center;
  font-family: 'Questrial', sans-serif;
  text-decoration: none;
  font-size: 1.5rem;
  display: inline-block;
  transition: var(--transition);
  font-weight: 600;

  &.light {
    background-color: var(--primary-color);
    color: var(--text-color);

    &:hover {
      opacity: 0.8;
    }
  }
  &.dark {
    background-color: var(--dark-color);
    color: var(--primary-color);
    &:hover {
      opacity: 0.9;
    }
  }

  &.accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
    position: relative;

    span {
      position: relative;
      z-index: 1;
    }

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: var(--dark-color);
      z-index: 0;
      transform: scale(0);
      transition: var(--transition);
    }
    &:hover {
      color: var(--primary-color);
      &::before {
        transform: scale(1);
      }
    }
  }
}

.title {
  font-family: 'Poppins', sans-serif;
  font-size: 6rem;
  display: block;
  font-weight: 800;
  color: var(--text-color);
  line-height: 1;

  @media screen and (max-width: 768px) {
    font-size: 3rem;
  }
}

.text {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.5;
  /* margin-bottom: 1rem; */
  color: var(--text-color);
}

.text-primary {
  color: var(--primary-color);
}

section,
.reveal-item {
  transition: all 0.8s ease;
  opacity: 0;
}

.fade-up {
  transform: translateY(40px);
}

.fade-left {
  transform: translateX(-40px);
}

.fade-scale {
  transform: scale(0.9);
}

.animate {
  opacity: 1;
  transform: none;
}
