/* =============================================
   GUARDIANS BJJ — Global Styles
   ============================================= */

:root {
  --yellow: #FFB800;
  --yellow-dark: #CC9200;
  --yellow-glow: rgba(255, 184, 0, 0.15);
  --purple: #7B2FBE;
  --purple-dark: #5C1F96;
  --purple-light: #9B4FDE;
  --purple-glow: rgba(123, 47, 190, 0.2);
  --bg-base: #080808;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --bg-section: #0d0d0d;
  --border: #222222;
  --border-light: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  --shadow-yellow: 0 0 30px rgba(255, 184, 0, 0.25);
  --shadow-purple: 0 0 30px rgba(123, 47, 190, 0.3);
  --transition: 0.25s ease;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-yellow { color: var(--yellow); }
.text-purple { color: var(--purple-light); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: transparent;
  color: var(--yellow);
  box-shadow: var(--shadow-yellow);
}
.btn-outline {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
}
.btn-outline:hover {
  background: var(--yellow);
  color: #000;
  box-shadow: var(--shadow-yellow);
}
.btn-purple {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.btn-purple:hover {
  background: transparent;
  color: var(--purple-light);
  border-color: var(--purple-light);
  box-shadow: var(--shadow-purple);
}

/* ── Section headers ── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--yellow-glow);
  border: 1px solid rgba(255, 184, 0, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 560px; margin: 0 auto; }
.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--purple));
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ── Announcement Bar ── */
:root { --bar-height: 0px; }
body.has-announcement { --bar-height: 44px; }

.announcement-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 44px;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 48px 0 16px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.announcement-bar.bar-yellow { background: var(--yellow); color: #000; }
.announcement-bar.bar-purple { background: var(--purple); color: #fff; }
.announcement-bar.bar-dark   { background: #111; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.announcement-bar.visible { display: flex; }
.announcement-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-left: 10px; font-weight: 600; }
.announcement-bar a:hover { opacity: 0.75; }
.announcement-close {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.65;
  padding: 4px 6px;
  transition: opacity 0.2s;
}
.announcement-close:hover { opacity: 1; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: var(--bar-height); left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 100px;
  display: flex;
  align-items: center;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(8, 8, 8, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-logo .logo-icon {
  height: 90px;
  width: auto;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2)) drop-shadow(0 2px 8px rgba(123, 47, 190, 0.5));
}
.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.nav-logo .logo-brand { color: var(--text-primary); font-size: 1.05em; }
.nav-logo .logo-brand span { color: var(--yellow); }
.logo-academy {
  font-size: 0.6em;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--yellow);
  background: var(--yellow-glow);
}
.nav-links .nav-cta { margin-left: 16px; padding: 10px 22px; font-size: 0.8rem; }
.nav-links a.btn-primary { color: #000; }
.nav-links a.btn-primary:hover { color: var(--yellow); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: calc(72px + var(--bar-height)); left: 0; right: 0;
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 14px 16px;
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--yellow);
  border-left-color: var(--yellow);
  background: var(--yellow-glow);
}
.nav-mobile .btn { margin-top: 12px; justify-content: center; }

/* ── Page Header ── */
.page-hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: radial-gradient(ellipse at center top, rgba(123,47,190,0.12) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; }
.page-hero .section-tag { margin-bottom: 20px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ── Footer ── */
.footer {
  background: #040404;
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
  margin-top: 80px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-secondary);
}
.social-link:hover {
  background: var(--yellow-glow);
  border-color: var(--yellow);
  color: var(--yellow);
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--yellow); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.footer-contact-item .icon { color: var(--yellow); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: inherit; text-decoration: none; }
.footer-contact-item a:hover { color: var(--yellow); }
.footer-logos {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 28px 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}
.footer-logos-group {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer-logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-logo-img:hover { opacity: 1; }
.footer-logo-glow {
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.4)) drop-shadow(0 0 8px rgba(255,255,255,0.2));
}
.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom a { color: var(--yellow); }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Inner-page hero: tighter top padding on mobile so it sits just below the navbar */
  .page-hero { padding: 108px 20px 52px; }
  .page-hero p { font-size: 1rem; }
}
