@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

/* 1. Variables & Reset */
:root {
  --color-primary: #121212;
  --color-primary-light: #1e1e1e;
  --color-accent: #e53935;
  --color-accent-hover: #c62828;
  --color-text: #ffffff;
  --color-text-muted: #a0a0a0;
  --color-border: #333333;

  --font-body: 'Inter', sans-serif;
  --font-heading: 'Oswald', sans-serif;

  --spacing-container: 1200px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-primary);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: none;
}

/* 2. Layout & Utilities */
.container {
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-white {
  color: white;
}

.font-bold {
  font-weight: 700;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .md-hidden {
    display: none;
  }

  .md-visible {
    display: block;
  }
}

.hidden {
  display: none;
}

/* 3. Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(229, 57, 53, 0.39);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: white;
  color: var(--color-primary);
  border: 1px solid white;
}

.btn-secondary:hover {
  background-color: #f0f0f0;
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Navbar */
.navbar {
  background-color: var(--color-primary-light);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: none;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
}

.nav-link[aria-current="page"] {
  color: var(--color-accent);
}

.mobile-menu-btn {
  color: white;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.mobile-menu-btn .hamburger-line {
  width: 26px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.is-open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--color-primary-light);
  border-top: 1px solid var(--color-border);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none;
  }
}

/* Footer */
.footer {
  background-color: var(--color-primary-light);
  border-top: 1px solid var(--color-border);
  padding-top: 60px;
  padding-bottom: 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.4));
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #e0e0e0;
  margin-bottom: 40px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-cta {
    flex-direction: row;
  }
}

/* Cards */
.card {
  background-color: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 25px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Specific Section Styles */
.bg-light {
  background-color: var(--color-primary-light);
}

.bg-dark {
  background-color: var(--color-primary);
}

.feature-box {
  background-color: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s;
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

.testimonials-grid .card {
  padding: 30px;
  background-color: var(--color-primary);
}

/* Schedule */
.schedule-day {
  background-color: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.schedule-header {
  background-color: var(--color-primary);
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-item {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.schedule-container-wide {
  max-width: 1600px;
}

.sched-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.sched-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.4rem;
}

.sched-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.sched-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.legend-chip {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.all-days-scroll {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.all-days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(200px, 1fr));
  gap: 1rem;
  min-width: 1440px;
}

.day-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.day-col-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0.9rem;
  background-color: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid var(--color-accent);
}

.day-col-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.day-col-count {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.day-col-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.class-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--color-border);
  border-left: 4px solid transparent;
  background-color: rgba(0, 0, 0, 0.18);
  transition: background-color 0.15s ease;
}

.class-card:first-child {
  border-top: none;
}

.class-card:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.class-card.cat-grappling { border-left-color: #4fc3f7; }
.class-card.cat-striking  { border-left-color: var(--color-accent); }
.class-card.cat-youth     { border-left-color: #81c784; }
.class-card.cat-yoga      { border-left-color: #ce93d8; }
.class-card.cat-empty     { border-left-color: transparent; opacity: 0.5; }

.legend-chip.cat-grappling { color: #4fc3f7; }
.legend-chip.cat-striking  { color: var(--color-accent); }
.legend-chip.cat-youth     { color: #81c784; }
.legend-chip.cat-yoga      { color: #ce93d8; }

.card-time {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.card-name {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.card-empty-msg {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  padding: 0.5rem 0;
}

.pricing-card {
  background-color: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.highlight {
  border-color: var(--color-accent);
  background-color: #222;
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: #666;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.08);
}

.form-select option {
  background-color: #1e1e1e;
  color: #fff;
}

.form-error {
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-top: 0.1rem;
}

.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.form-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(229, 57, 53, 0.15);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  width: 100%;
  padding: 15px;
  background-color: var(--color-primary-light);
  border-top: 1px solid var(--color-accent);
  z-index: 900;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* Program Detail */
.program-detail {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .program-detail {
    flex-direction: row;
  }

  .program-detail.reverse {
    flex-direction: row-reverse;
  }
}

.program-image-container {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.program-content {
  flex: 1;
}

/* About Page */
.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .about-mission-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact Page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - var(--header-height));
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr 1.5fr;
  }
}

.page-hero-banner {
  padding: 5rem 0;
}

.page-hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.why-section-grid {
  gap: 4rem;
}

.why-img-wrap {
  position: relative;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
}

.contact-panel-form {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 2;
  background-color: var(--color-primary);
}

.contact-panel-info {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--color-border);
  background-color: var(--color-primary-light);
}

.programs-cta-banner {
  padding: 5rem 0;
  background: var(--color-accent);
  text-align: center;
}

/* Responsive Tweaks */
@media (max-width: 767px) {
  .section {
    padding: 50px 0;
  }

  h1, h2, h3 {
    word-break: break-word;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
  }

  .page-hero-banner {
    padding: 3rem 0;
  }

  .why-section-grid {
    gap: 2rem;
  }

  .why-img-wrap {
    height: 220px;
  }

  .contact-panel-form,
  .contact-panel-info {
    padding: 2.5rem 1.25rem;
    order: unset;
  }

  .contact-panel-info {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  .programs-cta-banner {
    padding: 3rem 0;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .footer {
    padding-top: 40px;
  }

  .footer-links a,
  .footer-links span {
    word-break: break-all;
  }

  .mobile-menu .btn {
    text-align: center;
    width: 100%;
  }

  .sticky-cta {
    bottom: 0;
  }

  .form-input,
  .form-select {
    font-size: 16px;
  }

  .all-days-scroll {
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .page-hero-banner {
    padding: 4rem 0;
  }

  .why-img-wrap {
    height: 380px;
  }

  .contact-panel-form,
  .contact-panel-info {
    padding: 3rem 2rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }
}
