/* ==========================================================================
   FILE: global.css
   Core variables, resets, navigation, footer, buttons, and utilities
   Used across all pages
   ========================================================================== */

:root {
  /* FBLA Official Color Scheme – refined navy & gold */
  --fbla-navy: #0A1C3A;
  --fbla-deep-blue: #002868;
  --fbla-gold: #F4A900;
  --fbla-gold-dark: #D49300;
  --fbla-gold-light: #FFF0CC;
  --fbla-gray-bg: #F8FAFE;
  --text-dark: #13294B;
  --text-muted: #4A5568;
  --white: #FFFFFF;
  
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
  --transition-smooth: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  --border-radius-card: 1.5rem;
  --border-radius-btn: 60px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--fbla-gray-bg);
  color: var(--text-dark);
  line-height: 1.5;
  scroll-behavior: smooth;
}

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

@media (min-width: 1600px) {
  .container {
    max-width: 1500px;
    padding: 0 2.5rem;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
    padding: 0 3rem;
  }
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
  color: var(--fbla-navy);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--border-radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--fbla-gold);
  color: var(--fbla-navy);
  border-color: var(--fbla-gold);
  box-shadow: 0 2px 6px rgba(244, 169, 0, 0.2);
}

.btn-primary:hover {
  background-color: var(--fbla-gold-dark);
  border-color: var(--fbla-gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(244, 169, 0, 0.4);
}

.btn-outline-light {
  background: transparent;
  border: 2px solid var(--fbla-deep-blue);
  color: var(--fbla-deep-blue);
}

.btn-outline-light:hover {
  background: var(--fbla-deep-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

/* Navigation */
.nav-bar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.2s;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 1600px) {
  .nav-container {
    max-width: 1500px;
    padding: 0.75rem 2.5rem;
  }
}

@media (min-width: 1920px) {
  .nav-container {
    max-width: 1600px;
    padding: 0.75rem 3rem;
  }
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 46px;
  width: auto;
  display: block;
}

.logo-link {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fbla-navy);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  padding: 0.5rem 0;
  color: var(--text-dark);
  transition: var(--transition-smooth);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover, 
.nav-links a.active {
  color: var(--fbla-gold);
  border-bottom-color: var(--fbla-gold);
}

/* Desktop Dropdown */
@media (min-width: 769px) {
  .dropdown {
    position: relative;
  }

  .dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 200px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
  }

  .dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #1a3a5c;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: none;
  }

  .dropdown-content a:hover {
    background: var(--fbla-gold-light);
    color: var(--fbla-gold);
  }
}

/* Mobile Menu */
.hamburger, .menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--fbla-navy);
    border-radius: 4px;
    transition: var(--transition-smooth);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background: var(--white);
    flex-direction: column;
    padding: 6rem 2rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    gap: 1.8rem;
    overflow-y: auto;
  }

  .menu-toggle:checked ~ .nav-links {
    right: 0;
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 0.6rem 0;
    border-bottom: none;
  }

  .nav-links a.active {
    border-left: 4px solid var(--fbla-gold);
    padding-left: 1rem;
  }

  .dropdown-content {
    list-style: none;
    padding-left: 1.25rem;
    margin-top: 0.5rem;
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    display: block;
    opacity: 1;
  }

  .dropdown-content a {
    font-size: 1rem;
    color: var(--text-muted);
    padding: 0.4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

/* Footer */
.footer {
  background-color: var(--fbla-navy);
  color: var(--white);
  padding: 2.5rem 0;
  margin-top: 4rem;
  border-top: 5px solid var(--fbla-gold);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 1600px) {
  .footer-content {
    max-width: 1500px;
    padding: 0 2.5rem;
  }
}

@media (min-width: 1920px) {
  .footer-content {
    max-width: 1600px;
    padding: 0 3rem;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--fbla-gold-light);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

/* Utilities */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.gold-text {
  color: var(--fbla-gold);
}