/* ==========================================================================
   PXM Info — stylesheet
   ========================================================================== */

/* --- Fonts --------------------------------------------------------------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/quicksand-700.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}

/* --- Design tokens ------------------------------------------------------ */
:root {
  --color-primary: #3a3bc4;
  --color-secondary: #9a3ed0;
  --color-accent: #ff3344;
  --color-accent-hover: #ee7269;
  --color-light-blue: #3bb1db;
  --color-dark: #111111;
  --color-text: #7a7a7a;
  --color-white: #ffffff;

  --font-base: "Open Sans", Arial, Helvetica, sans-serif;

  /* 8px spacing system */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;

  --container-width: 1170px;
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  font-family: var(--font-base);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  background: var(--color-white);
}

#content {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-2);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-accent);
  border-radius: 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  background-color: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Modifier for use on light backgrounds */
.btn--outline {
  color: var(--color-accent);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  color: var(--color-white);
}

.btn--sm {
  padding: 6px var(--space-2);
  font-size: 15px;
}

/* ==========================================================================
   Site header
   ========================================================================== */
.site-header {
  background-color: var(--color-dark);
  position: relative;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-block: var(--space-2);
}

.site-header__logo img {
  display: block;
  width: 170px;
  height: 54px;
}

/* --- Main nav --- */
.site-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav__list > li {
  position: relative;
}

.site-nav__list a {
  display: block;
  padding: var(--space-1) 20px;
  color: var(--color-white);
  font-size: 16px;
  transition: color 0.3s ease-in-out;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible,
.site-nav__list .is-current > a {
  color: #cf82fb;
  /* font-weight: 600; */
}

/* Submenu (Services) */
.site-nav__list .has-children > a {
  position: relative;
  padding-inline-end: var(--space-3);
}

.site-nav__list .has-children > a::after {
  content: "";
  position: absolute;
  bottom: 15px;
  right: 0;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #ffffff;
  border-radius: 2px;
}

.site-nav__submenu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 0;
}

.site-nav__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background-color: var(--color-secondary);
  z-index: 10;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.site-nav__list .has-children:hover > .site-nav__submenu,
.site-nav__list .has-children:focus-within > .site-nav__submenu {
  display: block;
}

.site-nav__submenu li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-nav__submenu a {
  padding: var(--space-1) var(--space-2);
  font-size: 15px;
}

.site-nav__submenu a:hover,
.site-nav__submenu .is-current > a {
  background-color: var(--color-white);
  color: var(--color-secondary);
}

/* --- Mobile nav toggle --- */
.site-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background-color: var(--color-secondary);
}

.site-header__toggle-icon,
.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.2s ease-in-out;
}

.site-header__toggle-icon {
  position: relative;
}

.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-header__toggle-icon::before {
  top: -6px;
}

