@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #111317;
  --primary-color-light: #1f2125;
  --primary-color-extra-light: #35373b;
  --secondary-color: #f0860d;
  --secondary-color-dark: #d37811;
  --text-light: #d1d5db;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  margin-bottom: 1rem;
  font-size: 2.25rem;
  font-weight: 600;
  text-align: center;
  color: var(--white);
}

.section__subheader {
  max-width: 600px;
  margin: auto;
  text-align: center;
  color: var(--text-light);
}

.btn {
  padding: 1rem 2rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--secondary-color);
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--secondary-color-dark);
}

img {
  width: 100%;
  display: flex;
}

a {
  text-decoration: none;
}

.bg__blur {
  position: absolute;
  box-shadow: 0 0 1000px 50px var(--secondary-color);
  z-index: -1;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--primary-color);
}

html {
  scroll-behavior: smooth; /* Smooth scrolling globally */
}

nav {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  max-width: 150px;
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.link a {
  position: relative;
  padding-bottom: 0.75rem;
  color: var(--white);
  text-decoration: none;
}

/* underline (hidden by default) */
.link a::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 0;
  left: 0;
  bottom: 0;
  background-color: var(--secondary-color);
  transition: 0.3s;
}

/* on hover: show 50% underline */
.link a:hover::after {
  width: 50%;
}

/* active link: show 50% underline permanently */
.link a.active::after {
  width: 100%;
}


.header__container {
  position: relative;
  padding-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2rem;
}

.header__container::before {
  content: "FITNESS";
  position: absolute;
  bottom: 5rem;
  right: 20rem;
  font-size: 10rem;
  font-weight: 700;
  line-height: 7rem;
  color: var(--white);
  opacity: 0.05;
  z-index: -1;
}

.header__blur {
  bottom: 5rem;
  right: 0;
}

.header__content h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 5rem;
  font-weight: 700;
  line-height: 6rem;
  color: var(--white);
}

.header__content h1 span {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px var(--white);
}

.header__content p {
  margin-bottom: 2rem;
  color: var(--text-light);
}

.header__image {
  position: relative;
}

.header__image::before {
  content: "o";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40rem;
  font-weight: 400;
  line-height: 20rem;
  color: var(--secondary-color);
  opacity: 0.1;
  z-index: -1;
}

.header__image img {
  max-width: 350px;
  margin: auto;
}

.explore__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.explore__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  
}

.explore__nav span {
  padding: 0 6px;
  font-size: 1.5rem;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 100%;
  cursor: pointer;
  transition: 0.3s;
  margin-left: 30rem;
  
}

.explore__nav span:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.explore__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.explore__card {
  padding: 1rem;
  background-color: var(--primary-color-light);
  border: 2px solid transparent;
  border-radius: 10px;
  transition: 0.3s;
}

.explore__card:hover {
  background-color: var(--primary-color-extra-light);
  border-color: var(--secondary-color);
}

.explore__card span {
  display: inline-block;
  padding: 2px 9px;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: var(--white);
  background-color: var(--secondary-color-dark);
  border-radius: 5px;
}

.explore__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.explore__card p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.explore__card a {
  color: var(--white);
  transition: 0.3s;
}

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

.class__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.class__image {
  position: relative;
}

.class__image .class__img-1 {
  position: absolute;
  right: 0;
  top: 0;
  max-width: 500px;
  border-radius: 10px;
}

.class__image .class__img-2 {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 300px;
  border-radius: 10px;
}

.class__content {
  padding: 2rem 0;
}

.class__content .section__header {
  text-align: left;
  max-width: 400px;
}

.class__content p {
  margin-bottom: 4rem;
  color: var(--text-light);
}

.join__image {
  margin-top: 4rem;
  position: relative;
}

.join__image img {
  border-radius: 10px;
}

.join__grid {
  position: absolute;
  bottom: -5rem;
  width: calc(100% - 4rem);
  padding: 2rem;
  margin: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: var(--primary-color-light);
  border-radius: 10px;
}

.join__card {
  flex: 1 1 250px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.join__card span {
  padding: 5px 12px;
  font-size: 1.75rem;
  color: var(--white);
  background-color: var(--secondary-color-dark);
  border-radius: 5px;
}

.join__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
}

.join__card p {
  color: var(--text-light);
}

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

.price__card {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  background-color: var(--primary-color-light);
  border: 2px solid transparent;
  border-radius: 10px;
  transition: 0.3s;
}

.price__card:hover {
  background-color: var(--primary-color-extra-light);
  border-color: var(--secondary-color);
}

.price__card__content {
  flex: 1;
  margin-bottom: 2rem;
}

.price__card h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
}

.price__card h3 {
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  border-bottom: 2px solid var(--white);
}

.price__card p {
  margin-bottom: 0.75rem;
  color: var(--white);
}

.price__card p i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.price__btn {
  color: var(--secondary-color);
  background-color: transparent;
  border: 2px solid var(--secondary-color);
}

.price__btn:hover {
  color: var(--white);
  background-color: var(--secondary-color);
}

.review {
  background-color: var(--primary-color-light);
  overflow: hidden;
}

