/*-- -------------------------- -->
<---           Hero            -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem) {
  #hero-cta {
    margin-block: clamp(2.5rem, 4vw, 6.25rem);
    width: 100%;
    margin: auto;

    height: 100%;

    position: relative;

    padding-block: 8rem;
  }

  #hero-cta .container {
    display: flex;
    flex-direction: column;
    margin: auto;

    width: 100%;

    padding: 0 1rem;
    max-width: 80rem;
  }

  #hero-cta .picture {
    width: 100%;
    height: 100%;
    object-fit: cover;

    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }

  #hero-cta .picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
  }

  .hero-paragraph {
    font-size: var(--bodyBigFontSize);
    color: var(--bodyTextColorWhite);
    line-height: 1.5;
  }

  .button-group {
    display: flex;
    margin-top: clamp(0.8rem, 4vw, 2rem);
    gap: 4px;
  }

  .container .button-solid {
    font-size: var(--bodyFontSize);
    font-weight: 500;
    border: none;
    line-height: 1.5em;
    text-decoration: none;
    cursor: pointer;
    color: var(--bodyTextColorWhite);
    background-color: var(--primary);
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    justify-content: center;
  }

  .container .button-transparent {
    font-size: var(--bodyFontSize);
    font-weight: 500;
    border: none;
    line-height: 1.5em;

    cursor: pointer;
    color: var(--bodyTextColorWhite);

    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: center;
  }
}

@media only screen and (min-width: 48rem) {
  /*-- -------------------------- -->
<---           Hero            -->
<--- -------------------------- -*/
  #hero-cta {
    width: 100%;

    padding-block: 8rem;
  }

  #hero-cta .container {
    width: 100%;
    padding: 0 2.5rem;
  }

  #hero-cta .content {
    max-width: 38rem;
  }

  #hero-cta .picture img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }

  .button-group {
    display: inline-flex;
    flex-direction: row;
  }
  /* 
  .container .button-solid {
    height: 100%;
  
    font-size: var(--bodyFontSize);
    font-weight: 500;
    border: none;
    line-height: 1.5em;
 
    cursor: pointer;
    color: var(--bodyTextColorWhite);
    background-color: var(--primary);
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    
  } */

  .container .button-transparent {
    height: 100%;
    align-self: flex-start;
    font-size: var(--bodyFontSize);
    font-weight: 500;
    border: none;
    line-height: 1.5em;
    min-width: 8rem;
    cursor: pointer;
    color: var(--bodyTextColorWhite);

    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    display: flex;
  }

  .button-solid:hover {
    background-color: var(--primaryDark);
  }
}

/*-- -------------------------- -->
<---           About            -->
<--- -------------------------- -*/

@media only screen and (min-width: 0rem) {
  #about {
    margin-block: clamp(2.5rem, 4vw, 6.25rem);
  }

  #about .container {
    padding-inline: 1rem;
    margin: auto;
    max-width: 80rem;
  }
  #about .content {
    flex-direction: column;
    /* text-align: center; */
  }

  #about .text-style {
    color: var(--primary);
  }

  #about .about-paragraph {
    font-size: var(--bodyFontSize);
    color: var(--bodyTextColor);
    line-height: 1.5;
  }

  #about .content {
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  }

  #about .background-img {
    background-image: url("/assets/images/barber-m.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    width: 100%;
    height: clamp(18.75rem, 40vw, 31.25rem);
    border-radius: 0.75rem;
  }
}

@media only screen and (min-width: 58rem) {
  #about {
    width: 100%;
  }

  #about .container {
    padding-inline: 2.5rem;
  }
  #about .background-img {
    background-image: url("/assets/images/barber.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    width: 100%;
    height: clamp(18.75rem, 40vw, 31.25rem);
  }

  #about .content {
    text-align: left;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
  }

  #about .text-style {
    display: block;
  }

  .about-paragraph {
    max-width: 30rem;
  }
}

@media only screen and (min-width: 80rem) {
  #about .background-img {
    background-attachment: fixed;
  }
}

