/* BGF365 - Global Styles */

:root {
  --primary-navy: #0A1628;
  --accent-gold: #D4A843;
  --bg-light: #F8F5EE;
  --success: #2ECC71;
  --error: #E74C3C;
  --text-dark: #333333;
  --text-light: #FFFFFF;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-navy);
  margin-top: 0;
}

a {
  text-decoration: none;
  color: var(--accent-gold);
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-navy { color: var(--primary-navy); }
.text-gold { color: var(--accent-gold); }
.bg-navy { background-color: var(--primary-navy); color: white; }
.bg-gold { background-color: var(--accent-gold); color: var(--primary-navy); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
}

.btn-gold:hover {
  background-color: #b8923a;
  color: var(--primary-navy);
  text-decoration: none;
}

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

.btn-outline-navy:hover {
  background-color: var(--primary-navy);
  color: white;
  text-decoration: none;
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-nav {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav a {
  color: var(--primary-navy);
  font-weight: 500;
}

.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--accent-gold);
  text-decoration: none;
  border-bottom: 2px solid var(--accent-gold);
}

.navbar-actions {
  display: flex;
  gap: 15px;
}

/* Footer */
footer {
  background-color: var(--primary-navy);
  color: var(--text-light);
  padding: 60px 0 20px;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h2 {
  color: var(--text-light);
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #888;
  font-size: 14px;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-color: var(--primary-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero h1 {
  font-size: 64px;
  color: white;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent-gold);
  font-style: italic;
  display: block;
}

.hero-subtitle {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Main Content Wrapper */
main.main-content {
  padding-top: 80px; /* Offset for fixed navbar */
  min-height: calc(100vh - 300px);
}

/* --- Mobile Menu Styles (Hide on Desktop) --- */
.mobile-controls, .mobile-menu-overlay { display: none; }
body.no-scroll { overflow: hidden; }

/* ========================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 48px; }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* ========================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {

  /* --- Navbar --- */
  .desktop-only { display: none !important; }

  .navbar { padding: 10px 0; }
  
  .mobile-controls {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* The Hamburger Button */
  .navbar-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    transition: all 0.2s ease;
  }
  .navbar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.35s ease;
  }
  .navbar.mobile-open .navbar-toggle {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
  }
  .navbar.mobile-open .navbar-toggle span {
    background: #000;
  }
  .navbar.mobile-open .navbar-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navbar.mobile-open .navbar-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .navbar.mobile-open .navbar-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Join Now Button in Header */
  .mobile-hdr-btn {
    background: var(--accent-gold) !important;
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 14px;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    border: none !important;
    display: flex;
    align-items: center;
    z-index: 1100;
  }

  /* Fullscreen Overlay */
  .mobile-menu-overlay {
    display: flex; /* overridden by visibility/opacity */
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0D0D0D;
    z-index: 1050;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Menu Content */
  .mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 100px 25px 40px;
    justify-content: space-between;
  }

  .mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  .mobile-nav-links a {
    color: white;
    font-size: 36px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
  }
  .mobile-nav-links a:hover { color: var(--accent-gold); }

  /* Bottom Buttons in overlay */
  .mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .mobile-btn-dark {
    background: #0A0A0A;
    color: white !important;
    border: 1px solid #333;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
  }
  .mobile-btn-gold {
    background: var(--accent-gold);
    color: black !important;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
  }

  /* BGF365 brand stays visible on top of overlay */
  .navbar .container {
    position: relative;
    z-index: 1200;
  }

  /* --- Hero --- */
  .hero { height: auto; padding: 140px 20px 80px; }
  .hero h1 { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn { width: 100%; max-width: 300px; }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  footer { padding: 50px 0 20px; }

  /* --- Generic flex rows → stack --- */
  .flex-row-mobile-stack { flex-direction: column !important; }

  /* --- Pricing Cards --- */
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .price-card.popular { transform: scale(1) !important; }

  /* Comparison table → horizontal scroll */
  .comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table { min-width: 550px; }

  /* --- Contact / Register / General split cards --- */
  .split-card,
  .register-card {
    flex-direction: column !important;
  }
  .split-card > div,
  .register-card > div {
    width: 100% !important;
    padding: 24px !important;
    box-sizing: border-box !important;
  }
  .register-card > div:first-child {
    border-right: none !important;
    border-bottom: 4px solid var(--accent-gold);
}

/* --- Universal Grids --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }  

/* Close Button in Overlay Menu */
  .mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    z-index: 1300;
    transition: transform 0.2s ease, opacity 0.2s;
  }
  .mobile-menu-close:hover {
    transform: scale(1.1);
    color: var(--accent-gold);
  }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
  .container { padding: 0 15px; }
  .hero h1 { font-size: 28px; }
  .hero-subtitle { font-size: 14px; }

  h1 { font-size: 28px !important; }
  h2 { font-size: 22px !important; }
  h3 { font-size: 18px !important; }

  .btn { padding: 12px 20px; font-size: 14px; }

  .footer-grid { grid-template-columns: 1fr; }
}

/* Hamburger toggle (hidden by default on desktop) */
.navbar-toggle { display: none; }