.site-header__toggle-icon::after {
  top: 6px;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon {
  background-color: transparent;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 992px) {
  .site-nav {
    display: none;
  }

  .site-header__toggle {
    display: flex;
  }

  /* --- Overlay backdrop --- */
  .site-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    background-color: rgba(17, 17, 17, 0.55);
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .site-nav-overlay[hidden] {
    display: block;
    visibility: hidden;
  }

  body.mobile-nav-open .site-nav-overlay {
    opacity: 1;
    visibility: visible;
  }

  /* --- Off-canvas panel --- */
  .site-nav--mobile {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    width: min(300px, 82vw);
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.18);
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }

  .site-nav--mobile[hidden] {
    display: flex;
    visibility: hidden;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open .site-nav--mobile {
    transform: translateX(0);
  }

  .site-nav--mobile__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid #ececec;
  }

  .site-nav--mobile__logo img {
    display: block;
    width: 130px;
    height: auto;
  }

  .site-nav--mobile__close {
    position: relative;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #f5f5f7;
    cursor: pointer;
  }

  .site-nav--mobile__close::before,
  .site-nav--mobile__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background-color: #303030;
  }

  .site-nav--mobile__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .site-nav--mobile__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  /* --- Nav list --- */
  .site-nav--mobile .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2) 0;
  }

  .site-nav--mobile .site-nav__list > li {
    padding-inline: var(--space-2);
  }

  .site-nav--mobile .site-nav__list > li + li {
    border-top: 1px solid #f0f0f0;
  }

  .site-nav--mobile .site-nav__list a {
    padding: 14px var(--space-1);
    font-size: 16px;
    font-weight: 600;
    color: #303030;
  }

  .site-nav--mobile .site-nav__list a:hover,
  .site-nav--mobile .site-nav__list a:focus-visible,
  .site-nav--mobile .site-nav__list .is-current > a {
    color: var(--color-primary);
  }

  .site-nav--mobile .has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .site-nav--mobile .has-children > a {
    flex: 1 1 auto;
    padding-inline-end: var(--space-1);
  }

  .site-nav--mobile .has-children > a::after {
    content: none;
  }

  .site-nav--mobile .site-nav__submenu-toggle {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #f5f5f7;
    cursor: pointer;
  }

  .site-nav--mobile .site-nav__submenu-toggle::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #303030;
    transition: transform 0.25s ease;
  }

  .site-nav--mobile .site-nav__submenu-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  .site-nav--mobile .site-nav__submenu {
    display: block;
    position: static;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: transparent;
    transition: max-height 0.3s ease;
  }

  .site-nav--mobile .has-children.is-open > .site-nav__submenu {
    max-height: 240px;
  }

  .site-nav--mobile .site-nav__submenu li + li {
    border-top: 1px solid #f0f0f0;
  }

  .site-nav--mobile .site-nav__submenu a {
    padding: 12px var(--space-1) 12px var(--space-3);
    font-size: 15px;
    font-weight: 400;
    color: #5c5c5c;
  }

  .site-nav--mobile .site-nav__submenu a:hover,
  .site-nav--mobile .site-nav__submenu .is-current > a {
    background-color: transparent;
    color: var(--color-primary);
  }
}

@media (min-width: 993px) {
  .site-nav--mobile,
  .site-nav-overlay {
    display: none !important;
  }
}

/* ==========================================================================
   Hero section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  background-image: url("../images/hero-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-block: var(--space-8) 0;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  width: 100%;
}

.hero__content {
  max-width: 520px;
  align-self: center;
}

.hero__kicker {
  margin: 0 0 var(--space-1);
  font-size: 30px;
  font-weight: 400;
  color: var(--color-white);
}

.hero__title {
  margin: 0 0 var(--space-2);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}

.hero__title-line {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-2);
}

.hero__wave-word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.hero__wave-word span {
  position: relative;
}

.hero__wave-word span:first-child {
  color: var(--color-white);
  -webkit-text-stroke: 1px var(--color-white);
}

.hero__wave-word span:last-child {
  position: absolute;
  inset: 0;
  animation: wave-clip 4s ease-in-out infinite;
}

.hero__wave-word .is-primary {
  color: var(--color-primary);
  -webkit-text-stroke: 1px var(--color-primary);
}

.hero__wave-word .is-light {
  color: var(--color-light-blue);
  -webkit-text-stroke: 1px var(--color-light-blue);
}

@keyframes wave-clip {
  0%,
  100% {
    clip-path: polygon(0% 45%, 16% 44%, 33% 50%, 54% 60%, 70% 61%, 84% 59%, 100% 52%, 100% 100%, 0% 100%);
  }
  50% {
    clip-path: polygon(0% 60%, 15% 65%, 34% 66%, 51% 62%, 67% 50%, 84% 45%, 100% 46%, 100% 100%, 0% 100%);
  }
}

.hero__text {
  margin: 0 0 var(--space-3);
  font-size: 20px;
  line-height: 1.2;
  color: var(--color-white);
}

.hero__media {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  align-self: center;
}

.hero__media img {
  width: 100%;
  max-width: 543px;
  animation: shake-y 5s ease-in-out infinite;
}

@keyframes shake-y {
  0%,
  100% {
    transform: translateY(10px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero__waves {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: -40px;
  width: 100%;
  height: 15vh;
  min-height: 100px;
  max-height: 150px;
}

.hero__waves .parallax > use {
  animation: wave-move 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.hero__waves .parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.hero__waves .parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.hero__waves .parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.hero__waves .parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes wave-move {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

@media (max-width: 1024px) {
  .hero {
    padding-block: var(--space-2) var(--space-4);
  }

  .hero__inner {
    justify-content: center;
    text-align: center;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__title-line {
    justify-content: center;
  }

  .hero__title {
    font-size: 34px;
  }

  .hero__kicker {
    font-size: 24px;
  }

  .hero__text {
    font-size: 18px;
  }

  .hero__waves {
    bottom: -18px;
    min-height: 70px;
    max-height: 70px;
  }
}

@media (max-width: 767px) {
  .hero__inner {
    justify-content: center;
    gap: 0;
  }

  .hero__media {
    order: 1;
    margin-top: var(--space-3);
  }

  .hero__media img {
    max-width: 320px;
    margin-inline: auto;
  }

  .hero__kicker {
    font-size: 22px;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__text {
    font-size: 16px;
  }

  .hero__waves {
    bottom: -5px;
    min-height: 45px;
    max-height: 45px;
  }
}

/* ==========================================================================
   About section
   ========================================================================== */
