@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 {
    --black-blue-dark: #000820;
    --black-blue: #0b132b;
    --blue-second: #161e53;
    --purple: #543477;
    --pink-dark: #cf4799;
    --pink-light: #ff56bb;
    --light-tirkiz: #e9e9e9;
    --light-blue: #88b5ed;
    --white: #ffffff;
    --light-gray: #eee8f2;
    --dark-gray: #d0cad4;
    --light-green: #110071;
    --beige: #dff0ed;
    --dark: #0b132b;

    --e-global-color-primary: #6ec1e4;
    --e-global-color-secondary: #54595f;
    --e-global-color-text: #7a7a7a;
    --e-global-color-accent: #61ce70;
    --e-global-color-a1dae87: #b0edcb;
    --e-global-color-9d0a246: #3a506b;
    --ast-global-color-0: #046bd2;
    --ast-global-color-1: #045cb4;
    --ast-global-color-2: #1e293b;
    --ast-global-color-3: #334155;
    --ast-global-color-4: #f0f5fa;
    --ast-global-color-5: #ffffff;
    --ast-global-color-6: #d1d5db;
    --ast-global-color-7: #111111;

    --border-radius-1: 0.625rem;
    --border-radius-2: 1.25rem;
  }

  @view-transition {
    navigation: auto;
  }

  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }

  html {
    scroll-padding: 2rem;
    overflow-x: hidden;
  }
  body {
    font-family: "Inter", serif;
    font-size: 1rem;
    color: var(--black-blue);
    background-color: var(--white);
  }

  h1,
  h2 {
    font-weight: 700;
  }

  h1 {
    color: var(--white);
    text-transform: uppercase;
  }

  h2 {
    color: var(--dark);
  }

  img {
    border-radius: var(--border-radius-1);
  }

  p,
  li,
  a {
    color: var(--e-global-color-text);
  }
}

