:root {
  --font-sans: "ss", sans-serif;
  --font-weight: 400;

  --size-text-normal: 20px;
  --size-line-height: 1.2;
  --size-column: 800px;

  --color-bg: #ffffff; 
  --color-text: #000000; 
  --color-blue: #3E00E6; 
  --color-pink: #E6007C; 
  --color-green: #00C13B;
  --color-light-green: #BAEFB8;
}

@font-face {
  font-family: "ss";
  src: url("./media/ssr.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ss";
  src: url("./media/ssm.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ss";
  src: url("./media/ssb.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html,body {
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  position: relative;
  color: var(--color-text);
  font-family: var(--font-sans); 
  font-size: var(--size-text-normal);
  line-height: var(--size-line-height);
  font-weight: var(--font-weight);
  font-style: normal;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: var(--size-line-height);
}

a,
a:link,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 1px solid var(--color-highlight);
  outline-offset: 2px;
}

p {
  margin: 0;
}

/* ---------- */

.bg-icon {
  opacity: .8;
  position: absolute;
  z-index: -1;
  height: 240px;
  width: max-content;
}

.bg-icon svg {
  height: 100%;
  width: auto;
}

.bg-icon.bg-ondas {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bg-icon.bg-bola {
  top: 0;
  left: -36%;
}

.bg-icon.bg-nota {
  top: 90%;
  left: -30%;
}

.bg-icon.bg-laranja {
  top: 100%;
  right: -25%;
}

.bg-icon.bg-brilho {
  top: 15%;
  right: -40%;
}

/* ---------- */

main {
  position: relative;
  padding-bottom: 10rem;
  overflow-x: hidden;
}

header {
  max-width: var(--size-column); 
  display: grid;
  grid-template-columns: 1fr; 
  margin: 1rem auto 1rem auto;
}

#logo {
  display: flex;
  height: 44px;
  padding-left: 25px;
  width: min-content;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

#logo svg {
  height: 100%;
}

#cta {
  position: fixed;
  left: calc(50% - 400px - 25px);
  transform: translateX(-100%);
  bottom: 25px;
  z-index: 99;
  height: 120px;
  width: min-content;
  opacity: 0;
}

@media (max-width: 1280px) {
  #cta {
    left: 25px; 
    transform: none;
  }
}

#cta img {
  height: 100%;
  width: auto;
}

#cta.visible {
  opacity: 1;
}

section {
  position: relative;
  max-width: var(--size-column); 
  display: grid;
  grid-template-columns: 1fr 1fr; 
  margin: 3rem auto 3rem auto;
  box-sizing: border-box;
}

section .copy {
  padding-inline: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 300px;
  box-sizing: border-box;
}

section .media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  perspective: 1280px;
  aspect-ratio: 1 / 1;
}

section .pane {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  transform-origin: center;
  border-radius: 40px;
  background: #f1f1f1;
  overflow: hidden;
}

#hero .copy {
  grid-column: 1 / 2;
  grid-row: 1 / 1;
}

#hero h1 {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 1.5rem;
  padding-inline: 15px;
}

#hero p {
  margin-bottom: 2rem;
  padding-inline: 15px;
}

#hero .media {
  grid-column: 2 / 3;
  grid-row: 1 / 1;
}

#hero .pane {
  transform: rotateY(-30deg) scale(1.05) translateX(-15px);
  transition: transform .2s ease;
}

#hero .pane:hover {
  transform: rotateY(-25deg) rotateX(5deg) scale(1.05) translateX(-15px);
}

#amenities .media {
  grid-column: 1 / 2;
  grid-row: 1 / 1;
}

#amenities .pane {
  transform: rotateY(30deg) scale(1.05) translateX(15px);
  transition: transform .2s ease;
}

#amenities .pane:hover {
  transform: rotateY(25deg) rotateX(5deg) scale(1.05) translateX(15px);
}

#amenities .copy {
  grid-column: 2 / 3;
  grid-row: 1 / 1;
}

#amenities h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-green);
  margin-bottom: 1.5rem;
  padding-inline: 15px;
}

#amenities p {
  margin-bottom: 1.5rem;
  padding-inline: 15px;
}

#amenities .controls {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 1rem;
  padding-inline: 15px;
}

#amenities .labels {
  padding: 16px 18px;
  border-radius: 16px;
  background-color: var(--color-light-green);
  font-size: 18px;
}

img.pane-image {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  object-fit: cover;
}

#amenities .icon {
  position: relative;
  display: inline-block;
  background-image: url("/media/icons.webp");
  background-size: auto 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: scale 0.1s ease-out;
  -webkit-tap-highlight-color: transparent;
}

#amenities .icon:hover {
  transform: scale(1.15);
  transform-origin: bottom;
}

#amenities .icon::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  bottom: -1rem;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid var(--color-light-green);
  display: none;
}

#amenities .icon-1 {
  width: 30px;
  height: 40px;
  background-position: 0 0;
}

#amenities .icon-2 {
  width: 30px;
  height: 40px;
  background-position: -30px 0;
}

#amenities .icon-3 {
  width: 30px;
  height: 40px;
  background-position: -60px 0;
}

#amenities .icon-4 {
  width: 30px;
  height: 40px;
  background-position: -90px 0;
}

