/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ede3d2; /* Warm sand background */
  color: #2c2c2c; /* Dark grey for better contrast */
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
}

/* ========== NAVBAR ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111; /* Dark gym-style header */
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  color: #ff7f50;
  font-size: 24px;
  font-weight: bold;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

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

.navbar a:hover {
  color: #ff7f50;
}

.hamburger {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  background: url('images/gym-hero.jpg') center center/cover no-repeat;
  padding: 160px 20px 100px;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero::before {
  content: "";
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  max-width: 700px;
  margin: auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 25px;
}

.btn {
  padding: 12px 25px;
  background-color: #ff7f50;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #e4663f;
}

/* ========== SECTIONS ========== */
section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #111;
}

/* ========== SERVICE CARDS (PROGRAMS, EQUIPMENT, ETC.) ========== */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  color: #111;
  margin-bottom: 10px;
  font-size: 20px;
}

.card-content p {
  font-size: 14px;
  color: #444;
  margin-bottom: 15px;
}

.price {
  background-color: #ff7f50;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
}

/* ========== TESTIMONIALS ========== */
.testimonial {
  background-color: #f9f4ec;
  border-left: 5px solid #ff7f50;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.testimonial h4 {
  margin-top: 10px;
  color: #333;
}

/* ========== FORM ========== */
.contact-form {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-form button {
  background-color: #ff7f50;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #e4663f;
}

/* ========== FOOTER ========== */
footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    display: none;
    background-color: #111;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 15px;
  }

  .navbar ul.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  section {
    padding: 40px 15px;
  }
}



/* ===== Booking Section ===== */
.booking {
  padding: 60px 20px;
  background-color: #fffdf5;
  text-align: center;
}

.booking h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

.booking-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 15px;
}

.booking-form input,
.booking-form select,
.booking-form button {
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.booking-form button {
  background-color: #1e90ff;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.booking-form button:hover {
  background-color: #0056b3;
}

.booking-form label {
  text-align: left;
  font-weight: 500;
  color: #444;
}


/* ===== Rating Dropdown ===== */
.booking-form label[for="rating"] {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
  text-align: left;
  display: block;
}

.booking-form select#rating {
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fefefe;
  width: 100%;
  box-sizing: border-box;
}


/* General Booking & Rating Form Styles */
.booking-form,
.rating-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
  background-color: #f2f2f2;
  padding: 20px;
  border-radius: 12px;
}

.booking-form input,
.booking-form select,
.rating-form select {
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Submit Button */
.submit-btn {
  padding: 12px 20px;
  background-color: #00704A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background-color: #005f3c;
}

/* Section Headings */
.booking h2,
.rating h2 {
  text-align: center;
  margin-bottom: 15px;
  color: #333;
}


/* ========== CONTACT SECTION ========== */
.contact {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
  color: #333;
}

.contact h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #00704A;
}

.contact p {
  font-size: 18px;
  line-height: 1.8;
  white-space: pre-line; /* Keeps line breaks in <br> */
}

.contact p::before {
  content: "💪 ";
  font-size: 24px;
}

.card img,
.about img,
.hero img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain; /* OR use 'cover' for full-box fit */
  display: block;
  border-radius: 10px;
}


.card {
  width: 100%;
  max-width: 350px;
  margin: 1rem auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 250px;         /* Fixed height for consistency */
  object-fit: cover;     /* Change to 'contain' if needed */
}

/* ===== CENTER WEBSITE WRAPPER ===== */
.container {
  max-width: 1200px;   /* controls how wide your site can stretch */
  margin: 0 auto;      /* this centers the container horizontally */
  padding: 0 20px;     /* adds some space on left/right */
}



/* ========== CLASSES SECTION ========== */
#classes {
  padding: 60px 20px;
  background: #fafafa;
  text-align: center;
}

#classes h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #222;
}

#classes p.muted {
  color: #666;
  font-size: 1rem;
  margin-bottom: 40px;
}

/* Card container uses grid */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-items: center;
}

/* Individual card */
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  max-width: 320px;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  flex: 1;
}

.card-content.center {
  text-align: center;
}

.card-content h3 {
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 12px;
}

.card-content p.muted {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Buttons */
.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn.primary {
  background: #007bff;
  color: white;
  border: none;
}

.btn.primary:hover {
  background: #0056b3;
  transform: scale(1.05);
}

.btn.ghost {
  background: transparent;
  border: 1px solid #007bff;
  color: #007bff;
}

.btn.ghost:hover {
  background: #007bff;
  color: white;
  transform: scale(1.05);
}

/* Footer note under cards */
#classes small.muted {
  color: #777;
  font-size: 0.85rem;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  #classes h2 {
    font-size: 1.8rem;
  }
  .card img {
    height: 180px;
  }
}


/* ===== MODALS ===== */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  inset: 0; /* shorthand for top, right, bottom, left: 0 */
  background: rgba(0, 0, 0, 0.6); /* semi-transparent backdrop */
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.show {
  display: flex; /* Show when triggered */
}

.modal-content {
  background: #fff;
  color: #2c2c2c;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  padding: 25px 30px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  animation: fadeInUp 0.3s ease;
}

.modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #1f1f1f;
}

.modal-content p.small {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: #555;
}

/* Close button */
.modal-content .close {
  background: none;
  border: none;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
  transition: color 0.2s ease;
}
.modal-content .close:hover {
  color: #000;
}

/* Form inside modal */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 500;
  color: #2c2c2c;
}

.form-group select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  background: #f9f9f9;
}

#plansForm button {
  margin-top: 10px;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* General section styling */
.signup {
  padding: 60px 20px;
  background: #f8f9fa;
}

.signup h2 {
  text-align: cent
}

