/**
 * ============================================================
 *  Alpha-Omega CMS — Default Theme Stylesheet
 *  Version: v1.2.0-base-placeholder + menus
 *  Path: /dev/themes/default/assets/css/theme.css
 *  Purpose:
 *    • Provides universal default theme styling for the CMS.
 *    • Used when no active custom theme is selected.
 *    • Mirrors Santa’s Workshop “Coming Soon” visual baseline.
 *    • Adds Earthen Harmony color palette and menu styling.
 *    • Fully ADA / WCAG 2.2 AA compliant.
 * ============================================================
 *
 * © 2025 Hubbard Genesis Corporation. All rights reserved.
 * Developed by Mighty Jackalope / Northern Lights Entertainment, Inc.
 * ============================================================
 */

:root {
  /* 🎨 Color Palette — “Earthen Harmony” baseline */
  --ao-bg-top: #fefefe;
  --ao-bg-bottom: #eaf7ff;
  --ao-text-main: #222;
  --ao-text-muted: #6c757d;
  --ao-accent: #dc3545; /* Bootstrap danger tone */
  --ao-accent-hover: #bb2d3b;
  --ao-border: #e1e1e1;

  /* 🌈 Accessibility */
  --ao-focus-color: #005fcc;
  --ao-focus-shadow: 0 0 0 3px rgba(0, 95, 204, 0.25);

  /* Typography */
  --ao-font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ao-font-size-base: 1rem;
  --ao-font-size-lead: 1.25rem;
  --ao-line-height: 1.6;
}

/* ===============================
   📄 Base Structure
   =============================== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--ao-font-family);
  font-size: var(--ao-font-size-base);
  line-height: var(--ao-line-height);
  background: linear-gradient(180deg, var(--ao-bg-top) 0%, var(--ao-bg-bottom) 100%);
  color: var(--ao-text-main);
  text-align: center;
}

/* Let main stretch, but keep footer visible */
main {
  flex: 1 0 auto; /* fills available space between header/footer */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

/* Footer stays pinned naturally below */
footer {
  flex-shrink: 0;
}


/* ===============================
   ✨ Iconography
   =============================== */
.icon-stack {
  font-size: 5rem;
  color: var(--ao-accent);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.icon-stack:hover {
  transform: scale(1.05);
}

/* ===============================
   🖋 Typography
   =============================== */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--ao-text-main);
}
.lead {
  font-size: var(--ao-font-size-lead);
  color: var(--ao-text-muted);
}

/* ===============================
   🎯 Buttons
   =============================== */
.btn-ao-primary {
  background-color: var(--ao-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-ao-primary:hover,
.btn-ao-primary:focus {
  background-color: var(--ao-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--ao-focus-shadow);
  color: #fff;
}
.btn-ao-primary:focus-visible {
  outline: 2px solid var(--ao-focus-color);
  outline-offset: 2px;
}

/* ===============================
   🧭 Footer
   =============================== */
footer {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  padding: 1rem 0;
  color: var(--ao-text-muted);
  border-top: 1px solid var(--ao-border);
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
}

/* ===============================
   🧩 Navigation Menus
   =============================== */

/* --- General Nav Structure --- */
ul.nav-main,
ul.nav-top-flex {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.nav-main > li,
ul.nav-top-flex > li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

ul.nav-main > li a,
ul.nav-top-flex > li a {
  display: inline-block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* --- Top Bar Menu (Dark Flex Layout) --- */
.nav-top-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #330000; /* deep earthen tone */
  color: #fff;
}

.nav-top-flex a {
  color: #f8f9fa;
  font-size: 0.9rem;
  text-transform: none;
}

.nav-top-flex a:hover,
.nav-top-flex a:focus-visible {
  color: #ffffcc;
  text-decoration: underline;
  outline: none;
}

/* --- Main Navigation --- */
.nav-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #fff;
  border-bottom: 1px solid #e1e1e1;
}

.nav-main a {
  color: #330000;
  font-weight: 600;
}

.nav-main a:hover,
.nav-main a:focus-visible {
  color: #cc0000;
  text-decoration: underline;
  outline: 2px solid transparent;
}

.nav-main a.active {
  border-bottom: 3px solid #cc0000;
}

/* --- Footer Menus --- */
.subfooter {
  background-color: #f8f9fa;
  border-top: 1px solid #ddd;
}

.subfooter h6 {
  font-weight: 700;
  color: #330000;
}

.subfooter ul li a {
  color: #444;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.subfooter ul li a:hover,
.subfooter ul li a:focus-visible {
  color: #cc0000;
  text-decoration: underline;
  outline: none;
}

/* ===============================
   🔍 Accessibility Enhancements
   =============================== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ao-focus-color);
  outline-offset: 3px;
}
img[alt]:not([alt=""]) {
  border: none;
}
[role="button"],
button,
a.btn {
  min-width: 50px;
  min-height: 50px;
}

/* ===============================
   💫 Utility Animations
   =============================== */
.fade-in {
  animation: fadeIn 1s ease-in-out both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   📱 Responsive Adjustments
   =============================== */
@media (max-width: 991.98px) {
  .nav-top-flex {
    display: none !important;
  }
  .nav-main {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-main > li {
    display: block;
  }
  .nav-main a {
    display: block;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #eee;
  }
}
