@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --teal: #6aa3a2;
  --teal-dark: #315f60;
  --ink: #2f2e2e;
  --muted: #666665;
  --paper: #fff;
  --soft: #e5ebed;
  --site-width: 980px;
  --shadow: 0 24px 70px rgba(18, 37, 40, .24);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--muted);
  background: #27508f url("../images/jacuzzi.jpg") center / cover fixed no-repeat;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(17, 48, 65, .43), rgba(27, 57, 68, .58));
}

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

a {
  color: inherit;
  text-underline-offset: .2em;
}

h1,
h2,
p,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 6.2vw, 4.15rem);
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1.16;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .28);
}

h2 {
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: .045em;
  line-height: 1.35;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  color: var(--paper);
  background: var(--teal-dark);
  transform: translateY(-160%);
  transition: transform .15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  display: grid;
  min-height: 440px;
  padding: 1rem 1.25rem 2rem;
  place-items: start center;
}

.hero__inner {
  width: min(820px, 100%);
  padding-top: clamp(.25rem, 2vh, 1.25rem);
  text-align: center;
}

.hero__eyebrow,
.eyebrow {
  margin-bottom: .8rem;
  color: var(--paper);
  font-size: 1.06rem;
  letter-spacing: .08em;
}

.panel,
.mosaic,
.site-footer__inner,
.site-footer__copyright {
  width: min(var(--site-width), calc(100% - 2rem));
  margin-inline: auto;
}

.panel--light,
.tile--light {
  color: var(--muted);
  background: var(--paper);
}

.video-section {
  position: relative;
  width: min(var(--site-width), calc(100% - 2rem));
  margin: -5rem auto 0;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-sound-toggle {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(20, 29, 31, .78);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .28);
  cursor: pointer;
  place-items: center;
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}

.video-sound-toggle:hover,
.video-sound-toggle:focus-visible {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.video-sound-toggle:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.video-sound-toggle:disabled {
  cursor: wait;
  opacity: .45;
  transform: none;
}

.video-sound-toggle__icon {
  width: 25px;
  height: 25px;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.video-sound-toggle__icon[hidden] {
  display: none;
}

.booking {
  margin-top: 0;
  padding: clamp(2.5rem, 7vw, 4.2rem) clamp(1.5rem, 9vw, 7rem) 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.booking p {
  max-width: 760px;
  margin-inline: auto;
}

.rule {
  display: block;
  width: 36px;
  height: 1px;
  margin: 0 auto 1.8rem;
  background: currentColor;
  opacity: .55;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-top: .65rem;
  padding: .75rem 1.35rem;
  border: 1px solid var(--teal-dark);
  border-radius: 0;
  color: var(--paper);
  background: var(--teal-dark);
  font: inherit;
  font-weight: 700;
  letter-spacing: .035em;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button:hover,
.button:focus-visible {
  color: var(--teal-dark);
  background: transparent;
  transform: translateY(-2px);
}

.mosaic {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature {
  display: grid;
  grid-template-columns: 33.7% 66.3%;
}

.tile {
  min-width: 0;
  margin: 0;
}

.tile--teal {
  color: var(--paper);
  background: var(--teal);
}

.tile--teal h2 {
  color: var(--paper);
}

.tile--heading {
  display: grid;
  min-height: 270px;
  padding: 2rem;
  place-items: center;
  text-align: center;
}

.tile--heading h2 {
  margin: 0;
}

.tile--image {
  overflow: hidden;
}

.tile--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile--pool,
.tile--kitchen {
  min-height: 270px;
}

.tile--garden {
  min-height: 330px;
}

.tile--copy {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.6rem);
}

.tile--copy p:last-child {
  margin-bottom: 0;
}

.feature--tranquil .tile--garden {
  grid-column: 1;
}

.feature--tranquil .tile--copy {
  grid-column: 2;
}

.feature--comfort .tile--bathroom {
  min-height: 316px;
  grid-column: 1;
}

.feature--comfort .tile--copy {
  min-height: 316px;
  grid-column: 2;
}

.feature--living {
  grid-template-rows: 415px auto;
}

.feature--living .tile--fireplace {
  grid-column: 1;
  grid-row: 1 / 3;
}

.feature--living .tile--living-room {
  grid-column: 2;
  grid-row: 1;
}

.feature--living .tile--copy {
  min-height: 257px;
  grid-column: 2;
  grid-row: 2;
}

.feature--location {
  padding-top: 2.5rem;
  grid-template-columns: 47.5% 52.5%;
}

.tile--corbera,
.tile--location-intro {
  min-height: 311px;
}

.tile--location-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.7rem);
}

.tile--location-intro h2 {
  margin-bottom: 1rem;
}

.tile--location-copy {
  min-height: auto;
  grid-column: 1 / 3;
}

.feature--about {
  grid-template-columns: 55% 45%;
}

.tile--jacuzzi,
.tile--about-copy {
  min-height: 359px;
}

.tile--about-copy .rule {
  margin-left: 0;
}

.site-footer {
  margin-top: 2.5rem;
  padding: 3.5rem 0 1.1rem;
  color: var(--paper);
  background: rgba(47, 46, 46, .94);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer__title {
  margin-bottom: .25rem;
  font-size: 1.3rem;
}

.site-footer p {
  margin-bottom: .45rem;
}

.button--outline {
  border-color: var(--paper);
  background: transparent;
}

.button--outline:hover,
.button--outline:focus-visible {
  color: var(--ink);
  background: var(--paper);
}

.site-footer__copyright {
  margin-top: 2.5rem;
  font-size: .78rem;
  opacity: .65;
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .hero {
    min-height: 340px;
    padding-bottom: 2rem;
  }

  .video-section {
    margin-top: -3rem;
  }

  .feature,
  .feature--location,
  .feature--about {
    grid-template-columns: 1fr;
  }

  .tile--heading {
    min-height: 180px;
  }

  .tile--pool,
  .tile--kitchen,
  .tile--garden,
  .feature--comfort .tile--bathroom,
  .tile--corbera,
  .tile--jacuzzi {
    min-height: 280px;
  }

  .feature--tranquil .tile--garden,
  .feature--tranquil .tile--copy,
  .feature--comfort .tile--bathroom,
  .feature--comfort .tile--copy,
  .feature--living .tile--fireplace,
  .feature--living .tile--living-room,
  .feature--living .tile--copy,
  .tile--location-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .feature--living {
    grid-template-rows: auto;
  }

  .feature--living .tile--fireplace {
    min-height: 430px;
  }

  .feature--living .tile--living-room {
    min-height: 330px;
  }

  .feature--location {
    padding-top: 0;
  }

  .tile--location-intro,
  .tile--about-copy {
    min-height: auto;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.35rem;
  }

  .panel,
  .mosaic,
  .site-footer__inner,
  .site-footer__copyright {
    width: min(var(--site-width), calc(100% - 1rem));
  }

  .tile--copy,
  .tile--location-intro {
    padding: 2rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
