@import url("https://fonts.googleapis.com/css?family=Roboto+Slab|Lato:300,400,700");

:root {
  --paper: #fdfcfc;
  --soft: #f5f4f4;
  --ink: #3f3f4a;
  --blue: #83d0f5;
  --blue-dark: #009fe3;
  --green: #95c11f;
  --green-dark: #779a19;
  --shadow-blue: rgba(5, 74, 107, .4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Lato", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2 {
  font-family: "Roboto Slab", serif;
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 21px;
}

h1 {
  font-size: 42px;
}

h2 {
  font-size: 38px;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  line-height: 1.5;
  list-style: square inside;
  margin-bottom: 6px;
}

.button,
button {
  background: rgba(131, 208, 245, .7);
  border: 0;
  border-radius: 3px;
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-family: "Roboto Slab", serif;
  min-height: 42px;
  padding: 7px 14px;
}

.button.dark {
  background: rgba(0, 0, 0, .3);
}

.hero {
  height: 75vh;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.nav {
  align-items: flex-start;
  background: linear-gradient(rgba(253, 252, 252, .42), rgba(253, 252, 252, 0));
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 34%) 1fr auto;
  left: 0;
  padding: 0 28px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
}

.logo {
  background: linear-gradient(rgba(253, 252, 252, .45), rgba(253, 252, 252, .1));
  border-radius: 0 0 6px 6px;
  box-shadow: 0 28px 56px -28px rgba(73, 127, 153, .3);
  display: flex;
  justify-content: center;
}

.logo img {
  height: 280px;
  padding: 18px;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  line-height: 42px;
  list-style: none;
  margin: 26px 0 0;
}

.menu li {
  list-style: none;
  margin: 0;
}

.menu a,
.langs a {
  background: rgba(131, 208, 245, .78);
  border-radius: 3px;
  color: var(--paper);
  display: block;
  font-family: "Roboto Slab", serif;
  line-height: 42px;
  padding: 0 14px;
}

.langs {
  display: flex;
  gap: 7px;
  margin-top: 26px;
}

.langs a {
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 0 8px;
}

.menu-button {
  align-items: center;
  display: none;
  gap: 9px;
  margin-top: 20px;
}

.menu-button .menu-icon span {
  background: currentColor;
  display: block;
  height: 2px;
  width: 16px;
}

.menu-button .menu-icon {
  display: grid;
  gap: 4px;
}

.hero-slider,
.hero-slider img {
  height: 100%;
  width: 100%;
}

.hero-slider {
  background: #333;
}

.hero-slider img {
  inset: 0;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transition: opacity 1.8s ease;
}

.hero-slider img.is-active {
  opacity: 1;
}

.intro {
  padding: 28px;
}

.bg-green {
  background: var(--green);
  color: var(--paper);
}

.houses {
  background: var(--soft);
  padding: 28px 0;
}

.house {
  background: #fff;
  box-shadow: 0 25px 50px -25px var(--shadow-blue);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0 56px;
  min-height: 392px;
  position: relative;
}

.house h2 {
  background: rgba(131, 208, 245, .82);
  border-radius: 0 0 3px 0;
  color: var(--paper);
  left: 0;
  line-height: 56px;
  margin: 0;
  padding: 0 14px;
  position: absolute;
  top: 0;
  z-index: 2;
}

.gallery {
  background: #222;
  min-height: 392px;
  overflow: hidden;
  position: relative;
}

.gallery::after {
  background: linear-gradient(transparent 45%, rgba(37, 48, 8, .32));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.gallery img {
  height: 392px;
  object-fit: cover;
  width: 100%;
}

.gallery button {
  align-items: center;
  background: rgba(0, 0, 0, .28);
  border-radius: 0;
  bottom: 0;
  font-size: 36px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 0;
  width: 56px;
  z-index: 3;
}

.gallery .prev {
  left: 0;
}

.gallery .next {
  right: 0;
}

.gallery .dots {
  bottom: 18px;
  display: flex;
  gap: 5px;
  justify-content: center;
  left: 72px;
  position: absolute;
  right: 72px;
  z-index: 3;
}

.gallery .dots button {
  background: rgba(253, 252, 252, .6);
  border-radius: 50%;
  height: 10px;
  min-height: 0;
  padding: 0;
  position: static;
  width: 10px;
}

.gallery .dots button.is-active {
  background: var(--paper);
}

.house-info {
  display: grid;
  grid-template-rows: 1fr 168px;
  min-height: 392px;
}

.description {
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: block;
  font-family: "Lato", sans-serif;
  min-height: 224px;
  overflow: hidden;
  padding: 84px 28px 28px;
  position: relative;
  text-align: left;
}

.description::after {
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  bottom: 0;
  content: "Ver Mais";
  display: grid;
  height: 94px;
  left: 0;
  place-items: end center;
  padding-bottom: 18px;
  position: absolute;
  right: 0;
}

.description span {
  display: block;
  margin-bottom: 12px;
}

.details {
  display: grid;
  grid-template-columns: 7fr 5fr;
}

.amenities {
  display: grid;
  grid-auto-rows: 42px;
  grid-template-columns: repeat(4, 1fr);
}

.amenities span {
  align-items: center;
  background: var(--blue);
  color: var(--paper);
  display: flex;
  font-size: 12px;
  gap: 5px;
  justify-content: center;
  min-width: 0;
  padding: 3px;
  text-align: center;
  transition: background .2s ease;
}

.amenities span:hover {
  background: var(--blue-dark);
}

.amenities strong {
  font-weight: 700;
}

.amenities img {
  height: 24px;
  opacity: .85;
  width: auto;
}

iframe {
  border: 0;
  height: 100%;
  min-height: 168px;
  width: 100%;
}

.solar {
  overflow: hidden;
  padding: 28px;
  text-align: center;
}

.solar img {
  box-shadow: 0 28px 56px -28px rgba(98, 134, 0, .8);
  margin: 28px auto 0;
  max-width: 900px;
  width: 100%;
}

.footer {
  background: var(--green);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.footer section {
  padding: 56px 28px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-form {
  background: var(--green-dark);
  margin-top: 14px;
  padding: 21px;
}

.booking-form label {
  display: block;
  margin-bottom: 10px;
}

.booking-form input,
.booking-form textarea {
  background: rgba(0, 0, 0, .3);
  border: 0;
  border-radius: 3px;
  color: var(--paper);
  display: block;
  font: inherit;
  margin-top: 4px;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.modal {
  background: rgba(253, 252, 252, .86);
  display: grid;
  inset: 0;
  opacity: 0;
  place-items: start center;
  pointer-events: none;
  position: fixed;
  transition: opacity .25s ease, visibility .25s ease;
  visibility: hidden;
  z-index: 50;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-panel {
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
  margin: 8vh auto;
  max-height: 84vh;
  max-width: 860px;
  overflow: auto;
  transform: translateY(28px);
  transition: transform .35s ease;
  width: min(92vw, 860px);
}

.modal.is-open .modal-panel {
  transform: translateY(0);
}

.modal-panel h2 {
  background: rgba(131, 208, 245, .82);
  color: var(--paper);
  margin: 0;
  padding: 14px 28px;
}

.modal-content {
  padding: 28px;
}

.modal-close {
  background: var(--green);
  border-radius: 0;
  float: right;
}

@media (max-width: 900px) {
  body {
    font-size: 17px;
  }

  .hero {
    height: 100vh;
    min-height: 440px;
  }

  .nav {
    align-items: center;
    background: rgba(253, 252, 252, .45);
    grid-template-columns: 1fr auto auto;
    padding: 0 14px 10px;
  }

  .logo {
    background: transparent;
    box-shadow: none;
    justify-content: flex-start;
  }

  .logo img {
    height: 140px;
    padding: 10px 0;
  }

  .menu-button {
    justify-content: center;
    display: inline-flex;
    min-height: 42px;
    padding: 7px 12px;
  }

  .menu {
    background: var(--blue);
    display: block;
    grid-column: 1 / -1;
    margin: 0 -14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }

  .menu.is-open {
    max-height: 340px;
  }

  .menu a {
    border-radius: 0;
  }

  .langs {
    margin: 0;
  }

  .house {
    display: block;
  }

  .house-info {
    grid-template-rows: auto auto;
  }

  .description {
    min-height: 220px;
    padding-top: 70px;
  }

  .details,
  .footer {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  h1 {
    font-size: 34px;
  }

  h2,
  .house h2 {
    font-size: 28px;
  }

  .nav {
    gap: 8px;
    grid-template-columns: 1fr auto auto;
  }

  .langs {
    justify-content: flex-end;
  }

  .langs a {
    line-height: 36px;
    padding: 0 7px;
  }

  .gallery,
  .gallery img {
    min-height: 360px;
    height: 360px;
  }

  .amenities {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer section,
  .intro,
  .solar {
    padding-left: 14px;
    padding-right: 14px;
  }
}
