/* GENERAL */

:root {
  --font-body: "PT Serif";
  --font-heading: "Playfair Display";
  --font-accent: "Montserrat";

  --color-primary: #49737C;
  --color-grey-light: #E6E4E6;
  --color-off-white: #F6F6F5;
  --color-black: #181510;

  --size-XXS: 0.563rem;
  --size-XS: 0.656rem;
  --size-S: 0.75rem;
  --size-M: 1rem;
  --size-L: 1.5rem;
  --size-XL: 2.5rem;
  --size-XXL: 2rem;

  scroll-behavior: smooth;
}

@media screen and (min-width: 38rem) {

  :root {
    --size-XXS: 0.656rem;
    --size-XS: 0.75rem;
    --size-S: 0.875rem;
    --size-M: 1.3125rem;
    --size-L: 1.75rem;
    --size-XL: 2.625rem;
    --size-XXL: 3rem;
  }
}

@media screen and (min-width: 65rem) {

  :root {
    --size-XXS: 0.75rem;
    --size-XS: 0.875rem;
    --size-S: 1rem;
    --size-M: 1.5rem;
    --size-L: 2rem;
    --size-XL: 3rem;
    --size-XXL: 4rem;
  }
}

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

/* ELEMENTS */

body {
  font-family: var(--font-body);
  background: var(--color-off-white);
  color: var(--color-black);
  overflow-x: hidden
}

.button {
  color: var(--color-off-white);
  font-family: var(--font-accent);
  font-size: var(--size-S);
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  padding: 0.5rem 1.5rem;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  border: 2px solid var(--color-primary);
  background: var(--color-primary);
  transition: .2s;
}

.button:hover {
  color: var(--color-primary);
  background: none;
}

.button.outline {
  color: var(--color-off-white);
  background: none;
  border: 2px solid var(--color-off-white);
}

.button.outline:hover {
  color: var(--color-primary);
  background: var(--color-off-white);
}

.button.small {
  padding: 0.375rem 1rem;
  font-size: var(--size-XS);
  letter-spacing: 0.035rem;
}

h2 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--size-L);
  font-style: italic;
  font-weight: 600;
  line-height: 2.4rem;
}

