/* GENERAL */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  color: #222;
  line-height: 1.6;
}

/* NAVBAR */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  z-index: 100;
}
nav .logo {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}
nav ul {
  display: flex;
  list-style: none;
}
nav ul li a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  transition: color 0.3s;
}
nav ul li a:hover { color: #e63946; }

.logo-no-style {
  text-decoration: none;
  color: white;
}
.logo-no-style:hover {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
header {
  background: url("images/main.jpg") center 40% / cover no-repeat;
  height: 90vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}
header::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}
header h1, header p, header a {
  position: relative;
  z-index: 1;
}
header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
header p {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #ddd;
}
.cta-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 25px;
  background: #e63946;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.cta-btn:hover { background: #c22f3b; }

/* SECTIONS */
section {
  padding: 80px 10%;
}

/* ABOUT */
.about {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.about img {
  width: 400px;
  border-radius: 20px;
}
.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.about-text p {
  font-size: 1rem;
  color: #555;
}

/* SERVICES */
.services {
  background: #fff;
  text-align: center;
}
.services h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}
.services h3 {
  /* text-shadow: 0 3px 8px rgba(0,0,0,0.7); */
  font-weight: 800;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 1);
  letter-spacing: 0.5px;
}
.service-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.service {
  width: 300px;
  height: 250px;
  color: white;
  padding: 20px;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  transition: transform 0.3s;
}
.service:hover {
  transform: scale(1.05);
}

/* Individual backgrounds */
.personal-training {
  /* background-image: url("images/1.jpeg"); */
  background-color: rgb(240, 238, 238);
  
}
.personal-training h3 {
  margin-bottom: 28px;
}
.personal-training p {
  margin-bottom: 8px;
}

.online-coaching {
  /* background-image: url("images/2.jpeg"); */
  background-color: rgb(240, 238, 238);
}
.online-coaching h3{
  margin-bottom: 40px;
}
.online-coaching p{
  margin-bottom: 20px;
}

.group-classes {
  /* background-image: url("images/3.jpeg"); */
  background-color: rgb(240, 238, 238);
  
}
.group-classes h3{
  margin-bottom: 40px;
}
.group-classes p{
  margin-bottom: 20px;
}
.service h3 {
  color: #e63946;
  /* margin-bottom: 10px; */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  align-items: center;     /* horizontal centering */
  text-align: center;
  
}
.service p {
  color: light gray;
  font-weight: bold;
}

/* TESTIMONIALS */
.testimonials {
  background: #f8f9fa;
  text-align: center;
}
.testimonials h2 {
  margin-bottom: 30px;
}
.testimonial {
  max-width: 700px;
  margin: 0 auto 40px;
  font-style: italic;
  color: #555;
}

/* CONTACT */
.contact {
  text-align: center;
  background: #111;
  padding: 80px 10%;
}
/* .contact h3 {
  text-align: center;
  color: white;
  
} */
.contact h2 {
  margin-bottom: 20px;
}
.contact form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact input, .contact textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}
.contact button {
  padding: 12px;
  background: #e63946;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
  text-decoration: none !important;
}
.contact button:hover { background: #c22f3b; }
.contact-button,
.contact-button:hover,
.contact-button:focus,
.contact-button:visited {
  text-decoration: none !important;
}


#form-status {
  margin-top: 15px;
  color: #333;
  font-weight: 600;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 25px;
  background: #111;
  color: #aaa;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 10px 20px; }
  header h1 { font-size: 2.5rem; }
  .about { flex-direction: column; }
  .about img { width: 100%; }
}

/* ------------------------------
   Spinner animation for form
------------------------------ */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ------------------------------
   EVENTS PAGE
