@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #c9952f;
  --primary-color-dark: #a8761f;
  --text-dark: #1a1410;
  --text-light: #78716c;
  --white: #ffffff;
  --cream: #fdf6ea;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__subheader {
  margin-bottom: 0.5rem;
  position: relative;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-dark);
}

.section__subheader::after {
  position: absolute;
  content: "";
  top: 50%;
  transform: translate(1rem, -50%);
  height: 2px;
  width: 4rem;
  background-color: var(--primary-color);
}

.section__header {
  max-width: 600px;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 3rem;
  color: var(--text-dark);
}

.section__description {
  max-width: 600px;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--primary-color-dark);
}

img {
  width: 100%;
  display: flex;
}

a {
  text-decoration: none;
}

.logo a {
  display: inline-block;
  transition: opacity 0.3s;
}

.logo a:hover {
  opacity: 0.85;
}

.logo img {
  width: auto;
  height: 48px;
  padding: 4px 10px;
  background-color: var(--white);
  border-radius: 6px;
}

@media (width > 768px) {
  .logo img {
    height: 96px;
  }
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--cream);
}

.header {
  background-image:linear-gradient(rgba(0, 0, 0, 0.55),
  rgba(0, 0, 0, 0.55)), url("assets/hotel/header-building.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

nav {
  position: fixed;
  isolation: isolate;
  top: 0;
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
  z-index: 9;
}

.nav__bar {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background-color: var(--primary-color);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  list-style: none;
  position: absolute;
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  background-color: rgba(26, 20, 16, 0.95);
  transform: translateY(-100%);
  transition: 0.5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links a {
  position: relative;
  isolation: isolate;
  padding-bottom: 8px;
  color: var(--white);
  transition: 0.3s;
}

.nav__btn {
  display: none;
}

.header__container {
  padding-block: 12rem 8rem;
}

.header__container p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--white);
  text-align: center;
  opacity: 0.8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header__container h1 {
  font-size: 4rem;
  font-weight: 500;
  line-height: 4.5rem;
  color: var(--white);
  text-align: center;
}

.header__container h1 span {
  color: var(--primary-color);
}

.section__description a {
  color: var(--primary-color);
  font-weight: 500;
}

.section__description a:hover {
  color: var(--primary-color-dark);
}

.about__container {
  overflow: hidden;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about__images {
  display: grid;
  gap: 1.5rem;
}

.about__image img {
  border-radius: 5px;
}

/* Room carousel */
.carousel {
  position: relative;
  margin-top: 3rem;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.carousel__track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel__slide {
  position: relative;
  flex: 1 0 100%;
  isolation: isolate;
}

.carousel__slide img {
  height: 60vh;
  min-height: 320px;
  max-height: 560px;
  object-fit: cover;
}

.carousel__slide::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
}

.carousel__caption {
  position: absolute;
  left: 2rem;
  bottom: 1.5rem;
  z-index: 1;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  color: var(--text-dark);
  background-color: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 100%;
  cursor: pointer;
  transition: 0.3s;
}

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

.carousel__arrow--prev {
  left: 1rem;
}

.carousel__arrow--next {
  right: 1rem;
}

.carousel__nav {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.carousel__nav button {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  background-color: transparent;
  border: 1px solid #e7e5e4;
  border-radius: 100px;
  cursor: pointer;
  transition: 0.3s;
}

.carousel__nav button.active {
  color: var(--white);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Gallery */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.gallery__grid img {
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__grid img:hover {
  transform: scale(1.04);
}

@media (width > 576px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (width > 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.location :is(.section__subheader, .section__header) {
  text-align: center;
  margin-inline: auto;
}

.location__map {
  margin-top: 3rem;
}

.location__map iframe {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 10px;
}

.location__split {
  margin-top: 3rem;
  display: grid;
  gap: 2.5rem;
}

.location__col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location__address {
  margin-top: 2.5rem;
}

.location__address .section__description {
  max-width: var(--max-width);
}

.location__feature {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
}

.location__feature img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.location__feature span {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  background-color: var(--white);
}

@media (width > 768px) {
  .location__split {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer {
  background-color: var(--text-dark);
}

.footer__container {
  display: grid;
  gap: 4rem 2rem;
}

.footer__col .section__description {
  margin-block: 2rem;
}

.footer__col h4 {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
}

.footer__links {
  list-style: none;
  display: grid;
  gap: 1rem;
  color: var(--text-light);
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light);
  transition: 0.3s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__bar {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
}

@media (width > 576px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  nav {
    padding: 2rem 1rem;
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav__bar {
    padding: 0;
    background-color: transparent;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    padding: 0;
    width: unset;
    position: static;
    transform: none;
    flex-direction: row;
    gap: 2.5rem;
    background-color: transparent;
  }

  .nav__links a {
    font-size: 1.15rem;
  }

  .nav__btn {
    display: block;
    font-size: 1.05rem;
  }

  .nav__links a::after {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: var(--primary-color);
    transition: 0.3s;
    transform-origin: left;
  }

  .nav__links a:hover::after {
    width: 100%;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .footer__container {
    grid-template-columns: repeat(4, 1fr);
  }
}
