@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --clr-primary: #043E54;
  --clr-secondary: #02968A;
  --clr-terciary: #96DDA5;
  --box-clr: #EFFAF2;
  --white: #fff;
  --ff-primary: 'Poppins';
  --divider: 100px;
}

html, body {
  margin: 0;
  padding: 0 !important;
  font-family: var(--ff-primary), sans-serif;
  color: var(--clr-primary);
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}

body {
  overflow-x: hidden !important;
}

a,
a:hover {
  color: var(--clr-primary);
}

#section-ads {
  display: flex;
  justify-content: center;
  width: 100%;
}

#section-ads a {
  width: unset;
  padding: 20px;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  object-fit: contain;
}

/* Utility classes */
.custom-container {
  --max-width: 1240px;
  --padding: 2rem;
  width: min(var(--max-width), 100% - (2 * var(--padding)));
  margin-inline: auto;
}

.cta {
  padding-block: 10px;
  padding-inline: 20px 10px;
  border-radius: 60px;
  background: var(--clr-secondary);
  color: var(--white);
  border: none;
  transition: all 0.6s ease;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  transition: all 250ms;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 15px;
  background-color: var(--clr-primary);
  z-index: -1;
  -webkit-box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
  box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
  transition: all 250ms
}

.cta:hover {
  color: #e8e8e8;
  transform: scale(1.1);
  box-shadow: var(--box-shadow);
}

.cta:hover::before {
  width: 100%;
}

.titles_head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.title {
  font-size: 45px;
  font-weight: 700;
  line-height: 45px;
  margin: 0;
}

/* navbar */
.nav {
  padding: 40px 0;
  position: fixed;
  width: 100%;
  z-index: 999;
  top: 0;
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 50px;
}

.nav .custom-container {
  transition: all 0.4s ease;
}

.nav .cta {
  font-size: 16px;
}

.scrolling {
  transform: scale(0.9);
  padding: 20px;
  border-radius: 30px;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px) saturate(180%);
  background: rgba(255, 255, 255, 0.9);
  transition: box-shadow 0.4s ease, filter 0.4s ease;
  box-shadow: rgba(31, 38, 135, 0.2) 0px 8px 32px, rgba(255, 255, 255, 0.3) 0px 4px 20px inset;
}

.nav .container.scrolling .nav-logo img {
  height: 25px;
  padding-left: 10px;
  margin-top: 2px;
}

.nav-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-menu ul li {
  font-size: 18px;
  line-height: 1.1;
  margin: 0;
  position: relative;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-menu ul li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--clr-secondary);
  transition: all 0.3s ease;
}

.nav-menu ul li:hover::after {
  width: 100%;
}

.nav-menu ul li:hover {
  color: var(--clr-secondary);
}

.no-underline:hover::after {
  content: unset;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* hero section */
.hero {
  margin-top: 130px;
}

.hero__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 35px;
  max-width: 600px;
}

.hero__content p {
  font-size: 22px;
}

.hero__content h1 {
  font-size: 65px;
  font-weight: 700;
  line-height: 70px;
  margin: 0;
}

.hero-img {
  max-width: 660px;
  width: 50%;
}

/* solutions */
.solutions {
  margin-top: var(--divider);
}

.solutions__inner {
  border-radius: 50px;
  background: rgba(150, 221, 165, 0.15);
  padding: 70px 125px;
  position: relative;
}

.solutions-content {
  display: flex;
  flex-direction: column;
  gap: 35px;
  max-width: 460px;
}

.solutions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  max-width: 320px;
}

.solution {
  padding: 12px 15px;
  color: var(--white);
  background-color: var(--clr-secondary);
  border-radius: 100px;
  transition: all .3s ease;
  cursor: pointer;
  list-style: none;
}

.solution:hover {
  transform: scale(1.05);
  background-color: var(--clr-primary);
}

.solution img {
  margin-right: 10px;
}

.men-coins {
  max-height: 663px;
  position: absolute;
  top: -80px;
  right: 65px;
  bottom: 0;
}

.men-coins-mobile {
  display: none;
}

/* How we work section */
.how-we-work {
  margin-top: 130px;
}

.how-we-work__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.how-we-work .titles_head {
  align-items: center;
}

.how-we-work .titles_head .description {
  color: var(--clr-secondary);
}

.how-we-work-slider {
  width: 100%;
  max-width: 825px;
}

.slick-track {
  margin-block: 20px;
}