.about {
  padding-block: var(--space-8);
  background-color: var(--color-white);
}

.about__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.about__media {
  flex: 1 1 480px;
}

.about__media img {
  display: block;
  width: 100%;
}

.about__content {
  flex: 1 1 420px;
}

.about__kicker {
  margin: 0 0 var(--space-1);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-primary);
}

.about__title {
  margin: 0 0 var(--space-2);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: #303030;
}

.about__content p:not(.about__kicker) {
  margin: 0 0 var(--space-2);
  font-size: 18px;
  line-height: 1.2;
  color: #5c5c5c;
}

.about__list {
  margin: 0 0 var(--space-2);
  padding-inline-start: 20px;
  list-style: disc;
  font-size: 18px;
  line-height: 1.2;
  color: #5c5c5c;
}

.about__list li {
  margin-bottom: var(--space-1);
}

@media (max-width: 1024px) {
  .about__kicker {
    font-size: 20px;
  }

  .about__title {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .about__content p:not(.about__kicker),
  .about__kicker,
  .about__list {
    font-size: 16px;
  }

  .about__title {
    font-size: 26px;
  }
}

/* ==========================================================================
   Services section
   ========================================================================== */
.services {
  padding-block: 0 var(--space-8);
  background-color: var(--color-white);
}

.services__kicker {
  margin: 0 0 var(--space-1);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-primary);
}

.services__title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  color: #303030;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.service-card {
  position: relative;
  padding: 29px 18px 30px;
  border-radius: 10px;
  background-color: #f7f7f7;
  overflow: hidden;
  isolation: isolate;
}

.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card::before {
  background-image: url("../images/service-card-hover-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.service-card::after {
  background-color: rgba(27, 27, 27, 0.9);
}

.service-card:hover::before,
.service-card:hover::after {
  opacity: 1;
}

.service-card__icon {
  margin: 0 0 var(--space-2);
}

.service-card__icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.service-card:hover .service-card__icon img {
  filter: brightness(0) saturate(100%) invert(26%) sepia(89%) saturate(1819%) hue-rotate(331deg) brightness(101%) contrast(101%);
}

.service-card__title {
  position: relative;
  margin: 0 0 12px;
  padding-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  transition: color 0.3s ease;
}

.service-card__title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 1px;
  background-color: #000000;
  transition: background-color 0.3s ease;
}

.service-card:hover .service-card__title {
  color: var(--color-accent);
}

.service-card:hover .service-card__title::before {
  background-color: var(--color-accent);
}

.service-card__text {
  margin: 0 0 var(--space-2);
  font-size: 15px;
  line-height: 1.3;
  color: #5c5c5c;
  transition: color 0.3s ease;
}

.service-card:hover .service-card__text {
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .services__kicker {
    font-size: 20px;
  }

  .services__title {
    font-size: 30px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .services__kicker {
    font-size: 18px;
  }

  .services__title {
    font-size: 26px;
  }
}

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

/* ==========================================================================
   Technologies section
   ========================================================================== */
.technologies {
  padding-block: var(--space-8);
  background-image: url("../images/technologies-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.technologies__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.technologies__kicker {
  margin: 0 0 var(--space-2);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-primary);
}

.technologies__title {
  margin: 0 0 var(--space-1);
  font-size: 36px;
  font-weight: 700;
  color: #303030;
}

.technologies__text {
  max-width: 65%;
  margin: 0;
  font-size: 18px;
}

.technologies__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.tech-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  background-color: var(--color-white);
}