.chambres h2 {
  font-family: var(--font-accent);
  font-size: var(--size-M);
  font-style: normal;
  line-height: 1.8rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

@media screen and (min-width: 38rem) {
  .chambres h2 {
    margin-bottom: 3rem;
  }
}

/* HEADER*/

.site-header {
  font-family: var(--font-accent);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

.site-header .container {
  display: flex;
  margin: 0;
  justify-content: space-between;
  align-items: center;

}

.site-header .logo {
  display: none;
}

.site-header nav {
  height: 100vh;
  padding: 5rem;
  position: absolute;
  top: 0;
  right: -19rem;
  display: flex;
  align-items: center;
  background-color: var(--color-primary);
  transition: 0.2s ease-in-out;
}

.site-header nav.show {
  right: 0;
}

.site-header ul {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  gap: 2rem;
}

.site-header li {
  width: fit-content;
}

.site-header li a {
  color: var(--color-off-white);
  font-size: var(--size-S);
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: 0.035rem;
  text-transform: uppercase;
  text-decoration: none;
}

.site-header li a::after {
  content: '';
  display: block;
  position: relative;
  width: 2rem;
  height: 0.125rem;
  background-color: var(--color-off-white);
  transition: width 0.15s;
}

.site-header li:last-child a::after {
  display: none;
}

.site-header li:hover a::after {
  width: 100%;
}

.site-header span.subMenu-icon::after {
  content: url(./media/SubMenu_Open.svg);
  margin-left: 0.5rem;
}

.site-header li:hover span.subMenu-icon::after {
  content: url(./media/SubMenu_Close.svg);
}

.site-header .subMenu {
  margin-top: 1rem;
}

.site-header li .subMenu {
  display: none;
}

.site-header li:hover .subMenu {
  display: block;
  position: relative;
}

.site-header .subMenu li {
  padding: 0.5rem 0rem;
}

.site-header .subMenu a {
  font-size: var(--size-XXS);
}

.site-header .subMenu a::after {
  display: none;
}


.site-header .btnBurgerMenu::after {
  position: absolute;
  top: 2rem;
  right: 2rem;
  cursor: pointer;
  content: url(./media/burgermenu_open.svg);
}

.site-header .btnBurgerMenu.active::after {
  content: url(./media/burgermenu_close.svg);
}

@media screen and (min-width: 60rem) {

  .site-header nav {
    left: 0;
    transition: 0;
  }

  .site-header .container {
    width: 80vw;
    margin: 0 10vw;

  }

  .site-header nav {
    background-color: transparent;
    height: 6.25rem;
    padding: unset;
    position: relative;
    left: unset;
    right: unset;
    width: fit-content;
  }

  .site-header .logo {
    display: unset;
  }

  .site-header ul {
    flex-direction: row;
    align-items: center;
  }

  .site-header li {
    position: relative;
    display: inline-flex;
    padding: 0.5rem 0rem 0.125rem 0rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }

  .site-header li::after {
    position: absolute;
    bottom: 0;
    left: 1;
  }

  .site-header li a {
    font-size: var(--size-XS);
  }

  .site-header .btnBurgerMenu {
    display: none;
  }

  .site-header li:hover .subMenu {
    position: absolute;
  }

  .site-header .subMenu {
    background: rgba(73, 115, 124, 0.30);
    margin-top: 1.5rem;
    padding: 1rem;
    width: 12rem;
  }
}

.page-header .header-bg {
  background: var(--color-primary);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-header .header-bg-img {
  opacity: 0.8;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-header .title {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  text-align: center;
  width: 100%;
  padding: 0 10vw;
  transform: translate(-50%, -50%);
  color: var(--color-off-white);
  font-family: var(--font-heading);
  font-size: var(--size-XXL);
  font-style: italic;
  font-weight: 400;
  line-height: 120%;
}

.page-header .title img {
  width: auto;
  margin: auto;
}

@media screen and (min-width: 48rem) {
  .container {
    margin: 0 10vw;
  }
}

.page-header .arrow {
  position: absolute;
  left: 50%;
  bottom: 2rem;
}

.page-header .arrow .line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0.125rem;
  height: 4rem;
  background-color: var(--color-off-white);
}

.page-header .arrow .arrowhead1::after {
  content: '';
  position: absolute;
  bottom: 0.1rem;
  left: -0.5rem;
  width: 1rem;
  height: 1rem;
  border-right: solid 0.125rem var(--color-off-white);
  border-bottom: solid 0.125rem var(--color-off-white);
  rotate: 45deg;
  transition: all 0.1s ease-in-out;
}

.page-header .arrow .arrowhead2::after {
  content: '';
  position: absolute;
  bottom: 1rem;
  left: -0.5rem;
  width: 1rem;
  height: 1rem;
  border-right: solid 0.125rem var(--color-off-white);
  border-bottom: solid 0.125rem var(--color-off-white);
  rotate: 45deg;
  transition: all 0.1s ease-in-out;
}

.page-header .arrow:hover .arrowhead1::after {
  content: '';
  position: absolute;
  bottom: 0.3rem;
  left: -1rem;
  width: 2rem;
  height: 2rem;
}

.page-header .arrow:hover .arrowhead2::after {
  content: '';
  position: absolute;
  bottom: 0.3rem;
  left: -1rem;
  width: 2rem;
  height: 2rem;
}

/* SECTION -> GENERAL */

section .container {
  display: grid;
}

section img {
  height: 100%;
  width: 100%;
  aspect-ratio: 1.5/1;
  object-fit: cover;
}

section .content {
  background: rgba(235, 233, 233, 0.95);
  box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.10);
  display: flex;
  padding: 2rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  position: sticky;
  margin: -8rem 10vw 6rem 10vw;
}

section .content p {
  line-height: 1.5rem;
}

@media screen and (min-width: 48rem) {
  section .container {
    grid-template-columns: repeat(12, 1fr);
    margin: 8rem 0;
    align-items: center;
    padding: 0 10vw;
  }

  section img {
    aspect-ratio: 1;
    grid-row: 1;
    grid-column: 1 / 8;
    margin: 0 -10vw;
    width: calc(100% + 10vw);
  }

  section .content {
    margin: 0;
    padding: 4rem;
    grid-row: 1;
    grid-column: 6 / 13;
  }

  section.reverse img {
    aspect-ratio: 1;
    grid-row: 1;
    grid-column: 6 / 13;
    margin: 0;
  }

  section.reverse .content {
    padding: 4rem;
    grid-row: 1;
    grid-column: 1 / 8;
  }

}

/* SECTION -> CHAMBRES */

section.chambres {
  overflow: hidden;
  margin-top: 100vh;
}

section.chambres .container {
  padding: 0;
  margin: 3rem 10vw 3rem 10vw;
  display: block;
}

.splide__track {
  overflow: visible;
}

article a {
  position: relative;
  display: block;
  aspect-ratio: 1.6;
  width: 100%;
  max-width: 41.625rem;
  overflow: hidden;
}

article a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(24, 21, 16, 0.00) 51.56%, rgba(24, 21, 16, 0.60) 100%);
  z-index: 1;
}

