@import url("https://fonts.googleapis.com/css?family=Archivo:400,700,800,900,1000");

:root {
  --primary-clr: #747474;
  --primary-bg: 0, 0, 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #444444; /* Change to your desired color */
}

@media (prefers-color-scheme: light) {
  :root {
    --primary-clr: 747474;
    --primary-bg: 0, 0, 0;
  }

  header img {
    filter: invert(1);
  }
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  font-family: Archivo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

.container {
  margin: 0 auto;
}

.num-text {
  z-index: 2;
  position: relative;
  text-align: center;
  text-decoration: none;
}

nav {
  overflow: hidden;

  z-index: 10;
  display: flex;
  align-items: center;

  background-color: rgb(255, 255, 255, 0.05);

  padding-block: 2rem;

  .num {
    color: #8c278c;
    text-decoration: none;
  }

  img {
    width: 256px;
  }

  ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;

    margin: 0 auto;

    gap: 2rem;

    max-height: calc(100dvh);
  }

  .normal {
    color: #8c278c;
    opacity: 1;
  }

  li a {
    &.active {
      color: #8c278c;
      opacity: 1 !important;
    }

    display: flex;
    align-items: baseline;
    justify-content: center;

    text-decoration: none;
    padding: 1rem 0.25rem;
    opacity: 0.5;
    font-weight: 500;
    color: var(--primary-clr);

    transition: opacity 200ms;

    &:hover {
      opacity: 1;
    }
  }
}

.swiper {
  height: 800px;
  max-height: calc(100dvh - 81px);
}

.wrap:has(.map) {
  display: flex;
  flex-direction: column;
  width: min(125ch, 100%);
  text-align: center;
  margin: 0 auto;
  color: black;
  text-shadow: none;
  gap: 2rem;

  & > * {
    flex: 1;
  }

  overflow: hidden;

  .map {
    max-width: 100%;
    border-radius: 24pt;
  }

  h1 {
    margin-bottom: 3rem;
  }

  p {
    color: black;
    font-size: clamp(24px, 3vw, 28px);
    /* Responsive font size */
    text-shadow: none;
    font-weight: normal;

    span:not(.bold) {
      color: #7d7987;
    }

    .bold {
      font-weight: bold;
    }
  }

  .opaque {
    font-size: clamp(18px, 2vw, 20px) !important;
    color: #7d7987;
    line-height: 1.5;
  }
}

.swiper-slide {
  height: 100%;

  .wrap {
    box-shadow: inset 0 0 10px rgb(0, 0, 0, 0.5);
    box-sizing: border-box;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    position: relative;
  }

  img {
    object-fit: cover;
    object-position: bottom;

    height: 107.5%;
    width: 100%;

    left: 0;
    top: 0;

    position: absolute;
    z-index: -1;
    filter: brightness(0.65);
  }

  .filter {
    background-color: rgba(48, 4, 48, 0.5);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }

  p {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    /* Responsive font size */
    margin-top: 2rem;
    color: rgb(180, 180, 180);
    font-weight: normal;
    line-height: 1.5;
    max-width: 70ch;
    text-shadow: 0 0 4px rgb(0, 0, 0, 0.25);
  }

  h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    /* Responsive font size */
    margin-bottom: 3rem;
  }

  button {
    padding: 0.6rem 2.5rem;
    border-radius: 8pt;
    font-size: 1.125rem;
    background-color: #c154c1;
    color: white;
    outline: 0;
    border: 0;
    font-family: inherit;
    width: fit-content;
    cursor: pointer;
    margin-top: auto;
  }

  .spacer {
    margin-block: 4rem;
  }

  button.secondary {
    background-color: rgb(193, 84, 193, 0.25);
    backdrop-filter: blur(2px);
    margin-top: 2rem;
    color: white;
    border: 2px solid rgb(193, 84, 193);
    transition: transform 0.2s;
  }

  button.secondary:hover {
    transform: translateY(-5px);
  }
}

.author {
  font-weight: bold;
  color: #c154c1;
}

.cards-wrap {
  background: rgb(0, 0, 0);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(255, 255, 255, 1) 75%
  );

  padding-top: 3rem !important;
}