.how-we-work .box {
  width: 85%;
  margin-inline: auto;
  border-radius: 40px;
  background: var(--box-clr);
  padding: 26px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform .3s ease;
  overflow: hidden;
}

.how-we-work .box:hover {
  background-color: var(--clr-primary);
  color: #e8e8e8;
  transform: scale(1.1);
  box-shadow: var(--box-shadow);
}

.how-we-work .box span {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

.how-we-work .box p {
  font-size: 12px;
  line-height: 14px;
  min-height: 70px;
}

/* Footer */
footer {
  position: relative;
  margin-top: 230px;
}

.footer-box {
  position: relative;
  padding: 40px 0 80px;
}

.bar {
  background-color: var(--clr-primary);
  color: #fff;
  font-size: 12px;
  height: 145px;
  display: flex;
  align-items: flex-end;
  justify-content: end;
  padding-bottom: 35px;
  padding-right: 190px;
}

.bar .custom-container {
  text-align: end;
}

.subscrever {
  border-radius: 50px;
  background: var(--box-clr);
  padding: 40px 100px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  position: absolute;
  right: 0;
  bottom: -70px;
  z-index: 2;
}

.subscrever__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 600px;
  gap: 25px;
}

.subscrever__head {
  text-align: end;
}

.subscrever__head h3 {
  font-size: 30px;
  font-weight: 700;
  text-wrap: balance;
}

.subscrever__head p {
  color: var(--clr-secondary);
  font-size: 14px;
  text-wrap: balance;
}

.subscrever input {
  width: 100%;
  height: 60px;
  border-radius: 50px;
  border: 0.5px solid rgba(4, 62, 84, 0.50);
  background: var(--white);
  padding-inline: 35px;
}

.subscrever input:focus-visible {
  outline: none;
}

.answer {
  position: relative;
  width: 100%;
}

.subscrever .cta {
  position: absolute;
  right: 0;
  top: 0;
  height: 60px;
}

.subscrever .cta:hover {
  transform: none;
  background-color: var(--clr-primary);
}

.men-throw-coins {
  position: absolute;
  max-height: 450px;
  bottom: 20px;
  z-index: 3;

  /* começa fora do ecrã */
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 1s ease-out, opacity 1s ease-out;
}

.men-throw-coins.slide-in {
  transform: translateX(0);
  opacity: 1;
}

/* Formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-check {
  text-align: right;
  padding: 0;
  position: relative;
}

.form-check label {
  margin: 0 0 0 0px;
  position: relative;
  padding-left: 18px;
  cursor: pointer;
  line-height: 1;
  color: var(--clr-primary);
  font-size: 12px;
}

.form-check input[type=checkbox] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  top: -0.5px;
  left: 0;
  z-index: 1;
  width: 12px;
  height: 12px;
  height: auto;
}

label.error,
#termos-error {
  font-size: 10px;
  font-weight: 300;
  color: red;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 1;
  display: none;
  text-align: end;
  margin-block: 6px;
}

.checkmark {
  position: absolute;
  top: -0.5px;
  left: 0;
  height: 12px;
  width: 12px;
  background-color: transparent;
  border: 1px solid var(--clr-primary);
  border-radius: 2px;
  color: var(--clr-primary);
}

.form-check input[type=checkbox]:checked+.checkmark::after {
  content: "\2713";
  display: block;
  font-family: sans-serif;
  text-align: center;
  line-height: 12px;
  margin-left: 0px;
  margin-top: -1px;
  font-size: 12px;
}

.form-check a {
  text-decoration: none;
  color: var(--clr-primary);
  font-weight: 700;
}

.form-check a:hover {
  color: var(--clr-terciary);
  text-decoration: underline;
}

.check-boxes {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.politica-texto {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Best option section */
.best-option {
  margin-top: var(--divider);
}

.best-option__wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.best-option .titles_head {
  align-items: center;
  text-align: center;
  text-wrap: balance;
}

.best-option .titles_head .description {
  color: var(--clr-secondary);
  font-size: 24px;
}

.option-card__icon {
  height: 65px;
  margin-top: auto;
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cards-row {
  display: flex;
  gap: 24px;
}

/* card */
.option-card {
  flex: 1 1 0;
  min-width: 0;
  min-height: 240px;
  background: var(--clr-secondary);
  border-radius: 20px;
  padding: 24px;
  transition: all .4s ease-in-out;
  display: flex;
}

.option-card:hover {
  background: var(--clr-primary);
  flex: 2 1 0;
}

.option-card__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.option-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.categoria {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  max-height: 0;
  display: none;
  overflow: hidden;
  transition: max-height .25s ease, opacity .25s ease;
}

.link-list li {
  margin-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--white);
}