/* Make input fields big and user-friendly */
form input {
  width: 100%;
  padding: 16px 14px;       /* more padding inside */
  font-size: 1.1rem;        /* bigger text */
  border: 2px solid #ccc;
  border-radius: 8px;
  margin-bottom: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Highlight effect when typing */
form input:focus {
  border-color: #ff9800;     /* warm orange */
  box-shadow: 0 0 6px rgba(255,152,0,0.5);
  outline: none;
}

/* Buttons bigger too */
form .btn.primary {
  padding: 14px 20px;
  font-size: 1.1rem;
  border-radius: 8px;
}


/* ===== Nutrition & Wellness Section ===== */
#nutrition {
  padding: 60px 20px;
  background: #fdfaf6; /* light warm background */
}

#nutrition h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 10px;
  color: #2c2c2c;
}

#nutrition .muted {
  text-align: center;
  margin-bottom: 40px;
  display: block;
  font-size: 1rem;
  color: #6d6d6d;
}

/* Card container layout */
#nutrition .card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Individual cards */
#nutrition .card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Card hover effect */
#nutrition .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Card titles */
#nutrition .card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: #333;
}

/* Card descriptions */
#nutrition .card p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #555;
}

/* Buttons inside cards */
#nutrition .card .btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
}



/* ===== Nutrition & Wellness Section ===== */
#nutrition {
  padding: 60px 20px;
  background: #fdfaf6; /* soft neutral tone */
}

#nutrition h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
  color: #2c2c2c;
}

#nutrition .muted {
  text-align: center;
  margin-bottom: 40px;
  display: block;
  font-size: 1rem;
  color: #6d6d6d;
}

#nutrition .card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

#nutrition .card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: all 0.2s ease-in-out;
}

#nutrition .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

#nutrition .card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: #333;
}

#nutrition .card p {
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: #555;
}

/* ===== Modal Styling ===== */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  max-width: 600px;
  width: 90%;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  animation: fadeIn 0.25s ease-in-out;
}

.modal-content h2 {
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.modal-content ul {
  margin-top: 12px;
  padding-left: 20px;
  color: #444;
}

.modal .close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Community & Feed ===== */
#community {
  padding: 60px 20px;
  background: #ede3d2; /* warm sand tone */
}

#community h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
  color: #2c2c2c;
}

#community .muted {
  text-align: center;
  margin-bottom: 40px;
  display: block;
  font-size: 1rem;
  color: #6d6d6d;
}

#community .card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

#community .card h4 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #333;
}

.social-feed {
  background: #fafafa;
  border: 1px solid #e6e6e9;
  border-radius: 6px;
  padding: 8px;
}

#feedInput {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
}

#leaderboard {
  background: #fafafa;
  border: 1px solid #e6e6e9;
  padding: 10px;
  border-radius: 6px;
  min-height: 80px;
}

/* Modal animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* ===== Goals & Rewards Section ===== */
#goals {
  padding: 60px 20px;
  background-color: #fdfaf6; /* soft neutral tone matching Nutrition */
}

#goals h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
  color: #2c2c2c;
}

#goals .muted {
  text-align: center;
  margin-bottom: 40px;
  display: block;
  font-size: 1rem;
  color: #6d6d6d;
}

#goals .card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

#goals .card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#goals .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

#goals .card h4 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: #333;
}

#goals .card p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #555;
}

/* Goal form styling */
#goalForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#goalForm input {
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#goalForm button {
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background-color: #00704A; /* primary color */
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#goalForm button:hover {
  background-color: #005f3c;
}

/* Rewards display */
#rewards {
  font-size: 1.1rem;
  color: #2c2c2c;
}

#rewards strong {
  color: #00704A;
  font-weight: bold;
}


/* ===== Rating Section ===== */
#rating {
  padding: 60px 20px;
  background-color: #fdfaf6;
}

#rating h4 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #2c2c2c;
}

#rating select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#rating button {
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background-color: #00704A;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#rating button:hover {
  background-color: #005f3c;
}

#ratingStatus {
  font-size: 0.95rem;
  color: #6d6d6d;
  margin-left: 8px;
}

/* ===== Contact Section ===== */
#contact {
  padding: 60px 20px;
  background-color: #fff;
}

#contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #2c2c2c;
}

#contact .card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

#contact .card {
  background: #fdfaf6;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#contact .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

#contact .card h4 {
  margin-bottom: 12px;
  color: #333;
  font-size: 1.3rem;
}

#contact .muted {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
}

#contact a {
  color: #00704A;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* Contact Form Inputs */
#contact input,
#contact textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#contact button {
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background-color: #00704A;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact button:hover {
  background-color: #005f3c;
}

#contactStatus {
  font-size: 0.95rem;
  color: #6d6d6d;
}


/* ===== Rating Section ===== */
#rating {
  padding: 60px 20px;
  background-color: #f9f7f2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#rating h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2c2c2c;
  text-align: center;
}

#rating .rating-card {
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  width: 100%;
}

#rating h4 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: #333;
  text-align: center;
}

#rating select {
  width: 100%;
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1.1rem;
  margin-bottom: 16px;
  outline: none;
  transition: border 0.3s;
}

#rating select:focus {
  border-color: #00704A;
  box-shadow: 0 0 6px rgba(0,112,74,0.3);
}

#rating button {
  width: 100%;
  padding: 12px 0;
  font-size: 1.1rem;
  border-radius: 8px;
  border: none;
  background-color: #00704A;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#rating button:hover {
  background-color: #005f3c;
  transform: translateY(-2px);
}

#ratingStatus {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #6d6d6d;
  text-align: center;
}



.modal {
  display: none; /* hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.modal .close {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}
