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

  /* https://kilianvalkhof.com/2022/css-html/your-css-reset-needs-text-size-adjust-probably/ */
  html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  p,
  figure,
  blockquote,
  dl,
  dd {
    margin: 0;
  }

  /* https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html */
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  body {
    min-block-size: 100vh;
    line-height: 1.6;
  }

  h1,
  h2,
  h3,
  button,
  input,
  label {
    line-height: 1.1;
  }

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

  p,
  li {
    text-wrap: pretty;
  }

  img,
  picture {
    max-inline-size: 100%;
    display: block;
  }

  input,
  button,
  textarea,
  select {
    font: inherit;
  }
}

@layer base {
  :root {
    --white: #ffffff;
    --dark-black: #212121;
    --light-blue: #ecf5ff;
    --dark-purple: #42253b;
    --purple: #fff1e8;
    --dark-blue: #476180;
    --blue: #b7c7d9;
    --light-blue: #d1eef5;

    --green: #1e8900;
    --dark-green: #0e3f00;
    --light-green: #a4f28e;
    --black-green: #0c2d02;
    --ultra-light-green: #ceffc1;

    --main-gradient: radial-gradient(circle, #b2ff88 14%, #33c83b 100%);

    --default-gap: 1.875rem;
    --small-gap: 0.625rem;

    --border-radius-1: 0.625rem;
    --border-radius-2: 0.938rem;
  }

  @view-transition {
    navigation: auto;
  }

  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }

  html {
    scroll-padding: 2rem;
    overflow-x: hidden;
  }
  body {
    font-family: "Fira Sans", serif;
    font-size: 1rem;
    color: var(--light-black);
    background-color: var(--white);
  }

  h1,
  h2 {
    font-weight: 700;
  }

  h1 {
    color: var(--dark-black);
  }

  h2 {
    font-size: 2.375rem;
  }

  a {
    color: var(--dark-blue);
  }

  a:hover,
  a:focus-visible {
    color: var(--blue);
  }

  img {
    object-fit: cover;
  }
}