.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.li-icon {
  width: 20px;
  height: 20px;
  transition: opacity .2s ease;
}

.link-item a:hover .li-icon {
  opacity: 1;
}

.option-card:hover .option-card__icon {
  display: none;
}

.option-card:hover .link-list {
  max-height: 300px;
  display: block;
  width: 100%;
}

.toggle-wrapper {
  position: relative;
  width: 22px;
  height: 22px;
}

.toggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  opacity: 1;
}

.toggle-minus {
  opacity: 0;
}

.option-card:hover .toggle-plus {
  opacity: 0;
}

.option-card:hover .toggle-minus {
  opacity: 1;
}

.fade-in-block {
  opacity: 0;
  transition: opacity .8s ease-out, transform .8s ease-out;
}

.fade-in-block.visible {
  opacity: 1;
}

/* Dots do slider */
.custom-dots {
  text-align: center;
}

.custom-dots .slick-dots {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.custom-dots .slick-dots li {
  margin: 0 5px;
}

.custom-dots .slick-dots li button {
  background-color: rgba(0, 26, 21, 0.20);
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: block;
  padding: 0;
  cursor: pointer;
  font-size: 0;
  transition: all 0.5s ease;
}

.custom-dots .slick-dots li.slick-active button {
  background-color: var(--clr-primary);
}

@media (max-width: 1200px) {
  .nav-menu ul li {
    font-size: 16px;
    text-align: center;
  }

  .nav-logo img {
    height: 35px;
  }

  .nav .cta {
    gap: 15px;
    font-size: 15px;
    padding-inline: 16px 20px;
  }

  .hero {
    margin-top: 140px;
  }

  .hero-img {
    width: 45%;
  }

  .hero__content {
    gap: 25px;
  }

  .hero__content h1 {
    font-size: 58px;
  }

  .hero__content p {
    font-size: 20px;
  }

  .men-coins {
    max-height: 580px;
    position: absolute;
    top: -42px;
    right: 38px;
  }

  .solutions__inner {
    padding: 50px 80px;
  }

  .bar {
    padding-right: 100px;
  }
}

@media (max-width: 1100px) {
  .men-coins {
    max-height: 510px;
    position: absolute;
    top: -42px;
    right: 15px;
  }

  .men-throw-coins {
    max-height: 385px;
  }

  .subscrever__inner {
    max-width: 500px;
  }

  .subscrever__head h3 {
    font-size: 26px;
  }

  .nav .container {
    max-width: 90%;
  }

  .nav-menu ul {
    gap: 20px;
  }

  .nav-links {
    gap: 40px;
  }

  .nav-menu ul li {
    font-size: 13px;
  }

  .nav-menu ul li {
    font-size: 16px;
  }

  .nav .cta {
    gap: 11px;
    font-size: 13px;
    padding-inline: 13px 12px;
  }
}

@media (max-width: 991px) {
  .hero__content {
    gap: 20px;
  }

  .hero__content h1 {
    font-size: 45px;
    line-height: 1.2;
  }

  .solutions-content {
    max-width: 410px;
  }

  .title {
    font-size: 35px;
  }

  .solutions .title {
    line-height: 1.1;
  }

  .solutions .description {
    line-height: 1.1;
  }

  .solution {
    padding: 8px 15px
  }

  .solutions-content {
    gap: 25px;
    max-width: 370px;
  }

  .men-coins {
    max-height: 450px;
    top: -14px;
  }

  .solutions__inner {
    padding: 37px 80px;
  }

  .subscrever {
    padding: 40px;
  }

  .subscrever__head h3 {
    font-size: 22px;
  }

  .subscrever__inner {
    max-width: 435px;
  }

  .subscrever input,
  .subscrever .cta {
    height: 50px;
  }

  .subscrever .cta img {
    height: 25px;
  }

  .bar {
    font-size: 10px;
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-menu ul li::after {
    display: none;
  }

  .nav .container {
    max-width: 80%;
  }

  .men-coins {
    max-height: 387px;
    top: 0px;
    right: 8px;
  }

  .men-throw-coins {
    max-height: 320px;
    bottom: 30px;
  }
}

@media (max-width: 800px) {
  .men-throw-coins {
    display: none;
  }

  .subscrever__inner {
    max-width: 100%;
  }

  .subscrever__head {
    text-align: center;
  }

  .bar {
    padding-inline: 0;
    padding-bottom: 25px;
    align-items: flex-end;
    justify-content: center;
    font-size: 10px;
    text-align: center;
    width: 100%;
    margin-inline: auto;
    text-wrap: balance;
  }
}

@media (max-width: 768px) {
  .hero {
    margin-top: 110px;
  }

  .hero__wrapper {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .hero__content {
    align-items: center;
    text-align: center;
    text-wrap: balance;
  }

  .hero-img {
    width: 70%;
  }

  .men-coins-desktop {
    display: none;
  }

  .men-coins-mobile {
    display: block;
    max-height: 380px;
  }

  .solutions-content {
    max-width: 100%;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .solutions .titles_head {
    align-items: center;
  }

  .solutions-list {
    max-width: 100%;
    width: 100%;
    align-items: flex-start;
  }

  .solution {
    width: 100%;
    text-align: start;
  }

  .solutions__inner {
    padding: 60px;
  }

  .cards-row {
    flex-direction: column;
  }

  .option-card {
    min-height: unset;
    padding: 28px 24px;
  }

  .option-card__icon {
    height: 50px;
  }

  .check-boxes {
    align-items: flex-start;
  }

  .bar .custom-container {
    text-align: center;
  }

  label.error,
  #termos-error {
    text-align: center;
  }
}

@media (max-width: 580px) {
  .nav .container.scrolling .nav-logo img {
    height: 19px;
  }

  .custom-container {
    --padding: 20px;
  }

  .scrolling {
    transform: none;
  }
    .form-check {
    text-align: left;
  }
}

@media (max-width: 500px) {
  .nav .cta img {
    display: none;
  }
 
}

@media (max-width: 480px) {
  .cta img {
    height: 25px;
  }

  .nav .container.scrolling .nav-logo img {
    height: 18px;
  }

  .hero__content h1 {
    font-size: 32px;
  }

  .hero__content p {
    font-size: 18px;
    text-wrap: balance;
    line-height: 1.2;
  }

  .how-we-work .titles_head {
    text-align: center;
  }

  .title {
    font-size: 26px;
    line-height: 1.2;
    text-wrap: balance;
  }

  .description,
  .best-option .titles_head .description {
    text-wrap: balance;
    line-height: 1.1;
    font-size: 16px;
  }

  .solutions__inner {
    padding: 45px 25px;
  }

  .solutions .title {
    font-size: 27px;
    text-wrap: balance;
  }

  .solutions .description {
    font-size: 15px;
    text-wrap: balance;
  }

  .solution img {
    margin-right: 8px;
    max-height: 24px;
  }

  .subscrever {
    padding: 32px;
  }

  .subscrever__head h3 {
    font-size: 18px;
  }

  .subscrever__head p {
    font-size: 12px;
    text-wrap: balance;
  }

  .subscrever input {
    padding-inline: 15px;
  }

  .subscrever input,
  .subscrever .cta {
    height: 45px;
  }

  .subscrever .cta {
    font-size: 13px;
    gap: 12px;
    padding-inline: 8px 8px;
  }

  .form-check label {
    font-size: 10px;
  }

  .link-list li a span {
    max-width: 80%;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  footer {
    margin-top: 200px;
  }
  
  .nav-menu ul {
    gap: 10px;
  }

  .nav-logo img {
    height: 27px;
  }

  .nav .cta {
    font-size: 11px;
  }

  .scrolling {
    padding: 20px 15px;
  }
}

@media (max-width: 440px) {
  .subscrever .cta img {
    height: 25px;
    display: none;
  }

  .subscrever {
    padding: 32px 20px;
  }


}

@media (max-width: 405px) {
  .solution {
    font-size: 14px;
  }

  .solution img {
    margin-right: 6px;
    max-height: 18px;
  }

  .nav-logo img {
    height: 25px;
  }
}

@media (max-width: 360px) {
  .nav-menu ul li:last-of-type {
    display: none;
  }

  .nav-logo {
    width: 100%;
    text-align: center;
  }

  .nav .container {
    max-width: 70%;
  }

  .solution {
    padding: 8px 10px;
    font-size: 13px;
  }
}