.title {
  text-align: center;
  padding-block: 2rem;
  margin-bottom: 4rem;
  font-size: 3rem;

  &.medium {
    font-size: 2rem;
  }
}

.sub {
  color: #7d7987;
  text-align: center;
}

.underline {
  position: relative;
}

.underline::after {
  content: "";
  position: absolute;

  height: 3px;
  width: 100px;

  background-color: #c154c1;
  border-radius: 4pt;

  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
}

.button-wrap {
  display: flex;
  flex-direction: column;
}

.button-wrap span {
  margin-top: 0.5rem;
  color: white;
  text-align: center;
  opacity: 0.75;
  z-index: 10;

  a {
    color: inherit;
  }
}

.cards {
  box-sizing: border-box;
  width: 100%;

  display: flex;
  gap: 2rem;

  & > * {
    flex: 1;
    padding: 1rem;
    box-sizing: border-box;
    background-color: white;
    border-radius: 12pt;
    box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;
  }

  .card-wrap {
    padding: 1.5rem;

    display: flex;
    gap: 1rem;
    align-items: center;
    flex-direction: column;
    height: 100%;

    text-align: center;

    p {
      max-width: 30ch;
      text-align: center;
      opacity: 0.75;
    }

    a {
      margin-top: auto;
      width: 100%;
      color: #8c278c;
    }

    button {
      margin-top: auto;
      padding: 0.75rem;
      border-radius: 8pt;
      font-size: 1.125rem;
      background-color: #c154c1;
      color: white;
      outline: 0;
      border: 0;
      font-family: inherit;
      width: 50%;
      cursor: pointer;

      &.secondary {
        background-color: transparent;
        border: #c154c1 2px solid;
        color: #c154c1;
      }

      transition-property: transform background-color;
      transition-duration: 125ms;

      &:hover {
        transform: translateY(-5px);
        background-color: #c154c1;
        color: white;
      }
    }

    h2 {
      text-transform: uppercase;
      font-weight: 600;
    }

    svg {
      width: 32px;
    }
  }
}

.form-wrap {
  background-color: rgb(240, 240, 240);
  padding-block: 3rem;
}

.form-date,
.form-contact {
  border-radius: 12pt;
  overflow: hidden;
  width: min(calc(100% - 16rem), 100%);
  background-color: white;
  margin: 0 auto;
  display: flex;

  box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;

  & > * {
    flex: 1;

    img {
      max-width: 100%;
      max-height: 100%;

      filter: saturate(0) brightness(0.75);

      height: 100%;
      width: 100%;
      object-fit: cover;
    }

    &:not(:has(img)) {
      padding: 2rem;
    }

    &:has(input) {
      flex: 2;
      z-index: 3;
      width: 100%;

      input,
      textarea {
        display: block;
        width: 100%;

        padding: 0.6rem;
        outline: 0;
        border: 0;
        margin-block: 0.25rem;
        border-radius: 3pt;
        outline: rgba(0, 0, 0, 0.1) 1px solid;

        font-family: inherit;
        font-size: 1rem;
        transition: outline-color 100ms;

        &:focus {
          outline-color: #8c278c;
        }
      }

      textarea {
        resize: none;
        height: 75px;
      }

      :not(input) {
        margin-bottom: 1rem;
      }

      label {
        margin-top: 1rem;
        margin-bottom: 0;
        display: block;
      }

      textarea {
        display: block;
      }

      button {
        display: block;

        padding: 1rem 2rem;
        border-radius: 8pt;
        font-size: 1.125rem;

        background-color: #222;
        color: white;

        margin-top: 2rem;
        outline: 0;
        border: 0;

        font-family: inherit;
        width: fit-content;
        cursor: pointer;

        box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;
      }

      .input-wrap {
        width: 100%;

        display: flex;
        gap: 2rem;

        .input {
          margin-bottom: 0;
          width: 100%;
          display: flex;
          flex-direction: column;

          & > * {
            flex: 1;
          }
        }
      }
    }
  }
}

.form-contact {
  flex-direction: row-reverse;
}

footer {
  background-color: rgb(240, 240, 240);

  .dc {
    text-align: center;
    opacity: 0.5;
    padding-block: 2rem;
  }
}