article img {
  aspect-ratio: unset;
  width: 100%;
  margin: 0;
  height: auto;
  object-fit: cover;
  transform-origin: center;
  display: block;
  z-index: 0;
  transition-duration: 300ms;
  transition-timing-function: ease-in-out;
}

article .title {
  color: var(--color-off-white);
  font-family: var(--font-heading);
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-size: var(--size-XL);
  font-style: normal;
  font-weight: 700;
  line-height: 2.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  transition-duration: 300ms;
  transition-timing-function: ease-in-out;
}

article a:hover .title {
  position: absolute;
  padding-left: 2rem;
}

article a:hover img {
  transform: scale(1.1);
  transform-origin: center;
}

article .title h3>span {
  font-style: italic;
}

article .title>span {
  font-family: var(--font-accent);
  font-size: var(--size-M);
  font-style: normal;
  font-weight: 600;
  line-height: 1.4rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.arrows {
  display: flex;
  padding-top: 1rem;
  gap: 1rem;
}

.single-arrow img {
  aspect-ratio: 1;
  margin: 0;
  height: 40px;
  width: 100%;
  cursor: pointer;
}

.single-arrow:hover {
  opacity: 80%;
}

.single-arrow.disabled {
  opacity: 20%;
}

@media screen and (min-width: 38rem) {

  article .title {
    bottom: 2rem;
    left: 2rem;
    line-height: 3.8rem;
  }

  article .title :hover {
    left: 4rem;
  }

  .arrows {
    padding-top: 2rem;
    gap: 2rem;
  }

  .single-arrow img {
    height: 60px;
  }
}

/* SECTION -> RESTAURANT */

@media screen and (min-width: 48rem) {
  section.restaurant .container {
    height: auto;
    grid-template-columns: repeat(12, 1fr);
    margin-top: 8rem;
    margin-bottom: 8rem;
    display: block;
    padding: 0 10vw;
    position: relative;
  }

  section.restaurant img {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
  }

  section.restaurant .content {
    height: 100%;
    padding: 4rem;
    align-content: center;
    grid-column: 2 / 8;
    width: 50%;
  }

}

/* FOOTER */

.site-footer {
  background: var(--color-black);
  font-size: var(--size-S);
}

.site-footer .container {
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-info,
.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-info {
  gap: 0.75rem;
}

.footer-legal {
  gap: 2.25rem;
  align-self: stretch;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  list-style: none
}

.site-footer a {
  color: var(--color-off-white);
  font-weight: 400;
  line-height: 1.5rem;
  text-decoration: none;
}

.site-footer a.legal {
  font-size: var(--size-XXS);
}

@media screen and (min-width: 38rem) {
  .site-footer .container {
    padding: 8rem 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-info {
    text-align: left;
    align-items: flex-start;
  }

  .footer-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2.25rem;
    align-self: stretch;
  }

  footer ul {
    align-items: flex-end;
  }
}

.site-footer .social {
  display: flex;
  align-items: center;
  gap: 2rem;
}