/*
 * Global Stylesheet for Elite Boxing Club
 * Inspired by high‑end boxing gyms, this dark theme uses clean typography,
 * striking accent colours and strong imagery. It is fully responsive and
 * ensures readability and accessibility across devices.
 */

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a;
  color: #f5f5f5;
}

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

ul {
  list-style: none;
}

/* Colour Palette */
:root {
  /* Variation 3: purple colour palette */
  --primary-color: #9b59b6;
  --secondary-color: #5e3370;
  --accent-color: #8e44ad;
  --light-color: #faf0fb;
  --dark-color: #150d19;
  --grey-color: #3b2445;
}

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

.flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

.btn-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.btn-link:hover {
  border-color: var(--primary-color);
}

/* Header */
.main-header {
  background-color: rgba(10,10,10,0.9);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo a {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
}

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

.main-nav ul {
  display: flex;
  gap: 1rem;
}

.main-nav li a {
  font-weight: 600;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.main-nav li a.active,
.main-nav li a:hover {
  color: var(--primary-color);
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0a0a0a;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open {
    max-height: 300px;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 1rem 0;
  }
  .nav-toggle {
    display: block;
  }
}

/* Hero section */
.hero {
  position: relative;
  height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 1rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  height: 40vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.page-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Slightly lighter overlay to reveal underlying photos */
  background-color: rgba(0,0,0,0.5);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-content h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-hero-content p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* About preview */
.about-preview {
  padding: 4rem 0;
  background-color: #111;
}

.about-preview .about-text {
  flex: 1 1 500px;
  margin-right: 2rem;
}

.about-preview .about-image {
  flex: 1 1 400px;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.about-preview h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-preview p {
  margin-bottom: 1.5rem;
}

/* Programs overview */
.programs-overview {
  padding: 4rem 0;
  background-color: #0f0f0f;
}

.programs-overview .section-title {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.program-item {
  position: relative;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.program-item .program-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 0;
}

.program-item .program-content {
  position: relative;
  z-index: 1;
  padding: 1rem;
}

.program-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.program-item h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.program-item p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Benefits section */
.benefits {
  padding: 4rem 0;
  background-color: #111;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-item {
  text-align: center;
  padding: 1rem;
}

.benefit-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.benefit-item h4 {
  font-size: 1.2rem;
  font-family: 'Oswald', sans-serif;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  font-size: 0.9rem;
  color: #ccc;
}

/* Call to action */
.cta {
  background-color: var(--primary-color);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.cta-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Footer */
.main-footer {
  background-color: #0f0f0f;
  padding-top: 3rem;
  color: #ccc;
}

.main-footer .footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.main-footer h4 {
  font-family: 'Oswald', sans-serif;
  margin-bottom: 0.5rem;
  color: #fff;
}

.main-footer ul li {
  margin-bottom: 0.5rem;
}

.main-footer ul li a:hover {
  color: var(--primary-color);
}

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

.social-links li a {
  font-size: 1.5rem;
  color: #ccc;
  transition: color 0.3s ease;
}

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

.newsletter-form input[type="email"] {
  padding: 0.5rem;
  width: 100%;
  border: none;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.newsletter-form button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background-color: var(--primary-color);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.newsletter-form button:hover {
  background-color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 1rem 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* About Section styles */
.about-section,
.philosophy-section,
.team-section {
  padding: 4rem 0;
  background-color: #0f0f0f;
}

.about-section h2,
.philosophy-section h2,
.team-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.about-section p {
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Image inserted in About section to accompany the narrative */
.about-photo {
  width: 100%;
  height: auto;
  max-width: 900px;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
  object-fit: cover;
}

.philosophy-section .philosophy-image {
  flex: 1 1 400px;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-right: 2rem;
}

.philosophy-section .philosophy-text {
  flex: 1 1 400px;
}

.philosophy-section ul li {
  margin-bottom: 0.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

.team-photo {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.team-member h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.team-member p {
  font-size: 0.9rem;
  color: #ccc;
}

/* Programs detail page */
.program-details {
  padding: 4rem 0;
  background-color: #0f0f0f;
}

.program-details.alt {
  background-color: #111;
}

.program-detail-image {
  flex: 1 1 400px;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-right: 2rem;
}

.program-details.alt .program-detail-image {
  margin-right: 0;
  margin-left: 2rem;
}

.program-detail-text {
  flex: 1 1 400px;
}

.program-detail-text h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.program-detail-text h4 {
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.program-detail-text ul li {
  margin-left: 1rem;
  list-style: disc;
  margin-bottom: 0.3rem;
}

/* Contact page */
.contact-section {
  padding: 4rem 0;
  background-color: #0f0f0f;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-info h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-info p a {
  color: var(--accent-color);
  text-decoration: underline;
}

.contact-form-container h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 4px;
  background-color: #222;
  color: #fff;
}

.contact-form button {
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--accent-color);
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .about-preview .about-image,
  .philosophy-section .philosophy-image,
  .program-detail-image {
    margin: 0 0 1.5rem 0;
  }
  .about-preview .flex,
  .philosophy-section .flex,
  .program-details .flex {
    flex-direction: column;
  }
}

/* Variation 3: layout tweaks */
.program-details.alt .container.flex {
  flex-direction: row-reverse;
}