/*-- -------------------------- -->
<---           Why              -->
<--- -------------------------- -*/

@media only screen and (min-width: 0rem) {
  #why {
    margin-block: clamp(2.5rem, 20vw, 6.25rem);
  }

  #why .container {
    padding-inline: 1rem;
    margin: auto;
    max-width: 80rem;
  }
  #why .content {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  #why .section-title {
    margin: 0;
  }

  #why .about-paragraph {
    line-height: 1.5;
  }

  .paragraph-title {
    text-align: center;
    font-size: var(--headerRegularFontSize);
    color: var(--bodyTextColor);
  }

  .paragraph-text {
    font-size: 1rem;
    color: var(--bodyTextColor);
    line-height: 1.5;
  }

  .threshold {
    position: sticky;
    width: 100%;
    height: 1px;

    z-index: 9999999999;
  }

  .threshold--top {
    top: 50%;
  }

  .image {
    opacity: 0;
    transition: all 0.5s ease;
  }

  .image.active {
    display: none;
    opacity: 1;
  }

  .locker {
    outline-offset: -1px;
    position: relative;
    display: grid;
    grid-template-columns:
      [full-start] minmax(4.2rem, 1fr)
      [center-start] repeat(12, [col-start] minmax(min-content, 8rem) [col-end])
      [center-end] minmax(4.2rem, 1fr) [full-end];
  }

  .locker__container {
    position: sticky;
    position: -webkit-sticky;
    top: 9vh;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    
  }

  .locker__content {
    grid-column: 1 / -1;
  }

  .locker__section {
    display: none;

    display: flex;
    justify-content: center;

    flex-direction: column;
    align-items: center;
  }

  .locker__container,
  .locker__image {
    display: none;
  }

  .locker__image {
    width: 115%;

    position: relative;
    grid-column: col-start 2 / col-end 6;
  }

  .locker__section:first-child {
    border: none;
  }

  #message {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: white;
    height: auto;
    padding: 10px 20px;
    z-index: 900;
  }

  .mobile-img {
    padding: 2rem;
    width: 100%;
  }
}

@media only screen and (min-width: 58rem) {
  #why .container {
    padding-inline: 2.5rem;
  }
  .mobile-img {
    display: none;
  }

  .locker__section {
    height: 100vh;
  }

  .image.active {
    display: block;
    opacity: 1;
  }

  .locker__image img {
    /* width: auto;
  padding: 0;
  height: 70vh;
  position: absolute;
  transition: all 1s ease; */
    display: block;
    width: 100%;
    height: auto;
    height: auto;
    position: absolute;
    width: 185%;

    right: 0;
    transition: all 1s ease;
    padding: 80px 30px 10px 240px;
    border-radius: 4px;
  }

  .locker__content {
    grid-column: col-start 8 / center-end;
  }

  .locker__section {
    align-items: normal;
  }

  .locker__container,
  .locker__image {
    display: block;
  }

  .paragraph-title {
    text-align: left;
  }
}

/*-- -------------------------- -->
<---          Services          -->
<--- -------------------------- -*/

@media only screen and (min-width: 0rem) {
  #services {
    margin-block: clamp(2.5rem, 20vw, 6.25rem);
    color: var(--bodyTextColorWhite);
    background-color: var(--secondary);
  }

  #services .container {
    padding-inline: 1rem;
    margin: auto;
    max-width: 80rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #services .content {
    display: flex;
    flex-direction: column;

    justify-content: center;
    /* text-align: center; */
  }

  #services .section-title {
    max-width: 17ch;
    align-self: center;
    text-align: center;
  }

  #services .services-paragraph {
    font-size: var(--bodyFontSize);
    color: var(--bodyTextColorWhite);
    line-height: 1.5;
  }

  #services .wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(1.2rem, 2vw, 2rem);
    padding: 0;
    align-items: stretch;
  }

  .wrapper .card {
    width: 100%;
    max-width: 23rem;
    line-height: 1.3;
    display: flex;

    flex-direction: column;

    background-color: var(--secondaryLight);
    border-radius: 0.5rem;
    overflow: hidden;
  }

  .card .card-content {
    display: flex;
    flex-direction: column;

    padding: clamp(0.5rem, 4vw, 1rem) 1.5rem;
    flex: 1 1 auto;
  }

  .card-content .card-text {
    font-size: var(--bodyFontSize);
  }

  .card-content .paragraph-title {
    margin: 0;
    color: var(--bodyTextColorWhite);
  }

  .card-content .link {
    font-size: var(--bodyFontSize);
    text-decoration: none;
    color: var(--bodyTextColorWhite);
    font-weight: 600;
    font-style: bold;
    margin-top: auto;
    text-align: right;
  }

  .card .card-img {
    display: block;
    width: 100%;

    height: clamp(20rem, 25vw, 35rem);

    object-fit: cover;
  }
}

