/* senior-hero section */
.senior-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.senior-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0) 40%,
    rgba(255, 255, 255, 0.85) 100%
  );
  z-index: 1;
}

.senior-hero__image {
  width: 100%;
  min-height: 350px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.senior-hero__header {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  top: 30%;
  left: 2rem;
  color: var(--color-primary-dark);
  z-index: 2;
  text-align: left;
}

.senior-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
  width: fit-content;
  /* From https://css.glass */
  background: rgba(240, 253, 244, 0.42);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(7.4px);
  -webkit-backdrop-filter: blur(7.4px);
  border: 1px solid rgba(240, 253, 244, 0.39);
}

.senior-hero__badge svg {
  width: 16px;
  height: 16px;
}

.senior-hero__title {
  max-width: 20ch;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.senior-hero__description {
  display: none;
}

.senior-hero__buttons {
  margin-top: 2rem;
}

.senior-hero__buttons .btn--primary {
  text-decoration: none;
  padding: 1.2rem 3.5rem;
}

.senior-hero__buttons .btn.btn--secondary {
  display: none;
}

.senior-hero__features {
  display: none;
}

@media screen and (min-width: 768px) {
  .senior-hero__header {
    top: 35%;
  }

  .senior-hero__description {
    display: block;
    font-size: 1.2ch;
  }

  .senior-hero__title {
    text-align: left;
    max-width: 22ch;
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }

  .senior-hero__buttons {
    display: flex;
    gap: 2rem;
  }

  .senior-hero__buttons .btn--primary,
  .senior-hero__buttons .btn--secondary {
    display: block;
    text-decoration: none;
  }

  .senior-hero__buttons .btn {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .senior-hero__header {
    top: 25%;
  }

  .senior-hero__image {
    height: 550px;
    object-position: center;
  }

  .senior-hero__badge {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .senior-hero__features {
    display: flex;
    justify-content: flex-start;
    margin-top: 4rem;
    gap: 1rem;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .senior-hero__feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--color-icones);
    padding: 1rem;
  }

  .senior-hero__feature svg {
    width: 26px;
    height: 26px;
  }

  .senior-hero__feature:first-child {
    border: none;
  }
}

/* service-about section */
.service-about__container {
  background-color: var(--color-background);
}

.service-about__content {
  display: flex;
  flex-direction: column;
  margin-top: 3rem;
  padding: 1rem;
}

.service-about__description {
  margin: 1rem 0 3rem 0;
  line-height: 1.8;
}

.service-about__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-about__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-about__list svg {
  width: 16px;
  height: 16px;
}

.service-about__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-about__image img {
  margin: 2rem 0 1rem 0;
  width: 320px;
  border-radius: 16px;
  height: 180px;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  .service-about__image img {
    width: 420px;
    height: 280px;
  }
}

@media screen and (min-width: 1024px) {
  .service-about__container {
    display: flex;
    margin-top: 5rem;
  }

  .service-about__image img {
    margin-left: 2rem;
  }
}

/* senior-services section */
.senior-services__container {
  margin-top: 5rem;
}

.senior-services__title {
  text-align: center;
}

.senior-services__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

.senior-services__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  margin: 1rem 3rem;
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.senior-services__card svg {
  width: 45px;
  height: 45px;
}

.senior-services__card-title {
  margin-top: 1rem;
}

.senior-services__card-description {
  text-align: center;
  line-height: 1.8;
}

@media screen and (min-width: 768px) {
  .senior-services__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .senior-services__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* service-process section */
.service-process__container {
  margin-top: 7rem;
}

.service-process__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.service-process__item-title {
  margin-top: 0.5rem;
}

.service-process__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.service-process__step {
  width: 34px;
  height: 34px;
}

.service-process__step svg {
  width: 100%;
  height: 100%;
}

.service-process__item {
  display: flex;
  flex-direction: column;
  width: 250px;
  min-height: 250px;
  padding: 1.8rem 1.5rem;
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: 0.35s;
}

.service-process__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(32, 193, 158, 0.15);
}

.service-process__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.service-process__content svg {
  width: 44px;
  height: 44px;
}

.service-process__item-text {
  text-align: center;
  line-height: 1.9;
}

.service-process__arrow svg {
  width: 32px;
  height: 32px;
  animation: arrowMove 1.6s ease-in-out infinite;
}

@keyframes arrowMove {
  0% {
    transform: translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(10px);
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
}

.arrow--left {
  display: none;
}

@media screen and (min-width: 768px) {
  .service-process {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .service-process__container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service-process__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    margin-top: 1.5rem;
    gap: 5rem;
  }

  .service-process__arrow {
    display: none;
  }
}

@media (min-width: 1280px) {
  .service-process__container {
    width: 90%;
  }

  .service-process__list {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2rem;
    margin: 2.5rem 2rem;
  }

  .service-process__arrow {
    display: block;
  }

  .arrow--left {
    display: block;
  }

  .arrow--bottom {
    display: none;
  }

  @keyframes arrowMove {
    0%,
    100% {
      transform: translateX(0);
      opacity: 0.5;
    }

    50% {
      transform: translateX(-10px);
      opacity: 1;
    }
  }
}

/* service-faq section */
.service-faq__container {
  margin-top: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 7rem 2rem 2rem 2rem;
}

.service-faq__title {
  text-align: center;
}

.service-faq__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.service-faq__question-box {
  padding: 1.5rem;
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: right;
  width: 100%;
  max-width: 700px;
  cursor: pointer;
  font: inherit;
}

.service-faq__question {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-faq__question-text {
  color: var(--color-heading);
  font-size: 1.4rem;
  font-weight: 400;
}

.service-faq__answer-text {
  color: var(--color-border);
  line-height: 2.5rem;
  margin-top: 1rem;
}

.service-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.service-faq__icon {
  transition: transform 0.3s ease;
}

.service-faq__item--active .service-faq__answer {
  max-height: 220px;
}

.service-faq__item--active .service-faq__icon {
  transform: rotate(180deg);
}

@media screen and (min-width: 768px) {
  .service-faq__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
  }
}

@media screen and (min-width: 1024px) {
  .service-faq__item {
    margin: 0 2rem 1rem;
  }

  .service-faq__question-text {
    font-size: 1.6rem;
  }
}

/* cta section */
.cta__container {
  display: grid;
  grid-template-columns: 1fr;
  /* From https://css.glass */
  background: rgba(43, 85, 91, 0.86);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16.7px);
  -webkit-backdrop-filter: blur(16.7px);
  border: 1px solid rgba(43, 85, 91, 0.78);
  padding: 1rem;
  margin: 7rem 1rem;
}

.cta__image {
  display: none;
}

.cta__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta__title,
.cta__description {
  color: var(--btnTextColor);
}

.cta__actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.cta__actions .btn {
  text-decoration: none;
  font-size: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .cta__container {
    grid-template-columns: 60% 40%;
    padding: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
  }

  .cta__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    /* From https://css.glass */
    background: rgba(43, 85, 91, 0.86);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(16.7px);
    -webkit-backdrop-filter: blur(16.7px);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .cta__image {
    display: block;
    height: 100%;
    overflow: hidden;
  }

  .cta__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }
}
