/* =============================
    GLOBAL STYLES
============================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #0c0c0c;
  color: white;
  scroll-behavior: smooth;
}
/* Base Legacy Highlight styling */
.legacy-highlight {
  font-weight: bold;
}

/* These classes represent each Legacy's color */
.legacy-color-aurelith  { color: #e3ad57; }  /* Gold */
.legacy-color-mythara   { color: #a7becd; }  /* Light Blue */
.legacy-color-omnithis  { color: #d4634a; }  /* Red-Orange */
.legacy-color-novaeon   { color: #b69d8c; }  /* Bronze */
.legacy-color-zenithis  { color: #98b188; }  /* Green */

/* By default, show desktop sections and hide mobile */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}
.section {
  padding: 100px 20px;
  text-align: center;
}
.cta-button {
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin: 10px;
}
.primary {
  background-color: gold;
  color: black;
  z-index: 1;
}
.secondary {
  background-color: transparent;
  border: 2px solid rgb(0, 0, 0);
  color: black;
}
.micro-copy {
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 5px;
}
.ticker {
  margin-top: 20px;
  font-size: 1rem;
  color: #aaa;
}
iframe {
  border: none;
}

/* =============================
    HEADER
============================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 1rem 2rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  font-weight: 500;
  transition: color 0.3s ease;
}
header nav a:hover,
header nav a.active {
  color: gold;
}
header nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: gold;
  transition: width 0.3s ease;
}

header nav a:hover::after,
header nav a.active::after {
  width: 100%;
}
* {
  box-sizing: border-box;
}
header {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
.desktop-nav {
  display: flex;
}
header.mobile-header {
    display: none;
}

/* =============================
    FOOTER
============================== */
.site-footer {
  background-color: #fff;
  color: #000;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}
.footer-content {
  max-width: 800px;
  margin: 0 auto;
}
.footer-logo {
  height: 80px;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.footer-tagline {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.footer-nav {
  margin-bottom: 1.5rem;
}
.footer-nav a {
  color: #000;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.footer-socials {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.footer-socials a {
  color: #000;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}
.footer-socials a:hover {
  color: #555;
}
.footer-nav a:hover {
  color: #555;
}
.footer-credit {
  font-size: 0.85rem;
  color: #666;
}


/* =============================
    MOBILE RESPONSIVE ADJUSTMENTS 
============================= */
@media (max-width: 768px) {
    .desktop-only {
    display: none;
    }
    .mobile-only {
    display: block;
    }
    h2.section-heading {
    margin: 1rem 0;
    font-size: 1.35rem;
    text-align: center;
    }
    .cta-button.primary {
    width: 65vw;
    max-width: 65vw;
    background-color: gold;
    color: black;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin: 1rem auto 0 auto;
    display: block;
    z-index: 2;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

  /* =============================
    HEADER SECTION - MOBILE
  ============================= */
  /* Hide original nav on mobile */
  header:not(.mobile-header) {
    display: none;
  }
  /* Show mobile header */
  header.mobile-header {
    display: block;
  }
  .mobile-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 5vh;
  }
  header.mobile-header {
    padding: 1rem 1.5rem; /* Add horizontal padding */
    box-sizing: border-box;
  }
  .hamburger {
    font-size: 2rem;
    padding: 0.5rem;
    margin-left: auto;
    margin-right: 0;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
  }
  .mobile-logo {
    height: 40px;
  }
  .mobile-nav {
    display: none;
    flex-direction: column;
    background-color: #000;
    position: fixed; /* <-- critical change */
    top: 60px;
    right: 10px;
    left: 10px; /* expands width responsively */
    padding: 1rem;
    z-index: 1001; /* bring it above everything */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }
  .mobile-nav a {
    color: white;
    text-decoration: none;
    margin: 0.75rem 0;
    font-weight: bold;
  }
  .mobile-nav a.cta-button {
    margin-top: 1rem;
  }
  .mobile-nav.show {
    display: flex;
  }
  .mobile-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000; /* ensure it's above all page content */
  }

  /* =============================
    FOOTER — MOBILE STYLE
  ============================= */
  .footer-mobile {
    background-color: #fff;
    color: #111;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #eaeaea;
  }
  .footer-inner {
    max-width: 500px;
    margin: 0 auto;
  }
  .footer-logo {
    opacity: 0.9;
    margin-bottom: 0.5rem;
  }
  .footer-tagline {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #222;
  }
  .footer-contact {
    justify-content: center;          
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .footer-contact-link {
    color: #111;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-weight: 500;
  }
  .footer-contact-link:hover {
    opacity: 0.7;
  }
  .footer-text {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 1.25rem;
  }
  .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1rem;
  }
  .footer-link {
    font-size: 1rem;
    color: black;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  .footer-link:hover {
    transform: scale(1.05);
    text-decoration: underline;
  }
}
