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

:root {
  --bg-dark: #0a0a0a;
  --bg-surface: rgba(25, 25, 25, 0.6);
  --orange: #FF6B35;
  --orange-dark: #e0541f;
  --text-main: #f5f5f5;
  --text-muted: #999;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --nav-h: 80px;
}

html {
  /* Smooth scrolling shifted to js file */
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Barlow', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

/* =========================================
   FULLSCREEN LOADER
   ========================================= */
.page-loader {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--bg-dark); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Added by JavaScript when the video is ready */
.page-loader.hidden { 
  opacity: 0; 
  visibility: hidden; 
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* The text wrapper (Heartbeat removed!) */
.typing-wrapper {
  position: relative;
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: 1px;
}

.typing-text { color: var(--text-main); }
.typing-text span { color: var(--orange); }

/* The overlay now loops infinitely */
.typing-overlay {
  position: absolute; top: 0; right: 0;
  width: 100%; height: 100%;
  background: var(--bg-dark);
  border-left: 4px solid var(--orange);
  /* 4-second continuous loop */
  animation: typeLoop 4s steps(12) infinite, blinkCursor 0.75s step-end infinite;
}

/* The spinning ring */
.infinite-ring {
  width: 45px; height: 45px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--orange);
  border-radius: 50%;
  opacity: 0; 
  /* Fades in quickly and spins forever */
  animation: fadeRingIn 0.5s ease 0.5s forwards, fastSpin 1s linear infinite;
}

/* --- THE ANIMATIONS --- */
@keyframes typeLoop {
  0%, 15% { width: 100%; }   /* Start hidden */
  40%, 60% { width: 0%; }    /* Typed out! Pause here so they can read it */
  85%, 100% { width: 100%; } /* 'Backspace' it away to start over */
}

@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--orange); }
}

@keyframes fastSpin {
  to { transform: rotate(360deg); }
}

@keyframes fadeRingIn {
  to { opacity: 1; }
}

/* Force all iframes to never exceed screen width */
iframe {
  max-width: 100%;
}

/* Typography Modernization */
h1, h2, h3, .nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.5px;
}

/* Glassmorphism Nav */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: var(--nav-h);
  transition: all 0.3s ease;
}

.nav-logo { font-size: 1.8rem; font-weight: 800; color: var(--text-main); text-decoration: none; }
.nav-logo span { color: var(--orange); }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--orange); }

/* Buttons */
.nav-cta, .btn-primary, .submit-btn, .book-trial-btn, .plan-btn {
  background: var(--orange); color: #fff;
  padding: 12px 28px; border-radius: 4px; border: none;
  text-decoration: none; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease; font-family: inherit;
}
.nav-cta:hover, .btn-primary:hover, .submit-btn:hover, .plan-btn:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* Buttons */
.btn-outline {
  background: #2f3133 ; color: var(--orange);
  padding: 12px 28px; border-radius: 4px; border: none;
  text-decoration: none; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease; font-family: inherit;
}
.btn-outline:hover { background: #1f2122; transform: translateY(-2px); }

/* Video Hero Section */
#hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  padding: 0 5%; overflow: hidden;
}
.hero-bg-video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0; opacity: 0.35;
}
.hero-overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; z-index: 1;
  background: linear-gradient(to right, rgba(10,10,10,1) 10%, rgba(10,10,10,0.2) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 600px; padding-top: var(--nav-h); }
.hero-tag { color: var(--orange); font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.hero-title { font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 800; line-height: 1; margin: 16px 0; }
.hero-title span { color: var(--orange); }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; font-weight: 300; }

.hero-stats { display: flex; gap: 40px; margin-top: 48px; border-top: 1px solid var(--border-subtle); padding-top: 24px; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--orange); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Sections Common */
section { padding: 100px 5%; }
.section-tag { color: var(--orange); font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px;}
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 40px; }

