/* =============================================
   FITZEOUS FITNESS — Global Stylesheet
   ============================================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial Narrow', Arial, sans-serif;
}

:root {
  --nav-height: 80px;
  --dark-bg: rgb(27, 27, 27);
  --green-hover: rgba(5, 138, 0, 0.5);
  --green-accent: rgb(3, 85, 3);
  --card-dark: rgba(0, 0, 0, 0.747);
  --card-dark-hover: rgba(0, 58, 0, 0.747);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::-webkit-scrollbar {
  display: none;
}

/* =============================================
   TOP NAV
   ============================================= */

.top-bar {
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(8, 8, 8, 0.92);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  backdrop-filter: blur(6px);
}

.logo {
  height: 58px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

nav {
  display: flex;
  align-items: center;
}

.tabs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.tabs li a {
  display: block;
  text-decoration: none;
  color: white;
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 600;
  padding: 10px 12px;
  transition: background-color 0.3s;
  white-space: nowrap;
  cursor: pointer;
}

.tabs li a:hover {
  background-color: var(--green-hover);
  color: white;
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1600;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: transform 0.35s, opacity 0.35s;
}

.hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: rgba(8, 8, 8, 0.97);
  z-index: 1400;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  padding: 8px 0 18px;
}

.mobile-nav.open { display: block; }

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li a {
  display: block;
  padding: 14px 28px;
  color: white;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background-color 0.2s;
  cursor: pointer;
}

.mobile-nav ul li a:hover {
  background-color: var(--green-hover);
}

/* =============================================
   PAGE OFFSET
   ============================================= */

.page-content {
  padding-top: var(--nav-height);
}

/* =============================================
   HERO IMAGE
   ============================================= */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
}

