@import url('./grid.css');

.hero {
  --hero-height: 75svh;
}

/* about section start */
.about-section {
  padding-top: 48px;
}

.about-section .about-title {
  position: relative;
  text-align: center;
  padding-bottom: 100px;
  z-index: 1;
}

.about-section .about-title img {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translate(-50%, 0%);
  z-index: -1;
  max-width: 100%;
}

/* Single grid: about-right + first gallery item in row 1, rest in row 2 */
.about-section .section-wrapper {
  display: grid;
  grid-template-columns: minmax(auto, 50%) minmax(auto, 35%) minmax(auto, 15%);
  gap: 18px;
}

.section-wrapper .about-right {
  padding-right: 56px;
  grid-column: 1 / 2;
}

/* First gallery item spans cols 2-3 in row 1 (the main image) */
.section-wrapper .about-right+.about-gallery-item {
  grid-column: 2 / 4;
}

.section-wrapper .about-right .description {
  margin-bottom: 30px;
}

@media (max-width: 1199px) {
  .section-wrapper .about-right .description {
    margin-bottom: 24px;
  }
}

.section-wrapper .about-right .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* about section end */

/* about icon */
.about-section .about-icon {
  max-width: 80px;
  margin-inline: auto 3rem;
}

/* gallery items — all direct children of section-wrapper */
.section-wrapper .about-gallery-item {
  overflow: hidden;
  border-radius: 5px;
}

/* row 2 items (3rd child onward) get a fixed height */
.section-wrapper .about-gallery-item:nth-child(n+4) {
  height: 350px;
}

.section-wrapper .about-gallery-item img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.section-wrapper .about-gallery-item:hover img {
  transform: scale(1.05);
}

/* mobile */
@media (max-width: 1023px) {
  .about-section .about-title {
    padding-bottom: 50px;
  }

  .about-section .about-title img {
    max-width: 320px;
  }

  .about-section .section-content {
    padding: 0;
  }

  .about-section .section-wrapper {
    display: grid;
    grid-template-columns: 5fr 4fr 1fr;
    gap: 12px;
  }

  .about-section .about-right {
    grid-column: 1 / -1;
    padding-right: 0;
    text-align: center;
  }

  .section-wrapper .about-right .link-wrapper,
  .section-wrapper .about-right .bottom .btn {
    width: 100%;
  }

  .about-section .about-icon {
    display: none;
  }

  .section-wrapper .about-right+.about-gallery-item {
    grid-column: 2 / span 2;
    grid-row: 2;
    height: 220px;
  }

  .section-wrapper .about-gallery-item:nth-child(3) {
    grid-column: 1;
    grid-row: 2 / span 2;
    height: 100%;
  }

  .section-wrapper .about-gallery-item:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
    height: 160px;
  }

  .section-wrapper .about-gallery-item:nth-child(5) {
    grid-column: 3;
    grid-row: 3;
    height: 160px;
  }
}

/* ========================================================= */
/* =================== Our rooms Section =================== */
/* ========================================================= */
.room-section {
  padding-bottom: 78px;

  .section-icon {
    margin: 0 auto 8px;
  }

  .heading {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 26px;
    padding-inline: 36px;

    .title {
      font-size: var(--fs-30px);
      letter-spacing: 0.02em;
    }

    .subtitle {
      font-size: var(--fs-20px);
      color: var(--color-base);
    }

    .section-more-items-btn {
      display: inline-flex;
      align-items: center;
      justify-content: end;
      gap: 10px;
      font-size: var(--fs-15px);
      color: var(--color-base);
      font-weight: 500;
      letter-spacing: 0.10em;
    }
  }

  .rooms-slider.static {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .room-card {
    .room-card-thumb {
      width: 100%;
      aspect-ratio: 1;
      -o-object-fit: cover;
      object-fit: cover;
      border-radius: 5px;
      object-fit: cover;
      overflow: hidden;
    }

    .main-img {
      width: 100%;
      height: 100%;
      aspect-ratio: 1;
      border-radius: 5px;
      transition: transform 0.3s ease;
    }

    &:hover img {
      transform: scale(1.05);
    }
  }

  .room-card-body {
    padding: 30px 16px 10px;

    h3 {
      font-size: var(--fs-18px);
      margin-bottom: 8px;
    }

    .room-description {
      font-size: var(--fs-14px);
      margin-bottom: 24px;
    }
  }

  .single-slide {
    padding: 10px;
    background-color: hsla(47, 54%, 90%, 0.4);
    border-radius: 5px;
  }
}

/* ========================================================= */
/* =================== Background image Section ============ */
/* ========================================================= */

.bg-img-content {
  height: 430px;
  position: relative;
  z-index: 1;

  &.parallax {
    background-attachment: fixed;
  }

  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
  }

  .container {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .img-content {
    max-width: 650px;
    color: var(--color-white);
  }

  .title {
    color: inherit;
    font-size: var(--fs-52px);
    margin-bottom: 16px;
    letter-spacing: 0.10em;
  }

  .description {
    font-size: var(--fs-18px);
    letter-spacing: 0.05em;
    margin-bottom: 32px;
  }

  .link {
    display: inline-flex;
    align-items: center;
    justify-content: end;
    font-size: var(--fs-15px);
    font-weight: 500;
    letter-spacing: 0.10em;
    color: inherit;
    gap: 10px;

    svg {
      transition: transform 0.3s ease;
    }

    &:hover svg {
      transform: translateX(-5px);
    }
  }
}

/* ========================================================= */
/* ================= Heading + Cards grid ================== */
/* ========================================================= */

.section-heading-cards-grid {
  background-color: hsla(47, 54%, 90%, 0.4);
  padding-block: 84px;

  .section-header {
    margin-bottom: 32px;

    .title {
      font-size: var(--fs-30px);
      letter-spacing: 0.02em;
    }

    .subtitle {
      font-size: var(--fs-20px);
      color: var(--color-base);
    }
  }

  .swiper-slide {
    height: auto;
  }

  .card {
    background-color: var(--color-white);
    padding: 26px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    &:hover {
      border-color: hsla(0, 0%, 40%, 0.24);
    }

    .card-head {
      min-height: 40px;
    }

    .title {
      font-size: var(--fs-18px);
      margin-bottom: 18px;
    }

    .description {
      margin-bottom: 24px;
    }
  }
}

footer {
  margin-top: 0;
}

@media (max-width: 1023px) {
  .bg-img-content {
    .title {
      font-size: var(--fs-30px);
    }
  }
}

@media (max-width: 767px) {
  .section-heading-cards-grid {
    padding-block: 52px;

    .cards-container {
      padding: 0;
    }

    .swiper-wrapper {
      margin-inline-start: var(--padding-site);
    }
  }
}

/* Desktop: Swiper JS not active — override Swiper's display:flex via higher specificity */
@media (min-width: 768px) {
  .section-heading-cards-grid .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
  }

  .section-heading-cards-grid .swiper-slide {
    height: auto;
  }

  .section-heading-cards-grid .heading-cards-swiper {
    overflow: visible;
  }
}

@media (min-width: 1024px) {
  .section-heading-cards-grid .swiper-wrapper {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .bg-img-content {
    background-attachment: scroll;
  }
}