:root {
  --header-height: 90px;
  --page-padding: clamp(16px, 5vw, 60px);
  --accent: rgb(215, 25, 32);
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Contrail One", sans-serif;
}

.hero {
  position: relative;
  min-height: calc(90svh - var(--header-height));
  width: 100%;

  background-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 10%,
      rgba(0, 0, 0, 0.5) 100%
    ),
    url("/images/mar080623_944_DimitriusSouza_Seminar_Upper.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: var(--page-padding);
  text-align: center;
}

.hero-content {
  width: min(100%, 1100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 28px);
}

.hero h1 {
  color: rgb(242, 242, 242);
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  font-weight: bold;
  margin: 0;
  max-width: 100%;
  text-wrap: balance;
  animation: fadeIn 3s ease forwards;
}

.hero h2 {
  color: rgb(242, 242, 242);
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.3;
  font-weight: lighter;
  margin: 0;
  max-width: 100%;
  animation: spacingReveal 3s ease forwards;
}

.home-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 24px);
  margin-top: clamp(12px, 3vw, 28px);
  animation: popup 1s ease forwards;
}

.hero a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 150px;
  padding: 15px 22px;

  text-decoration: none;
  color: black;
  background-color: white;
  border: 1px solid white;

  font-size: clamp(16px, 2vw, 20px);
  transition: 0.5s ease;
}

.hero a:hover {
  background-color: black;
  color: white;
  cursor: pointer;
}




/* Form */
.contact-form{
    background:black;
    color:white;
    padding: 1% 20%;

}
.contact-form h2{
    color:white;
    background-color: black;
    height: 10%;
}
.contact-form label{
    display:block;
    margin:18px 0 8px 0;
    font-size:18px;
}
.contact-form input,
.contact-form select,
.contact-form textarea{
    width:100%;
    box-sizing:border-box;
    padding:14px;
    border:1px solid rgb(100,100,100);
    background:rgb(245,245,245);
    font-family:"Contrail One", sans-serif;
    font-size:17px;
    outline:none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
    border-color:white;
    box-shadow:0 0 0 3px rgba(255,255,255,0.18);
}
.contact-form button{
    width:100%;
    margin-top:25px;
    background:white;
    color:black;
    border:1px solid white;
    padding:16px;
    font-size:20px;
    font-family:"Contrail One", sans-serif;
    transition:0.4s ease;
}
.contact-form button:hover{
    background:black;
    color:white;
    cursor:pointer;
}
.form-note{
    color:rgb(200,200,200);
    font-size:15px;
    line-height:1.4;
}
.locations-section{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0;
}
.locations-section article{
    min-height:260px;
    padding:50px 8%;
    background:rgb(25,25,25);
    color:white;
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.locations-section article:nth-child(2){
    background:rgb(70,70,70);
}
.locations-section h3{
    font-size:34px;
    margin:0 0 12px 0;
}
.locations-section p{
    color:rgb(225,225,225);
    font-size:19px;
}
.locations-section a{
    width:max-content;
    text-decoration:none;
    background:white;
    color:black;
    border:1px solid white;
    padding:13px 22px;
    margin-top:10px;
    transition:0.4s ease;
}
.locations-section a:hover{
    background:black;
    color:white;
}

/* Programs */
.programs-section{
  margin: 3%;  
}
.programs-header {
  text-align: center;
  margin-bottom: 3rem;
}

.programs-header h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 0.5rem;
}
.programs-header h1::after {
  content: "";
  display: block;
  width: 20%;
  height: 5px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--accent);
}
.programs-header p {
  font-size: 1.1rem;
  color: #555;
}
.programs {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 2rem;
  flex-wrap: wrap;
}

.program-container {
  opacity: 0;
  transform: translateY(40px);

  border: 3px solid black;
  display: flex;
  align-items: flex-end;

  width: min(100%, 30rem);
  min-height: 22rem;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  color: black;

  border-radius: 15px;
  overflow: hidden;
  box-sizing: border-box;

  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out,
    box-shadow 0.25s ease;
}

/* Added by JavaScript */
.program-container.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.program-container.is-visible:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.program-container.adults {
  background-image: url('/images/group_picture_1.webp');
  background-size: cover;
  background-position: center;
}
.program-container.kids {
  background-image: url('/images/kids_p1_cropped.webp');
  background-size: cover;
  background-position: center;
}
.text-holder {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.1)
  );

  padding: 1rem;
  width: 100%;
  height: 40%;
  overflow-y: auto;
  box-sizing: border-box;
}

