@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root{
  --stat-value: green;
  --location-background: rgb(50, 50, 50);
  --location-stat: yellow;
}

*{box-sizing: border-box; padding: 0; margin: 0;}

body{
  font-family: "Roboto", sans-serif;
}

header{
  background-image: url('hero-image.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.nav-bar, .hero{
  z-index: 999;
}

.overlay{
  background-color: rgba(0, 0, 0, 0.2);
  /* position: absolute; */
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
}

.nav-inner{
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  height: 80px;
  margin: 0 auto;
}

.nav-bar{
  transition: all 0.2s ease;
  padding: 0 15px;
}

.nav-bar:hover{
  background-color: white;
}

.nav-bar:hover .hamburger-btn{
  color: black;
}

.nav-bar:hover .nav-inner a{
  color: black;
}

nav{
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 5px 15px;
  transition: all 0.5s;
}

nav a{
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

@keyframes slideUp{
  0%{
    transform: translateY(30px);
    opacity: 0;
  }
  100%{
    transform: translateY(0);
    opacity: 1;
  }
}

.logo{
  margin-right: 20px;
  width: 100px;
  margin: auto 0;
}

.logo img{
  width: 100%;
}

nav a:nth-child(1){

  animation: slideUp 0.5s ease 0.5s both;
}

nav a:nth-child(2){

  animation: slideUp 0.5s ease 1s both;
}

nav a:nth-child(3){

  animation: slideUp 0.5s ease 1.5s both;
}
nav a:nth-child(4){

  animation: slideUp 0.5s ease 2s both;
}
nav a:nth-child(5){

  animation: slideUp 0.5s ease 2.5s both;
}

.hero {
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.hero-text{
  max-width: 600px;
}

h1{
  font-size: 4.5rem;
  margin-bottom: 20px;
  color: white;
  /* animation: slideUp 1s ease 0.8s both; */
}

.hero-text a{
  text-decoration: none;
  font-size: 1.5rem;
  color: white;
}

.hamburger-btn{
  font-size: 3rem;
  background: 0;
  cursor: pointer;
  color: white;
  border: 0;
  display: none;
  animation: slideUp 1s ease 0.5s both;
}

@media screen and (max-width: 800px){
  nav{
    display: none;
  }

  nav.open{
    display: flex;
    position: fixed;
    flex-direction: column;
    padding: 20px;
    inset: 80px 0 0;
    background: white;
    z-index: 999;
  }
  nav.open a{
    color: black;
  }
  .hamburger-btn{
    display: block;
  }
}

.about-section{
  max-width: 1200px;
  width: 100%;
  padding: 75px 10px;
  margin: 0 auto;
  margin-bottom: 20px;
}

.section-name{
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 30px;
}

h2{
  font-size: 2.5rem;
}

.about-text h2{
  margin-bottom: 75px;
}

.about-text-container{
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.about-text p{
  margin-bottom: 1.5rem;
  /* font-size: 0.9rem; */
  line-height: 25px;
}

.company-stats{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 50px;
  gap: 50px;
}
.stat-value{
  font-size: 2rem;
  font-weight: 900;
  color: var(--stat-value);
}
.stat-name{
  font-size: 1.5rem;
  font-weight: 700;
}
.button{
  padding: 15px 30px;
  font-weight: 400;
  border: 2px solid var(--stat-value);
  text-decoration: none;
  color: var(--stat-value);
  transition: all 0.3s;
}
.button:hover{
  background-color: var(--stat-value);
  color: white;
}
.location-inner{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 150px 10px;
}
.location-section{
  background-color: var(--location-background);
}
.location-section .section-name{
  color: lightgrey;
}
.location-header{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  /* color: #f0f0f0; */
  color: white;
  margin-bottom: 100px;
}
.location-header p{
  line-height: 25px;
}
.map-container{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 100px;
}
.map-image img{
  width: 100%;
}
.map-stats{
  display: flex;
  flex-direction: column;
  gap: 70px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.map-stat-value{
  color: var(--location-stat);
  font-size: 4rem;
  font-weight: 900;
}
.map-stat-name{
  font-size: 1.2rem;
  color: white;
}
.map-button{
  border: 0;
  background-color: white;
  color: var(--stat-value);
}
.map-button-description{
  margin-top: 25px;
  color: white;
  font-size: 0.9rem;
}
.work-section{
  padding: 100px 0;
}
.work-inner{
  max-width: 1200px;
  padding: 0 10px;
  margin: 0 auto;
}
.work-text-container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-block: 100px;
  gap: 100px;
}
.work-image img{
  width: 100%;
}
.work-text{
  max-width: 460px;
}
.work-text p{
  margin-top: 30px;
  line-height: 25px;
  margin-bottom: 50px;
}
.owner-section{
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-inline: 10px;
}
.owner-section .location-header{
  color: black;
}
.owner-container{
  display: grid;
  grid-template-columns: 3fr 1fr;
}
.owner-image img{
  width: 100%;
}
.owner-text{
  display: flex;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 100px;
  justify-content: center;
  padding-right: 0;
  background-color: rgb(225, 225, 225);
  padding-inline: 20px;
}
h3{
  font-size: 2rem;
  margin-bottom: 10px;
}
.owner-text p{
  margin-bottom: 30px;
  max-width: 600px;
}
.contact-section{
  background-color: rgb(50, 50, 50);
  color: white;
  margin-top: 70px;
}
.contact-inner h3{
  margin-bottom: 50px;
}
.contact-inner{
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 10px;
}
.contact-inner div div, input{
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-grid input{
  padding: 10px;
}

.contact-section textarea{
  width: 100%;
  height: 100px;
  font-size: 1.1rem;
  padding: 10px;
  font-family: "Roboto", sans-serif;
}

footer{
  padding: 70px 10px;
}

.footer-inner{
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.row-1{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.row-1 ul{
  display: flex;
  list-style-type: none;
  gap: 30px;
}
.row-1 a{
  text-decoration: none;
  color: blue;
}
.social-media{
  display: flex;
  gap: 20px;
}
.social-media img{
  width: 40px;
}

footer img{
  display: flex;
  margin: 0 auto;
  margin-top: 20px;
}

@media screen and (max-width: 700px){
  .about-text-container{
    grid-template-columns: 1fr;
  }
  .stat-value{
    font-size: 1.5rem;
  }
  .stat-name{
    font-size: 1rem;
  }

  .location-header, .map-container, .work-text-container, .owner-container, .contact-grid{
    grid-template-columns: 1fr;
    padding-inline: 10px;
  }
  .contact-grid,.location-header,.owner-container{
    padding-inline: 0;
  }
  .map-image{
    max-height: 500px;
    overflow: hidden;
  }
  .map-stats{
    flex-direction: row;
    justify-content: center;
    text-align: center;
  }
  .row-1, .row-1 ul{
    flex-wrap: wrap;
    font-size: 0.9rem;
  }
  .row-1{
    padding-inline: 20px;
    gap: 30px;
  }
}
