/* ============================================================
   AFF — Header  (header.css)
   Loaded sitewide via wp_enqueue_style('aff-header')
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --aff-blue:       #1e40af;
  --aff-blue-lt:    #3b82f6;
  --aff-sky:        #0ea5e9;
  --aff-green:      #16a34a;
  --aff-dark:       #0f172a;
  --aff-slate:      #1e293b;
  --aff-muted:      #64748b;
  --aff-border:     #e2e8f0;
  --aff-bg:         #f8fafc;
  --aff-white:      #ffffff;
  --aff-radius:     8px;
  --aff-radius-lg:  14px;
  --aff-shadow:     0 2px 12px rgba(15,23,42,.08);
  --aff-header-h:   68px;
  --aff-transition: 0.22s ease;
}

/* ── Reset helpers ─────────────────────────────────────────── */
.aff-header *, .aff-drawer * { box-sizing: border-box; }

/* ── Header ────────────────────────────────────────────────── */
.aff-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--aff-header-h);
  background: var(--aff-dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.aff-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.aff-header__logo {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.aff-header__logo-img { height: 36px; width: auto; }
.aff-header__logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--aff-white);
  letter-spacing: -.4px;
  white-space: nowrap;
}
.aff-header__logo-text span { color: var(--aff-sky); }

/* Nav */
.aff-header__nav { flex: 1; display: flex; justify-content: flex-end; }
.aff-nav__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.aff-nav__list li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.80);
  text-decoration: none;
  border-radius: 6px;
  transition: background var(--aff-transition), color var(--aff-transition);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.aff-nav__list li a:hover,
.aff-nav__list li.current-menu-item > a {
  background: rgba(255,255,255,.08);
  color: var(--aff-white);
}

/* Hamburger */
.aff-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  margin-left: auto;
}
.aff-header__hamburger span {
  display: block;
  height: 2px;
  background: var(--aff-white);
  border-radius: 2px;
  transition: transform var(--aff-transition), opacity var(--aff-transition);
}

/* ── Mobile Drawer ─────────────────────────────────────────── */
.aff-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}
.aff-drawer.is-open { pointer-events: auto; }
.aff-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity var(--aff-transition);
}
.aff-drawer.is-open .aff-drawer__backdrop { opacity: 1; }

.aff-drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--aff-dark);
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.aff-drawer.is-open .aff-drawer__panel { transform: translateX(0); }

.aff-drawer__close {
  display: block;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--aff-white);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 6px;
}
.aff-drawer__close:hover { background: rgba(255,255,255,.1); }

.aff-drawer__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.aff-drawer__list li + li { border-top: 1px solid rgba(255,255,255,.07); }
.aff-drawer__list li a {
  display: block;
  padding: 14px 4px;
  color: rgba(255,255,255,.85);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.aff-drawer__list li a:hover { color: var(--aff-sky); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .aff-header__nav         { display: none; }
  .aff-header__hamburger   { display: flex; }
  .aff-header__inner       { gap: 16px; }
}