.tech-badge img {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}

.tech-badge--up {
  animation: float-up 5s ease-in-out infinite;
}

.tech-badge--down {
  animation: float-down 5s ease-in-out infinite;
}

@keyframes float-up {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

@media (max-width: 767px) {
  .technologies__text {
    max-width: 100%;
    font-size: 16px;
  }

  .technologies__title {
    font-size: 26px;
  }

  .tech-badge {
    width: 85px;
    height: 85px;
  }
}

/* ==========================================================================
   Testimonials section
   ========================================================================== */
.testimonials {
  padding-block: var(--space-8);
  background-color: var(--color-white);
}

.testimonials__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonials__kicker {
  margin: 0 0 var(--space-2);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-primary);
}

.testimonials__title {
  margin: 0 0 var(--space-1);
  font-size: 36px;
  font-weight: 700;
  color: #303030;
}

.testimonials__text {
  max-width: 65%;
  margin: 0;
  font-size: 18px;
}

.testimonial-slider {
  width: 100%;
  padding: var(--space-3) 2px var(--space-4);
}

.testimonial-slider .swiper-wrapper {
  overflow: visible;
  padding-top: var(--space-2);
}

.testimonial-slider .swiper-slide {
  overflow: visible;
  height: auto;
}

.testimonial-card {
  position: relative;
  height: 100%;
  margin: 0;
  padding: var(--space-3);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  text-align: left;
  transition: border-color 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--color-accent);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: -20px;
  left: var(--space-3);
  width: 50px;
  height: 43px;
  background: url("../images/quote.png") no-repeat;
}

.testimonial-card__text {
  margin: 0 0 var(--space-2);
  font-size: 16px;
  line-height: 1.6;
  color: #74797f;
}

.testimonial-card__name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  font-style: normal;
  color: #333333;
  text-align: right;
}

.testimonial-slider .swiper-pagination-bullet {
  width: 48px;
  border-radius: 10px;
  background-color: #cccccc;
  opacity: 1;
}

.testimonial-slider .swiper-pagination-bullet-active {
  background-color: #ff2d55;
}

@media (max-width: 767px) {
  .testimonials__text {
    max-width: 100%;
    font-size: 16px;
  }

  .testimonials__title {
    font-size: 26px;
  }
}

/* ==========================================================================
   FAQ section
   ========================================================================== */
.faq {
  padding-block: var(--space-8);
  background-color: #eefbff;
}

.faq__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.faq__intro {
  flex: 1 1 calc(50% - var(--space-4) / 2);
}

.faq__kicker {
  margin: 0 0 var(--space-1);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-primary);
}

.faq__title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  color: #303030;
}

.faq__images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  align-items: center;
  margin-top: var(--space-4);
}

.faq__image {
  border-radius: 50%;
  border: 3px solid rgba(58, 59, 196, 0.3);
}

.faq__image--1 {
  animation: float-up 6s ease-in-out infinite;
}

.faq__image--2 {
  margin-top: -25px;
  animation: float-left 8s ease-in-out infinite;
}

.faq__image--3 {
  margin-top: -35px;
  animation: float-down 7s ease-in-out infinite;
}

.faq__image--4 {
  margin-top: 13px;
  animation: float-right 9s ease-in-out infinite;
}

@keyframes float-left {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-20px);
  }
}

@keyframes float-right {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
}

.faq__accordion {
  flex: 1 1 calc(50% - var(--space-4) / 2);
  align-self: center;
}

.faq-item {
  border-bottom: 1px solid #cacaca;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 14px 20px 14px 18px;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  color: #303030;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item[open] > .faq-item__question {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.faq-item__icon {
  flex: 0 0 auto;
  width: 12px;
  height: 14px;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item > .faq-item__answer {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.faq-item__answer-inner {
  padding: var(--space-2) 18px var(--space-3);
  background-image: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.4) 100%);
}

.faq-item__answer-inner p {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  color: var(--color-text);
}

@media (max-width: 767px) {
  .faq__title {
    font-size: 26px;
  }

  .faq-item__question {
    font-size: 16px;
  }
}