.text-holder p {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}
.training-card p{
    font-size:19px;
    line-height:1.55;
    color:rgb(70,70,70);
}
/* Carousel-Social-Proof */

 .social-proof{ /*carousel*/
    /* display:flex; */
    width: 100%;
    height: fit-content;
    padding: 2% 2% 0 0;
    border-top: 10px solid black;
    border-bottom: 10px solid black;
    .carousel-slide{
      width: 300%;
      display: flex;
      animation: carousel-animation 15s alternate infinite linear;
      .social-card{
        display: flex;
        align-items: center;
        justify-content: center;
        height: 10%;
        flex-direction: column;
        width: calc(100%/3);
        object-fit: cover;
        & img{
          width: 30%;
          height: auto;
        }
        & h3{
          font-size: 1.5rem;
        }
      }
    }
    .carousel-slide:hover{
      animation-play-state: paused;
    }
}
@keyframes carousel-animation {
  0% {
    transform: translateX(0);
  }
  25%{
    transform: translateX(-16.665%);
  }
  50%{
    transform: translateX(-33.33%);
  }
  75%{
    transform: translateX(-49.995%);
  }
  100% {
    transform: translateX(-66.66%);
  }
}
/* Reviews */
.reviews-section {
  --reviews-visible: 3;
  --reviews-gap: 24px;

  width: 100%;
  padding: 2% 0 2% 0;
  /* padding:
    clamp(55px, 8vw, 100px)
    var(--page-padding); */
  background: rgb(238, 238, 238);
  color: black;
  overflow: hidden;
}

.reviews-header {
  width: min(100%, 760px);
  margin: 0 auto clamp(35px, 5vw, 60px);
  text-align: center;
}

.reviews-eyebrow {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(90, 90, 90);
}
.reviews-header h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  text-wrap: balance;
}
.reviews-header h2::after {
  content: "";
  display: block;
  width: 30%;
  height: 5px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--accent);
}
.reviews-header > p:last-child {
  margin: 16px auto 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: rgb(80, 80, 80);
}

.review-carousel {
  width: min(100%, 1250px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
}

.review-viewport {
  min-width: 0;
  overflow: hidden;
  padding: 8px 4px 18px;
  outline: none;
  touch-action: pan-y;
}

.review-viewport:focus-visible {
  border-radius: 16px;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.18);
}

