/* ==========================================================================
   Pro Fitness Gym - main stylesheet
   Sections: 1 Base · 2 Navbar · 3 Hero · 4 Content sections · 5 Branches
             6 Team · 7 Testimonials · 8 CTA & Footer · 9 Responsive
   Services/pricing styles live in services.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&family=Oswald:wght@200..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');


/* ==========================================================================
   1. BASE
   ========================================================================== */

:root {
  --brand: hsl(223 98% 45% / 0.8);
  --brand-dark: #1745c0;
  --text: #000;
  --muted: #5c5c5c;
}

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

body {
  font-family: "Baloo Bhai 2", cursive;
  background-color: rgba(226, 226, 227, 0.695);
  color: var(--text);
}

h1 {
  font-family: Playfair, cursive;
  font-size: 50px;
  margin: 10px 10px 0 100px;
  align-items: center;
}

h2 {
  font-family: Playfair, cursive;
  font-size: 22px;
  color: var(--brand);
  margin-left: 80px;
  margin-right: 20px;
}

h4 {
  color: var(--brand);
  margin-top: 5px;
}

p {
  font-family: "Baloo Bhai 2", cursive;
  font-size: 18px;
  color: var(--text);
  margin: 10px 20px 0 80px;
}

li {
  font-family: "Baloo Bhai 2", cursive;
  font-size: 18px;
  color: var(--text);
}

ul {
  margin-left: 65px !important;
  margin-right: 40px !important;
}


/* ==========================================================================
   2. NAVBAR
   ========================================================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  z-index: 1000;
}

nav.scrolled {
  height: 70px;
  padding: 0 30px;
  background: rgba(30, 30, 30, 0.85);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

nav img {
  display: block;
  width: auto;
  height: 70px;
  transition: height 0.3s ease;
}

nav.scrolled img {
  height: 55px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Baloo Bhai 2", cursive;
  font-size: 16px;
  color: var(--brand);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.hamburger {
  display: none;
  font-size: 28px;
  color: var(--brand);
  cursor: pointer;
  z-index: 1001;
}

/* ==========================================================================
   3. HERO
   ========================================================================== */

.main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  font-family: "Playfair Display", serif;
}

.content h1 {
  display: flex;
  flex-wrap: wrap;
  font-size: 95px;
  color: #fff;
  margin-bottom: 50px;
}

.content a {
  margin-left: 10px;
  padding: 15px 25px;
  font-family: "Playfair Display", serif;
  font-size: 23px;
  color: #fff;
  text-decoration: none;
  border: 2px solid #fff;
  border-radius: 50px;
  transition: 0.3s;
}

.content a:hover {
  background-color: #fff;
  color: #000;
}

.background-clip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
}

@media (min-aspect-ratio: 16/9) {
  .background-clip {
    width: 100%;
    height: auto;
  }
}

@media (max-aspect-ratio: 16/9) {
  .background-clip {
    width: auto;
    height: 100%;
  }
}


/* ==========================================================================
   4. CONTENT SECTIONS (text + slideshow rows)
   ========================================================================== */

.section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90vw;
  margin: auto;
  padding: 10px;
  color: var(--text);
}

.section .text,
.section .text1,
.section .image {
  flex: 1 1 45%;
  margin: 20px 0;
}

.section .text1 {
  margin-left: 10px;
}

.section ul {
  max-width: 600px;
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 0 20px;
  list-style-type: disc;
  text-align: left;
}

.section ul li {
  margin: 8px 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  word-wrap: break-word;
  list-style-position: inside;
}

.image-placeholder {
  display: block;
  width: 100%;
  height: 400px;
  min-width: 200px;
  min-height: 200px;
}

.slideshow img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: opacity 1s ease-in-out;
}


/* ==========================================================================
   5. BRANCHES
   ========================================================================== */

.branches-section {
  width: 100%;
  padding: 60px 20px;
  text-align: center;
  overflow: hidden;
}

.section-title {
  margin-bottom: 50px;
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
}

.branches-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 30px;
  width: 100%;
  max-width: 1250px;
  margin: 40px auto;
  padding: 0 20px;
}

.branch-card {
  width: 100%;
  min-width: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.branch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14);
}

.branch-image-link {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

.branch-image-link img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.branch-image-link:hover img {
  transform: scale(1.05);
}

.branch-info {
  padding: 22px;
}

.branch-info h3 {
  margin: 12px 0;
  font-size: 32px;
  letter-spacing: 1px;
  color: #222;
}

.branch-info p {
  margin: 12px 0 20px;
  letter-spacing: 1px;
  color: #555;
}

.branch-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 13px 22px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
  background: var(--brand);
  border-radius: 7px;
  transition: all 0.3s ease;
}

.branch-btn:hover {
  background: var(--brand-dark);
  transform: translateX(4px);
}

/* Coming Soon Branch */

.coming-soon-card .branch-image-link {
    position: relative;
    cursor: default;
}

.coming-soon-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}

.coming-soon-overlay span {
    padding: 12px 25px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    border: 2px solid #fff;
    border-radius: 5px;
    transform: rotate(-5deg);
}

.branch-status-text {
    display: inline-block;
    margin-top: 12px;
    color: var(--brand);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
}


/* ==========================================================================
   6. TEAM
   ========================================================================== */

.team {
  padding: 80px 20px;
  color: #fff;
  text-align: center;
}

.team-section {
  padding: 50px 20px;
  text-align: center;
}