/* ==========================================================================
   CTA section
   ========================================================================== */
.cta {
  position: relative;
  z-index: 1;
  padding-block: var(--space-6) 0;
}

/* When the CTA directly follows testimonials (no FAQ in between), the
   slider's own bottom padding already provides spacing, so pull the
   CTA up to match the gap used elsewhere (e.g. FAQ -> CTA on the homepage). */
.testimonials + .cta {
  margin-top: -80px;
}

.cta__card {
  /* max-width: 900px; */
  margin-inline: auto;
  padding: 50px 64px;
  border: 2px solid #f5f5f5;
  border-radius: 15px;
  background-image: linear-gradient(90deg, #3d5cbd 0%, #cf82fb 100%);
  text-align: center;
}

.cta__title {
  margin: 0 0 var(--space-1);
  font-size: 36px;
  font-weight: 700;
  color: #303030;
}

.cta__title-highlight {
  color: var(--color-white);
}

.cta__text {
  margin: 0;
  font-size: 20px;
  color: var(--color-white);
}

.cta__button {
  margin-top: var(--space-3);
}

@media (max-width: 767px) {
  .cta__card {
    padding: 30px 20px;
  }

  .cta__title {
    font-size: 26px;
  }

  .cta__text {
    font-size: 16px;
  }
}

/* ==========================================================================
   Site footer
   ========================================================================== */
.site-footer {
  background-image: linear-gradient(90deg, #0f0c29 0%, #303030 50.96%, #24243e 100%);
  color: var(--color-white);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-block: var(--space-8) var(--space-6);
}

/* CTA banners overlap the footer by design (see .cta); pull the footer
   up and add matching extra top padding only when the page's last
   section is a CTA, so pages without one (e.g. Contact) aren't affected. */
main:has(> .cta:last-child) + .site-footer {
  margin-top: -100px;
}

main:has(> .cta:last-child) + .site-footer .site-footer__inner {
  padding-top: calc(100px + var(--space-6));
}

.footer-heading {
  margin: 0 0 var(--space-2);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
}

/* --- About column --- */
.footer-about {
  flex: 1 1 320px;
}

.footer-about__logo {
  display: block;
  margin-bottom: var(--space-2);
}

.footer-about__text {
  margin: 0;
  font-size: 16px;
  color: var(--color-white);
}

.footer-social {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 2px solid #dcdee7;
  border-radius: 50%;
  transition: border-color 0.3s ease;
}

.footer-social svg {
  width: 15px;
  height: 15px;
  fill: #dcdee7;
  transition: fill 0.3s ease;
}

.footer-social a:hover {
  border-color: var(--color-accent);
}

.footer-social a:hover svg {
  fill: var(--color-accent);
}

/* --- Contact column --- */
.footer-contact {
  flex: 1 1 280px;
}

.footer-contact__list li {
  margin-bottom: var(--space-2);
}

.footer-contact__list a,
.footer-contact__address {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  font-size: 16px;
  color: var(--color-white);
  transition: color 0.3s ease;
}

.footer-contact__list a:hover {
  color: var(--color-accent);
}

.footer-contact__list svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  fill: var(--color-accent);
}

/* --- Quick links column --- */
.footer-links {
  flex: 1 1 200px;
}

.footer-links__list li {
  margin-bottom: var(--space-1);
}

.footer-links__list a {
  font-size: 16px;
  color: var(--color-white);
  transition: color 0.2s ease-in-out;
}

.footer-links__list a:hover {
  color: var(--color-accent);
}

/* --- Bottom bar --- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-2);
}

.footer-bottom__copyright {
  margin: 0;
  font-size: 14px;
  color: var(--color-white);
}

.footer-bottom__legal {
  display: flex;
  gap: var(--space-3);
}

.footer-bottom__legal a {
  font-size: 14px;
  color: var(--color-white);
  transition: color 0.3s ease;
}

.footer-bottom__legal a:hover {
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .footer-bottom__inner {
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-header {
  display: flex;
  align-items: center;
  min-height: 240px;
  padding-block: var(--space-3);
  background-image: url("../images/page-banner.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-header__title {
  margin: 0 0 var(--space-1);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-white);
}

.breadcrumbs {
  font-size: 18px;
  color: #cf82fb;
}

.breadcrumbs a {
  color: var(--color-white);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs__separator {
  display: inline-block;
  margin-inline: var(--space-1);
}

.breadcrumbs__separator::before {
  content: "\203A";
}

@media (max-width: 1024px) {
  .page-header {
    min-height: 160px;
  }
}

/* ==========================================================================
   About intro section
   ========================================================================== */
.about-intro {
  padding-block: var(--space-6);
}

.about-intro__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.about-intro__media {
  flex: 1 1 460px;
  min-width: 0;
}

.about-intro__media img {
  display: block;
  width: 100%;
}

.about-intro__content {
  flex: 1 1 460px;
  min-width: 0;
}

.about-intro__title {
  margin: 0 0 var(--space-2);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: #303030;
}

.about-intro__subtitle {
  margin: 0 0 var(--space-2);
  font-size: 20px;
  font-weight: 600;
  color: #303030;
}

.about-intro__content p {
  margin: 0 0 var(--space-2);
  font-size: 18px;
  line-height: 1.2;
  color: #5c5c5c;
}

.about-intro__list {
  margin: 0;
  padding-inline-start: 20px;
  list-style: disc;
}

.about-intro__list li {
  margin-bottom: var(--space-2);
  font-size: 18px;
  line-height: 1.3;
  color: #5c5c5c;
}

.about-intro__list strong {
  color: #303030;
}

@media (max-width: 1024px) {
  .about-intro__title {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .about-intro__title {
    font-size: 26px;
  }
}

/* ==========================================================================
   Quote section
   ========================================================================== */
.quote {
  padding-block: 0 var(--space-4);
}

.quote__text {
  max-width: 900px;
  margin: 0 auto;
  padding-inline: 60px;
  background-image: url("../images/quote-left.png"), url("../images/quote-right.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center left, center right;
  background-size: 40px, 40px;
  text-align: center;
}

.quote__text p {
  margin: 0;
  font-size: 18px;
  color: #5c5c5c;
}

/* ==========================================================================
   Features section
   ========================================================================== */
.features {
  padding-block: var(--space-2) var(--space-6);
  background-image: url("../images/about-icon-bg.png");
  background-position: bottom center;
  background-repeat: no-repeat;
}

.features__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.feature {
  flex: 1 1 260px;
  text-align: center;
}

.feature__icon {
  margin-bottom: var(--space-2);
}

.feature__title {
  margin: 0 0 var(--space-1);
  font-size: 18px;
  font-weight: 600;
  color: #303030;
}

.feature__text {
  margin: 0;
  font-size: 16px;
  color: #74797f;
}

/* ==========================================================================
   Team section
   ========================================================================== */
.team {
  padding-block: var(--space-6);
  text-align: center;
}

.team__title {
  margin: 0 0 var(--space-4);
  font-size: 36px;
  font-weight: 700;
  color: #303030;
}

.team__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.team-card {
  flex: 1 1 320px;
  max-width: 360px;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-2) 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 12px;
}

.team-card__bar {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  width: 100%;
  padding: var(--space-1);
  border-radius: 12px;
  background-image: linear-gradient(90deg, #705fff 0%, rgba(112, 95, 255, 0.03) 100%);
  text-align: left;
}

.team-card__info {
  flex: 1 1 auto;
  min-width: 0;
}

.team-card__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
}

.team-card__role {
  display: block;
  font-size: 12px;
  color: var(--color-white);
}

.team-card__social {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: var(--color-white);
  transition: background-color 0.3s ease;
}

.team-card__social svg {
  width: 16px;
  height: 16px;
  fill: var(--color-primary);
  transition: fill 0.3s ease;
}

.team-card__social:hover {
  background-color: var(--color-primary);
}

.team-card__social:hover svg {
  fill: var(--color-white);
}

/* ==========================================================================
   Offer grid (service sub-pages)
   ========================================================================== */
.offer {
  padding-block: var(--space-6);
  text-align: center;
}

.offer__title {
  margin: 0 0 var(--space-1);
  font-size: 36px;
  font-weight: 700;
  color: #303030;
}

.offer__text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
}

.offer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  text-align: left;
}