.footer-wrap {
  display: flex;
  width: 100%;

  & > * {
    flex: 1;
  }

  .footer-col.nav {
    a {
      font-size: 0.9rem;
      padding-left: 0;
      opacity: 1;
    }

    li:not(:has(a)) {
      padding: 1rem;
      padding-left: 0;
    }

    li,
    li a {
      display: flex;
      gap: 1ch;
      align-items: center;
    }

    svg {
      width: 20px;
      stroke-width: 2px;
    }
  }

  .footer-col.center {
    ul {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: left;
    }
  }

  .footer-col.img {
    display: flex;
    align-items: center;

    img {
      width: 150px;
    }
  }

  .footer-col.social {
    max-width: fit-content;

    ul {
      display: flex;
      flex-direction: column;
    }

    li {
      height: 49px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    a {
      background-color: black;
      color: white;
      opacity: 1;

      font-size: 0.9rem;
      padding: 0.5rem;
      border-radius: 8pt;
      width: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      aspect-ratio: 1/1;
    }
  }

  ul {
    list-style: none;
    padding: 0;
  }

  ul li a {
    color: var(--primary-clr);
    text-decoration: none;
    opacity: 0.5;
    font-size: 1rem;
    padding: 1rem;
    display: block;

    transition: opacity 250ms;

    &:hover {
      opacity: 1;
    }
  }

  @media (max-width: 768px) {
    flex-direction: column;
    align-items: flex-start;

    .footer-col.img {
      margin: 0 auto;
    }

    ul li a {
      padding-left: 0;
    }

    .footer-col.social ul {
      flex-direction: row;
      gap: 1rem;
    }
  }
}

li a::after {
  content: "";
  height: 2px;
  height: 3px;
  width: 0;
  position: absolute;
  border-radius: 12pt;
  bottom: 0;
  left: 0;
  background-color: #c154c1;
  transition: width 200ms;
}

.active::after {
  width: 100%;
}

li a {
  position: relative;
  width: fit-content;
}

nav li a:hover::after {
  width: 100%;
}

.reviews-section.responsive-section {
  padding-block: 0rem;
}

.wrap.responsive-section {
  padding-top: 0rem;
}

.reviews-section {
  position: relative;

  h1 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
  }

  .reviews-container {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 2rem;

    & > * {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
      flex: 1;
      text-align: center;
      padding: 2rem;
      border-radius: 12pt;

      color: #7d7987;
      box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;

      p {
        line-height: 2;
      }
    }
  }
}

.ratings {
  position: relative;
  vertical-align: middle;
  display: inline-block;
  color: black;
  overflow: hidden;
  display: flex;

  gap: 0.25rem;
}

.full-stars {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  overflow: hidden;
  color: #c154c1;
}

.empty-stars:before,
.full-stars:before {
  content: "\2605\2605\2605\2605\2605";
  font-size: 30px;
  max-height: 30px;
}

@-moz-document url-prefix() {
  .full-stars {
    color: #c154c1;
  }
}

nav {
  justify-content: space-between;

  #callNavList {
    display: none;
  }

  svg {
    stroke: black;
    width: 32px;
  }

  #hamburger {
    display: none;
  }

  box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;

  @media (max-width: 1000px) {
    .active::after {
      height: 100%;
      background-color: #8c278c;
      z-index: -1;
    }

    .active {
      color: white !important;
    }

    ul {
      display: none;
      flex-direction: column;
      align-items: start;

      position: absolute;
      right: 0;
      top: 0;

      background-color: white;

      z-index: 99;

      transform: translateX(-100%);

      width: 100%;
      height: 100%;
      gap: 0;

      li:first-child {
        border-top: 1px solid black;
      }

      li {
        border-bottom: 1px solid rgb(0, 0, 0, 0.25);
        width: 100%;
        height: 100%;
        padding: 0;
        flex: 1;

        a {
          width: 100%;
          height: 100%;

          display: flex;
          align-items: center;
          justify-content: center;

          font-size: 1.25rem;
        }
      }
    }

    .defaultLogo {
      width: 64px;
      display: block;
    }

    #hamburger {
      display: block;
    }

    #callNav {
      display: none;
    }

    #callNavList {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      opacity: 1;
    }
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }

  100% {
    opacity: 1;
    transform: translateX(0%);
  }
}

