/* ===== General Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Oswald', sans-serif;
}

body {
  color: #111;
  line-height: 1.6;
  background-color: #fff;
}

h1, h2, h3 {
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Navbar ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #111;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Make logo + text clickable */
.navbar .logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none; /* remove underline */
  color: inherit;        /* keep same navbar text color */
}

.navbar .logo a:hover {
  opacity: 0.85;         /* subtle hover effect */
}

.navbar .logo img {
  height: 50px;  /* make bigger */
  width: auto;   /* maintain aspect ratio */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e63946;
}

.nav-links .btn {
  padding: 0.5rem 1rem;
  background-color: #e63946;
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  transition: background 0.3s ease;
}

.nav-links .btn:hover {
  background-color: #d62828;
}


/* ===== Hero Sections ===== */
.page-hero {
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* optional: hide any image overflow */
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17,17,17,0.5);  /* semi-transparent overlay */
  z-index: 1;
}

.page-hero img.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* mimics background-size: cover */
  object-position: 50% 20%;
  z-index: 0;        /* behind overlay and text */
}

/* Hero content sits above overlay and uses new section-content max width */
.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 1200px;                /* match new section width */
  width: 100%;
  padding: 0 2rem;                  /* inner padding for mobile */
}

.page-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Hero buttons */
.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.hero-buttons .btn {
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  background-color: #e63946;
  color: #fff;
  transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
  background-color: #d62828;
}

.btn-outline {
  border: 2px solid #e63946;
  color: #e63946;
}

.btn-outline:hover {
  background-color: #e63946;
  color: #fff;
}


/* ===== Sections ===== */
section {
  width: 100%;           /* spans full page width */
  padding: 2rem 2rem;    /* keep vertical & side spacing */
  box-sizing: border-box;
  position: relative;
}

.section-content {
  max-width: 1200px;     /* constrain content width */
  margin: 0 auto;        /* center horizontally */
  padding: 0 2rem;       /* inner padding for mobile */
}

.service-section .section-content {
  padding: 0 0.5rem;  /* much smaller padding to bring image/text closer */
}

.about-intro, .about-content, .gym-info, .cta, .services, .pricing-section {
  text-align: center;
}

.about-intro p, .about-content p, .gym-info p, .cta h2 {
  margin-bottom: 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background-color: #e63946;
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #d62828;
}

/* ===== Services Section ===== */
.services .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  padding: 1rem;
  font-size: 1.2rem;
  color: #e63946;
}

.card p {
  padding: 0 1rem 1rem 1rem;
  font-size: 0.95rem;
  color: #111;
}

/* ===== Alternating Service Layout ===== */
.service-section {
  display: flex;
  align-items: center;
  justify-content: center;   /* keeps content centered instead of stretched */
  gap: 3rem;                 /* consistent spacing between image & text */
  flex-wrap: wrap;
  margin: 0;
  background-color: #e63946;
  color: #fff;
  padding: 2rem;             /* reduced padding so gap doesn’t explode */
  border-radius: 8px;
}

.service-inner {
  display: flex;
  flex-wrap: wrap;        /* stack on small screens */
  justify-content: flex-start; /* keeps image and text together */
  gap: 2rem;              /* space between image & text */
  max-width: 1200px;      /* constrain total group width */
  margin: 0 auto;         /* center the group horizontally */
  align-items: center;
}

.service-section.reverse {
  flex-direction: row-reverse;
}

.service-section.reverse .service-inner {
  flex-direction: row-reverse; /* reverse order for alternating layout */
}

.service-image img {
  width: 100%;
  max-width: 600px;          /* caps image width */
  border-radius: 8px;
  display: block;
  margin: 0 auto;    /* center image in column */
}

.service-text {
  flex: 1;
  max-width: 600px;          /* caps text width */
  margin: 0 auto;
}

.service-image, .service-text {
  flex: 1 1 45%;           /* image/text grow and shrink naturally */
  max-width: 600px;
}

/* keep service 2 white */
.service-section:nth-of-type(3) {
  background-color: #fff;
  color: #e63946;
}


/* ===== CTA Section ===== */
.cta {
  background-color: #e63946;
  color: #fff;
  padding: 4rem 2rem;
  border-radius: 8px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ✅ CTA section: View Schedule & See Pricing buttons (gray bg, red text) */
.cta-buttons a {
  background-color: #f8f9fa; /* gray background */
  color: #e63946;            /* red text */
  border: 2px solid #e63946;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.cta-buttons a:hover {
  background-color: #e0e0e0; /* slightly darker gray on hover */
  color: #e63946;
}

/* ===== Pricing Grid ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 300px)); /* fixed card width */
  gap: 2rem;                     /* space between cards */
  justify-content: center;        /* center the whole grid */
  margin: 2rem auto 0;            /* horizontally center on page */
}

.pricing-card {
  background-color: #fff;
  border: 2px solid #e63946;
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card h3 {
  color: #e63946;
  margin-bottom: 1rem;
}

.pricing-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-card ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  text-align: left;
}

/* ===== Footer ===== */
.footer {
  display: flex;
  justify-content: space-between; /* left, center, right */
  align-items: center;
  padding: 20px;
  background-color: #111; /* adjust */
  color: #fff;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

.footer img {
  width: 24px;
  height: 24px;
  margin-left: 10px;
}

/* ===== Schedule Table ===== */
.schedule table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.schedule th, .schedule td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: center;
}

.schedule th {
  background-color: #e63946;
  color: #fff;
}

.schedule-note {
  margin-top: 1rem;
  font-style: italic;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .service-section {
    flex-direction: column;
    text-align: center;
  }

  .service-section.reverse {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===== Section Background Colors ===== */
.about-intro {
  background-color: #e9ecef;  /* light gray */
  color: #111;
  padding: 4rem 2rem;
}

.services {
  background-color: #e63946;      /* white, contrast with cards */
  color: #fff;
  padding: 4rem 2rem;
}

.gym-info {
  background-color: #e9ecef;  /* slightly darker gray */
  color: #111;
  padding: 4rem 2rem;
}

.cta {
  background-color: #e63946;  /* brand red */
  color: #fff;
  padding: 4rem 2rem;
  border-radius: 8px;
}

.about-red {
  background-color: #e63946; /* your brand red */
  color: #fff;               /* white text for contrast */
  padding: 4rem 2rem;        /* consistent spacing */
  border-radius: 8px;        /* optional, to match style */
}

.pricing-red {
  background-color: #e63946; /* red section */
  color: #fff;               /* white text for contrast */
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 8px;        /* optional for style */
}

.pricing-red .pricing-card {
  background-color: #fff; /* keep cards white */
  color: #111;            /* default text inside cards is black */
}

.pricing-white {
  background-color: #fff;    /* neutral / white section */
  color: #111;
  padding: 4rem 2rem;
  text-align: center;
}