/* Modern Cards */
.plan-card, .class-card, .trainer-card, .contact-form-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  transition: transform 0.3s, border-color 0.3s;
}
.plan-card:hover, .class-card:hover { transform: translateY(-5px); border-color: rgba(255,107,53,0.3); }

/* Plans specific */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.plan-card { padding: 40px; position: relative; }
.plan-card.featured { border-color: var(--orange); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--orange); padding: 4px 16px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.plan-price { font-size: 3rem; font-weight: 800; color: var(--orange); margin: 16px 0; font-family: 'Barlow Condensed';}
.plan-features { list-style: none; margin-bottom: 32px; color: var(--text-muted); }
.plan-features li { padding: 8px 0; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 8px;}
.plan-features li::before { content: '\f061'; /* FontAwesome right arrow */ font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--orange);}

/* Classes */
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.class-card { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.class-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.class-desc {font-size: 0.9rem; color: #a0a0a0; margin: 8px 0 16px 0; line-height: 1.4;}
.class-time { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.book-trial-btn { background: transparent; border: 1px solid var(--orange); color: var(--orange); width: 100%; }
.book-trial-btn:hover { background: var(--orange); color: #fff; }

/* Trainers Image Setup */
.trainers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
/* Trainers Image Setup */
.trainer-photo { 
  height: 300px; 
  background: var(--bg-surface); /* Matches the card background */
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden;
  position: relative; /* REQUIRED to center the loader */
}

.trainer-photo img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  filter: grayscale(20%); 
  transition: filter 0.3s, opacity 0.5s ease; /* Added opacity to transition */
  opacity: 0; /* Hidden by default */
  position: relative;
  z-index: 2;
}

/* Added loaded class for trainers */
.trainer-photo img.loaded {
  opacity: 1;
}
.trainer-card:hover .trainer-photo img { filter: grayscale(0%); }
.trainer-info { padding: 20px; text-align: center; }
.trainer-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* --- GALLERY GRID --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  position: relative;
}

/* The 'expand' icon that appears on hover */
.gallery-item::after {
  content: '\f0b2'; /* FontAwesome expand arrows */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  display: block;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08); /* Slight zoom in */
  filter: brightness(0.4); /* Darkens the image */
}

.gallery-item:hover::after {
  opacity: 1; /* Shows the expand icon */
}

/* --- GALLERY LOADERS --- */
.gallery-item {
  position: relative; /* Ensures the loader stays centered inside the card */
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.gallery-img {
  opacity: 0; /* Hidden by default */
  position: relative;
  z-index: 2;
  transition: opacity 0.5s ease, transform 0.4s ease, filter 0.4s ease !important;
}

/* This class is added by JavaScript once the image finishes loading */
.gallery-img.loaded {
  opacity: 1; 
}

/* --- LIGHTBOX MODAL --- */
.lightbox {
  display: none; 
  position: fixed;
  z-index: 1000;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--text-main);
  font-size: 45px;
  font-weight: bold;
  transition: 0.2s;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--orange);
}

/* --- BMI CALCULATOR --- */
.bmi-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.bmi-form-card, .bmi-result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bmi-form-card label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bmi-result-card {
  text-align: center;
  align-items: center;
}