@layer layout {
  .wrapper {
    --wrapper-max-width: 1140px;
    --wrapper-padding: 1rem;

    max-width: var(--wrapper-max-width);
    margin-inline: auto;
    padding-inline: var(--wrapper-padding);

    /* helps to match the Figma file */
    box-sizing: content-box;
    position: relative;
  }

  .wrapper[data-width="narrow"] {
    --wrapper-max-width: 900px;
  }

  .wrapper[data-width="wide"] {
    --wrapper-max-width: 1330px;
  }
  .section {
    padding-block: 3.125rem;

    @media (min-width: 760px) {
      padding-block: 6.25rem;

      &[data-padding="compact"] {
        padding-block: 4.5rem;
      }
    }
  }

  .flow {
    display: flex;
    gap: var(--default-gap);

    @media (max-width: 960px) {
      flex-direction: column;
    }
  }

  .flow-items {
    display: flex;
    flex-direction: column;
    gap: var(--default-gap);
    justify-content: space-between;
  }

  .input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;

    @media (max-width: 760px) {
      grid-template-columns: 1fr;
    }
  }

  .footer__section {
    display: flex;
    flex-direction: column;
    gap: var(--default-gap);
  }
}
@layer components {
  .site__header {
    padding: 0.688rem 1.25rem;
    background: var(--dark-blue);
    border-radius: var(--border-radius-1);
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .logo {
      height: 30px;
    }

    @media screen and (max-width: 760px) {
      .site__header {
        padding: 1rem;
      }

      .logo {
        height: 20px;
      }
    }
  }

  .site__header_inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .site__navigation {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    justify-content: space-between;
  }
  .primary-navigation {
    ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem 2rem;
      font-weight: 700;
    }

    a {
      text-decoration: none;
      font-weight: 400;
      color: #fff;
    }
    a:hover,
    a:focus-visible {
      color: var(--blue);
    }
  }

  [aria-controls="primary-navigation"] {
    display: none;
  }
  @media (width < 760px) {
    [aria-controls="primary-navigation"] {
      display: block;
      z-index: 100;
      background: transparent;
      border: 0;

      img {
        border-radius: 0;
      }
    }

    .site-header {
      position: relative;
    }

    .primary-navigation {
      display: none;
      opacity: 0;
      transition: display 1s, opacity 1s;
      transition-behavior: allow-discrete;
      position: absolute;
      z-index: 10;
      top: 0;
      right: 0;
      padding: 2rem;
      width: 60%;
      height: 50vh;
      border-radius: 0 0 0 var(--border-radius-2);
      background: var(--dark-black);

      ul {
        flex-direction: column;
        gap: 0;
        font-weight: 700;
      }

      li {
        translate: 0;
        opacity: 1;

        transition: opacity 300ms, translate 875ms;
        transition-delay: var(--delay, 125ms);

        &:nth-child(2) {
          --delay: 250ms;
        }

        &:nth-child(3) {
          --delay: 325ms;
        }
      }

      li + li {
        margin-top: 1rem;
        padding-top: 1rem;
      }
      a {
        color: var(--white);
      }
      a:hover {
        color: var(--blue);
      }
    }

    [aria-expanded="true"] ~ .primary-navigation {
      display: block;
      opacity: 1;

      @starting-style {
        display: block;
        opacity: 0;
      }

      li {
        translate: 0;
        opacity: 1;

        @starting-style {
          translate: 100%;
          opacity: 0;
        }
      }
    }
    .logo {
      width: 150px;
    }
  }

  .hero_section {
    display: flex;
    justify-content: flex-start;
    /* gap: var(--default-gap); */
    position: relative;

    h1 {
      position: relative;
    }

    @media (max-width: 945px) {
      flex-direction: column;
      align-items: center;
    }
  }

  .hero_image {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;

    @media screen and (max-width: 760px) {
      position: relative;
    }
  }
  .hero_image_subpage img {
    transform: scale(1.04);
    object-fit: cover;
    height: 100%;
  }
  .subpage {
    display: flex;
    justify-content: center;
    gap: var(--default-gap);
    @media (max-width: 945px) {
      flex-direction: column;
      align-items: center;
    }
  }

  .hero__content {
    max-width: 670px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--default-gap);
    padding-block: 7.125rem;
    z-index: 2;

    @media (max-width: 1300px) {
      padding-inline: 1rem;
    }

    @media screen and (max-width: 760px) {
      padding-block: 2.125rem;
    }
  }

  .hero__content p {
    font-size: 1.25rem;
    font-weight: 500;
    text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  }

  .btn {
    display: inline flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    font-size: 1.9rem;
    text-decoration: none;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius-1);
    max-width: 17.5rem;
    gap: 0.5rem;
    width: 100%;
    transition: background 0.3s;

    @media (max-width: 760px) {
      font-size: 1.5rem;
    }
  }

  .btn img {
    border-radius: 0;
  }

  .btn:hover,
  .btn:focus-visible {
    background: var(--blue);
    /* color: var(--text-high-contrast); */
  }
  .swiper {
    position: absolute;
    display: flex;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    bottom: 2.125rem;
    justify-content: center;
    background: var(--white);
    border-radius: var(--border-radius-2);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  }

  .card {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
    padding: var(--default-gap);

    img {
      width: 29px;
    }

    h3 {
      font-weight: 500;
      font-size: 1.25rem;
    }

    p {
      font-size: 0.75rem;
    }
  }

  .arrow-image {
    width: 20px !important;
  }

  .about {
    display: flex;
    justify-content: space-between;

    @media screen and (max-width: 905px) {
      flex-direction: column;
      align-items: center;
      gap: var(--default-gap);
    }
  }

  .about-info {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--default-gap);

    h2 {
      color: var(--light-green);
    }
  }

  .faq-container {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    gap: var(--default-gap);
  }

  #faq {
    .btn {
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0 auto;
    }
  }
  /* FAQ Item */
  .faq-item {
    background: var(--light-green);
    border-radius: var(--border-radius-1);
    overflow: hidden;
  }

  /* Question styling */
  .faq-question {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    background: var(--dark-blue);
    color: var(--light-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    transition: background 0.3s;
  }

  .faq-question:hover {
    background: var(--blue);
    color: var(--white);
  }

  /* Icon for expanding/collapsing */
  .faq-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    background: var(--white);
    color: var(--blue);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

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

  /* Answer styling */
  .faq-answer {
    padding: 15px 20px;
    display: none;
  }

  /* Show answer when active */
  .faq-item.active .faq-question {
    color: var(--white);
    background: var(--blue);
  }
  .faq-item.active .faq-answer {
    display: block;
    background: var(--blue);
    color: var(--dark-black);
  }

  .contact__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--default-gap);
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--default-gap);

    input,
    textarea {
      background: var(--white);
      color: var(--dark-black);
      padding: 0.9rem var(--default-gap);
      border-radius: 5px;
      border: 1px solid var(--blue);
    }

    input:focus-visible,
    textarea:focus-visible {
      outline: 2px solid var(--purple);
    }

    textarea {
      min-height: 100px;
      field-sizing: content;
    }
    textarea::placeholder,
    input::placeholder {
      color: var(--blue);
    }

    .btn {
      margin-inline: auto;
      width: 100%;
      background: var(--dark-black);
      /* color: var(--dark-green); */
    }

    @media (max-width: 760px) {
      gap: 1rem;
    }
  }

  #contact img {
    width: 100px;
  }
  .contact-form {
    width: 100%;
  }
  .footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: baseline;
    gap: var(--default-gap);

    @media (max-width: 760px) {
      grid-template-columns: 1fr;
    }
  }
  .footer__logo {
    width: 260px;
  }
  .footer__content h2 {
    color: var(--blue);
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .footer__content p {
    color: var(--white);
    max-width: 420px;
  }
  .footer__content .copyright {
    color: var(--white);
  }
  .footer__content li,
  .footer__content a {
    color: var(--white);
  }

  .footer__content li {
    margin-bottom: 20px;
  }
  .footer__content li a {
    text-decoration: none;
  }
  .contact_info {
    display: flex;
    flex-direction: column;
    gap: 1.1875rem;
  }
  .contact__box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    width: 100%;
    height: 30px;
  }
  .contact_info a {
  }
  .contact__box img {
    height: 24px;
  }
  .icon-go-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--light-blue);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
  }
  .icon-go-to-top:hover {
    background: var(--dark-green);
  }
  .icon-go-to-top img {
    transform: rotate(-90deg);
  }
  .policy__text h2 {
    margin-bottom: 20px;
    font-size: 24px;
  }
  .policy__text p {
    margin-bottom: 20px;
  }
}

