/* Global Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Ruhl';
  src: url('fonts/FrankRuhlLibre-Regular.ttf');
}

@font-face {
  font-family: 'Ruhl Medium';
  src: url('fonts/FrankRuhlLibre-Medium.ttf');
}

@font-face {
  font-family: 'Vibes';
  src: url('fonts/GreatVibes-Regular.ttf');
}

html {
  --header1: calc(2rem + 1vw);
  --header2: calc(3.5rem + 1vw);
  --header3: calc(3rem + 1vw);
  --header4: calc(2.4rem + 1vw);
  --text: calc(1.5rem + 1vw);
  --big: calc(6rem + 1vw);
  --background-color: #414141;
  --gray-text: #525252;
  --special-color: #906272;
  font-size: 62.5%;
  scroll-behavior: smooth;
}

h1 {
  font-size: var(--header1);
  font-family: 'Vibes', sans-serif;
}

h2 {
  font-size: var(--header2);
}

h3 {
  font-size: var(--header3);
}

h4,
h5 {
  font-size: var(--header4);
}

ul {
  list-style: none;
}

label,
li,
button,
input,
a,
p {
  font-size: var(--text);
}

a {
  text-decoration: none;
  color: #000;
}

.flex {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

button {
  background: #4c6e97;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.8rem;
  padding: 2rem 6rem;
  transition: background 0.15s ease-in-out;
}

button:hover {
  background: #3b587c;
}

button:focus {
  background: #2c3f57;
}

body {
  animation: opening 1s ease-in-out;
  font-family: 'Ruhl', sans-serif;
}

/*  Nav Section */

.main-head {
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.burger,
.menu-check {
  display: none;
}

nav {
  align-items: center;
  display: flex;
  margin: auto;
  min-height: 10vh;
  padding: 2rem 0;
  width: 90%;
}

.nav-links {
  display: flex;
  flex: 1 1 20rem;
  justify-content: space-around;
}

#logo {
  flex: 1 1 20rem;
}

/*  Hero Section */

.hero {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 0 auto;
  min-height: 90vh;
  overflow: hidden;
  width: 95%;
}

.hero-introduction {
  flex: 2 1 40rem;
  text-align: center;
}

.hero-introduction h2 {
  padding-top: 3rem;
}

.hero-introduction p {
  color: var(--gray-text);
  padding: 5rem 10rem;
}

.hero-introduction a {
  border: 3px solid #000;
  color: #000;
  margin-bottom: 4rem;
  padding: 2rem 8rem;
}

