:root {
  --section-padding: clamp(80px, 10vw, 150px);
  --h1: clamp(2.5rem, 1.776rem + 2.9703vw, 4.375rem);
  /* --h3: clamp(1.875rem, 1.6337rem + 0.9901vw, 2.5rem); */
  --h3: clamp(1.75rem, 1.4604rem + 1.1881vw, 2.5rem);
  --p: clamp(1rem, 0.9517rem + 0.198vw, 1.125rem);
}

/* reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

a {
  text-decoration: none;
}

img {
  display: block;
}

h1,
h2,
h3,
h4,
h5 {
  text-wrap: pretty;
}

p {
  text-wrap: pretty;
}

/* component: blocks of code that we reuse */
.container {
  /* border: 4px solid red; */
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.btn {
  /* border: 2px solid green; */
  background: #000000;
  color: #ffffff;
  text-transform: capitalize;
  padding: 16px 24px;
  font-size: 18px;
  display: inline-flex;
  justify-content: center;
  column-gap: 20px;
  align-items: center;
}

.btn i {
  font-size: 15px;
}

.btn--white {
  background: #ffffff;
  color: #000000;
  padding: 8px 24px;
}

.btn--white i {
  font-size: 10px;
  color: black;
}

.section-title {
  font-weight: 400;
  text-transform: uppercase;
  /* font-size: 18px; */
  font-size: var(--p);
  text-align: center;
  margin-bottom: 30px;
}

/* header */
.header {
  /* border: 5px solid blue; */
  height: 80px;
}

.header .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
}

.nav {
  display: flex;
  column-gap: 32px;
}

.nav__link {
  color: #ffffff;
  text-transform: capitalize;
  font-size: 20px;
}

#nav-check,
.nav-btn {
  display: none;
}

/* header media queries */
@media (max-width: 768px) {
  .nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-btn i {
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
  }

  .nav {
    position: fixed;
    flex-direction: column;
    row-gap: 32px;
    top: 80px;
    /* right: 0; */
    right: -100%;
    transition: right 0.3s ease-in-out;
    left: auto;
    background: lightblue;
    padding: 32px;
    width: 80%;
    height: calc(100vh - 80px);
  }

  .nav__link {
    font-size: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0 20px;
    width: 100%;
    text-align: center;
  }

  .nav__link:hover {
    background: #5e99ad;
  }

  #nav-check:checked ~ .nav {
    right: 0;
    /*The CSS selector #nav-check:checked ~ .nav {  } is using a combination of the :checked pseudo-class and the general sibling combinator ~ to apply styles dynamically based on the state of a checkbox input.

Here’s a breakdown:

#nav-check targets an element with the ID nav-check, which is typically an <input type="checkbox">.

:checked is a pseudo-class that matches the input when it is in the checked (selected) state.

~ .nav means "any sibling element with the class nav that comes after the input in the HTML".

What this does:
When the checkbox with ID nav-check is checked, any element with the class nav that is a sibling (after the checkbox in the DOM) will have the specified CSS rules applied to it.

Common use case:
This pattern is often used for responsive navigation menus. The checkbox acts as a toggle (often hidden), and when it’s checked (for example, when a user clicks a hamburger icon), the .nav menu is shown or styled differently.*/
  }

  .header .btn {
    margin-left: auto;
    margin-right: 32px;
  }
}

/* hero */
.hero {
  /* border: 5px solid green; */
  background: linear-gradient(
      to right bottom,
      rgba(255, 255, 255, 0.01),
      rgba(255, 255, 255, 0.3),
      rgba(255, 255, 255, 0.01)
    ),
    url("../img/hero.jpg");
  padding: 300px 0;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: -80px;
}

.hero h1 {
  /* font-size: 70px; */
  font-size: var(--h1);
  margin-bottom: (16px, 10vw, 32px);
}

.hero p {
  /* border: 5px solid red; */
  /* font-size: 18px; */
  font-size: var(--p);
  line-height: 1.6;
  margin-bottom: 32px;
  text-wrap: balance;
  /* padding-right: 60%; */
  max-width: 50%;
}