@layer utilites {
  .text-center {
    text-align: center;
  }
  .section__title {
    font-size: 3.7rem;
    @media (max-width: 760px) {
      font-size: 3rem;
    }
  }
  .background-base {
    background-color: var(--white);
  }
  .background-dark {
    background-color: var(--black-green);
  }

  .background-color {
    background-color: var(--light-blue);
  }
  .background-purple {
    background-color: var(--purple);
  }
  .background-green {
    background-color: var(--green);
  }
  .background-dark-blue {
    background-color: var(--dark-blue);
  }
  .background-gradient {
    background-image: var(--main-gradient);
  }
  .background-light {
    background-color: var(--ultra-light-green);
  }
  .text-white {
    color: var(--white);
  }
  .text-light {
    color: var(--light-green);
  }

  .text-dark {
    color: var(--dark-black);
  }
  .text-dark-green {
    color: var(--dark-black);
  }
  .text-dark-blue {
    color: var(--dark-blue);
  }
  .font-size-md {
    font-size: 1.25rem;

    @media (max-width: 760px) {
      font-size: 1.125rem;
    }
  }
  .font-size-lg {
    font-size: 1.85rem;

    @media (max-width: 760px) {
      font-size: 1.5rem;
    }
  }

  .mt-2 {
    margin-top: 1.25rem;
  }
  .mb-1 {
    margin-bottom: 0.9rem;
  }
  .margin-bottom {
    margin-block-end: 3.125rem;
  }
  .default-margin {
    margin-bottom: var(--default-gap);
  }
  .small-padding-top {
    padding-block-start: 1.25rem;
  }

  .m-inline-auto {
    margin-inline: auto;
  }
}