.popIn {
  animation: popIn 500ms forwards ease-out;
}

.popOut {
  animation: popOut 500ms forwards ease-out;
}

@keyframes popOut {
  0% {
    opacity: 1;
    transform: translateX(0%);
  }

  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
}

.cards {
  @media (max-width: 768px) {
    flex-direction: column;
    /* Stack cards on smaller screens */
  }
}

.action-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  gap: 5rem;
  background-color: #8c278c;
  color: white;
  padding: 8rem 6rem;
  border-radius: 12pt;
  margin: 8rem auto;
  margin-bottom: 0;

  box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;

  button {
    background-color: white;
    border: 0;
    outline: 0;

    border-radius: 8pt;
    padding: 1rem 3rem;
    height: fit-content;
    font-family: inherit;
    color: #c154c1;
    font-weight: bold;
    font-size: 1rem;

    box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;
    cursor: pointer;

    z-index: 2;
    transition: transform 250ms;

    &:hover {
      transform: translateY(-5px);
    }
  }

  a {
    z-index: 2;
  }

  h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    /* Responsive font size */
    max-width: 25ch;
    z-index: 2;

    p {
      margin-top: 1rem;
      font-size: 0.9rem;
      color: rgb(200, 200, 200);

      a {
        color: inherit;
      }
    }
  }

  position: relative;

  img {
    position: absolute;

    object-fit: cover;

    width: 100%;
    height: 100%;

    bottom: 0;
    right: 0;

    z-index: 0;
  }

  @media (max-width: 768px) {
    width: 100%;
    flex-direction: column;
    /* Stack cards on smaller screens */

    padding: 2rem;
  }
}

.swiper-pagination {
  margin: 2rem;
  margin-inline: 0;
}

.swiper-pagination-bullet {
  width: 16px !important;
  height: 16px !important;
  aspect-ratio: 1/1;
  background-color: rgb(220, 220, 220) !important;
  opacity: 1 !important;
  margin-inline: 8px !important;
}

.swiper-pagination-bullet-active {
  background-color: #c154c1 !important;
}

.rotate {
  transform: scaleX(-1);

  position: absolute;
  left: 0;
  width: 100%;
}

.responsive-section {
  padding: clamp(1rem, 8vw, 8rem);
  /* Dynamic padding for all sections */
  box-sizing: border-box;
}

footer,
nav {
  padding-block: 2rem !important;
}

.logo {
  user-select: none;
  position: absolute;
  background-color: transparent !important;
  box-shadow: none !important;
  opacity: 0.05;
  bottom: 0;
  left: 0;
  z-index: 0;

  height: 100%;
  width: 100%;

  img {
    height: 100%;
    width: 100%;
  }
}

.caretype,
.carecost,
.care-services,
.aboutus {
  background-color: rgb(245, 245, 245);
  position: relative;
}

.caretype,
.carecost,
.aboutus,
.join-team {
  *:not(.logo, .action-banner img) {
    z-index: 1;
  }

  .logo {
    height: fit-content;
    top: 4%;
    left: -30%;
    opacity: 0.5;
    z-index: 0;
  }
}

.join-team {
  scroll-behavior: smooth;
  scroll-padding-bottom: 400px;
}

.join-team .logo {
  height: fit-content;
  top: 4%;
  left: unset;
  right: -30%;
  opacity: 0.5;
  z-index: 0;
}

.aboutus .logo {
  top: 7.5%;
  left: -35%;
  opacity: 0.2;
}

.join-team.responsive-section,
.aboutus.responsive-section {
  padding-top: 64px;
}

.carecost {
  ul {
    list-style-position: inside;
    font-size: 1.25rem;
    padding: 0;
  }

  .sub.black {
    opacity: 1;
    font-size: 1.25rem;
    margin-top: 4rem;
  }

  .pay-cards {
    margin: 0 auto;
    display: flex;
    width: min(150ch, 100%);
    justify-content: center;

    & > * {
      margin: 2rem;
      padding: 1.25rem 2rem;
      padding-bottom: 0.5rem;
      display: flex;
      flex: 1;
      flex-direction: column;
      gap: 3rem;
      border-radius: 12pt;
      background-color: white;
      box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;

      .price {
        color: #8c278c;
        font-size: 1.5rem;
        font-weight: bold;

        span {
          font-size: 1rem;
          font-weight: normal;
          color: rgb(100, 100, 100);
        }
      }
    }
  }
}

