/* =====================================================
   Agile AI University — Canonical Site Styles (LOCKED)
   FIXED HEADER + MOBILE HAMBURGER — FINAL
   ===================================================== */

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  background: #ffffff;
}

/* =====================================================
   FIXED HEADER (CANONICAL)
   ===================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 72px;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;

  overflow: visible; /* REQUIRED */
}

/* Header inner layout */
.site-header .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 12px;
}

/* ---------- Navigation ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Nav list ---------- */
.nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
}

/* Nav items */
.nav-list > li {
  position: relative;
}

.nav-list a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  font-size: 15px;
}

/* ---------- Tagline ---------- */
.nav-muted {
  margin-top: 6px;
  font-size: 14px;
  color: #666;
}

/* =====================================================
   DESKTOP SUBMENUS (LOCKED, STABLE)
   ===================================================== */

.has-submenu > a::after {
  content: " ▾";
  font-size: 12px;
}

/* Dropdown */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 260px;
  background: #ffffff;
  border: 1px solid #dddddd;
  padding: 8px 0;
  list-style: none;

  z-index: 10000;
}

/* HOVER BRIDGE — CRITICAL */
.submenu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.submenu li {
  margin: 0;
}

.submenu li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #111;
}

.submenu li a:hover {
  background: #f5f5f5;
}

/* Desktop hover behavior */
@media (min-width: 769px) {
  .has-submenu:hover .submenu {
    display: block;
  }
}

/* =====================================================
   CONTENT OFFSET FOR FIXED HEADER
   ===================================================== */

body {
  padding-top: 96px;
}

/* Standard page container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

h2 {
  font-size: 26px;
  margin-top: 48px;
  margin-bottom: 12px;
}

p {
  line-height: 1.6;
  margin-bottom: 16px;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn.primary {
  background: #111;
  color: #fff;
}

.btn.secondary {
  background: #f2f2f2;
  color: #111;
}

/* =====================================================
   FOOTER
   ===================================================== */

footer {
  border-top: 1px solid #e5e5e5;
  margin-top: 64px;
  padding: 24px 0;
  font-size: 14px;
  color: #555;
}

/* =====================================================
   MOBILE NAVIGATION (UNCHANGED)
   ===================================================== */

.hamburger {
  display: none;
  font-size: 22px;
  cursor: pointer;
  background: none;
  border: none;
}

@media (max-width: 768px) {

  .hamburger {
    display: block;
  }

  .nav-list {
    display: none;
  }

  .nav-list.mobile-open {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;

    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 9998;
  }

  .nav-list.mobile-open > li {
    padding: 14px 24px;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-list.mobile-open .submenu {
    position: static;
    display: none;
    border: none;
    padding-left: 12px;
  }

  .has-submenu.submenu-open .submenu {
    display: block;
  }

  .submenu li a {
    padding-left: 28px;
    font-size: 15px;
    color: #333;
  }
}
