:root {
  --bg-light: #F6F6F2;
  --text-dark: #1E1E1E;
  --primary-color: #92aa84;
  --secondary-color: #E8E6E1;
  --font-main: 'Roboto', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

@media screen and (min-width: 768px) {
    .section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
}

.offset {
  scroll-margin-top: 69px;
}

@media screen and (min-width: 768px) {
  .offset {
    scroll-margin-top: 90px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: all 0.5s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  height: 70px;
  z-index: 1000;
  padding-left: 0;
  padding-right: 1rem;
  background-color: transparent;
  transition: background-color 0.5s ease;
}

.header.scrolled {
  background-color: var(--bg-light);
}

.header.menu-open {
  background-color: var(--bg-light);
}

.header.scrolled .hamburger span,
.header.menu-open .hamburger span {
  background-color: var(--text-dark);
}

.social-icons {
  display: none;
}

.social-icons a:hover img {
  transform: scale(1.1);
  opacity: 1;
}

.icon svg {
  width: 38px;
  height: 38px;
  fill: #92aa84; 
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.icon:hover svg {
  transform: scale(1.15);
  opacity: 1; 
}

.logo img {
  height: 75px;
  width: auto;
  display: block;
  cursor: pointer;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;                 
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
  position: relative;       
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #f5f5f4;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;               
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: absolute;
  top: 69px;
  right: 0;
  width: 100%;
  background-color: var(--bg-light);
  text-align: center;
  z-index: 1000;
  overflow: hidden;
  max-height: 0;
  transform: translateY(-20px);
  opacity: 0;
  transition: max-height 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
}

.nav-links.active {
  display: flex;
  max-height: 1000px;
  transform: translateY(0);
  background-color: var(--bg-light);
  opacity: 1;
}

.nav-links a {
  display: block;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
}

@media screen and (min-width: 1024px) {
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    padding: 0 2rem; 
    background-color: transparent;
    opacity: 0;
    transition: background-color 0.5s ease;
    transform: translateY(-50px);
    animation: headerFadeIn 1s cubic-bezier(.22,.61,.36,1) forwards;
  }

  .header.scrolled {
    background-color: var(--secondary-color); 
  }

  .logo {
    display: flex;
    justify-content: flex-start;
    position: absolute;
    left: 2rem;
  }

  .logo img {
    height: 90px;
    width: auto;
  }

  .nav-links {
    display: flex;
    justify-content: center;
    flex: 0 auto; 
    flex-direction: row;
    gap: 2rem;
    position: static;
    max-height: none;
    transform: none;
    opacity: 1;
    background: transparent;
    padding: 0;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
  }

  .nav-links a {
    color: #f5f5f4;
    border-bottom: none !important;
    background: none !important;
    padding: 0;
    transition: color 0.3s ease;
  }

  .header.scrolled .nav-links a {
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
  }

  .nav-links a:hover {
    color: var(--primary-color);
  }

  .header.scrolled .nav-links a:hover {
    color: var(--primary-color) !important;
  }

  .social-icons {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    gap: 0.5rem;
    flex: 0 auto; 
    height: 100%;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .social-icons a {
    display: flex;
    align-items: center; 
    justify-content: center;
  }

  .social-icons a img {
    width: 50px;   
    height: 50px;  
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .hamburger {
    display: none;
  }
}

@keyframes headerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 70vh;
  padding: calc(3rem + 70px) 1rem 0rem 1rem; 
  box-sizing: border-box;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
              url('../assets/images/hero_background.webp') center/cover no-repeat;
  background-attachment: scroll;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.hero-logo {
  width: 320px;
  height: auto;
  max-width: 100%;
}

.hero-content.animate {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;     
  gap: 0.8rem;
  align-items: center;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-width: 180px;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease,
              color 0.3s ease,
              transform 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.hero-btn-primary {
  background-color: var(--primary-color);
  color: #0b0b0b;
  border-color: var(--primary-color);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(146, 170, 132, 0.4);
}

.hero-btn-outline {
  background-color: transparent;
  color: var(--bg-light);
  border-color: var(--bg-light);
}

.hero-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

@media screen and (min-width: 768px) {
  .hero {
    height: 100vh; 
    padding: calc(6rem + 70px) 1rem calc(6rem + 70px) 1rem;
    background-attachment: fixed;
  }

  .hero img {
    width: 800px;
    height: auto;
  }

  .hero-content.animate {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-actions {
    flex-direction: row;      
    gap: 1.5rem;
  }

  .hero-btn {
    font-size: 1.05rem;
    width: auto;
    min-width: 210px;
  }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;            
    padding-top: 100px;     
    padding-bottom: 40px;
    background-attachment: scroll; 
  }

  .hero-logo {
    width: 220px;           
  }

  .hero-actions {
    margin-top: 1rem;
    flex-direction: row;   
    gap: 1rem;
  }

  .hero-btn {
    min-width: 160px;      
    padding: 0.7rem 1.4rem;
  }
}

#introduction {
  padding: 2rem;
}

.introduction-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

#introduction h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

#introduction p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.intro-img img {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  #introduction h2 {
    font-size: 2.5rem;
  }

  #introduction p {
    font-size: 1.1rem;
  }
}

@media screen and (min-width: 1024px) {
  .introduction-container {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  .intro-text {
    flex: 1;
    text-align: left;
  }

  .intro-img {
    flex: 1;
  }

  #introduction h2 {
    text-align: left;
    font-size: 3rem;
  }

  #introduction p {
    text-align: left;
    font-size: 1.2rem;
  }

  .intro-img img {
    max-width: 600px;
  }
}

