/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Spartan:wght@400;500;600;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 4rem;

  /*========== Colors ==========*/
  --first-color: hsl(176, 88%, 27%);
  --first-color-alt: hsl(129, 44%, 94%);
  --title-color: hsl(0, 0%, 13%);
  --text-color: hsl(154, 13%, 32%);
  --text-color-light: hsl(60, 1%, 56%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(0, 0%, 93%);
  --border-color-alt: hsl(113, 15%, 90%);
  --backdrop-color: rgba(0, 0, 0, 0.5); /* Added for popup backdrop */

  /*========== Font and typography ==========*/
  --body-font: "Lato", sans-serif;
  --second-font: "League Spartan", sans-serif;
  --big-font-size: 3.5rem;
  --h1-font-size: 2.75rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.75rem;
  --h4-font-size: 1.375rem;
  --large-font-size: 1.125rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --weight-400: 400;
  --weight-600: 600;
  --weight-700: 700;

  /*========== Transition ==========*/
  --transition: cubic-bezier(0, 0, 0.05, 1);
}

/* Responsive typography */
@media screen and (max-width: 1200px) {
  :root {
    --big-font-size: 2.25rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.375rem;
    --h3-font-size: 1.25rem;
    --h4-font-size: 1.125rem;
    --large-font-size: 1rem;
    --normal-font-size: 0.9375rem;
    --small-font-size: 0.8125rem;
  }
}

/*=============== BASE ===============*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--weight-400);
  background-color: var(--body-color);
}

h1, h2, h3, h4 {
  font-family: var(--second-font);
  color: var(--title-color);
  font-weight: var(--weight-600);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

p {
  line-height: 1.5rem;
}

img {
  max-width: 100%;
}

button, input {
  background-color: transparent;
  border: none;
  outline: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 0.75rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 2rem;
}

.section--lg {
  padding-block: 0;
}

.section__title {
  font-size: var(--h4-font-size);
  margin-bottom: 1.5rem;
}

.section__title span {
  color: var(--first-color);
}

.section__description {
  font-size: var(--normal-font-size);
  color: #666;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--first-color);
  border: 2px solid var(--first-color);
  color: var(--body-color);
  padding-inline: 1.75rem;
  height: 49px;
  line-height: 43px;
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  font-weight: var(--weight-700);
  border-radius: 0.25rem;
  transition: all 0.4s var(--transition);
}

.btn:hover {
  background-color: transparent;
  color: var(--first-color);
}

.btn:disabled {
  background: grey;
  cursor: not-allowed;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: relative;
}
.header__top {
  background-color: var(--first-color-alt);
  border-bottom: 1px solid var(--first-color);
  padding-block: 0.875rem;
  font-size: var(--small-font-size);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.header__contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.header__contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-color-light);
}

.header__contact i {
  font-size: 1rem;
  color: var(--first-color);
}

.header__info-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__alert-news {
  color: var(--text-color-light);
  font-weight: var(--weight-600);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.header__alert-news i {
  color: var(--first-color);
  font-size: 1rem;
}

.header__social {
  display: flex;
  gap: 0.75rem;
}

.header__social a {
  color: var(--text-color-light);
  transition: color 0.3s;
}

.header__social a:hover {
  color: var(--first-color);
}

@media (max-width: 768px) {
  .header__top {
    display: none;
  }
}

.nav {
  height: calc(var(--header-height) + 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
}

.nav__logo-img {
  width: 120px;
}

.nav__menu {
  flex-grow: 1;
  margin-left: 2.5rem;
}

.nav__list {
  display: flex;
  column-gap: 2.5rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--weight-700);
  transition: color 0.3s var(--transition);
}

.nav__link:hover, .active-link {
  color: var(--first-color);
}

.nav__toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav__menu-top, .nav__close {
  display: none;
}

/*=============== HOME ===============*/
.home__container {
  grid-template-columns: 5fr 7fr;
  align-items: center;
}

.home__subtitle {
  font-size: var(--large-font-size);
  font-family: var(--second-font);
  font-weight: var(--weight-600);
  margin-bottom: 1rem;
  display: block;
}

.home__title {
  font-size: var(--h1-font-size);
  font-weight: var(--weight-700);
  line-height: 1.4;
}

.home__title span {
  color: var(--first-color);
  font-size: var(--big-font-size);
}

