@font-face {
  font-family: "MV Boli";
  src: url(../fonts/mvboli.ttf) format("truetype");
}

:root {
  --content-max-width: 900px;
  --nav-bg: 50% -40% / 700px fixed transparent;
  --nav-bg-scrolled: 50% -40% / 700px fixed url(../img/header.webp) #72acc9;
  --nav-color: #fff;
}

html {
  height: 100dvh;
  scroll-behavior: smooth;
}

body {
  background: #fff;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

div.bg {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 100dvw;
  height: 100dvh;
  max-height: 750px;
  pointer-events: none;
  background: 50% 0% / 100dvh repeat-x url(../img/bg.webp) #fff;
}

a[href="#"] {
  font-family: "MV Boli";
  font-size: 2.3rem;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.5s, margin-top 0.5s;
  padding: 1rem 1rem 0;
}

body[data-scrolled-more] a[href="#"] {
  opacity: 1;
}

section {
  padding: 4rem 2rem 0;
}

section > div {
  margin: 0 auto;
  max-width: var(--content-max-width);
}

section#intro {
  padding: 0;
  color: #fff;
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  font-weight: normal;
}

h1 > span {
  font-family: "MV Boli";
  display: block;
  font-size: 1.3em;
}

p {
  margin: 0 auto 1.5rem;
  line-height: 1.55rem;
}

p:last-child {
  margin-bottom: 0;
}

figure {
  margin: 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
}

section#intro p {
  max-width: 500px;
  text-shadow: 0 0 5px #45a4d3;
  padding: 0 2rem;
  background: radial-gradient(ellipse closest-side, #47a6d6 40%, transparent);
}

section#intro figure {
  margin: 4rem auto;
  max-width: 700px;
}

nav {
  position: sticky;
  top: 5.7rem;
  top: 0;
  text-align: center;
  transition: box-shadow 0.5s, background 0.5s;
  z-index: 2;
  background: var(--nav-bg);
}

body[data-scrolled-more] nav {
  box-shadow: 0 8px 7px rgb(2 2 58 / 30%);
  background: var(--nav-bg-scrolled);
}

nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-around;
  max-width: var(--content-max-width);
}

section:not(.highlight-links) a,
nav a {
  color: inherit;
  display: block;
  text-decoration: none;
}

section.highlight-links a {
  color: inherit;

  &:visited {
    color: #686868;
  }
}

body[data-scrolled-more] nav a {
  color: var(--nav-color);
}

nav a {
  padding: 1rem;
}

h2 {
  font-size: 2rem;
  margin: 2rem 0;
  font-family: "MV Boli";
  color: #3ca9df;
  font-weight: normal;
  line-height: 1em;
}

div.icon {
  display: flex;
  align-items: center;
}

div.icon::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

div.icon.bed::before {
  background: url(../img/icons/bed.svg) no-repeat 50% 50% / 100% 100%;
}

div.icon.shower::before {
  background: url(../img/icons/shower.svg) no-repeat 50% 50% / 100% 100%;
}

section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

section#rooms {
  background: 50% 100% / 150% no-repeat url(../img/smear-blue.webp);
}

section#rooms h3 {
  margin-top: 0;
}

section#rooms li {
  border: 1px solid #d3e2e9;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #fff;
  flex: 0 100%;
}

section#services {
  background: 100% 40% / 150% no-repeat url(../img/smear-blue.webp);
}

section#services li {
  margin: 0.5rem 0;
  flex: 0 1 400px;
}

div.icon.wifi::before {
  background: url(../img/icons/wifi.svg) no-repeat 50% 50% / 100% 100%;
}

div.icon.tv::before {
  background: url(../img/icons/tv.svg) no-repeat 50% 50% / 100% 100%;
}

div.icon.bbq::before {
  background: url(../img/icons/bbq.svg) no-repeat 50% 50% / 100% 100%;
}

div.icon.stove::before {
  background: url(../img/icons/stove.svg) no-repeat 50% 50% / 100% 100%;
}

div.icon.car::before {
  background: url(../img/icons/car.svg) no-repeat 50% 50% / 100% 100%;
}

div#gallery {
  overflow-x: scroll;
  display: flex;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  margin: 2rem 0 0;
  position: relative;
  z-index: 1;
}

div#gallery figure {
  scroll-snap-align: start;
}

div#gallery img {
  width: clamp(200px, calc(100dvw - 4rem), var(--content-max-width));
  height: auto;
}

div#gallery + div {
  height: 2rem;
  margin-top: 0.5rem;
  background: 50% / contain no-repeat url(../img/icons/scroll-horizontal.svg);
}

#attractions ul {
  display: flex;
}

#attractions li {
  flex: 1 47%;
}

#attractions li::before {
  content: "✓";
  position: absolute;
  margin-left: -1rem;
  color: #51ac99;
}

div.icon.phone::before {
  background: url(../img/icons/phone.svg) no-repeat 50% 50% / 100% 100%;
}

div.icon.envelope::before {
  background: url(../img/icons/envelope.svg) no-repeat 50% 50% / 100% 100%;
}

div.icon.map-pin::before {
  background: url(../img/icons/map-pin.svg) no-repeat 50% 50% / 100% 100%;
}

footer {
  /* background: #f2eee3; */
  background: 50% 0% / 150% no-repeat url(../img/smear-yellow.webp);
  text-align: center;
  margin-top: 4rem;
}

footer h2 {
  margin: 0 auto;
}

footer > div {
  padding: 2rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

footer > div > div:last-child {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  body {
    background: 0% -290% / 1440px repeat-x url(../img/smear-blue.webp);
  }
  div.bg {
    background-size: contain;
  }

  section#rooms,
  section#services {
    background: transparent;
  }

  section#rooms li {
    flex: 1 calc(33% - 2.7rem);
  }
}
