:root {
  --primary: #005f73;
  --secondary: #94d2bd;
  --dark: #333;
  --light-bg: #f4f7f6;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.12);
  --text-muted: rgba(51, 51, 51, 0.72);
}

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

body {
  background: var(--light-bg);
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* HEADER */
header {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  color: #fff;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.hamburger {
  width: 30px;
  height: 22px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s forwards;
  }

  @keyframes slideDown {
    from {
      transform: translateY(-10px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .hamburger {
    display: flex;
  }
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* MAIN */
main {
  margin-top: 0;
}

/* HERO SLIDESHOW */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-bottom: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.35) 55%, rgba(0,0,0,.25));
  z-index: 1;

}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  width: 100%;
  padding: 0 5%;
  color: #fff;
}

.hero-content h2{
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -.02em;
  line-height: 1.1;
  text-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.hero-content p{
  max-width: 58ch;
  color: rgba(255,255,255,.9);
}

.cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.85rem 1.35rem;
  background: var(--secondary);
  color: #0e2f35;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(148,210,189,.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.cta-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(148,210,189,.45);
  filter: brightness(1.02);
}

.cta-btn:active{
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline: 3px solid rgba(148,210,189,.8);
  outline-offset: 3px;
  border-radius: 10px;
}


@media (max-width: 768px) {
  .slide {
    background-attachment: scroll;
  }
}

/* SERVICES SECTION */
.services-section {
  padding: 4rem 5%;
  background: #fff;
}

.services-section h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin: 0 auto;
  max-width: 1400px;
}

@media (max-width: 1400px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  }
}

.service-card{
  background: rgba(244,247,246,.9);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px circle at top, rgba(148,210,189,.25), transparent 45%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events:none;
}

.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(148,210,189,.35);
}

.service-card:hover::before{
  opacity: 1;
}
.service-card{
  background: rgba(244,247,246,.9);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px circle at top, rgba(148,210,189,.25), transparent 45%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events:none;
}

.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(148,210,189,.35);
}

.service-card:hover::before{
  opacity: 1;
}

.service-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 50%;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* PARALLAX / MIDDLE BANNER */
.middle-banner {
  height: 50vh;
  background: url("photos/middle-banner.jpg") no-repeat center center/cover;
  background-attachment: fixed;
  position: relative;
}

.middle-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 95, 115, 0.6);
}

.middle-banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  padding: 0 5%;
}

.middle-banner-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.middle-banner-content p {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto;
}

/* CONTACT / APPOINTMENT SECTION */
.contact-section {
  padding: 4rem 5%;
  background: var(--light-bg);
}

.contact-section h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.contact-info {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

#map {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  margin-top: 1rem;
  border: 2px solid var(--primary);
}

.contact-form {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 2rem;
}

.contact-form form label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.contact-form form input,
.contact-form form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

.contact-form form input:focus,
.contact-form form textarea:focus {
  border-color: var(--primary);
}

.contact-form button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.contact-form button:hover {
  background: var(--secondary);
  transform: scale(1.05);
}

/* ABOUT US SECTION */
.about-section {
  background: #fff;
  padding: 4rem 5%;
}

.about-section h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.about-container {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }
}

.about-text {
  flex: 1;
}

.about-text p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #555;
}

/* Team Grid */
.team-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.team-member {
  background: var(--light-bg);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.team-member h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.team-member p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.team-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.team-modal .modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  position: relative;
  animation: fadeIn 0.4s ease;
}

.team-modal .close {
  color: #333;
  font-size: 1.5rem;
  font-weight: bold;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  transition: color 0.3s;
}

.team-modal .close:hover {
  color: var(--primary);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.check-list li {
  margin: 0.5rem 0;
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.show-more-btn {
  margin-top: 1rem;
  display: inline-block;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1rem;
  background: #005f73;
  color: #fff;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

footer .social-links {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

footer .social-links a img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

footer .social-links a img:hover {
  transform: scale(1.1);
}

/* ------------- MODALS ------------- */
.service-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.service-modal .modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  position: relative;
  animation: fadeIn 0.4s ease;
}

.service-modal .close {
  color: #333;
  font-size: 1.5rem;
  font-weight: bold;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  transition: color 0.3s;
}

.service-modal .close:hover {
  color: var(--primary);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sub-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.sub-modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 1rem;
  border-radius: 8px;
  max-width: 800px;
  position: relative;
  animation: fadeIn 0.4s ease;
}

.sub-modal .close-submodal {
  color: #333;
  font-size: 1.3rem;
  font-weight: bold;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  transition: color 0.3s;
}

.sub-modal .close-submodal:hover {
  color: var(--primary);
}

.gym-photos-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.gym-photos-gallery img {
  max-width: 30%;
  border-radius: 6px;
  object-fit: cover;
}

/* REVIEWS SECTION */

.reviews-section{
  padding: 4rem 5%;
  background: var(--light-bg);
  text-align: center;
}

.reviews-section h2{
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.reviews-carousel{
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  position: relative;
}

.reviews-track{
  --gap: 1.25rem;
  display: flex;
  gap: var(--gap);
  will-change: transform;
  transition: transform 450ms ease;
}

.review-card{
  flex: 0 0 calc((100% - (2 * var(--gap))) / 3);
  background: #fff;
  border-radius: var(--radius, 14px);
  padding: 1.4rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  text-align: left;
}

.review-text{
  color: #444;
  line-height: 1.6;
  margin-bottom: .9rem;
  font-style: italic;
}

.review-author{
  margin: 0;
  font-weight: 700;
  color: var(--primary);
}

/* actions */
.reviews-actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.reviews-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  transition: transform .2s ease;
}
.reviews-btn:hover{ transform: translateY(-2px); }

/* responsive */
@media (max-width: 900px){
  .review-card{ flex-basis: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 600px){
  .review-card{ flex-basis: 100%; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .reviews-track{ transition: none; }
}

@media (max-width: 768px) {
  .gym-photos-gallery img {
    max-width: 45%;
  }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