.home__description {
  margin-block: 0.5rem 2rem;
}

.home__img {
  justify-self: flex-end;
}

/*=============== BENEFITS ===============*/
.benefits__grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.benefit__item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 300px;
  transition: transform 0.3s ease;
}

.benefit__item:hover {
  transform: translateY(-5px);
}

.benefit__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  color: #007bff;
}

.benefit__title {
  font-size: 1.5rem;
  font-weight: var(--weight-600);
  margin-bottom: 0.5rem;
}

.benefit__text {
  font-size: var(--normal-font-size);
  color: #555;
}

/*=============== HOW IT WORKS ===============*/
.how-it-works__grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.how-it-works__step {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 300px;
  transition: transform 0.3s ease;
}

.how-it-works__step:hover {
  transform: translateY(-5px);
}

.step__icon {
  display: block;
  margin-bottom: 1rem;
  color: var(--first-color);
  font-size: var(--big-font-size);
}

.step__title {
  font-size: 1.5rem;
  font-weight: var(--weight-600);
  margin-bottom: 0.5rem;
}

.step__text {
  font-size: var(--normal-font-size);
  color: #555;
}

/*=============== CALL TO ACTION ===============*/
.cta {
  background: linear-gradient(135deg, #0051ff, #00b7ff);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
}

.cta__title {
  font-size: var(--h2-font-size);
  font-weight: var(--weight-700);
  margin-bottom: 1rem;
}

.cta__description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.cta__button {
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  font-weight: var(--weight-700);
  color: #ff6b00;
  background: #fff;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.cta__button:hover {
  background: #ffe6cc;
  transform: scale(1.05);
}

/*=============== ABOUT ===============*/
.about__vision-mission, .about__who-we-are, .about__team, .about__values {
  background: #f8f8f8;
  padding: 2rem;
  margin: 1.5rem 0;
  border-radius: 10px;
}

.about__title {
  font-size: 1.1rem;
  font-weight: var(--weight-600);
  margin-bottom: 1rem;
}

.about__text {
  font-size: var(--normal-font-size);
  color: #444;
  line-height: 1.6;
}

.about__list li {
  font-size: 0.9rem;
  color: #555;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.about__list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #007bff;
  font-weight: var(--weight-700);
}

/*=============== TEAM ===============*/
.team__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  overflow-x: auto;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.team__card {
  flex: 0 0 auto;
  width: 250px;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: transform 0.3s ease;
}

.team__card:hover {
  transform: translateY(-5px);
}

.team__image img {
  width: 100%;
  height: 350px;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.team__overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 123, 255, 0.244);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

.team__card:hover .team__overlay {
  opacity: 1;
}

.team__name {
  font-size: 1.2rem;
  font-weight: var(--weight-700);
  color: white;
  margin-bottom: 1rem;
}

.team__work {
  font-size: var(--normal-font-size);
  font-weight: var(--weight-700);
  color: white;
  margin-bottom: 1rem;
}

.team__socials {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
}

.team__icon {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease-in-out;
}

.team__icon:hover {
  color: #222;
}

.team__card:hover .team__overlay {
  opacity: 1;
}

.team__card:hover img {
  transform: scale(1.1);
}

/*=============== CONTACT ===============*/
.contact__info {
  text-align: left;
  padding: 20px;
}

.contact__details p {
  font-size: var(--normal-font-size);
  margin: 8px 0;
}

.contact__details a {
  color: #007bff;
  font-weight: var(--weight-700);
  transition: color 0.3s;
}

.contact__details a:hover {
  color: #0056b3;
}

.faq__item {
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.faq__question {
  width: 100%;
  background: #007bff;
  color: white;
  font-size: var(--normal-font-size);
  padding: 12px;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s;
}

.faq__question:hover {
  background: #0056b3;
}

.faq__answer {
  display: none;
  padding: 10px;
  font-size: var(--small-font-size);
  background: #f1f1f1;
  border-radius: 4px;
  margin-top: 5px;
}

/*=============== POPUP ===============*/
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--backdrop-color);
  backdrop-filter: blur(5px);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.popup.show {
  display: flex;
}

.popup__content {
  position: relative;
  background: var(--body-color);
  padding: 2rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease forwards;
}

.popup__content h3 {
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--title-color);
}

.popup__content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popup__content input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color-alt);
  border-radius: 0.5rem;
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background: var(--container-color);
  transition: border-color 0.3s ease;
}

