*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

:root {
  --background-dark: #6d6e71;
  --light: #ffffff;
  --brand: #13a89e;
  --dark-text: #4e4e4e;

  --main-width: 1240px;

  --heading-font: 'League Spartan', sans-serif;
  --heading-font-weight: 600;

  --h1-size: 80px;
  --h2-size: 50px;
  --h3-size: 40px;
  --h4-size: 35px;
  --h5-size: 30px;
  --small-text-size: 25px;
  --button-text-size: 30px;

  --header-height: 120px;

  --logo-width: 90px;

  --hero-height: 620px;
}

header {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-dark);
  height: var(--header-height);
  padding: 0 150px;
  border-bottom: var(--brand) 3px solid;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin-bottom: 40px;
}

.logo {
  width: var(--logo-width);
  box-shadow: none;
  border-radius: none;
}

.links {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.links li a {
  margin-right: 20px;
  color: #ffffff;
  text-decoration: none;
}

.links li a:hover {
  text-decoration: underline;
}

.links li a.active {
  text-decoration: underline;
  font-weight: 600;
}

.hamburger {
  display: none;
}

.hamburger .line {
  width: 30px;
  height: 3px;
  background-color: var(--light);
  margin: 5px;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open .line:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open .line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .line:last-child {
  transform: rotate(-45deg) translate(7px, -7px);
}

h1 {
  color: var(--dark-text);
  font-weight: var(--heading-font-weight);
  font-size: var(--h1-size);
  font-family: var(--heading-font);
  margin-bottom: 40px;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}

h2 {
  color: var(--dark-text);
  font-size: var(--h2-size);
  font-family: var(--heading-font);
}

h3 {
  color: var(--dark-text);
  font-size: var(--h3-size);
  font-family: var(--heading-font);
}

h4 {
  color: var(--dark-text);
  font-size: var(--h4-size);
  font-family: var(--heading-font);
}

h5 {
  color: var(--dark-text);
  font-size: var(--h5-size);
  font-family: var(--heading-font);
}

p,
li {
  font-size: var(--small-text-size);
  color: var(--dark-text);
}

a {
  font-size: var(--small-text-size);
}

section {
  width: var(--main-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

section.padded {
  padding: 0 100px;
}

section.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.container {
  padding: 32px 36px;
  border: 3px solid var(--background-dark);
  border-radius: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

a.button {
  color: var(--light);
  background-color: var(--brand);
  border: none;
  border-radius: 5px;
  font-size: var(--button-text-size);
  padding: 10px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  text-align: center;
}

a.button:hover {
  cursor: pointer;
  background-color: #27968e;
  text-decoration: underline;
}

.heading {
  display: inline-block;
}

.divisor {
  height: 2px;
  width: 600px;
  background-color: var(--brand);
  margin: 70px auto;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.4);
}

img {
  border-radius: 15px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}



.hero {
  margin-top: 40px;
  height: var(--hero-height);
  object-fit: cover;
}

.actions h2 {
  margin-bottom: 40px;
  white-space: nowrap;
}

.light-divisor {
  height: 1px;
  background-color: var(--dark-text);
  margin: 20px 0;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.4);
}

.grid .light-divisor {
  grid-column: span 12;
}

footer {
  background-color: var(--background-dark);
  color: var(--light);
  text-align: center;
  padding: 20px 100px;
  display: flex;
  justify-content: space-between;
  border-top: var(--brand) 3px solid;
  margin-top: 40px;
}

footer p,
footer h2 {
  color: var(--light);
}

.socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.socials .links {
  flex-direction: column;
}

.socials li a {
  margin-right: 0;
}

.socials ul {
  display: flex;
  list-style: none;
  align-items: flex-start;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.container .divisor {
  width: 100%;
}

footer li a {
  display: flex;
}

footer li img {
  box-shadow: none;
  fill: var(--light)
}

@media screen and (max-width: 1440px) {
  :root {
    --main-width: 974px;

    --hero-height: 530px;

    --h1-size: 65px;
    --h2-size: 40px;
    --h3-size: 35px;
    --h4-size: 30px;
    --h5-size: 25px;
    --small-text-size: 20px;
    --button-text-size: 25px;
  }

  header {
    padding: 0 100px;
    height: 90px;
  }

  .logo {
    width: 70px;
  }

  footer {
    padding: 20px 100px;
  }

  .divisor {
    width: 400px;
  }

  h1 {
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 1024px) {
  :root {
    --main-width: 768px;

    --hero-height: 350px;

    --h1-size: 50px;
    --h2-size: 35px;
    --h3-size: 30px;
    --h4-size: 25px;
    --h5-size: 20px;
    --small-text-size: 15px;
    --button-text-size: 20px;
  }

  header {
    padding: 0 50px;
  }

  footer {
    padding: 20px 50px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --main-width: 425px;
    --hero-height: 300px;
  }

  section.padded {
    padding: 0;
  }

  header {
    padding: 0 25px;
  }

  footer {
    padding: 20px 25px;
  }

  .divisor {
    width: 300px;
  }

  h1 {
    margin-bottom: 5px; 
  }
}

@media screen and (max-width: 425px) {
  :root {
    --main-width: 350px;

    --hero-height: 200px;

    --h1-size: 35px;
  }

  header {
    padding: 0 20px;
    border-radius: 0;
  }

  header .links {
    position: absolute;
    top: calc(100% + 2px);
    flex-direction: column;
    max-height: 0px;
    width: 100vw; 
    left: 0;
    overflow: hidden;
    transition: all 0.3s;
  }

  header .links.open {
    max-height: 175px;
  }

  header .links a {
    display: block;
    background-color: var(--background-dark);
    padding: 10px 20px;
    border-bottom: 3px solid var(--brand);
    width: 100%;
  }

  header .links li:first-child a {
    border-top: 1px solid var(--brand);
  }

  header .links li:last-child a {
    border-bottom: 3px solid var(--brand);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  header .links a.active {
    text-decoration: none;
  }

  header .hamburger {
    display: block;
  }

  footer {
    padding: 20px 20px;
  }

  .divisor {
    width: 200px;
  }
}

@media screen and (max-width: 320px) {
  :root {
    --main-width: 280px;

    --hero-height: 200px;
  }

  .divisor {
    margin: 40px auto;
  }

  .contact {
    text-align: start;
  }

  footer {
    padding: 20px 10px;
  }

  section {
    padding: 0 10px;
  }

  .container {
    padding: 20px;
  }
}