/* hero media queries */
@media (max-width: 768px) {
  .hero {
    height: 100vh;
    padding-block: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* .hero .container {
    border: 4px solid red;
  } */

  .hero p {
    max-width: 80%;
  }
}
@media (max-width: 400px) {
  .hero p {
    max-width: 95%;
  }
}

/* Our Story */
.story {
  /* border: 10px solid purple; */
  /* padding-top: 150px;
  padding-bottom: 150px; */
  padding-block: var(--section-padding);

  /* margin-bottom: 50px; */
}

.story__top {
  margin-bottom: 100px;
}

/* .story__top h2 {
  font-weight: 400;
  text-transform: uppercase;
  font-size: 18px;
} */

.story__top p {
  text-align: center;
  font-weight: bold;
  /* font-size: 22px; */
  font-size: clamp(1.125rem, 1.0285rem + 0.396vw, 1.375rem);
  text-wrap: balance;
  padding-left: 5%;
  padding-right: 5%;
  line-height: 1.6;
  margin-bottom: 20px;
}

.divider {
  background: #e9eedc;
  width: 15%;
  height: 8px;
  margin-left: auto;
  margin-right: auto;
}

.story__bottom {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 32px;
  /* border: 4px solid blue; */
}

.stats {
  /* width: 25%; */
  width: 20%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 7px;
  padding-block: 20px;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
}

.stats p {
  font-size: 15px;
  text-align: center;
}

.stats p span {
  /* border: 4px solid green; */
  font-size: 50px;
  font-weight: 700;
  margin-bottom: 16px;
  display: inline-block;
}

/* story media queries */
@media (max-width: 900px) {
  .story__bottom {
    flex-wrap: wrap;
    width: 100%;
    row-gap: 40px;
  }

  .stats {
    max-width: 200px;
    width: 100%;
  }
}

/* About Us */
.about {
  /* border: 10px solid black; */
  /* padding-top: 150px;
  padding-bottom: 150px; */
  padding-block: var(--section-padding);
}

.about .container {
  /* border: 4px solid red; */
  display: flex;
  column-gap: 32px;
}

.about__left {
  /* border: 4px solid blue; */
  width: 550px;
  height: 620px;
  flex-basis: 50%;
}

.about__left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__right {
  /* border: 4px solid green; */
  flex-basis: 50%;
  background-color: #e9e0d0;
  padding: 48px 48px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
}

.about__right h2 {
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 400;
}

.about__right h3 {
  /* font-size: 40px; */
  font-size: var(--h3);
  line-height: 1.3;
  font-weight: 600;
}

.about__right p {
  /* font-size: 18px; */
  font-size: var(--p);
  font-weight: 200;
  line-height: 1.6;
}

/* about media queries */
@media (max-width: 768px) {
  .about .container {
    flex-direction: column;
  }

  .about__left {
    flex-basis: 100%;
    width: 100%;
    max-height: 500px;
    height: auto;
  }

  .about__right {
    flex-basis: 100%;
  }
}

/* Choose us */
.choose {
  /* block = top & bottom */
  /* padding-block: 150px; */
  padding-block: var(--section-padding);
}

.choose__top {
  text-align: center;
  /* inline = left & right */
  padding-inline: 20%;
  /* 16 * 6 */
  margin-bottom: 96px;
  /* border: 2px solid red; */
}

.choose__top h2 {
  /* font-size: 18px; */
  font-size: var(--p);
  text-transform: uppercase;
  font-weight: 400;
}

.choose__top h3 {
  /* font-size: 40px; */
  font-size: var(--h3);
  line-height: 1.3;
  font-weight: 600;
}

.choose__bottom {
  /* border: 4px solid blue; */
  display: flex;
  justify-content: center;
  gap: 32px;
}

.choose__option {
  /* border: 4px solid red; */
  /* max-width: 400px; */
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 15px;
  transition: 0.3s ease-in-out;
}

.choose__option:hover {
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
}

.choose__option i {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-block;
}

.choose__option h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.choose__option p {
  line-height: 1.6;
  font-size: 16px;
  color: #1a1a1a;
}

/* choose media queries */
@media (max-width: 900px) {
  .choose__bottom {
    flex-wrap: wrap;
  }

  .choose__option {
    max-width: 450px;
    width: 100%;
  }

  .choose__top {
    padding-inline: 0;
  }
}

/* Excellence */
.excel {
  /* padding-block: 150px; */
  padding-block: var(--section-padding);
  background-color: #e9e0d0;
}

.excel__top {
  text-align: center;
  padding-inline: 20%;
  margin-bottom: 96px;
}

.excel__top h2 {
  /* font-size: 18px; */
  font-size: var(--p);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 32px;
}

.excel__top h3 {
  /* font-size: 40px; */
  font-size: var(--h3);
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 32px;
}

.excel__top p {
  text-wrap: balance;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
}

.excel__bottom {
  display: flex;
  gap: 32px;
  /* justify-content: center; */
  align-items: start;
}

.excel__bottom img {
  display: block;
  object-fit: cover;
  max-width: 360px;
  width: 100%;
}

.excel__bottom img.square {
  aspect-ratio: 1 / 1;
}

.excel__bottom img.tall {
  aspect-ratio: 9 / 16;
}

@media (max-width: 900px) {
  .excel__top {
    padding-inline: 0;
  }
}
/* excel media queries */
@media (max-width: 768px) {
  .excel__bottom {
    flex-direction: column;
    align-items: center;
  }
}

/* testimonial */
.testimonial {
  /* padding-block: 150px; */
  padding-block: var(--section-padding);
}

.testimonial__top {
  text-align: center;
  padding-inline: 30%;
  margin-bottom: 96px;
}

.testimonial__top h2 {
  /* font-size: 18px; */
  font-size: var(--p);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 32px;
}

.testimonial__top h3 {
  /* font-size: 40px; */
  font-size: var(--h3);
  line-height: 1.2;
  font-weight: 600;
  text-wrap: pretty;
}

.testimonial__bottom {
  /* border: 4px solid red; */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.testimonial__block {
  /* border: 3px solid blue; */
  display: flex;
  justify-content: flex-start;
  align-items: start;
  gap: 16px;
  min-height: 340px;
  padding: 32px;
}

.testimonial__block.purple {
  border-top: 4px solid #a58add;
  background-color: #d9d1ea;
}

.testimonial__block.yellow {
  border-top: 4px solid #d9db82;
  background-color: #f3f3d8;
}

.testimonial__block.green {
  border-top: 4px solid #55a5b5;
  background-color: #d1e6ea;
}

.testimonial__block-image {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px solid #fff;
  flex-grow: 1;
  flex-shrink: 0;

  img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    object-fit: cover;
  }
}

.testimonial__block-content {
  flex-grow: 0;
  flex-shrink: 1;
}

.testimonial__block-quote {
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.6;
}

.testimonial__block-name {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}

.testimonial__block-address {
  font-size: 14px;
}

/* testimonial media queries */
@media (max-width: 1050px) {
  .testimonial__bottom {
    flex-wrap: wrap;
  }
  .testimonial__block {
    max-width: 500px;
    width: 100%;
  }
}

@media (max-width: 800px) {
  .testimonial__top {
    padding-inline: 0;
  }
}

/* Contact */
.contact {
  /* padding-block: 150px; */
  padding-block: var(--section-padding);
}

.contact .container {
  display: flex;
  column-gap: 32px;
}

.contact__left {
  flex-basis: 50%;
  background-color: #d1e6eb;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.contact__left h2 {
  /* font-size: 18px; */
  font-size: var(--p);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 32px;
}

.contact__left h3 {
  /* font-size: 40px; */
  font-size: var(--h3);
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 32px;
}

.contact__left p {
  /* font-size: 18px; */
  font-size: var(--p);
  font-weight: 200;
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact__options {
  margin-bottom: 48px;
}

.contact__option {
  margin-bottom: 16px;
}

.contact__option h4 {
  font-size: 16px;
  font-weight: 600;
}

.contact__option p {
  font-size: 20px;
  font-weight: 300;
}

.contact__right {
  width: 550px;
  /* height: 620px; */
  flex-basis: 50%;
}

.contact__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* contact media queries */
@media (max-width: 768px) {
  .contact .container {
    flex-direction: column-reverse;
  }

  .contact__right {
    flex-basis: 100%;
    width: 100%;
    /* max-height: 400px; */
    height: auto;
  }

  .contact__left {
    flex-basis: 100%;
  }
}

/* footer */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding-top: 70px;
  padding-bottom: 40px;
}

.footer .container {
  /* border: 2px solid red;   */
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer__top {
  text-align: center;
  margin-bottom: 32px;
}

.footer__top h2 {
  margin-bottom: 20px;
}

.footer__nav {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.footer__divider {
  height: 1px;
  width: 100%;
  background-color: #555555;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
}

.footer__bottom-left {
  color: #555555;
}

.footer__bottom-right {
  display: flex;
  gap: 16px;
}

.footer__bottom-right i {
  font-size: 18px;
  padding: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #363636;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* footer media queries */
@media (max-width: 500px) {
  .footer__bottom {
    flex-direction: column;
    row-gap: 32px;
  }

  .footer__divider {
    margin-bottom: 32px;
  }
}