.popup__content input:focus {
  border-color: var(--first-color);
  outline: none;
}

.popup__content input::placeholder {
  color: var(--text-color-light);
}

.form__buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.form__buttons .btn {
  flex: 1;
}

.form__buttons .cancel {
  background: hsl(0, 0%, 80%);
  color: var(--title-color);
  border: 2px solid hsl(0, 0%, 80%);
}

.form__buttons .cancel:hover {
  background: transparent;
  color: hsl(0, 0%, 60%);
}

.popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  background: var(--first-color);
  color: var(--body-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--large-font-size);
  cursor: pointer;
  transition: background 0.3s ease;
}

.popup__close:hover {
  background: hsl(176, 88%, 20%);
}

/* Animation for Popup */
@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/*=============== FOOTER ===============*/
.footer__container {
  grid-template-columns: 4.5fr repeat(2, 2fr) 3.5fr;
  padding-block: 2.5rem;
}

.footer__logo-img {
  width: 120px;
}

.footer__subtitle {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  margin-block: 1.25rem 0.625rem;
}

.footer__description span {
  font-weight: var(--weight-600);
}

.footer__title {
  font-size: var(--large-font-size);
  margin-block: 1rem 1.25rem;
}

.footer__link {
  color: var(--title-color);
  font-size: var(--small-font-size);
  margin-bottom: 1rem;
  display: block;
  transition: all 0.3s var(--transition);
}

.footer__link:hover {
  color: var(--first-color);
  margin-left: 0.25rem;
}

.footer__social-icon {
  width: 20px;
  opacity: 0.7;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-block: 1.25rem;
  border-top: 1px solid var(--border-color-alt);
}

.copyright, .designer {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

/*=============== BREAKPOINTS ===============*/
@media screen and (max-width: 1400px) {
  .container {
    max-width: 1140px;
  }
}

@media screen and (max-width: 1200px) {
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: fixed;
    right: -100%;
    top: 0;
    max-width: 400px;
    width: 100%;
    height: 100%;
    padding: 1.25rem 2rem;
    background-color: var(--body-color);
    z-index: 100;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 2rem;
    box-shadow: 0 0 15px hsl(0, 0%, 0%, 0.1);
    transition: right 0.5s ease-in-out;
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 1.5rem;
  }

  .nav__link {
    font-size: var(--large-font-size);
  }

  .nav__menu-top, .nav__close {
    display: flex;
  }

  .nav__menu-top {
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.25rem;
  }

  .nav__menu-logo img {
    width: 100px;
  }

  .nav__close {
    font-size: var(--h1-font-size);
    margin-right: 10px;
    cursor: pointer;
  }

  .home__container {
    grid-template-columns: 5.5fr 6.5fr;
  }
}

@media screen and (max-width: 992px) {
  .container {
    max-width: 776px;
  }

  .home__container, .footer__container {
    grid-template-columns: 1fr;
  }

  .home__img {
    justify-self: center;
  }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 350px;
  }

  .benefits__grid, .how-it-works__grid {
    flex-direction: column;
    align-items: center;
  }

  .benefit__item, .how-it-works__step {
    width: 90%;
  }
}

@media screen and (max-width: 350px) {
  .home__img {
    display: none;
  }
}



.faq-container {
  width: 90%;
  margin:auto;
  background: #f8f8f8;
  padding: 2rem;
  /* margin: 1.5rem 0; */
  border-radius: 10px;
}
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}
.faq-answer {
  display: none;
  margin-top: 5px;
  font-size: 14px;
  color: #555;
}
.faq-arrow {
  width: 26px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #333;
  border-radius: 50%;
  font-size: 20px;
  transition: transform 0.3s ease-in-out;
  padding: 5px 0px 0px 0px;
  transition: transform 0.3s ease-in-out;
}
.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}


.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  pointer-events: none;
}

.custom-toast {
  min-width: 250px;
  margin-bottom: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.custom-toast.success {
  background-color: #10b981; /* Green for success */
}

.custom-toast.error {
  background-color: #ef4444; /* Red for error */
}

.toast-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 0 5px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.toast-close:hover {
  opacity: 1;
}

/* Optional: Animation for fade-out */
.custom-toast.hide {
  opacity: 0;
  transform: translateY(-20px);
}