.review-track {
  display: flex;
  align-items: stretch;
  gap: var(--reviews-gap);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.review-card {
  flex:
    0 0
    calc(
      (
        100% -
        (var(--reviews-gap) * (var(--reviews-visible) - 1))
      ) / var(--reviews-visible)
    );

  min-width: 0;
  min-height: 340px;
  padding: clamp(25px, 3vw, 38px);

  display: flex;
  flex-direction: column;

  background: white;
  border: 2px solid black;
  border-radius: 16px;
  box-shadow: 8px 8px 0 black;
}
.review-card-wide {
  flex-basis: calc(
    (
      (
        100% -
        (var(--reviews-gap) * (var(--reviews-visible) - 1))
      ) / var(--reviews-visible)
    ) * 2 + var(--reviews-gap)
  );
}
.review-card .review-user h2{
  margin: 0px;
}
.review-card .review-user p{
  font-size: 0.8rem;
  margin: 0px;
}

.review-stars {
  margin-bottom: 22px;
  font-family: Arial, sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 1;
}

.review-card blockquote {
  flex: 1;
  margin: 0;
  font-family: "Contrail One", sans-serif;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
  color: rgb(55, 55, 55);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgb(205, 205, 205);
}

.review-avatar {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: black;
  color: white;
  font-size: 16px;
}

.review-author div:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-author cite {
  font-style: normal;
  font-size: 18px;
  color: black;
}

.review-author span {
  font-size: 14px;
  color: rgb(100, 100, 100);
}

.review-arrow {
  width: 52px;
  height: 52px;
  padding: 0;

  display: grid;
  place-items: center;

  border: 2px solid black;
  border-radius: 50%;
  background: white;
  color: black;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.review-arrow:hover {
  background: black;
  color: white;
  cursor: pointer;
  transform: scale(1.08);
}

.review-arrow:focus-visible {
  outline: 3px solid rgb(100, 100, 100);
  outline-offset: 4px;
}

.review-arrow svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review-dots {
  min-height: 18px;
  margin-top: 28px;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.review-dot {
  width: 11px;
  height: 11px;
  padding: 0;

  border: 1px solid black;
  border-radius: 50%;
  background: transparent;

  transition:
    width 0.25s ease,
    border-radius 0.25s ease,
    background-color 0.25s ease;
}

.review-dot:hover {
  background: rgb(100, 100, 100);
  cursor: pointer;
}

.review-dot.is-active {
  width: 30px;
  border-radius: 20px;
  background: black;
}

.review-dot:focus-visible {
  outline: 2px solid black;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}
.animate{
  animation: slide-up 2s ease-out forwards;
}

/* Tablet */
@media (max-width: 950px) {
  .reviews-section {
    --reviews-visible: 1;
    --reviews-gap: 16px;

    padding-left: 12px;
    padding-right: 12px;
  }

  .review-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .review-card,
  .review-card-wide {
    flex: 0 0 100%;
    width: 100%;
    min-height: auto;
    padding: 26px 20px;
    box-shadow: 5px 5px 0 black;
  }

  .review-card-wide {
    /* Removes the desktop double-width calculation */
    flex-basis: 100%;
  }

  .review-card blockquote {
    font-size: 17px;
    line-height: 1.5;
  }

  .review-author {
    margin-top: 24px;
    padding-top: 18px;
  }

  .review-arrow {
    width: 40px;
    height: 40px;
  }

  .review-arrow svg {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 600px) {
  .hero {
    min-height: calc(100svh - var(--header-height));
    padding: 40px 18px;
    background-position: center;
  }

  .hero-content {
    gap: 16px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.05;
    animation: fadeIn 2s ease forwards;
  }

  .hero h2 {
    font-size: 18px;
    animation: fadeIn 2s ease forwards;
  }

  .home-btn {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
  }

  .hero a {
    width: min(100%, 280px);
    padding: 14px 18px;
  }
  .reviews-section {
    --reviews-visible: 1;
    --reviews-gap: 16px;

    padding-left: 12px;
    padding-right: 12px;
  }

  .review-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .review-card,
  .review-card-wide {
    flex: 0 0 100%;
    width: 100%;
    min-height: auto;
    padding: 26px 20px;
    box-shadow: 5px 5px 0 black;
  }

  .review-card-wide {
    /* Removes the desktop double-width calculation */
    flex-basis: 100%;
  }

  .review-card blockquote {
    font-size: 17px;
    line-height: 1.5;
  }

  .review-author {
    margin-top: 24px;
    padding-top: 18px;
  }

  .review-arrow {
    width: 40px;
    height: 40px;
  }

  .review-arrow svg {
    width: 20px;
    height: 20px;
  }

  /* Hide long review cards on small screens */
  .review-card-long {
    display: none !important;
  }

    .social-proof {
    padding: 24px 0 18px;
    border-top-width: 6px;
    border-bottom-width: 6px;
  }

  .carousel-slide {
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: none;
    touch-action: pan-y;
    animation: none;
    scrollbar-width: none;
  }


  .carousel-slide:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
    border-radius: 10px;
  }

  .carousel-slide::-webkit-scrollbar {
    display: none;
  }

  .carousel-slide::-webkit-scrollbar-track {
    background: rgb(215, 215, 215);
    border-radius: 999px;
    margin-inline: 18px;
  }

  .carousel-slide::-webkit-scrollbar-thumb {
    background: black;
    border-radius: 999px;
  }

   .social-card {
    /* flex: 0 0 min(82vw, 330px); */
    min-height: 210px;
    padding: 26px 22px;
    gap: 16px;
    border-radius: 16px;
    /* box-shadow: 5px 5px 0 black; */
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
/*
  .social-card:first-child {
    margin-left: max(0px, calc((100vw - min(82vw, 330px)) / 2 - 18px));
  }

  .social-card:last-child {
    margin-right: max(0px, calc((100vw - min(82vw, 330px)) / 2 - 18px));
  } */

  .social-card img {
    width: clamp(68px, 22vw, 92px);
    height: clamp(68px, 22vw, 92px);
  }

  .social-card h3 {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes popup {
  0% {
    transform: scale(0.1, 0.1);
    opacity: 0;
  }

  75% {
    transform: scale(1, 0.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes spacingReveal {
  from {
    opacity: 0;
    letter-spacing: clamp(4px, 1.5vw, 20px);
  }

  to {
    opacity: 1;
    letter-spacing: normal;
  }
}

@keyframes mobileSpacingReveal {
  from {
    opacity: 0;
    letter-spacing: 4px;
  }

  to {
    opacity: 1;
    letter-spacing: normal;
  }
}