@media only screen and (min-width: 40.75rem) {
  #services .container {
    padding-inline: 2.5rem;
  }

  #services .content {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
  }

  #services .topper {
    text-align: left;
  }

  #services .section-title {
    max-width: 12ch;
    text-align: left;
  }

  .services-paragraph {
    max-width: 30rem;
  }

  #services .wrapper {
    flex-direction: row;
    flex-wrap: wrap;

    width: 100%;
    padding: 10px;
    justify-content: center;
  }

  .wrapper .card {
    width: 48%;
  }
  .wrapper .card {
    transition: transform 0.4s cubic-bezier(0.4, 2, 0.6, 1),
      box-shadow 0.4s cubic-bezier(0.4, 2, 0.6, 1);
    cursor: pointer;
  }

  .wrapper .card:hover,
  .wrapper .card:focus-visible {
    transform: translateY(-8px) scale(1.03);
  }
}

@media only screen and (min-width: 64rem) {
  #services .container {
    padding-inline: 2.5rem;
  }

  .services-paragraph {
    max-width: 30rem;
  }

  #services .wrapper {
    flex-wrap: nowrap;
  }

  .wrapper .card {
    width: 100%;
  }
}

/*-- -------------------------- -->
<---          Marquee           -->
<--- -------------------------- -*/

.marquee {
  overflow: hidden;
  white-space: nowrap;

  font-family: "Arial Black", system-ui, sans-serif;
  font-weight: 700;
  font-size: 6rem;
  padding: 1rem 0;
  position: relative;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 30s linear infinite;
}

.marquee-content span {
  display: inline-block;
  padding-right: 2rem;
  white-space: nowrap;
  opacity: 0.1;
  color: transparent;
  -webkit-text-stroke: 1px #bfd0cb;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/*-- -------------------------- -->
<---       Testimonials         -->
<--- -------------------------- -*/

@media only screen and (min-width: 0rem) {
  #testimonials {
    width: 100%;
    margin-block: clamp(2.5rem, 20vw, 6.25rem);
  }

  #testimonials .container {
    padding-inline: 1rem;
    margin: auto;
    max-width: 80rem;
    display: flex;
    flex-direction: column;

    align-items: center;
  }
  #testimonials .content {
    display: flex;
    flex-direction: column;

    align-items: center;
  }
  #testimonials .section-title {
    margin: 0;
    text-align: center;
  }

  #testimonials .about-paragraph {
    line-height: 1.5;
  }

  .section-title .topper {
    text-align: center;
  }

  .review {
    max-width: 60rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .review .paragraph-review {
    font-weight: 500;
    color: var(--bodyTextColor);
    font-size: var(--bodyBigFontSize);

    line-height: 2;
    padding: 0 clamp(0.5rem, 2vw, 4rem);
    max-width: 90%;
    margin: 1rem auto;
  }

  .reviewer-info {
    text-align: center;
    align-self: center;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
  }

  .reviewer-info .profile {
    border-radius: 50%;
  }

  .reviewer-info .testimonial-name {
    margin: 0;
    font-size: var(--bodyFontSize);
    font-weight: 600;
    color: var(--bodyTextColor);
  }
}

@media only screen and (min-width: 58rem) {
  #testimonials .container {
    padding-inline: 2.5rem;
  }
}