.review__container {
  display: block;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

/* Decorative quote icon */
.review__container > span {
  font-size: 6rem;
  color: var(--secondary-color);
  opacity: 0.5;
}

/* Review block container - only one visible */
.review__slider {
  position: relative;
  min-height: 300px;
}

/* Hide all reviews by default */
.review__content {
  display: none;
  flex: 1;
  transition: opacity 0.4s ease-in-out;
}

/* Show only the active one */
.review__content.active {
  display: block;
}

/* Review content styling */
.review__content h4 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}

.review__content p {
  max-width: 1000px;
  margin-bottom: 2rem;
  color: var(--text-light);
}

/* Star rating */
.review__rating span {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

/* Bottom section with name and navigation */
.review__footer {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.review__member {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.review__member img {
  max-width: 60px;
  border-radius: 100%;
}

.review__member__details h4 {
  margin-bottom: 0;
}

.review__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.review__nav span {
  font-size: 2rem;
  color: var(--secondary-color);
  cursor: pointer;
  transition: color 0.3s;
}

.review__nav span:hover {
  color: var(--accent-color);
}


.footer__container {
  position: relative;
  display: grid;
  /* grid-template-columns: 400px repeat(3, 1fr); */
  grid-template-columns: 400px repeat(2, 1fr);
  gap: 8rem;
}

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

@media (max-width: 768px) {
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__col {
    margin-bottom: 2rem;
  }

  .footer__col h4 {
    margin-bottom: 1rem;
  }

  .footer__col a {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }

  .footer__socials {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer__bar {
    font-size: 0.75rem;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
  }
}

.footer__blur {
  bottom: 0;
  right: 0;
}

.footer__logo {
  max-width: 150px;
  margin-bottom: 2rem;
}

.footer__col {
  display: block;
  flex-direction: column;  
  justify-content: flex-start;
  align-items: flex-start;
  color: var(--text-light);
  margin: 10px;
}


/* Socials section inside footer */
.footer__socials {
  display: flex;
  padding: 90px 0px;
  align-items: center;
  gap: 1rem;
}

.footer__socials a {
  padding: 5px 10px;
  font-size: 1.25rem;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  border-radius: 100%;
  transition: 0.3s;
}

.footer__socials a:hover {
  color: var(--white);
  background-color: var(--secondary-color);
}

/* Adjusting the spacing for .footer__col h4 to make it more reasonable */
.footer__col h4 {
  margin-top: 2rem; /* Reduced the margin-top to 2rem */
  transform: translateX(-13%);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  padding: 20px;
}

.footer__col > a {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  gap: 10px; /* Adds space between the icon and the text */
  padding: 5px;
}

.footer__col > a:hover {
  color: var(--secondary-color);
}

.footer__bar {
  position: relative;
  max-width: var(--max-width);
  opacity: 20%;
  margin: auto;
  top: -10rem;
  padding-left: 10rem;
  font-size: 0.8rem;
  color: var(--white);
  /* color: #a09a9a; */
  left: 20%;
}

@media (width < 900px) {
  .nav__links {
    display: none;
  }

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

  .header__image {
    grid-area: 1/1/2/2;
  }

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

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

  .class__image {
    min-height: 500px;
  }

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

  .review__container {
    gap: 2rem;
  }

  .footer__container {
    grid-template-columns: 1fr 200px;
  }
}

@media (width < 600px) {
  .explore__header {
    flex-direction: column;
  }

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

  .join__container {
    margin-bottom: 15rem;
  }

  .join__grid {
    width: 100%;
    margin: 0;
    bottom: -20rem;
  }

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

  .review__container {
    flex-direction: column;
    gap: 0;
  }

  .review__footer {
    flex-direction: column;
  }

  .footer__container {
    grid-template-columns: 1fr 150px;
  }

  .footer__bar {
    text-align: center;
  }

  .footer__col {
    flex: 1 1 200px;  /* Allow the columns to resize responsively */
    padding: 1rem;
  }
}

/* Media queries for responsiveness */
@media (width < 900px) {
  .footer__container {
    grid-template-columns: 1fr 200px;  /* Adjusting the grid layout for smaller screens */
  }
}

@media (width < 600px) {
  .footer__container {
    grid-template-columns: 1fr 150px;  /* Further adjustment for mobile screens */
  }

  .footer__bar {
    text-align: center;
  }

  .footer__col {
    flex: 1 1 200px;  /* Allow the columns to resize responsively */
    padding: 1rem;
  }
}

#enquiry {
  position: absolute;  /* Position relative to its normal place */
  transform: translateX(1000%); /* Moves the element up by 30% of its own height */
}

#enquiry-link {
  position: absolute;  /* Position relative to its normal place */
  /* transform: translateY(); */
  /* transform: translateX();  */
  transform: translate(223%, 270%);
  
}

@media (max-width: 768px) {
  .footer__container {
    grid-template-columns: 1fr; /* Stack all columns vertically */
    gap: 2rem;
  }

  .footer__col {
    margin: 0;
    padding: 0 1rem;
    text-align: left;
  }

  .footer__col h4 {
    transform: none;
    padding: 0.5rem 0;
  }

  .footer__col a {
    font-size: 0.9rem;
  }

  .footer__socials {
    padding: 1rem 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .footer__bar {
    top: 0;
    left: 0;
    padding: 1rem;
    font-size: 0.75rem;
    opacity: 0.6;
  }
}

