/* ============================================================
   SimplicityHub — Header & Footer Stylesheet
   Drop this into your css/ folder and link it on every page.
   It uses the same design tokens as your existing style.css.
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --accent:       #d8ff3a;          /* lime-yellow highlight       */
  --accent-dim:   rgba(216,255,58,.18);
  --bg-header:    #0a110d;          /* near-black green tint       */
  --bg-footer-from: #05070b;
  --bg-footer-to:   #07101d;
  --text-primary: #f3f5f7;
  --text-muted:   #b8c0cc;
  --text-dim:     #6f7a88;
  --font-stack:   Inter, ui-sans-serif, system-ui, -apple-system,
                  "Segoe UI", Roboto, Arial, sans-serif;
  --nav-font-size: 19px;
  --header-z:     900;
}

/* ============================================================
   HEADER
   ============================================================ */

header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: var(--bg-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  width: 100%;
}

/* Inner flex row that holds logo + nav */
.wrap.nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  min-height: 64px;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  gap: 34px;
  font-family: var(--font-stack);
  font-weight: 700;
  font-size: var(--nav-font-size);
}

nav a {
  display: inline-block;
  position: relative;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent);
}

/* Animated underline */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(212, 255, 25, 0.35);
  transition: width 0.25s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a.active {
  color: var(--accent);
}

/* ── Hamburger button (mobile) ──────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 100;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ── Mobile nav overlay ─────────────────────────────────────── */
.mob-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-header);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  overflow-y: auto;
  padding: 60px 32px;
}

.mob-nav-overlay.open {
  display: flex;
}

.mob-nav-overlay a {
  font-family: var(--font-stack);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.mob-nav-overlay a:hover {
  color: var(--accent);
}

.mob-nav-overlay a.active {
  color: var(--accent);
}

.mob-nav-close {
  position: absolute;
  top: 24px;
  left: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 26px;
  line-height: 1;
  padding: 6px;
  transition: color 0.15s ease;
}

.mob-nav-close:hover {
  color: var(--accent);
}

/* ── Responsive header ──────────────────────────────────────── */
@media (max-width: 768px) {
  header {
    position: relative; /* unstick on mobile if you prefer */
  }

  .wrap.nav {
    justify-content: space-between !important;
    padding: 14px 20px;
    min-height: auto;
  }

  .nav-hamburger {
    display: flex;
  }

  nav {
    display: none !important; /* hidden — overlay replaces it */
  }
}

@media (max-width: 560px) {
  .mob-nav-overlay a {
    font-size: 20px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 28px 0 46px;
  margin-top: 24px;
  background: linear-gradient(180deg, var(--bg-footer-from) 0%, var(--bg-footer-to) 100%);
  color: var(--text-muted);
  font-size: 17px;
  font-family: var(--font-stack);
}

footer .wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Copyright line */
footer .footer-copy {
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Footer links row ───────────────────────────────────────── */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
  line-height: 1.45;
  align-items: center;
}

.footer-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

/* Pipe separators between links */
.footer-sep {
  color: var(--text-dim);
  user-select: none;
}

/* ── Responsive footer ──────────────────────────────────────── */
@media (max-width: 640px) {
  footer {
    font-size: 15px;
    padding: 24px 0 36px;
  }

  .footer-links {
    gap: 8px 10px;
  }

  /* Hide pipes on very small screens — links wrap naturally */
  .footer-sep {
    display: none;
  }
}

/* ============================================================
   END
   ============================================================ */