.reveal-left, .reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
  transform: translateX(-60px);
}

.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}


#classes {
  padding: 2rem 1rem;
  text-align: center;
}

.class-block {
  margin-bottom: 2.5rem;
}

.class-block h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.class-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.class-block img {
  width: 100%;
  height: 490px; 
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.class-divider {
  width: 100%;
  max-width: 1200px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  margin: 3rem auto;
  opacity: 0.5;
}

@media screen and (min-width: 1024px) {

  .class-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin: 6rem auto;
    max-width: 1400px;
    text-align: left;
  }

  .class-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 45%;
  }

  .class-block h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }

  .class-block p {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 600px;
  }

  .class-block img {
    width: 45%;
    height: 65vh;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  }

  .class-block:nth-of-type(3) {
    flex-direction: row-reverse;
  }

}

#parallax-section {
  width: 100%;
  height: 50vh; 
  background: url('../assets/images/parallax_bg.webp') center/cover no-repeat;
}

@media screen and (min-width: 1024px) {
  #parallax-section {
    height: 50vh;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
  }
}

#timetable {
  padding: 4rem 1.5rem;
  text-align: center;
}

#timetable h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

#schedule {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.schedule-day {
  padding: 1rem 0;
  opacity: 1;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@media screen and (min-width: 768px) {
  .schedule-day {
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
}

.schedule-day.show {
  opacity: 1;
  transform: translateY(0);
}

.schedule-day h3 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  position: relative;
}

.schedule-day h3::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  opacity: 0.9;
}

.schedule-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.4rem;
  padding: 0.6rem 0;
}

.schedule-time {
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.schedule-class {
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
}

.schedule-class .coach {
  opacity: 0.8;
  font-size: 1.2rem;
}

.schedule-item span:first-child {
  text-align: left;
  width: 40%;
}

.schedule-item span:last-child {
  text-align: right;
  width: 60%;
  font-weight: 500;
}

@media (min-width: 768px) and (max-width: 1023px) {
  #schedule {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 3rem;
  }
}

@media (min-width: 1024px) and (max-width: 1599px) {
  #timetable {
    padding: 4rem 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #schedule {
    grid-template-columns: repeat(3, 1fr);
    align-items: flex-start;
    gap: 2rem;
  }

  .schedule-day {
    border-bottom: none;
  }

  .schedule-day h3 {
    font-size: 2rem;
  }

  .schedule-item {
    font-size: 1.5rem;
  }
}

@media screen and (min-width: 1600px) {
  #schedule {
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
  }
}

#trainers h2 {
  margin-bottom: 2rem;
}

.coaches-grid {
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 1.5rem;
}

.coach-card {
  background-color: var(--secondary-color); 
  padding: 0 0 2rem 0;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.coach-card h3 {
  font-size: 1.5rem;
  margin: 1rem;
  color: var(--text-dark);
}

.coach-card img {
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media screen and (min-width: 768px) {
  .coaches-grid {
    flex-direction: row; 
    justify-content: center; 
    flex-wrap: wrap;
    gap: 4rem; 
  }

  .coach-card {
    width: 400px; 
    text-align: center;
    padding: 0 0 2rem 0;
  }

  .coach-card h3 {
    font-size: 2rem;
  }

  .coach-card p {
    font-size: 1rem;
  }

  .coach-card img {
    width: 400px;
    height: 400px;
    object-fit: cover;
  }

  .coach-card:hover img {
    transform: scale(1.08); 
  }
}

.coach-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2000;
}

.coach-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.coach-modal-content {
  width: 90%;
  max-width: 1000px;
  height: auto;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--secondary-color);
  padding: 0.5rem 2rem 2rem 2rem;
  border-radius: 10px;
  text-align: center;
  border: 2px solid var(--primary-color);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.45s cubic-bezier(.19,1,.22,1);
}