.offer-card {
  flex: 1 1 240px;
  padding: 25px 18px;
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  background-color: #f8f7ff;
  transition: box-shadow 0.3s ease;
}

.offer-card:hover {
  box-shadow: 5px -3px 0 0 rgba(58, 59, 196, 0.28);
}

.offer-card__text {
  margin: 0;
  font-size: 16px;
  color: #74797f;
}

.offer__button {
  margin-top: var(--space-4);
}

@media (max-width: 767px) {
  .offer__title {
    font-size: 26px;
  }
}

/* ==========================================================================
   Pricing (Our Plans page)
   ========================================================================== */
.pricing {
  padding-block: var(--space-6);
  text-align: center;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.price-card {
  padding: 42px var(--space-3);
  border-radius: 12px;
  background-color: var(--color-primary);
  text-align: center;
}

.price-card--alt {
  background-color: var(--color-secondary);
}

.price-card__title {
  margin: 0 0 var(--space-1);
  font-family: "Quicksand", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}

.price-card__meta {
  margin: 0 0 var(--space-2);
  font-family: "Quicksand", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--color-white);
}

.price-card__amount {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--color-white);
}

.pricing__note {
  margin: var(--space-2) 0 0;
  font-size: 16px;
  color: var(--color-secondary);
}

.pricing__note + .pricing__note {
  margin-top: 0;
}