.flex {
  display: flex;
  justify-content: center;
  gap: 120px;

  & > * {
    &:is(div) {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: fit-content;
      padding: 2rem 4rem;

      ul {
        list-style-position: outside;
        max-width: 35ch;

        li {
          line-height: 2;
        }
      }

      h1 {
        text-align: center;
      }
    }
  }

  img {
    flex: 1;
    max-width: 50%;
    border-radius: 24pt;
    max-height: 450px;
  }

  a {
    text-decoration: none;
  }

  button {
    padding: 0.75rem 3rem;
    border-radius: 8pt;
    font-size: 1rem;
    background-color: #c154c1;
    color: white;
    outline: 0;
    border: 0;
    font-family: inherit;
    width: fit-content;
    cursor: pointer;
    display: block;
  }
}

.caretype .swiper .swiper-slide > * {

}

.caretype .swiper {
  .swiper-slide {
    display: flex;
    gap: 1rem;

    @media (max-width: 768px) {
      flex-direction: column;
      img {
        user-select: none;
      }

      button {
        width: 100% !important;
      }

      & > * {
        max-width: unset !important;
      }
    }

    & > * {
      flex: 1;
      max-width: 50%;
      height: 75%;

      &:has(ul) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        h1 {
          font-size: 3.25rem;
        }
      }

      &:has(ul) > * {
        margin-block: 1rem;
        width: fit-content;
      }
    }
  }

  ul {
    opacity: 0.5;
    line-height: 2;
  }

  img {
    position: relative;
    filter: none;
    opacity: unset;
    height: 100%;
    border-radius: 12pt;
    box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;
  }
}

.more-text {
  display: none; /* Hide the full text initially */
}

.read-more {
  cursor: pointer;
  color: #c154c1;
  text-decoration: underline;
  display: inline-block;
  margin-top: 5px;
}

.colorful {
  color: #8c278c;
}

.colorful-2 {
  color: #c154c1;
}

.join-team {
  background-color: rgb(245, 245, 245);
}

.join-team .title {
  margin-bottom: 0;
}

.jobs {
  display: flex;
  gap: 4rem;
  margin-top: 2rem;

  & > * {
    box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;
    flex: 1;
    padding: 1.5rem;
    background-color: white;
    border-radius: 12pt;
  }
}

.job-listing {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  img {
    width: 196px;
    margin: 0 auto;
  }

  h1 {
    margin-block: 2rem;
  }
}

.job-listing > * {
  margin-block: 1rem;
}

.job-listing h3 {
  margin-bottom: 0;
}

.job-listing ul {
  margin-top: 0;
}

.job-listing p {
  margin-block: 2rem;
  font-size: 1.25rem;
}

.contact-info {
  font-weight: 600;
  text-align: center;
  color: rgb(100, 100, 100);

  a {
    color: #c154c1;
  }

  button {
    border: 0;
    outline: 0;
    padding: 1rem 6rem;
    background-color: #c154c1;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    border-radius: 8pt;
    cursor: pointer;
  }
}

.job-listing .info {
  ul,
  h3,
  p {
    opacity: 0.5;
    line-height: 1.75;
  }
}

.variety {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(110ch, 100%);
  gap: 2rem;
  margin: 0 auto;
  margin-top: 4rem;

  .service-box {
    background-color: white;
    border-radius: 12pt;
    padding: 2rem;
    box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;

    & > * {
      margin-block: 1rem;
    }
    .sub {
      text-align: left;
      line-height: 1.75;
    }
  }
}
.sec-care-services {
  display: flex;
  position: relative;
  gap: 2rem;
}
.sec-care-services > .logo {
  z-index: 1 !important;
}

.sec-care-services > * {
  background-color: rgb(255, 255, 255);
  color: #7d7987;
  font-size: 18px;
  box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;
  border-radius: 12pt;
  padding: 2rem;
  flex: 1;

  h2 {
    color: #8c278c;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 4rem;
  }

  ul {
    padding: 1rem;
    list-style-position: outside;
    line-height: 1.75;
    opacity: 0.675;
    position: relative; /* Add this */
    z-index: 2 !important;
  }
}