#amenities .icon-5 {
  width: 30px;
  height: 40px;
  background-position: -120px 0;
}

#amenities .icon-6 {
  width: 30px;
  height: 40px;
  background-position: -150px 0;
}

#amenities .label {
  display: none;
}

#amenities .pane-image {
  opacity: 0;
  transition: opacity .1s ease;
  position: absolute;
  display: block;
}

#amenities.a1 .icon-1::after,
#amenities.a1 .label-1,
#amenities.a1 .image-1 {
  display: block;
  opacity: 1;
}

#amenities.a2 .icon-2::after,
#amenities.a2 .label-2,
#amenities.a2 .image-2 {
  display: block;
  opacity: 1;
}

#amenities.a3 .icon-3::after,
#amenities.a3 .label-3,
#amenities.a3 .image-3 {
  display: block;
  opacity: 1;
}

#amenities.a4 .icon-4::after,
#amenities.a4 .label-4,
#amenities.a4 .image-4 {
  display: block;
  opacity: 1;
}

#amenities.a5 .icon-5::after,
#amenities.a5 .label-5,
#amenities.a5 .image-5 {
  display: block;
  opacity: 1;
}

#amenities.a6 .icon-6::after,
#amenities.a6 .label-6,
#amenities.a6 .image-6 {
  display: block;
  opacity: 1;
}

/* ---------- */

#info {
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
  padding-inline: 10px;
  gap: 2rem;
}

#info h2 {
  display: block;
  text-align: center;
  font-size: 36px;
  line-height: 1.1;
  color: var(--color-pink);
  padding-inline: 15px;
}

#info .cards {
  display: flex;
  flex-wrap: wrap; /* Allow cards to wrap to the next row */
  gap: 10px;
  justify-content: space-between;
}

#info .card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  width: calc(50% - 5px);
  flex-grow: 0;
  align-self: stretch;
  box-sizing: border-box;
}

#info .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

#info .icon {
  position: relative;
  display: inline-block;
  background-image: url("/media/icons.webp");
  background-size: auto 100%;
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
}

#info .icon-0 {
  background-position: -300px 0;
}

#info .icon-1 {
  background-position: -180px 0;
}

#info .icon-2 {
  background-position: -220px 0;
}

#info .icon-3 {
  background-position: -260px 0;
}

#info h3 {
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
}

#info span {
  display: block; 
}

#info .highlight {
  color: var(--color-green);
  font-size: 24px;
} 

#info .subtext {
  font-size: 16px;
  color: rgba(0,0,0,.5); 
} 

#info .link {
  display: block;
  font-size: 16px;
  color: var(--color-blue);
  padding: 15px 20px;
  border-top: 1px solid rgba(0,0,0,.12);
  margin-top: auto;
}

#infopage {
  display: flex;
  flex-direction: column;
}

#infopage h1 {
  font-size: 36px; 
  color: var(--color-blue);
  font-weight: 700;
  line-height: 1.1;
  box-sizing: border-box;
  display: block;
  margin-inline: 25px;
  margin-bottom: 3rem;
}

#infopage h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  display: block;
  margin-inline: 25px;
  margin-bottom: 1.5rem;
}

#infopage h3 {
  font-size: 18px;
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

#infopage p {
  font-size: 18px;
  font-weight: 400;
}

#infopage p.fine {
  font-size: 16px;
  color: rgba(0,0,0,.5); 
}

#infopage a.inline {
  font-size: 18px;
  color: var(--color-blue);
  text-decoration: underline;
}

#infopage .rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-inline: 15px;
  margin-bottom: 3rem;
}

#infopage .row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  background-color: rgba(0,0,0,.04); 
  border-radius: 8px;
  padding: 20px 16px;
}

#infopage .key,
#infopage .val {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

#infopage .val {
  gap: 12px;
}

/* ---------- */

@media (max-width: 600px) {

  .bg-icon {
    display: none;
  }

  .bg-icon.bg-ondas {
    display: block;
    top: -2%;
    left: 50%;
    transform: none; 
  }

  .bg-icon.bg-laranja {
    display: block;
    top: 105%;
    right: -15%;
  }

  main {
    padding-bottom: 100px;
  }

  #logo {
    height: 38px;
  }

  #cta {
    height: 84px;
    left: 15px;
  }

  header, section {
    max-width: 480px; 
  }

  section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  img.pane-image {
    border-radius: 16px;
  }

  #hero .pane {
    transform: none; 
    border-radius: 16px;
  }

  #hero .pane:hover {
    transform: none; 
  }

  #hero .copy {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    padding-inline: 10px;
    min-width: 0;
  }

  #hero .media {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    padding-inline: 10px;
    perspective: none;
    padding-inline: 10px;
  }

  #amenities .pane {
    transform: none; 
    border-radius: 16px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
  }

  #amenities .pane:hover {
    transform: none; 
  }

  #amenities .pane-image {
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
  }

  #amenities .copy {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    padding-inline: 10px;
    min-width: 0;
  }

  #amenities .labels {
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
  }

  #amenities .media { 
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    perspective: none;
    padding-inline: 10px;
  }

  #info {
    padding-top: 0;
  }

  #info .cards {
    flex-direction: column;
  }

  #info .card {
    width: 100%;
  }

  #infopage .rows {
    margin-inline: 10px;
  }
}