.bmi-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.bmi-status {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.bmi-advice {
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media(max-width: 768px) {
  .bmi-wrapper { grid-template-columns: 1fr; gap: 20px; }
  .bmi-form-card, .bmi-result-card { padding: 30px 20px; }
}

/* Contact Section & Forms */
.contact-grid { 
  display: flex;
  flex-direction: column;
  gap: 60px; 
}

.contact-form-wrapper { 
  padding: 40px; 
  width: 100%;
  max-width: 800px; /* Prevents the inputs from stretching awkwardly wide */
  margin: 0 auto; /* Centers the form perfectly below the map segment */
}

/* =========================================
   NATIVE REVIEWS CAROUSEL
   ========================================= */
/* Summary Bar */
.reviews-summary-bar {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.summary-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.summary-stars i { color: #fbbc04; font-size: 1.2rem; }
.summary-score { color: #fff; font-weight: 700; font-size: 1.2rem; }
.summary-count { color: var(--text-muted); font-size: 0.95rem; }

.write-review-btn {
  background: var(--orange);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}
.write-review-btn:hover { transform: translateY(-2px); }

/* Carousel Layout */
.reviews-carousel-container {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.reviews-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}
.reviews-track::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome/Safari */

.carousel-arrow {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 15px;
  transition: color 0.2s;
  z-index: 10;
}
.carousel-arrow:hover { color: var(--orange); }

/* Individual Cards */
.review-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 28px;
  min-width: 340px;
  max-width: 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

/* Avatar Header */
.review-header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.review-avatar {
  width: 45px; height: 45px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem;
}
.author-name { color: #fff; font-weight: 600; font-size: 1.05rem; }

/* Stars & Meta */
.review-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.review-stars i { color: #fbbc04; font-size: 0.9rem; }
.review-time { color: var(--text-muted); font-size: 0.85rem; }

/* Body & Text Clamping */
.review-body { flex-grow: 1; margin-bottom: 20px; }
.review-text {
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Hides text after 4 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s;
}
.review-text.expanded {
  -webkit-line-clamp: initial; /* Removes the limit when expanded */
}

.show-more-btn {
  background: none; border: none;
  color: #fff; font-weight: 600; text-decoration: underline;
  cursor: pointer; padding: 0; margin-top: 8px; font-size: 0.9rem;
}

/* Footer (Google Logo) */
.review-footer {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-muted);
}
.google-logo-sm { height: 16px; }

/* Auto-Scroll Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 24px;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 60%; /* Prevents dots from taking over the screen on mobile */
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot:hover {
  transform: scale(1.2);
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.carousel-counter {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-left: 10px;
}

.play-pause-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s;
  padding: 5px;
}

.play-pause-btn:hover {
  color: #fff;
}

/* Mobile Adjustments */
@media(max-width: 768px) {
  .reviews-summary-bar { flex-direction: column; gap: 20px; text-align: center; }
  .carousel-arrow { display: none; } /* On mobile, they just swipe! */
  .review-card { min-width: 300px; max-width: 300px; }
}

/* Map and Address Flex Layout */
.info-map-flex {
  display: flex;
  gap: 60px; 
  margin: 24px auto 0;
  max-width: 900px; /* Constrains the width to pull the address and map towards the center */
  align-items: center; /* Vertically centers the text alongside the map */
  justify-content: center;
}

.info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Slightly increased gap for better readability */
  color: var(--text-main);
  font-size: 1.15rem; /* Enlarged address text (up from 0.95rem) */
}

.icon-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.icon-line i {
  color: var(--orange);
  font-size: 1.2rem;
  margin-top: 4px; /* Aligns the icon perfectly with the text */
}

.icon-line a {
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.3s;
}

.icon-line a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.map-container {
  flex: 1;
  max-width: 420px; /* Prevents the map from stretching too wide */
  aspect-ratio: 5 / 4; /* Gives the map that 'square-ish rectangle' shape */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Contact Section Heading */
.contact-heading {
  text-align: center;
  font-size: 2.2rem; /* Slightly larger to look good centered */
  margin-bottom: 10px;
}

.contact-heading span {
  color: var(--orange);
}

/* Form Inputs */
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; }
input, select, textarea {
  width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border-subtle);
  color: var(--text-main); padding: 14px; border-radius: 4px; font-family: inherit; font-size: 1rem;
  transition: border-color 0.2s;
}
input:focus, select:focus { border-color: var(--orange); outline: none; }
.submit-btn { width: 100%; margin-top: 10px; }

/* =========================================
   MODERN FOOTER
   ========================================= */
.modern-footer {
  background: #050505; /* Slightly darker than main body to separate it */
  border-top: 1px solid var(--border-subtle);
  padding: 80px 5% 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* Brand Column */
.footer-col .footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  display: inline-block;
  margin-bottom: 20px;
}

.footer-col .footer-logo span {
  color: var(--orange);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 24px;
}

/* Minimalist Social Links */
.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

/* Add this to make the logos pop! */
.social-links a i {
  font-size: 1.1rem;
}

.social-links a:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-3px);
}

/* Links Columns */
.footer-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
  color: var(--orange);
  padding-left: 5px; /* Smoothly slides to the right on hover */
}

/* Footer Bottom: Agency Credit */
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.agency-credit {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.meridian-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.meridian-link:hover {
  color: var(--orange);
}

/* =========================================
   MOBILE NAVIGATION & ANIMATIONS
   ========================================= */
.hamburger { 
  display: none; background: none; border: none; cursor: pointer; 
  flex-direction: column; gap: 6px; z-index: 200;
}
.hamburger span { 
  width: 28px; height: 2px; background: #fff; 
  transition: all 0.3s ease-in-out; border-radius: 2px;
}

/* Mobile Menu Dropdown Class */
.nav-links.mobile-active {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 30px 5%;
  border-bottom: 1px solid var(--border-subtle);
  animation: slideDown 0.3s ease-out forwards;
  gap: 20px;
  text-align: center;
}

.nav-links.mobile-active a {
  font-size: 1.1rem;
  padding: 10px 0;
  display: block;
}

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

/* Hamburger 'X' Animation */
.hamburger.toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.toggle span:nth-child(2) { opacity: 0; }
.hamburger.toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Tablet Layout (iPad) */
@media(max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .info-map-flex { flex-direction: column; gap: 30px; align-items: stretch; }
  .map-container { min-height: 300px; max-width: 100%; aspect-ratio: 16/9; }
  .bmi-wrapper { grid-template-columns: 1fr; gap: 24px; }
}

/* Mobile Layout (Standard Phones) */
@media(max-width: 768px) {
  /* Nav & Hero */
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-cta { display: none; } /* Hides the Join Now button on mobile */
  
  .hero-title { font-size: clamp(2.8rem, 12vw, 4rem); text-align: center; }
  .hero-sub { text-align: center; }
  .hero-tag { display: block; margin: 0 auto 15px; width: max-content; }
  
  /* Stack Hero Stats & Buttons */
  .hero-stats { flex-direction: column; gap: 20px; align-items: center; text-align: center; border-top: none; padding-top: 0; }
  .hero-actions { display: flex; flex-direction: column; gap: 16px; width: 100%; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }

  /* Sections spacing */
  section { padding: 60px 5%; }
  .section-title { font-size: 2.2rem; margin-bottom: 30px; }

  /* Cards (Plans, Form, BMI) */
  .plan-card, .contact-form-wrapper, .bmi-form-card, .bmi-result-card, .testi-card { padding: 24px; }
  .plans-grid { gap: 20px; }
  .plan-price { font-size: 2.5rem; }

  /* Forms */
  .form-row { flex-direction: column; gap: 16px; margin-bottom: 16px; }
  .form-group { margin-bottom: 0; }
  .contact-heading { font-size: 1.8rem; }
  
  /* Gallery */
  /* Mobile Gallery Carousel */
  .gallery-grid { 
    display: flex; 
    flex-wrap: nowrap; 
    overflow-x: auto; 
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 20px; /* Gives room for the scrollbar/shadows */
    scrollbar-width: none; /* Hides scrollbar in Firefox */
  }
  
  .gallery-grid::-webkit-scrollbar {
    display: none; /* Hides scrollbar in Chrome/Safari */
  }

  .gallery-item {
    flex: 0 0 85%; /* Cards take up 85% width so the next image "peeks" in */
    scroll-snap-align: center;
  }

  /* Mobile Footer Stacking */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .modern-footer {
    padding: 60px 5% 20px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* Small Mobile Layout (Narrow Phones) */
@media(max-width: 480px) {
  .nav-logo { font-size: 1.5rem; }
  .bmi-score { font-size: 3.5rem; }
  .bmi-status { font-size: 1.1rem; }
  .info-text { font-size: 1rem; }
}