*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ----- HEADER SECTION ----- */

.logo {
  width: 102px;
  height: 37px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1rem 5rem;
  position: relative;
}

.menu-items {
  display: flex;
  gap: 1.5rem;
  font-size: 1rem;
  font-family: Inter, sans-serif;
  color: #252525;
}

a {
  text-decoration: none;
  color: #252525;
}

a:hover {
  font-weight: 500;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #252525;
  margin-left: auto;
}

.hamburger:hover {
  background-color: #f0f0f0;
}

/* ----- MAIN SECTION ----- */

main {
  padding: 5rem 5rem;
}

.main-section {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.main-text h1 {
  font-size: 6rem;
  font-family: "Playfair Display", sans-serif;
  color: #252525;
}

.main-text p {
  font-size: 1rem;
  font-family: Inter, sans-serif;
  color: #919191;
  line-height: 1.6;

  margin-top: 1.5rem;
  margin-bottom: 1.5rem;

  width: 480px;
}

.main-text button {
  font-size: 1rem;
  font-family: Inter, sans-serif;
  padding: 12px 18px;
  border-radius: 4px;
  background-color: #ffdd44;
  cursor: pointer;
  border: 1px solid #ffd82c;
}

.main-text button:hover {
  background-color: #ffe46d;
}

.main-images {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.hero-img-one {
  width: 650px;
  height: 247px;
  object-fit: cover;
  display: block;
}

.hero-img-two {
  width: 527px;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ----- NUMBERS SECTION ----- */

.statistics {
  padding: 5rem 5rem;
  background-color: #fdfdfd;
}

.statistics-section {
  display: flex;
  gap: 3.3125rem;
}
.statistics-box span {
  font-size: 3.8rem;
  font-family: "Playfair Display", sans-serif;
  color: #252525;
}

.statistics-box p {
  margin-top: 10px;
  color: #646464;
  font-family: Inter, sans-serif;
}

/* ----- FAQ SECTION ----- */

.faq-section {
  padding: 5rem 5rem;
}

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

.faq-text h2 {
  font-size: 3rem;
  font-family: "Playfair Display", sans-serif;
  color: #252525;
}

.faq-text p {
  font-size: 1rem;
  font-family: Inter, sans-serif;
  color: #919191;
  line-height: 1.6;
  margin-top: 1.5rem;
  width: 600px;
}

/* ----- FAQ BOXES ----- */

.faq-questions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-box {
  background-color: #fffced;
  border: 0.8px solid #d8cfaa;
  border-radius: 4px;
  max-width: 500px;
  padding: 24px 32px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.faq-box:hover {
  background-color: #fffae0;
}

.faq-content {
  flex: 1;
}

.faq-question {
  font-family: Inter, sans-serif;
  color: #252525;
  font-weight: 500;
}

.faq-answer {
  font-family: Inter, sans-serif;
  color: #646464;
  line-height: 1.6;
  margin-top: 0rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}

/* When FAQ box has 'active' class, show the answer */
.faq-box.active .faq-answer {
  max-height: 200px;
  margin-top: 1rem;
}

/* Rotate the icon when active */
.faq-box.active i {
  transform: rotate(45deg);
}

.faq-box i {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* ----- FOOTER ----- */

footer div {
  background-color: #fafafa;
  padding: 1.2rem 5rem;
  font-size: 0.8rem;
  font-family: Inter, sans-serif;
  color: #7d7d7d;
}

/* ----- MODAL ----- */

.modal {
  position: fixed;
  bottom: 20px;
  right: 20px;

  padding: 1rem 1.5rem;
  font-family: Inter, sans-serif;
  background-color: #ff1d37;
  color: #fff;

  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  max-width: 300px;
  cursor: pointer;

  z-index: 1000;

  transition: transform 0.2s ease;
}

.modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.modal span {
  font-size: 0.9rem;
}

/* ----- CENTER MODAL POPUP ----- */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark semi-transparent background */

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;

  z-index: 2000; /* Higher than the red modal */
}

/* When overlay has 'active' class, show it */
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-popup {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);

  /* Animation */
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-popup {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #252525;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: #f0f0f0;
}

.modal-popup h3 {
  font-family: "Playfair Display", sans-serif;
  font-size: 1.8rem;
  color: #252525;
  margin-bottom: 1rem;
}

.modal-popup p {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  color: #646464;
  line-height: 1.6;
}

/* ----- MEDIA QUERIES ----- */

/* Tablet */
@media (max-width: 1024px) {
  .header {
    padding: 1rem 2rem;
  }

  /* Hamburger menu */
  @media (max-width: 1024px) {
    /* Show the hamburger on tablet and mobile */
    .hamburger {
      display: block;
    }

    /* Hide the nav by default on mobile */
    nav {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: #fff;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }

    /* When nav has 'active' class, show it */
    nav.active {
      max-height: 300px;
    }

    /* Stack menu items vertically */
    .menu-items {
      flex-direction: column;
      padding: 1.5rem 2rem;
      gap: 1rem;
    }

    .menu-items li {
      padding: 0.5rem 0;
      border-bottom: 1px solid #f0f0f0;
    }

    .menu-items li:last-child {
      border-bottom: none;
    }
  }

  /* Main */
  main {
    padding: 3rem 2rem;
  }

  .main-section {
    flex-direction: column;
    gap: 3rem;
  }

  .main-text h1 {
    font-size: 4rem;
  }

  .main-text p {
    width: 100%;
    max-width: 600px;
  }

  .main-images {
    align-items: center;
    width: 100%;
  }

  .hero-img-one {
    width: 100%;
    max-width: 650px;
    height: auto;
  }

  .hero-img-two {
    width: 100%;
    max-width: 527px;
    height: auto;
  }

  .statistics {
    padding: 3rem 2rem;
  }

  .statistics-section {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
  }

  .statistics-box {
    flex: 1;
    min-width: 200px;
  }

  .faq-section {
    padding: 3rem 2rem;
  }

  .faq-div {
    flex-direction: column;
    gap: 3rem;
  }

  .faq-text p {
    width: 100%;
  }

  .faq-box {
    max-width: 100%;
  }

  footer div {
    padding: 1.2rem 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .menu-items {
    gap: 1rem;
    font-size: 0.9rem;
  }

  main {
    padding: 2rem 1.5rem;
  }

  .main-text h1 {
    font-size: 3rem;
  }

  .main-text p {
    font-size: 0.95rem;
  }

  .main-text button {
    max-width: 50%;
  }

  .statistics {
    padding: 2rem 1.5rem;
  }

  .statistics-section {
    flex-direction: column;
    gap: 2rem;
  }

  .statistics-box span {
    font-size: 3rem;
  }

  .faq-section {
    padding: 2rem 1.5rem;
  }

  .faq-text h2 {
    font-size: 2.5rem;
  }

  .faq-box {
    padding: 20px 24px;
  }

  .faq-box i {
    right: 24px;
  }

  footer div {
    padding: 1.2rem 1.5rem;
    text-align: center;
  }

  .modal {
    bottom: 15px;
    right: 15px;
    max-width: 200px;
    font-size: 0.9rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .header {
    padding: 1rem;
  }

  .logo {
    width: 80px;
    height: auto;
  }

  .menu-items {
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  main {
    padding: 2rem 1rem;
  }

  .main-text h1 {
    font-size: 2.5rem;
  }

  .main-text button {
    width: 100%;
  }

  .statistics {
    padding: 2rem 1rem;
  }

  .faq-section {
    padding: 2rem 1rem;
  }

  .faq-text h2 {
    font-size: 2rem;
  }

  footer div {
    padding: 1rem;
  }

  .modal span {
    font-size: 0.62rem;
  }
}