.hero img {
  width: 100%;
  max-height: 82vh;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.centered {
  text-align: center;
  width: min(90%, 800px);
  font-size: clamp(22px, 4vw, 40px);
  padding: 18px 24px;
  color: whitesmoke;
  background-color: rgba(8, 8, 8, 0.75);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
}

/* =============================================
   SECTION HEADINGS
   ============================================= */

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

.o1 {
  font-size: clamp(24px, 3.5vw, 35px);
  font-weight: bold;
}

.o2 {
  font-style: italic;
  color: rgb(65, 64, 64);
  font-weight: 600;
  margin-top: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.smol-hr {
  margin: 16px auto 0;
  border: none;
  border-top: 3px solid black;
  width: 200px;
}

/* =============================================
   WHY / COACH CARDS
   ============================================= */

.card-holder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 30px 20px;
  width: 100%;
}

.card {
  text-align: center;
  width: clamp(200px, 28%, 320px);
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
}

.card p {
  background-color: var(--green-accent);
  color: white;
  font-size: clamp(16px, 2vw, 22px);
  padding: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-radius: 0 0 8px 8px;
}

/* =============================================
   ABOUT SECTION
   ============================================= */

.abt-plat {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 30px 24px 40px;
  width: 100%;
}

.abt {
  flex: 1 1 340px;
  max-width: 560px;
}

.abt .o2 {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.abt video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* =============================================
   SERVICES
   ============================================= */

.service {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding: 10px 20px 10px;
}

.serv-card {
  flex: 1 1 260px;
  max-width: 340px;
  background-color: var(--card-dark);
  text-align: center;
  padding: 24px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.4s;
}

.serv-card:hover {
  background-color: var(--card-dark-hover);
}

.serv-h {
  color: white;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
}

.serv-b {
  font-size: clamp(13px, 1.5vw, 17px);
  margin-top: 14px;
  color: whitesmoke;
  line-height: 1.6;
}

.serv-card a {
  text-decoration: none;
  color: rgb(0, 255, 0);
  font-size: 18px;
  font-weight: 600;
}

/* =============================================
   FOOTER / END
   ============================================= */

.end {
  background-color: var(--dark-bg);
  color: white;
  width: 100%;
  padding: 48px 28px 32px;
  margin-top: 40px;
}

.end-img img {
  width: 160px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

.end-text {
  font-size: clamp(15px, 1.8vw, 19px);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: justify;
}

.end-text a {
  text-decoration: none;
  color: rgb(82, 255, 47);
}

.end hr {
  width: 100%;
  max-width: 1100px;
  margin: 28px auto;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.end-copyright {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* =============================================
   EVENTS PAGE
   ============================================= */

.event-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 24px 20px 48px;
}

.event-card {
  background: #f5fff5;
  border: 2px solid var(--green-accent);
  border-radius: 8px;
  padding: 28px 36px;
  text-align: center;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
}

.event-card h3 {
  color: var(--green-accent);
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

.event-card p {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  line-height: 1.8;
}

/* =============================================
   GALLERY PAGE
   ============================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 24px 24px 48px;
}

.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  transition: transform 0.35s ease-in-out, box-shadow 0.35s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

/* =============================================
   SIGNUP / PLACEHOLDER
   ============================================= */

.placeholder-section {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.placeholder-section h2 {
  font-size: clamp(22px, 4vw, 34px);
  color: var(--green-accent);
  margin-bottom: 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.placeholder-section p {
  font-size: 17px;
  color: #555;
  max-width: 480px;
  line-height: 1.7;
}

/* =============================================
   CONTACT / QUERY FORM
   ============================================= */

.contact-section {
  padding: 48px 24px;
  background: #f9f9f9;
  margin-top: 40px;
}

.contact-section .section-heading {
  padding-top: 0;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: 1100px;
  margin: 32px auto 0;
}

.contact-info {
  flex: 1 1 260px;
  max-width: 380px;
}

.contact-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--green-accent);
}

.contact-info p {
  font-size: 15px;
  line-height: 2.2;
  color: #333;
}

.contact-form {
  flex: 1 1 320px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-top: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-accent);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.frm-btn {
  background-color: rgb(36, 43, 37);
  font-size: clamp(15px, 1.8vw, 20px);
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  align-self: flex-end;
  margin-top: 6px;
  box-shadow: 2px 2px rgb(49, 48, 48);
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.frm-btn:hover {
  background-color: rgb(26, 97, 12);
  box-shadow: none;
  transform: scale(0.95);
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

@media (max-width: 860px) {
  .tabs { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  :root { --nav-height: 65px; }

  .logo { height: 44px; }

  .hero img { max-height: 50vh; }

  .abt-plat { padding: 24px 16px 32px; }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .gallery-grid img { height: 160px; }

  .end { padding: 32px 16px 24px; }

  .contact-section { padding: 36px 16px; }
}

@media (max-width: 400px) {
  .centered { font-size: 18px; padding: 14px 12px; }
  .serv-card { max-width: 100%; }
}

/* =============================================
   SIGNUP FORM
   ============================================= */

.signup-wrap {
  max-width: 700px;
  margin: 36px auto 50px;
  padding: 0 20px;
}

.signup-fieldset {
  border: 2px solid var(--green-accent);
  border-radius: 8px;
  padding: 30px 32px 36px;
}

.signup-fieldset legend {
  font-size: 18px;
  font-weight: 700;
  color: var(--green-accent);
  padding: 0 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signup-form label {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-top: 10px;
}

.field-note {
  font-weight: 400;
  font-size: 12px;
  color: #777;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="tel"],
.signup-form select,
.signup-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s;
}

.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus {
  outline: none;
  border-color: var(--green-accent);
}

.signup-form textarea {
  min-height: 120px;
  resize: vertical;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.radio-group input[type="radio"] {
  width: auto;
  accent-color: var(--green-accent);
  cursor: pointer;
}

.radio-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-right: 20px;
  cursor: pointer;
}

.signup-btn {
  align-self: center;
  margin-top: 16px;
  width: 160px;
}

@media (max-width: 500px) {
  .signup-fieldset {
    padding: 20px 16px 24px;
  }
  .signup-btn {
    width: 100%;
  }
}