.coach-modal-content h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0 0.5rem 0.5rem 0.5rem;
}

.coach-modal-content p {
  font-size: 1rem;
}

.coach-modal.active .coach-modal-content {
  opacity: 1;
  transform: translateY(0);
}

.coach-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-color);
  background-color: transparent;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.coach-modal-close:hover {
  color: var(--text-dark);
}

.coach-modal-close svg {
  width: 2rem;
  height: 2rem;
  pointer-events: none;
}

@media screen and (min-width: 768px) {
  .coach-modal-content h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
  }

  .coach-modal-content p {
    font-size: 1.2rem;
  }

  .coach-modal-close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .coach-modal-close svg {
    width: 3rem;
    height: 3rem;
  }
}

.coach-more {
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.coach-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  z-index: 0;
  transition: all 0.3s ease;
}

.coach-more:hover::before {
  left: 0;
}

.coach-more:hover {
  color: #111;
  transform: scale(1.05);
}

.coach-more span {
  position: relative;
  z-index: 1;
}

.pricing {
  padding: 4rem 2rem;
  background-color: var(--bg-light);
  text-align: center;
}

.pricing h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.pricing-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pricing-category h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 400px; 
}

.pricing-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.pricing-list .name {
  flex: 0 0 auto;
  text-align: left;
}

.pricing-list .dots {
  flex: 1 1 auto;
  border-bottom: 1px solid #aaa;
  margin: 0 0.5rem;
}

.pricing-list .price {
  flex: 0 0 auto;
  text-align: right;
  font-weight: 600;
  color: var(--primary-color);
}

@media screen and (min-width: 768px) {
  .pricing {
    padding: 4rem 3rem;
  }

  .pricing h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
  }

  .pricing-categories {
    flex-direction: row;
    gap: 3rem;
  }

  .pricing-category {
    flex: 1;
  }

  .pricing-list {
    max-width: 100%; 
    margin: 0 auto;
  }

  .pricing-list li {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .pricing-list .dots {
    margin: 0 1rem;
    border-bottom: 1px solid #aaa;
  }

  .pricing-list .price {
    font-size: 1.3rem;
  }
}

#maps .container {
  width: 100%; 
  max-width: 100%; 
  padding: 0;
  margin: 0;
}

#maps h2 {
  text-align: center;
  margin: 1.5rem 0;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.map-container {
  width: 100%;  
  margin: 0;         
}

.map-container iframe {
  width: 100%;
  height: 350px;      
  border: 0;
  display: block;
  border-radius: 0;  
}

@media screen and (min-width: 1024px) {
  .map-container iframe {
    height: 500px;    
  }

  #maps h2 {
    font-size: 2.5rem; 
  }
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#contact {
  text-align: center;
  padding: 1rem 1rem;
}

#contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

#contact p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  text-decoration: none;
}

.contact-socials {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact-socials .social-icon svg {
  width: 38px;
  height: 38px;
  fill: var(--primary-color);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.contact-socials .social-icon:hover svg {
  transform: translateY(-4px);
  opacity: 0.8;
}

@media screen and (min-width: 768px) {
  .contact-wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    gap: 6rem; 
  }

  .contact-info,
  .contact-openhours {
    flex: 1;
    max-width: 400px;
  }

  #contact {
    text-align: center;
    padding: 2rem 4rem;
  }

  #contact h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
  }

  #contact p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
  }
}

.footer {
  text-align: center;
  padding: 2rem 0;
  background-color: var(--secondary-color);
  font-size: 1rem;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: transparent;
  color: var(--text-dark);
  padding: 0.5rem 0.5rem;
  border-radius: 50%;
  text-align: center;
  font-size: 1.8rem;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

@media screen and (max-width: 768px) {
  .back-to-top {
    bottom: 5px;  
    right: 5px;   
    font-size: 1.8rem; 
  }
}