.care-services form {
  margin-top: 4rem;
  width: min(650px, 100%);
  margin-inline: auto;

  h1 {
    text-align: center;
  }

  h3,
  h1 {
    margin-block: 2rem;
  }

  img {
    margin-inline: auto;
    display: block;
  }

  label {
    display: block;

    .required {
      color: #c154c1;
    }
  }

  .input-wrap {
    display: flex;
    gap: 1rem;
    width: 100%;
  }

  .input-wrap .wrapped {
    flex: 1;
  }

  input,
  textarea,
  button {
    font-family: inherit;
    border: 0;
    outline: 0;
    border-radius: 8pt;
    margin-block: 1ch;
    padding: 1.5rem;
    font-size: 1rem;
    width: 100%;
  }

  button {
    background-color: #c154c1;
    color: white;
    width: fit-content;
    padding: 1rem 5rem;
    cursor: pointer;
    font-size: 1rem;
  }

  textarea {
    min-height: 20ch;
    resize: none;
  }
}

.join-team-form {
  display: flex;
  margin-top: 4rem;
  background-color: rgb(255, 255, 255);
  border-radius: 12pt;
  overflow: hidden;

  box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;

  & > * {
    flex: 1;
  }

  form {
    padding: 2rem;

    label {
      display: block;

      .required {
        color: #c154c1;
      }
    }

    .input-wrap {
      display: flex;
      gap: 1rem;
      width: 100%;
    }

    .input-wrap .wrapped {
      flex: 1;
    }

    label,
    h4 {
      margin-block: 1rem 0.5rem;
    }

    input,
    textarea,
    button,
    select {
      font-family: inherit;
      border: 0;
      outline: 0;
      border-radius: 8pt;
      padding: 1rem;
      font-size: 1rem;
      background-color: rgb(240, 240, 240);
      width: 100%;
    }

    select {
      background-color: rgb(240, 240, 240);
      color: rgb(0, 0, 0, 0.675);
    }

    button {
      background-color: #c154c1;
      color: white;
      width: fit-content;
      padding: 1rem 5rem;
      cursor: pointer;
      font-size: 1rem;
      margin-top: 2rem;
    }

    textarea {
      min-height: 20ch;
      resize: none;
    }
  }

  .radios {
    display: flex;
    gap: 3rem;

    & > * {
      display: flex;
      align-items: baseline;
      gap: 1rem;

      & > * {
        width: fit-content;
      }
    }
  }
}

.banner-colorful {
  background-color: #8c278c;
  color: white;
  border-top-right-radius: 12pt;
  border-top-left-radius: 12pt;
  padding: 2rem 4rem;
  width: min(115ch, 100%);
  line-height: 1.5;

  p {
    margin-block: 1rem;
  }

  position: relative;
  overflow: hidden;

  .banner-logo {
    position: absolute;
    right: -15%;
    bottom: 0;
    height: 100%;
    opacity: 0.1;
  }
}

.banner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 120px;
  position: relative;

  .banner-image {
    width: min(115ch, 100%);
    background-color: white;
    box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;
    overflow: hidden;
    border-bottom-right-radius: 12pt;
    border-bottom-left-radius: 12pt;
    img {
      object-fit: cover;
      object-position: center;
      height: 100%;
      width: 100%;
    }
  }
}

.team-container {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 1rem;
}

.member {
  display: flex;
  gap: 8rem;
  background-color: rgb(255, 255, 255);

  box-shadow: rgb(0, 0, 0, 0.05) 0px 20px 27px 0;

  border-radius: 12pt;
  padding: 2rem 4rem;
}

.member h1 {
  color: #c154c1;
}

.member p {
  font-size: 20px;
  line-height: 26px;
  color: #7d7987;
}

.img-wrap {
  min-width: 350px;
  padding: 1rem;

  & > img {
    width: 100%;
    height: 100%;
    border-radius: 12pt;
  }
}

.member-desc > * {
  margin-block: 1rem;
}

.form-image {
  flex: 0.5;
  background-size: cover;
  background-position: center;
  background-image: url(../images/jointeam.png);
}