.pricing__button {
  margin-top: var(--space-2);
}

@media (max-width: 1024px) {
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .price-card__title {
    font-size: 22px;
  }

  .price-card__meta {
    font-size: 18px;
  }

  .price-card__amount {
    font-size: 30px;
  }
}

/* ==========================================================================
   Projects page (reuses .team-card component)
   ========================================================================== */
.projects {
  padding-block: var(--space-6);
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact {
  display: flex;
  align-items: center;
  flex: 1 0 auto;
  padding-block: var(--space-6);
  background-color: #eefbff;
}

.contact__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.contact__info {
  flex: 1 1 calc(40% - var(--space-4));
  min-width: 300px;
}

.contact__kicker {
  margin: 0 0 var(--space-1);
  font-size: 22px;
  color: var(--color-primary);
}

.contact__title {
  margin: 0 0 var(--space-2);
  font-size: 32px;
  font-weight: 700;
  color: #303030;
}

.contact__text {
  margin: 0;
  font-size: 16px;
  color: #5c5c5c;
}

.contact-list {
  margin-top: var(--space-3);
}

.contact-list li + li {
  margin-top: var(--space-2);
}

.contact-list li,
.contact-list a {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 15px;
  color: #303030;
  transition: color 0.3s ease;
}

.contact-list a:hover {
  color: var(--color-secondary);
}

.contact-list__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-image: linear-gradient(180deg, #705fff 0%, #21d8de 100%);
}

.contact-list__icon svg {
  width: 15px;
  height: 15px;
  fill: var(--color-white);
}

/* --- Form --- */
.contact-form {
  flex: 1 1 calc(60% - var(--space-4));
  min-width: 300px;
  padding: var(--space-3);
  border-radius: 10px;
  background-color: var(--color-white);
}

.contact-form__title {
  margin: 0 0 var(--space-3);
  font-size: 24px;
  font-weight: 700;
  color: #303030;
}

.contact-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.contact-form__field {
  flex: 1 1 200px;
  margin-bottom: var(--space-2);
}

.contact-form__field label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: 14px;
  font-weight: 600;
  color: #303030;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: var(--space-1) var(--space-2);
  border: 1px solid #dcdee7;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  color: #303030;
  background-color: var(--color-white);
  transition: border-color 0.3s ease;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form__field textarea {
  resize: vertical;
}

.contact-form__submit {
  border: none;
  cursor: pointer;
  background-color: var(--color-accent);
  color: var(--color-white);
}

.contact-form__submit:hover {
  background-color: var(--color-accent-hover);
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form__status {
  margin: 0 0 var(--space-2);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
}

.contact-form__status--success {
  background-color: #e6f6ec;
  border: 1px solid #9bd9b2;
  color: #1e7a3c;
}

.contact-form__status--error {
  background-color: #fcebea;
  border: 1px solid #f2b4b0;
  color: #b3261e;
}