------------------------------ */
.event1-header::before {
  content: ""; /* required for pseudo-element */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7); /* semi-transparent black overlay */
  z-index: 1; /* sits below the text */
}
.event1-header {
  background: url(events/events/event1/4.jpeg) center/cover no-repeat;
  min-height: 100svh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.event1-header h1 {
  color: red;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  position: relative; /* make text appear above overlay */
  z-index: 2;
}

.event1-header p {
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  position: relative; /* make text appear above overlay */
  z-index: 2;
}

.event1-body {
  background: url(events/events/event1/4.jpeg) center/cover no-repeat;
  height: 100vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.event1-body h1 {
  color: black;
}

.event1-body p {
  color: white;
}

.events-header {
  background: url(images/4.jpg) center/cover no-repeat;
  height: 50vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}
.events-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
}
.events-header h1,
.events-header p {
  position: relative;
  z-index: 1;
}

.events {
  background: #fff;
  padding: 80px 10%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.event-card {
  background: #f1f1f1;
  border-radius: 20px;
  padding: 30px;
  transition: transform 0.3s;
}
.event-card:hover {
  transform: translateY(-5px);
}
.event-card h2 {
  color: #e63946;
  margin-bottom: 10px;
}
.event-card p {
  color: #444;
  line-height: 1.5;
}

/* This to make the event card not underlined*/
.event-link {
  text-decoration: none; /* removes underline */
  color: inherit;        /* keeps normal text color */
  display: block;        /* makes entire card clickable */
}

/* Highlight active navbar link */
nav ul li a.active {
  color: #e63946;
}

/*FIX ON MOBILE*/
@media (max-width: 768px) {
  .event1-header h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .event1-header p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* =========================
   MEMBERSHIPS (Pricing)
========================= */
.memberships {
  background: #fff;
  text-align: center;
}
.memberships h2 {
  font-size: 2rem;
  letter-spacing: 3px;
  color: #5a7cad;            /* subtle blue headline like screenshot vibe */
  margin-bottom: 35px;
  text-transform: uppercase;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  background: #111;
  min-height: 460px;
  display: flex;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.65);
}

/* use your existing photos to stay on-brand */
.bg-annual::before   { background-image: url("images/cartoon1.jpeg"); }
.bg-quarterly::before{ background-image: url("images/cartoon2.jpeg"); }
.bg-monthly::before  { background-image: url("images/cartoon3.jpeg"); }

.pricing-overlay {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  align-items: center;
  width: 100%;
}

/* headings and subline */
.pricing-overlay h3 {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pricing-sub {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(2px);
  margin: 0 auto 18px;
}

/* price line */
.price {
  margin-bottom: 18px;
}
.price .amount {
  font-size: 2.4rem;
  font-weight: 800;
}
.price .per {
  margin-left: 6px;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* CTA button linking to #contact */
.pricing-btn {
  display: inline-block;
  margin: 0 auto 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #e63946;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, background .3s ease;
}
.pricing-btn:hover {
  background: #c22f3b;
  transform: translateY(-1px);
}

/* small note */
.tiny-note {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* responsive */
@media (max-width: 980px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    min-height: 420px;
  }
}

/* ===== Mobile nav (desktop unchanged) ===== */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  /* Show burger, hide links */
  .nav-toggle { display: block; }
  nav { padding: 12px 16px; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  nav.open ul { display: flex; }
  nav ul li a { margin-left: 0; padding: 8px 4px; }
  /* keep logo and button on same row */
  nav { display: flex; align-items: center; }
  nav .logo { font-size: 1.3rem; }
}


/* ===== Smooth animated mobile dropdown ===== */
@media (max-width: 768px) {
  nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(0, 0, 0, 0.95);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }

  nav.open ul {
    max-height: 500px;  /* enough space for all links */
    opacity: 1;
  }

  .nav-toggle {
    display: block;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
  }
}

/* Get in Touch button */
.get-in-touch {
  display: inline-block;
  background: #e63946;
  color: #fff;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.35);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.get-in-touch:hover {
  background: #c22f3b;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(230, 57, 70, 0.45);
}
.contact-cta {
  text-align: center;
  padding: 60px 0;
  background: #f8f9fa;
}



/* Kids hero – mobile fix */
@media (max-width: 768px) {
  .kids-hero {
    height: auto;
    padding: 40px 20px;
    box-sizing: border-box;
  }

  .kids-hero h1 {
    font-size: 9vw;
    line-height: 1.1;
    word-break: break-word;
  }

  .kids-hero p {
    font-size: 4vw;
    line-height: 1.4;
  }
}


/* Center the two black boxes on mobile */
@media (max-width: 768px) {
  .kids-features {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    padding: 0 !important;   /* remove the left push we added before */
    width: 100% !important;
  }

  .kids-features .feature-box {
    width: 90% !important;
    max-width: 400px;
    margin: 15px auto !important;  /* centers each box */
    text-align: center;
  }
}
