/* 
* Modazenta Pilates Studio - Main Stylesheet
* Colors: 
* - Background: #F7F7F7
* - Accent: #D0BFFF
* - Secondary Accent: #A68DAD
* - Text: #333333
* - Buttons: #D0BFFF with white text
* Fonts:
* - Headings: Josefin Sans
* - Body: Work Sans
*/

/* ======= CSS Reset and Base Styles ======= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

body {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #333333;
  background-color: #F7F7F7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 4.2rem;
  font-weight: 600;
}

h2 {
  font-size: 3.6rem;
  margin-bottom: 3rem;
  text-align: center;
}

h3 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
}

h4 {
  font-size: 2.0rem;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

ul {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

a {
  color: #A68DAD;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #D0BFFF;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  background: none;
  border: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

section {
  padding: 8rem 0;
}

.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ======= Utility Classes ======= */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: 0.4rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: #D0BFFF;
  color: white;
}

.btn-primary:hover {
  background-color: #A68DAD;
  color: white;
}

.btn-secondary {
  background-color: #A68DAD;
  color: white;
}

.btn-secondary:hover {
  background-color: #D0BFFF;
  color: white;
}

.btn-outline {
  border: 0.2rem solid #D0BFFF;
  color: #333333;
}

.btn-outline:hover {
  background-color: #D0BFFF;
  color: white;
}

/* ======= Header and Navigation ======= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 0;
  background-color: rgba(247, 247, 247, 0.95);
  z-index: 100;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
  transition: padding 0.3s ease;
}

.header.scrolled {
  padding: 1rem 0;
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  max-width: 24rem;
}

.logo img {
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
}

.nav-list li {
  margin-left: a.5rem;
}

.nav-list a {
  font-size: 1.6rem;
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}

.nav-list a:hover {
  color: #A68DAD;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 3rem;
  height: 2.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 0.3rem;
  width: 100%;
  background-color: #333333;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
}

/* ======= Hero Section ======= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(to right, rgba(166, 141, 173, 0.2), rgba(208, 191, 255, 0.2)), url('../images/img00.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 10rem;
}

.hero__content {
  max-width: 60rem;
  padding: 4rem;
  background-color: rgba(247, 247, 247, 0.9);
  border-radius: 0.8rem;
}

.hero h1 {
  margin-bottom: 2rem;
}

.hero p {
  margin-bottom: 3rem;
  font-size: 1.8rem;
}

/* ======= Philosophy Section ======= */
.philosophy {
  background-color: #fff;
}

.philosophy__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
}

.philosophy__text {
  flex: 1 1 50rem;
}

.philosophy__image {
  flex: 1 1 30rem;
  border-radius: 0.8rem;
  overflow: hidden;
}

/* ======= Programs Section ======= */
.programs {
  background-color: #F7F7F7;
}

.programs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 3rem;
}

.program-card {
  background-color: #fff;
  padding: 3rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.program-card__icon {
  margin-bottom: 2rem;
}

.program-card h3 {
  margin-bottom: 1.5rem;
}

.program-card p {
  margin-bottom: 2rem;
}

.program-card ul {
  list-style-type: none;
  margin-bottom: 2.5rem;
}

.program-card ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.program-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 0.8rem;
  height: 0.8rem;
  background-color: #D0BFFF;
  border-radius: 50%;
}

/* ======= Studio Section ======= */
.studio {
  background-color: #fff;
}

.studio__content {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
}

.studio__text {
  background-color: #e0e0e0;
  padding: 5rem;
  border-radius: 0.8rem;
}

.studio__gallery {
  flex: 1 1 50rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2rem;
}

