/* Site header + footer + sitemap-html */

/* TOP BAR : position:fixed (more reliable than sticky vs parent overflow). */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E2E8F0;
  height: 72px;
}
/* Body offset to compensate fixed header */
body { padding-top: 72px; }
@media (max-width: 1023px) { body { padding-top: 60px; } }
.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1E293B;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-brand-svg { display: block; height: 38px; width: auto; }
@media (max-width: 1023px) { .site-brand-svg { height: 30px; } }
.site-footer-logo { display: block; }

.site-nav { flex: 1; }
.site-nav-list {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav-item {
  position: relative;
}
.site-nav-link {
  display: block;
  padding: 10px 12px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.15s;
}
.site-nav-link:hover, .site-nav-link[aria-expanded="true"] {
  background: #F1F5F9;
  color: #7C3AED;
}
.site-nav-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 320px;
  max-width: 420px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: none;
  z-index: 100;
}
.site-nav-item:hover .site-nav-submenu,
.site-nav-item .site-nav-link[aria-expanded="true"] + .site-nav-submenu {
  display: block;
}
.site-nav-submenu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.site-nav-submenu li {
  padding: 4px 0;
}
.site-nav-submenu li a {
  color: #475569;
  font-size: 13.5px;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding: 4px 6px;
  border-radius: 6px;
}
.site-nav-submenu li a:hover {
  background: #F8FAFC;
  color: #7C3AED;
}
.site-nav-submenu-all {
  display: inline-block;
  color: #10B981;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.site-cta {
  background: #7C3AED;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.site-cta:hover { background: #6D28D9; }
.site-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #1E293B;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 1023px) {
  .site-header { height: 60px; }
  .site-nav { display: none; }
  .site-mobile-toggle { display: block; }
  .site-cta { padding: 8px 14px; font-size: 12.5px; }
  .site-nav.is-open {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    padding: 16px;
    z-index: 99;
  }
  .site-nav.is-open .site-nav-list {
    flex-direction: column;
  }
  .site-nav.is-open .site-nav-submenu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }
}

/* Footer */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 48px 0 24px;
  margin-top: 80px;
}
.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  margin-bottom: 32px;
}
.site-footer-cat {
  color: #CBD5E1;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.2s;
}
.site-footer-cat:hover {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(167, 139, 250, 0.5);
  color: #fff;
}

.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #A78BFA;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer-col li {
  padding: 4px 0;
}
.site-footer-col a {
  color: #94A3B8;
  font-size: 13px;
  text-decoration: none;
  line-height: 1.5;
}
.site-footer-col a:hover { color: #10B981; }

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.site-footer-brand strong { font-size: 16px; }
.site-footer-tag {
  color: #94A3B8;
  font-size: 12.5px;
  margin-left: 8px;
}
.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer-legal a {
  color: #94A3B8;
  font-size: 12.5px;
  text-decoration: none;
}
.site-footer-legal a:hover { color: #10B981; }
.site-footer-disclaimer {
  margin-top: 16px;
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.5;
}

/* Sitemap HTML */
.sitemap-html {
  max-width: 1280px;
  margin: 32px auto;
  padding: 0 24px;
}
.sitemap-html-header {
  text-align: center;
  margin-bottom: 40px;
}
.sitemap-html-header h1 {
  font-size: 32px;
  color: #0F172A;
  margin: 0 0 8px;
}
.sitemap-html-count {
  color: #64748B;
  font-size: 15px;
}
.sitemap-html-section {
  margin-bottom: 32px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
}
.sitemap-html-section h2 {
  font-size: 18px;
  color: #7C3AED;
  margin: 0 0 16px;
}
.sitemap-html-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px;
}
.sitemap-html-list li {
  padding: 6px 0;
  border-bottom: 1px dotted #F1F5F9;
}
.sitemap-html-list a {
  color: #475569;
  font-size: 13.5px;
  text-decoration: none;
  line-height: 1.4;
  display: block;
}
.sitemap-html-list a:hover {
  color: #7C3AED;
}