.home {
  nav {
    background-color: transparent !important;

    a {
      color: white !important;
      opacity: 1;
    }

    box-shadow: none;

    svg {
      stroke: white;
      margin-right: 1rem;
    }

    .normal {
      background-color: #8c278c;
      border-radius: 12pt;
      padding-inline: 1rem;
    }

    .normal:hover::after {
      width: unset;
    }
  }

  .gradient {
    background: rgb(0, 0, 0);
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(255, 255, 255, 1) 100%
    );

    height: 100%;
    width: 100%;

    bottom: 0;
    left: 0;

    position: absolute;
  }

  .landing {
    position: relative;

    background-image: url(../images/mainpageimgBlur.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    min-height: 100dvh;

    .title {
      color: white;
    }

    .landing-info {
      font-weight: 300;
      color: #f8f8f8;

      p {
        width: min(1130px, 100%);
        line-height: 1.4;
        margin-block: 2rem;
      }

      button {
        margin-top: auto;
        padding: 1rem 4rem;
        border-radius: 8pt;
        font-size: 1.125rem;
        background-color: #8c278c;
        color: white;
        outline: 0;
        border: 0;
        font-family: inherit;
        cursor: pointer;

        &.secondary {
          background-color: transparent;
          border: #c154c1 2px solid;
          color: #c154c1;
        }

        transition-property: transform background-color;
        transition-duration: 125ms;

        &:hover {
          transform: translateY(-5px);
          background-color: #c154c1;
          color: white;
        }
      }

      b {
        color: white;
      }
    }
  }
}

@media (max-width: 1550px) {
  nav.responsive-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 1366px) {
  .responsive-section {
    padding: 2rem;
  }

  .reviews-container {
    grid-template-columns: repeat(2, auto) !important;
  }

  .variety {
    grid-template-columns: repeat(2, 1fr);
  }

  .pay-cards {
    flex-wrap: wrap;
    gap: 1rem;
    margin-block: 2rem !important;

    .pay-card {
      width: 100%;
      margin: 0;
    }
  }
}

@media (max-width: 768px) {
  .join-team-form,
  .member,
  .jobs,
  .sec-care-services,
  .wrap {
    flex-direction: column;
  }

  .banner-colorful {
    padding-inline: 2rem;
  }

  .logo {
    display: none;
  }

  .team-container {
    display: block;
  }

  .flex {
    flex-direction: column-reverse;
    align-items: center;
    margin-block: 120px;
    gap: 1rem;

    button {
      margin-inline: auto;
    }

    & div {
      padding: 0;
    }
    img {
      width: 100%;
      max-width: 100%;
    }
  }

  .pay-card {
    flex: unset !important;
  }

  .member {
    margin-block: 1rem;
    padding: 0;
    gap: 0;
    height: fit-content;

    border-radius: 12pt;
    overflow: hidden;

    .member-content {
      padding: 1rem;
    }

    .img-wrap {
      min-width: unset;
      width: 100%;
      padding: 0;
      img {
        border-radius: 0;
      }
    }
  }

  .care-services form {
    .input-wrap {
      flex-direction: column;
      margin-bottom: 1rem;
    }
  }

  .responsive-section {
    padding: 2rem;
    /* Adjust padding for small screens */
  }

  .responsive-section .responsive-section {
    padding: 0;
  }

  .variety {
    grid-template-columns: repeat(1, 1fr);
  }

  .carecost ul {
    text-align: center;
    list-style: none;

    li {
      margin-bottom: 1rem;
    }
  }

  .reviews-container {
    grid-template-columns: repeat(1, auto) !important;
  }

  .swiper-pagination {
    display: none;
  }

  .home nav a {
    color: black !important;
  }

  .home nav .active {
    background-color: #8c278c;
    color: white !important;
  }
}

.toggle-text {
  color: #8c278c;
  font-weight: bold;
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: 1rem;
  font-size: 14px;
  text-decoration: underline;
  padding: 0;
}

.home {
  .num-text {
    padding: 1rem;
  }

  .num-text::after {
    border-radius: 12pt;
    background-color: #8c278c;

    width: 200%;
    height: 100%;

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    z-index: -1;
  }
}
