/* ============================================
           CSS VARIABLES & RESET
   ============================================ */
:root {
  --primary-bg: #1a1a1a;
  --accent: #e63946;
  --accent-dark: #c1121f;
  --secondary: #ffffff;
  --card-bg: #2a2a2a;
  --text-muted: #aaaaaa;
  --border-color: #444444;
  --success: #1b4332;
  --error: #6a040f;
  --font-heading: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--primary-bg);
  color: var(--secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  background-color: #333333;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ============================================
           TYPOGRAPHY & UTILITIES
           ============================================ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 4rem 0;
}

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

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ============================================
           BUTTONS
           ============================================ */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  font-weight: 700;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--secondary);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--primary-bg);
}

.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

/* ============================================
           NAVIGATION
           ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(26, 26, 26, 0.98);
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.2rem;
  border-bottom: 2px solid var(--accent);
}

.nav-links.active {
  display: flex;
}

.nav-link {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.hamburger-btn {
  display: block;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    width: auto;
    padding: 0;
    border-bottom: none;
    background: transparent;
  }

  .hamburger-btn {
    display: none;
  }
}

/* ============================================
           PAGE TRANSITIONS
           ============================================ */
.page-section {
  display: none;
  opacity: 0;
}

.page-section.active {
  display: block;
  animation: fadeInPage 0.5s forwards;
}

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

/* ============================================
           HOME - HERO
  ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
    url("/assets/images/gym/hero.webp?auto=format&fit=crop&w=1920&q=80")
      center/cover no-repeat;
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: 0 1rem;
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.hero .tagline {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #dddddd;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4.5rem;
  }
  .hero .tagline {
    font-size: 1.5rem;
  }
}

/* ============================================
           STATS BAR
    ============================================ */
.stats-bar {
  background-color: var(--card-bg);
  padding: 2.5rem 0;
  border-top: 3px solid var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.stat-item i {
  color: var(--accent);
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  display: block;
  color: var(--secondary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
           FEATURED CARDS (REUSED)
   ============================================ */
.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ============================================
           PREVIEW CLASSES (HOME)
   ============================================ */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.preview-icon {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
           CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), #8d0801);
  padding: 4rem 1rem;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

@media (min-width: 768px) {
  .cta-banner h2 {
    font-size: 2.5rem;
  }
}

/* ============================================
           CLASSES PAGE
   ============================================ */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--secondary);
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--secondary);
}

.classes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.class-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  border-left: 4px solid var(--accent);
}

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

.class-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.class-meta {
  display: flex;
  gap: 1.2rem;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.class-meta span i {
  color: var(--accent);
  margin-right: 0.3rem;
}

.class-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.intensity {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(230, 57, 70, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
}

@media (min-width: 768px) {
  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .classes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Schedule Table */
.schedule-wrapper {
  overflow-x: auto;
  margin-top: 3rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.schedule-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.9rem;
}

.schedule-table thead th {
  background: var(--accent);
  padding: 1rem;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.schedule-table td {
  padding: 0.9rem;
  border-bottom: 1px solid #333333;
  vertical-align: middle;
}

.schedule-table tbody tr:nth-child(even) {
  background: #222222;
}

.schedule-class {
  font-weight: 700;
  color: var(--secondary);
  display: block;
  margin-bottom: 0.2rem;
}

.schedule-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
           TRAINERS PAGE
   ============================================ */

.trainers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.trainer-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

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

.trainer-img-wrapper {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.trainer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.trainer-card:hover .trainer-img {
  transform: scale(1.05);
}

.trainer-content {
  padding: 1.5rem;
}

.trainer-role {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.trainer-name {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.trainer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: #333333;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

.trainer-bio {
  color: #cccccc;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.trainer-quote {
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .trainers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
           PRICING PAGE
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  position: relative;
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.pricing-card.popular {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--secondary);
  padding: 0.3rem 1.2rem;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pricing-name {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.price {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 1rem 0;
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pricing-best-for {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.pricing-features {
  text-align: left;
  margin: 1.5rem 0;
}

.pricing-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #333333;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.pricing-features li i {
  color: var(--accent);
  font-size: 0.8rem;
}

.comparison-section {
  margin-top: 4rem;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.comparison-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.comparison-table th {
  background: var(--card-bg);
  padding: 1rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
}

.comparison-table td {
  padding: 0.9rem 1rem;
  text-align: center;
  border-bottom: 1px solid #333333;
}

.comparison-table tbody tr:nth-child(even) {
  background: #222222;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.check-icon {
  color: var(--accent);
}

.cross-icon {
  color: #555555;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
           TESTIMONIALS PAGE
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--accent);
}

.stars {
  color: #ffc107;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.testimonial-text {
  color: #dddddd;
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.testimonial-result {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
           GALLERY PAGE
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(230, 57, 70, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2rem;
  color: var(--secondary);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
           CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem;
  background: #1f1f1f;
  border: 1px solid var(--border-color);
  color: var(--secondary);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  display: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: var(--success);
  color: var(--secondary);
}

.form-status.error {
  background: var(--error);
  color: var(--secondary);
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.contact-info-list li {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-list i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 0.2rem;
  width: 24px;
  text-align: center;
}

.contact-info-list strong {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.contact-info-list span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.map-placeholder {
  width: 100%;
  height: 300px;
  background: #222222;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  margin-top: 1.5rem;
  text-align: center;
  padding: 1rem;
}

.map-placeholder i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.map-placeholder a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
  margin-top: 0.5rem;
}

.social-links-large {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links-large a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--secondary);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

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

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
           FOOTER
   ============================================ */
.footer {
  background: #111111;
  border-top: 1px solid #222222;
  padding: 3rem 0 1.5rem;
}

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

.footer-heading {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.05em;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.3rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #222222;
  color: #666666;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
           TOAST NOTIFICATION
   ============================================ */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: var(--secondary);
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(150%);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 90%;
  text-align: center;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}
