:root {
  --black: #000;
  --green: #1e523c;
  --white: #f0efed;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "PT Sans";
}

.wrapper {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 20px;
  /* background-color: red; */
}

html {
  background-color: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

li {
  list-style: none;
}

.green-btn {
  max-width: fit-content;
  color: var(--white);
  background-color: var(--green);
  padding: 10px 25px;
  border-radius: 100px;
}

.white-btn {
  color: var(--green);
  background-color: var(--white);
  padding: 10px 25px;
  border-radius: 100px;
  max-width: fit-content;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "PT Sans Narrow";
}

p {
  line-height: 1.5;
  font-family: "PT Sans";
}

header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 20px;
}

header ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  /* background-color: green; */
}

.close,
.menu {
  display: none;
}

section {
  padding-top: 30px;
  padding-bottom: 20px;
}

.hero-section {
  color: var(--white);
  padding-top: 20px;
}

.hero-section .hero-img {
  position: relative;
  height: 80vh;
  min-height: 450px;
  padding: 20px 20px 25px 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  color: var(--white);
}

.hero-section .slider {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  height: 100%;
  width: 100%;             /* 👈 important: don’t hardcode 300% */
  transition: transform 1s ease-in-out;
  z-index: 0;
}

.hero-section .slide {
  flex: 0 0 100%;          /* 👈 each slide = 100% of hero width */
  height: 100%;            /* 👈 full height of hero */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-color: rgba(0, 0, 0, 0.3);  
  background-blend-mode: darken;
}

/* text sits above slider */
.hero-section .hero-img h1,
.hero-section .hero-img p {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 48px;
  max-width: 20ch;
  margin-bottom: 10px;
  line-height: 1.35;
}

.hero-section p {
  max-width: 63ch;
}

.about-section .wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.about-section .wrapper h2 {
  flex: 1;
  max-width: 30ch;
  font-size: 32px;
  color: var(--green);
}

.about-us {
  flex: 1;
  max-width: 65ch;

  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-us .green-btn {
  max-width: fit-content;
}

.what-we-do .wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.what-we-do .wrapper h4 {
  font-size: 24px;
  color: var(--green);
}

.what-we-do .wrapper p {
  font-size: 16px;
  margin-bottom: 10px;
}

.what-we-do .wrapper > a {
  margin-inline: auto;
  margin-top: 10px;
}

.what-we-do .cards-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.what-we-do .cards-container .card {
  flex: 1 0 320px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  background-color: var(--green);
  color: var(--white);
  padding: 25px 20px;
  border-radius: 16px;
}

.what-we-do .cards-container .card a {
  font-size: 14px;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.cards-container .card p {
  font-size: 16px;
}

.cards-container .card h3 {
  font-size: 18px;
}

.cards-container .card img {
  width: 40px;
  max-width: fit-content;
  aspect-ratio: 1/1;
}

.logos {
  display: flex;
  justify-content: space-around;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.logos img {
  flex: 1 0 300px;
  max-width: fit-content;
  background-color: aquamarine;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;

  margin-top: 16px;
}

.img-grid img {
  width: 100%;
  aspect-ratio: 1.33/1;

  border-radius: 12px;
  object-fit: cover;
}

.read-more strong {
  font-size: 18px;
}

.read-more p {
  max-width: 100ch;
  margin-inline: auto;
}

.read-more .wrapper {
  text-align: center;
}

.read-more .wrapper .blog-container {
  background-color: var(--green);
  padding: 30px 20px;
  color: var(--white);
  border-radius: 16px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

footer {
  background-color: var(--green);
  color: var(--white);
  margin-top: 20px;
  padding-block: 30px;
}

footer .wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

footer .wrapper * {
  flex: 1 0 250px;
  /* background-color: red; */

}

footer img {
  width: 100px;
  height: fit-content;
}

footer strong {
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

footer li {
  margin-bottom: 3px;
}

@media only screen and (max-width: 840px) {
  .about-section .wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
  }

  .about-section .wrapper h2 {
    flex: 1;
    max-width: 30ch;
    flex-basis: 350px;
    font-size: 32px;
    color: var(--green);
  }

  .about-us {
    flex: 1;
    flex-basis: 300px;
    max-width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

@media only screen and (max-width: 840px) {
  .close,
  .menu {
    display: block;
  }

  header nav {
    position: fixed;
    padding: 30px 25px 30px 25px;
    background-color: var(--green);
    top: 0;
    height: 100vh;
    width: 100vw;
    z-index: 100;
    right: -100%;
    color: #000;
    transition: right 350ms linear;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  nav img {
    max-width: fit-content;
  }

  nav .close {
    margin-left: auto;
  }

  header ul {
    color: var(--white);
    flex-direction: column;
    align-items: center;
    height: 50%;
  }

  header ul .green-btn {
    color: var(--green);
    background-color: var(--white);
  }

  .open-menu {
    right: 0%;
  }

  .hero-section h1 {
    font-size: 32px;
  }
}