@layer layout {
  .wrapper {
    --wrapper-max-width: 1240px;
    --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;
  }

  .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;
      }
    }
  }

  .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: 1.875rem;
  }
}
@layer components {
  .site__header {
    padding: 1.375rem 3.75rem;
    background: var(--light-green);
    @media screen and (max-width: 760px) {
      padding: 1rem 0;
    }
  }

  .site__header_inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    justify-content: space-between;
    align-items: center;

    .logo {
      width: 200px;
    }
  }

  .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;
      color: var(--white);
    }
  }

  [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(--blue-second);

      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);
      }
    }

    [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: 180px;
    }
  }

  .hero_section {
    display: flex;
    justify-content: flex-end;
    gap: 1.875rem;
    position: relative;

    h1 {
      position: relative;
    }

    h1::after {
      content: "";
      position: absolute;
      width: 75%;
      height: 1px;
      background-color: var(--light-blue);
      bottom: -0.93rem;
      left: 0;
    }

    @media (max-width: 945px) {
      flex-direction: column;
      align-items: center;
    }
  }
  .hero_image_subpage img {
    transform: scale(1.04);
    object-fit: cover;
    height: 100%;
  }
  .subpage {
    display: flex;
    justify-content: center;
    gap: 1.875rem;
    @media (max-width: 945px) {
      flex-direction: column;
      align-items: center;
    }
  }

  .hero__content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.875rem;
    padding: 4.25rem 0rem;

    @media (max-width: 1300px) {
      padding: 1.25rem 1rem;
    }
  }

  .hero__content p {
    color: var(--ast-global-color-6);
    font-weight: 500;
  }

  .hero_image {
    background-image: url(../images/hero-image.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 100px 0 0 0;
    width: 50%;
    @media (max-width: 945px) {
      width: 100%;
      height: 35dvh;
      border-radius: 0;
      background-position: top;
    }
  }

  .hero_tooltip {
    background: var(--beige);
    padding: 1rem;
    border-radius: var(--border-radius-2) 0 0 var(--border-radius-2);
    border-left: 2.5rem solid var(--light-blue);
    width: 75%;
    position: relative;
    svg {
      height: 3.063rem;
      fill: var(--light-blue);
      transform: rotate(45deg);
      position: absolute;
      right: -1.5rem;
      top: 35%;
    }
    li {
      color: var(--e-global-color-9d0a246);
      font-size: 1.2rem;
    }

    @media (max-width: 945px) {
      width: 100%;
      padding: 1rem 1.5rem;
    }

    @media (max-width: 760px) {
      svg {
        display: none;
      }
    }
  }

  .btn {
    display: inline flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    font-size: 1.9rem;
    text-decoration: none;
    background-color: var(--light-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 50px;
    max-width: 17.5rem;
    gap: 0.5rem;

    @media (max-width: 760px) {
      font-size: 1.5rem;
    }
  }

  .btn img {
    border-radius: 0;
  }

  .btn:hover,
  .btn:focus-visible {
    background: var(--blue-second);
    /* color: var(--text-high-contrast); */
  }
  .service__card {
    display: flex;
    justify-content: center;
    gap: 3.75rem;
    img {
      object-fit: cover;
    }
  }

  @media screen and (max-width: 945px) {
    .service__card {
      flex-direction: column;
      align-items: center;
    }
    .service__card img {
      order: 2; /* Push image to bottom */
    }

    .service__card_text {
      order: 1; /* Keep text on top */
    }
  }
  .service__card_text {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    gap: 1.875rem;
  }

  .faq-container {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    gap: 1.875rem;
  }
  /* FAQ Item */
  .faq-item {
    background: var(--light-green);
    border-radius: var(--border-radius-1);
    overflow: hidden;
  }

  /* Question styling */
  .faq-question {
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    background: var(--light-green);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    transition: background 0.3s;
  }

  .faq-question:hover {
    opacity: 0.8;
  }

  /* Icon for expanding/collapsing */
  .faq-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    background: var(--white);
    color: var(--light-green);
    padding: 1px 10px;
    border-radius: 50%;
  }

  /* Rotate icon when active */
  .faq-item.active .faq-icon {
    transform: rotate(45deg);
  }

  /* Answer styling */
  .faq-answer {
    padding: 15px;
    display: none;
  }

  /* Show answer when active */
  .faq-item.active .faq-answer {
    display: block;
    background: var(--light-green);
    color: var(--white);
  }

  .contact__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.875rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;

    input,
    textarea {
      background: var(--light-green);
      color: var(--white);
      padding: 0.9rem 1rem;
      border: none;
      border-radius: 5px;
    }

    input:focus-visible,
    textarea:focus-visible {
      outline: 2px solid var(--white);
    }

    textarea {
      max-width: 900px;
      min-height: 100px;
      field-sizing: content;
    }
    textarea::placeholder,
    input::placeholder {
      color: var(--white);
    }

    .btn {
      margin-left: auto;
      width: 100%;
      background: var(--light-green);
      color: var(--white);
    }

    @media (max-width: 760px) {
      gap: 1rem;
    }
  }
  .contact-form {
    width: 100%;
  }

  .site__footer {
    background-image: url(../images/background-footer-blue.png);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    background-attachment: scroll;

    .footer__logo {
      max-width: 120px;
      margin-bottom: 20px;
    }
  }
  .footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: baseline;
    gap: 1.875rem;

    @media (max-width: 760px) {
      grid-template-columns: 1fr;
      margin-bottom: 1.5rem;
    }
  }

  .footer__content h2 {
    color: var(--light-blue);
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .footer__content p {
    color: var(--light-tirkiz);
    max-width: 420px;
  }
  .footer__content .copyright {
    color: var(--light-blue);
    font-size: 0.75rem;
  }
  .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_info a {
    display: flex;
    gap: 1rem;
    align-items: center;
  }
}

@layer utilites {
  .text-center {
    text-align: center;
  }
  .section__title {
    font-size: 2.5rem;
    @media (max-width: 760px) {
      font-size: 2rem;
    }
  }
  .background-base {
    background-color: var(--white);
  }
  .background-light {
    background: var(--light-green);
  }

  .background-dark {
    background-color: var(--black-blue);
  }
  .font-size-md {
    font-size: 1.25rem;

    @media (max-width: 760px) {
      font-size: 1.125rem;
    }
  }
  .text-light {
    color: var(--light-blue);
  }
  .font-size-lg {
    font-size: 1.85rem;

    @media (max-width: 760px) {
      font-size: 1.5rem;
    }
  }
  .font-size-sm {
    font-size: 0.75rem;
  }
  .margin-bottom {
    margin-block-end: 3.125rem;
  }
  .margin-bottom-small {
    margin-block-end: 1.875rem;
  }
}