.team-section h1 {
  margin-bottom: -20px;
  font-size: 2.5rem;
  color: var(--brand);
}

.team-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 20px;
}

.team-member {
  width: 250px;
  padding: 20px;
  background: transparent;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px var(--brand);
}

.member-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border: 4px solid var(--brand);
  border-radius: 50%;
  overflow: hidden;
}

.member-img img {
  display: block;
  object-fit: cover;
}

.team-member img {
  width: 120px;
  height: 120px;
  margin-bottom: 15px;
  object-fit: cover;
}

.team-member h2 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
}

.team-member h3 {
  margin-bottom: 5px;
  margin-left: 20px;
  font-size: 1.2rem;
  color: var(--brand);
}

.team-member h4 {
  margin-bottom: 15px;
  color: var(--text);
}

.team-member p {
  margin-left: 25px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text);
}


/* ==========================================================================
   7. TESTIMONIALS
   ========================================================================== */

.testimonial-slider {
  position: relative;
  width: 80%;
  max-width: 600px;
  margin: auto;
  padding: 40px 20px;
  background: transparent;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  overflow: hidden;
}

.testimonial {
  display: none;
  margin-top: 10px;
  padding: 10px;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.testimonial.active {
  display: block;
  opacity: 1;
}

.testimonial p {
  font-size: 1.1em;
}

.testimonial-img {
  display: block;
  width: 80px;
  height: 80px;
  margin: 10px auto;
  object-fit: cover;
  border-radius: 50%;
}

.author {
  margin-top: 15px;
  font-weight: bold;
  color: #555;
}


/* ==========================================================================
   8. CTA & FOOTER
   ========================================================================== */

.cta {
  padding: 40px;
  text-align: center;
}

.cta h3 {
  margin-bottom: 15px;
  font-family: "Baloo Bhai 2", cursive;
  font-size: 1.5rem;
  color: var(--brand);
}

.cta p {
  margin: 0;
  font-family: "Baloo Bhai 2", cursive;
  font-size: 1.2rem;
  color: #555;
}

footer a {
  font-family: "Baloo Bhai 2", cursive;
  color: #000;
  text-align: center;
  text-decoration: none;
}

footer a:hover {
  color: var(--brand);
}


/* ==========================================================================
   9. RESPONSIVE  (largest breakpoint first, each in page order)
   ========================================================================== */

/* ---- Tablet / small laptop ---- */
@media (max-width: 1024px) {
  .section {
    flex-direction: column;
    width: 95%;
    text-align: center;
  }

  .section .text,
  .section .text1,
  .section .image {
    flex: 1 1 100%;
    margin: 15px 0;
  }

  .section h2 {
    margin: 10px 0;
    font-size: 1.8rem;
  }

  .section ul {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .slideshow img {
    height: 280px;
    border-radius: 12px;
  }
}

@media (max-width: 900px) {
  .branches-container {
    gap: 20px;
  }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {

  /* Navbar */
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 100px;
    right: -100%;
    flex-direction: column;
    gap: 0;
    width: 250px;
    height: calc(100vh - 100px);
    padding: 30px 20px;
    background: rgba(30, 30, 30, 0.98);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.4s ease;
  }

  .nav-links.show {
    right: 0;
  }

  .nav-links a {
    justify-content: flex-start;
    width: 100%;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(53, 189, 242, 0.2);
  }

  /* Hero */
  .main {
    height: 90vh;
    padding: 0 10px;
  }

  .content h1 {
    font-size: 3rem;
    line-height: 1.3;
  }

  .content a {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  /* Content sections */
  .section {
    width: 100%;
    padding: 20px 10px;
  }

  .section .text,
  .section .text1 {
    order: 2;
    margin: 10px 0;
    text-align: center;
  }

  .section .image {
    order: 1;
    width: 100%;
    text-align: center;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  .section ul {
    padding: 0 15px;
  }

  .section ul li {
    margin: 6px 0;
    font-size: 0.95rem;
  }

  .slideshow img {
    height: 450px;
    border-radius: 10px;
  }

  /* Branches */
  .branches-container {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }

  .branch-image-link img {
    height: 220px;
  }

  .branch-image {
    height: 230px;
  }

  .branch-info h3 {
    font-size: 28px;
  }

  .branches-heading h2 {
    font-size: 32px;
  }

  .branches-heading p {
    font-size: 13px;
  }

  /* Team */
  .team > h2 {
    margin-left: 0;
    margin-right: 0;
    font-size: 1.8rem;
    font-weight: bolder;
  }

  .team-section h1 {
    margin-left: 10px;
    font-size: 2rem;
  }

  .team-container {
    flex-direction: column;
    align-items: center;
  }

  .team-member {
    width: 80%;
    max-width: 300px;
  }
}

/* ---- Small phones ---- */
@media (max-width: 480px) {

  nav {
    padding: 0 15px;
  }

  nav img {
    height: 50px;
  }

  .main {
    height: 85vh;
    padding: 0 8px;
  }

  .content h1 {
    margin-bottom: 20px;
    font-size: 1.8rem;
  }

  .content a {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-width: 1.5px;
  }

  .section {
    padding: 10px 5px;
  }

  .section h2 {
    font-size: 1.4rem;
  }

  .section ul {
    padding: 0 10px;
  }

  .section ul li {
    margin: 5px 0;
    font-size: 0.9rem;
  }
}