/*
Theme Name: 971 MMA Theme
Theme URI: https://971mma.com
Author: ONBRND
Author URI: https://onbrnd.com
Description: Custom theme for 971 MMA & Fitness Academy — UAE Flag colorway, Inter font, pixel-perfect match to Manus mockup.
Version: 1.0.0
License: Proprietary
Text Domain: 971mma-theme
*/

/* ─── UAE Brand Tokens ─── */
:root {
  --uae-red: #EF1B2E;
  --uae-green: #009A44;
  --uae-dark: #1A1A1A;
  --uae-white: #FFFFFF;
  --uae-light-bg: #F5F5F5;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--uae-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-main); cursor: pointer; }
ul, ol { list-style: none; }

/* ─── Container ─── */
.mma-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Utility ─── */
.mma-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── Flag Stripe ─── */
.flag-stripe {
  display: flex;
  height: 5px;
  width: 100%;
}
.flag-stripe span { flex: 1; display: block; }

/* ─── Navbar ─── */
#mma-navbar {
  background: rgba(255,255,255,0.97);
  border-bottom: 3px solid var(--uae-red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

#mma-navbar .nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: invert(1) brightness(0);
}

#mma-navbar .nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

#mma-navbar .nav-links a,
#mma-navbar .nav-links .nav-dropdown-trigger {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--uae-dark);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 240px;
  border-top: 3px solid var(--uae-red);
  z-index: 999;
  padding: 8px 0;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--uae-dark);
  text-decoration: none;
}
.nav-dropdown-menu a:hover { background: #F5F5F5; }

.nav-cta {
  background: var(--uae-red);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 11px 18px;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--uae-dark);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile drawer */
#mma-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 199;
  overflow-y: auto;
  border-top: 3px solid var(--uae-red);
}
#mma-mobile-menu.open { display: block; }
.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #F5F5F5;
  font-size: 15px;
  font-weight: 700;
  color: var(--uae-dark);
  text-decoration: none;
}
.mobile-classes-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #F5F5F5;
  font-size: 15px;
  font-weight: 700;
  color: var(--uae-dark);
  background: #fff;
  border: none;
  border-bottom: 1px solid #F5F5F5;
  cursor: pointer;
  font-family: var(--font-main);
}
.mobile-classes-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #FAFAFA;
}
.mobile-classes-submenu.open { max-height: 400px; }
.mobile-submenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px 13px 36px;
  border-bottom: 1px solid #F0F0F0;
  font-size: 14px;
  font-weight: 600;
  color: var(--uae-dark);
  text-decoration: none;
}
.mobile-menu-cta-wrap { padding: 20px 20px 0; }
.mobile-menu-cta {
  display: block;
  background: var(--uae-red);
  color: #fff;
  text-align: center;
  padding: 16px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

/* ─── Page Hero ─── */
.page-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0505 30%, #0a0a0a 55%, #051a0a 80%, #0d0d0d 100%);
}
.page-hero.has-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
}
.page-hero-top-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  height: 5px;
}
.page-hero-bottom-stripe {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  height: 5px;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  width: 100%;
}
.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--uae-red);
  margin-bottom: 14px;
}
.page-hero-title {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
  line-height: 1;
  margin: 0;
}
.page-hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  margin: 16px auto 0;
  max-width: 520px;
  line-height: 1.65;
}

/* ─── Footer ─── */
#mma-footer {
  position: relative;
  background: var(--uae-dark);
  color: #fff;
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 220px;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  letter-spacing: -8px;
  user-select: none;
  pointer-events: none;
  font-family: var(--font-main);
}
.footer-main {
  padding: 72px 80px 0;
  position: relative;
  z-index: 1;
}
.footer-cols {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 56px;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { flex: 0 0 280px; }
.footer-brand img { height: 52px; width: auto; object-fit: contain; }
.footer-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--uae-green);
  margin: 14px 0;
}
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.85;
  margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
  cursor: pointer;
}
.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--uae-red);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col-links { display: flex; flex-direction: column; gap: 12px; }
.footer-col-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.footer-col-links a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 0 80px;
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.3px;
}
.footer-uae-badge { display: flex; gap: 6px; align-items: center; }
.footer-uae-badge span {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-left: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .nav-hamburger { display: flex !important; }

  .page-hero-title { font-size: 36px !important; letter-spacing: -0.5px !important; }
  .page-hero-subtitle { font-size: 14px !important; }
  .page-hero { min-height: 320px !important; padding: 80px 16px !important; }

  .footer-main { padding: 44px 16px 0 !important; }
  .footer-cols { flex-direction: column !important; gap: 28px !important; }
  .footer-cols > div { flex: unset !important; width: 100% !important; }
  .footer-bottom { margin: 0 !important; padding: 20px 16px 28px !important; flex-direction: column !important; gap: 10px !important; text-align: center !important; }
  .footer-brand { flex: unset !important; }
}