.gallery-item {
  border-radius: 0.8rem;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ======= Schedule Section ======= */
.schedule {
  background-color: #F7F7F7;
}

.schedule__tabs {
  max-width: 100rem;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 1.2rem 2.4rem;
  margin: 0 0.5rem;
  background-color: #fff;
  border: 0.2rem solid #D0BFFF;
  border-radius: 0.4rem;
  color: #333333;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
  background-color: #D0BFFF;
  color: white;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 3rem;
}

.schedule-day {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
}

.schedule-day h3 {
  color: #A68DAD;
  margin-bottom: 2rem;
  border-bottom: 0.1rem solid #D0BFFF;
  padding-bottom: 1rem;
}

.class-item {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.1rem solid #F7F7F7;
}

.class-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.time {
  font-weight: 500;
  color: #333333;
}

.class-name {
  font-weight: 400;
}

.instructor {
  text-align: right;
  font-style: italic;
  color: #A68DAD;
}

/* ======= Reviews Section ======= */
.reviews {
  background-color: #fff;
}

.reviews__grid {
  display: block;
}

.slider-container {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 3rem;
}

.review-card {
  flex: 0 0 100%;
  padding: 3rem;
  background-color: #F7F7F7;
  border-radius: 0.8rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
  text-align: center;
}

.review-card__stars {
  margin-bottom: 2rem;
  color: #D0BFFF;
  font-size: 2.4rem;
}

.review-card__text {
  font-size: 1.8rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.review-card__author {
  font-weight: 500;
  color: #A68DAD;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  margin: 0 1rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: #D0BFFF;
  opacity: 0.5;
  margin: 0 0.8rem;
  transition: opacity 0.3s ease;
}

.dot.active {
  opacity: 1;
}

/* ======= Pricing Section ======= */
.pricing {
  background-color: #F7F7F7;
}

.pricing__content {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.pricing__packages, .pricing__private {
  width: 100%;
}

.pricing__packages h3, .pricing__private h3 {
  text-align: center;
  margin-bottom: 3rem;
  color: #A68DAD;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
  gap: 3rem;
}

.price-card {
  position: relative;
  background-color: #fff;
  padding: 3rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.price-card.featured {
  border: 0.2rem solid #D0BFFF;
  transform: scale(1.05);
}

.price-card.featured:hover {
  transform: scale(1.05) translateY(-0.5rem);
}

.featured-tag {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #D0BFFF;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-weight: 500;
  font-size: 1.4rem;
}

.price-card h4 {
  color: #333333;
  margin-bottom: 1rem;
}

.price {
  font-size: 3.6rem;
  font-weight: 600;
  color: #A68DAD;
  margin-bottom: 1.5rem;
}

.price-card p {
  margin-bottom: 2rem;
}

.price-card ul {
  list-style-type: none;
  margin-bottom: 2.5rem;
  text-align: left;
}

.price-card ul li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
}

.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #D0BFFF;
  font-weight: bold;
}

/* ======= Contact Section ======= */
.contact {
  background-color: #fff;
}

.contact__content {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
}

.contact__info {
  flex: 1 1 40rem;
}

.contact-details {
  margin-top: 4rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.contact-item__icon {
  margin-right: 2rem;
  flex-shrink: 0;
}

.contact-item__text h3 {
  margin-bottom: 0.5rem;
  color: #A68DAD;
}

.contact-item__text p {
  margin-bottom: 0;
}

.contact__form {
  flex: 1 1 50rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 0.1rem solid #e0e0e0;
  border-radius: 0.4rem;
  background-color: #F7F7F7;
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #D0BFFF;
}

/* ======= Map Section ======= */
.map {
  height: 40rem;
  position: relative;
}

.map__container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.map__container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======= Footer ======= */
.footer {
  background-color: #333333;
  color: #F7F7F7;
  padding: 5rem 0 2rem;
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer__logo {
  flex: 1 1 30rem;
}

.footer__logo img {
  max-width: 20rem;
  margin-bottom: 2rem;
  filter: brightness(2);
}

.footer__links {
  flex: 1 1 50rem;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
}

.footer-nav, .footer-legal {
  flex: 1;
}

.footer h3 {
  color: #D0BFFF;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.footer ul {
  list-style: none;
  margin: 0;
}

.footer ul li {
  margin-bottom: 1rem;
}

.footer a {
  color: #F7F7F7;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #D0BFFF;
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 0.1rem solid rgba(255, 255, 255, 0.1);
}

/* ======= Back to Top Button ======= */
.back-to-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 5rem;
  height: 5rem;
  background-color: #A68DAD;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  transform: rotate(180deg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #D0BFFF;
}

/* ======= Legal Pages ======= */
.legal {
  padding-top: 15rem;
  padding-bottom: 8rem;
}

.legal__content {
  max-width: 80rem;
  margin: 0 auto;
}

.legal h1 {
  text-align: center;
  margin-bottom: 4rem;
}

.legal__section {
  margin-bottom: 4rem;
}

.legal__section h2 {
  font-size: 2.8rem;
  text-align: left;
  margin-bottom: 2rem;
  color: #A68DAD;
}

.legal__section h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #333333;
}

.legal__section p {
  margin-bottom: 1.5rem;
}

.legal__section ul {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.legal__section ul li {
  margin-bottom: 1rem;
}

.legal__updated {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 0.1rem solid #e0e0e0;
  text-align: right;
  font-style: italic;
  color: #777;
}

/* ======= Success Page ======= */
.success {
  padding-top: 15rem;
  padding-bottom: 8rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.success__content {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}

.success__icon {
  margin-bottom: 3rem;
}

.success h1 {
  margin-bottom: 2rem;
}

.success p {
  margin-bottom: 3rem;
  font-size: 1.8rem;
}

/* ======= Media Queries ======= */
@media screen and (max-width: 1024px) {
  html {
    font-size: 60%;
  }
  
  .hero {
    min-height: 80vh;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  h1 {
    font-size: 3.6rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  section {
    padding: 6rem 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #F7F7F7;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    box-shadow: -0.5rem 0 1rem rgba(0, 0, 0, 0.1);
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .nav-list li {
    margin: 1.5rem 0;
  }
  
  .nav-list a {
    font-size: 1.8rem;
  }
  
  .philosophy__content,
  .studio__content,
  .contact__content {
    gap: 3rem;
  }
  
  .class-item {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
  }
  
  .class-name {
    grid-column: 1 / span 2;
    grid-row: 1;
  }
  
  .time {
    grid-column: 1;
    grid-row: 2;
  }
  
  .instructor {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
  
  .studio__gallery {
    grid-template-columns: 1fr;
  }
  
  .gallery-item:first-child {
    grid-column: 1;
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 50%;
  }
  
  .hero__content {
    padding: a.5rem;
  }
  
  .tabs-nav {
    flex-direction: column;
    align-items: center;
  }
  
  .tab-btn {
    margin: 0.5rem 0;
    width: 100%;
    max-width: 30rem;
  }
  
  .footer__content {
    flex-direction: column;
    gap: 3rem;
  }
  
  .footer__links {
    flex-direction: column;
    gap: 3rem;
  }
}