.hero-images {
  background: linear-gradient(#dad8dd, #dad1d4);
  flex: 1 1 40rem;
  position: relative;
  z-index: 1;
}

.hero-elena {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.plant {
  animation: plant-entrance 1.5s ease-in-out 0.5s forwards, plant-shake 2.5s infinite ease alternate-reverse 2s;
  bottom: 0;
  left: -10%;
  max-height: 60vh;
  position: absolute;
  transform: translateY(10%) rotateZ(-10deg) rotateX(-90deg);
  transform-origin: bottom;
  z-index: -1;
}

.plant-2 {
  left: 40%;
}

/*  About Section */

.about {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

.about-image {
  flex: 1 1 40rem;
  max-height: 100vh;
  position: relative;
}

.about-image h5 {
  position: absolute;
  letter-spacing: 2rem;
  left: 50%;
  top: 20%;
  transform: translate(-50%, -20%);
}

.about-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.about-text {
  background: var(--background-color);
  color: #fff;
  flex: 2 1 40rem;
  justify-content: space-around;
  padding: 3rem 8rem;
}

.about-text h2 {
  font-family: 'Vibes';
}

.about-text h3 {
  font-family: 'Ruhl Medium';
  padding: 2rem 0;
}

/* Gallery Section */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 50vh 50vh;
  min-height: 100vh;
  position: relative;
}

.gallery-head {
  background: rgba(65, 65, 65, 0.8);
  color: #fff;
  left: 50%;
  padding: 5rem 10rem;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
}

.gallery-head h2 {
  padding-bottom: 1.5rem;
}

.gallery img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-1 {
  grid-column: 1/3;
  grid-row: 1/2;
}

.gallery-2 {
  grid-column: 3/4;
  grid-row: 1/3;
}

.gallery-3 {
  grid-column: 1/2;
  grid-row: 2/3;
}

.gallery-4 {
  grid-column: 2/3;
  grid-row: 2/3;
}

/* Contact Section */

.contact {
  display: flex;
  flex-wrap: wrap;
  min-height: 90vh;
}

.contact img {
  flex: 1 1 40rem;
}

.form-wrapper {
  flex: 3 1 40rem;
}

.form-wrapper h2 {
  margin: 5rem 0;
}

.form-wrapper span {
  color: var(--special-color);
  font-size: var(--big);
}

.form-wrapper label {
  display: block;
}

.form-wrapper input {
  background: var(--background-color);
  border: none;
  color: #fff;
  display: block;
  font-family: 'Ruhl';
  margin: 3rem 0;
  padding: 1rem;
}

.form-wrapper button {
  background: var(--special-color);
  border: none;
  display: block;
  color: #fff;
  padding: 1rem 8rem;
  width: 100%;
}

/*  Footer Section */

footer {
  align-items: center;
  background: var(--background-color);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  padding: 3rem 5%;
}

footer h4 {
  flex: 3 1 40rem;
  font-size: calc(1.4rem + 1vw);
}

footer ul {
  align-items: center;
  display: flex;
  flex: 1 1 40rem;
  justify-content: space-between;
}

/*  Animations */

@keyframes opening {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes plant-entrance {
  from {
    transform: translateY(10%) rotateZ(-10deg) rotateX(90deg);
  }
  to {
    transform: translateY(0%) rotateZ(0deg) rotateX(0deg);
  }
}

@keyframes plant-shake {
  from {
    transform: rotate(-5deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* Media Query */

@media screen and (max-width: 842px) {
  html {
    font-size: 45%;
  }

  .hero {
    width: 100%;
  }

  .hero-introduction p {
    padding: 5rem 3rem;
  }

  .about-text {
    padding: 3rem 3rem;
  }

  .about-text h3 {
    padding: 1rem 0;
  }

  .about-text div {
    padding-top: 2rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  }

  .gallery-head {
    display: none;
  }

  .gallery img {
    grid-row: auto;
    grid-column: auto;
  }

  footer h4 {
    font-weight: 500;
    order: 2;
    padding-top: 2rem;
    text-align: center;
  }

  footer ul {
    order: 1;
  }

  /* Burger Menu */

  .burger {
    cursor: pointer;
    display: block;
    position: relative;
  }

  .burger span {
    background: var(--gray-text);
    display: block;
    margin: 0.5rem 0;
    padding: 0.2rem 2rem;
    transition: all 0.12s ease-in-out;
  }

  .nav-links {
    align-items: center;
    background: var(--background-color);
    flex-direction: column;
    height: 100%;
    left: 100%;
    position: fixed;
    top: 0;
    transition: transform 1s ease-in-out;
    width: 100%;
  }

  .nav-links a {
    color: #fff;
    font-size: var(--header3);
    text-decoration: underline;
  }

  .nav-open {
    transform: translateX(-100%);
  }

  .toggle .line-1 {
    background: #fff;
    transform: rotateZ(45deg) translateY(300%);
  }

  .toggle .line-2 {
    opacity: 0;
  }

  .toggle .line-3 {
    background: #fff;
    transform: rotateZ(-45deg) translateY(-300%);
  }
}

@media screen and (max-width: 1058px) {
  .contact img {
    display: none;
  }
}

@media screen and (min-width: 1700px) {
  html {
    --header1: 3rem;
    --header2: 5rem;
    --header3: 4rem;
    --header4: 3rem;
    --text: 3rem;
    --big: 8rem;
  }
}
