/* ============================================================
   header.css — Financial Focus LLC
   Shared header/nav styles for all pages.
   Link this stylesheet on every page BEFORE page-specific CSS.
   ============================================================ */

/* ── Variables (replicate in page CSS too if needed) ── */
:root {
  --ff-navy:       #2A3C4E;   /* Primary nav/header color — matches hub */
  --ff-navy-dark:  #1e2f3e;   /* Slightly darker for depth */
  --ff-gold:       #b5883a;
  --ff-gold-light: #d4a958;
  --ff-white:      #ffffff;
  --ff-nav-height: 88px;      /* Match hub exactly */
  --ff-container:  1536px;    /* max-w-screen-2xl — match hub exactly */
  --ff-px:         3rem;      /* 48px side padding — matches hub px-12 */
}

/* ── Site header ── */
.site-header {
  background: var(--ff-navy);
  height: var(--ff-nav-height);
  width: 100%;
  position: fixed;            /* Fixed like the hub — pages need padding-top: 88px */
  top: 0;
  left: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.site-header .nav-inner {
  max-width: var(--ff-container);
  margin: 0 auto;
  padding: 0 var(--ff-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ── */
.site-header .logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 0;
}
.site-header .logo-link img {
  height: 40px;   /* md:h-10 — matches hub */
  width: auto;
  display: block;
}

/* ── Desktop nav links ── */
.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;    /* gap-10 — matches hub */
}
.site-header .nav-links a {
  color: rgba(255,255,255,0.72);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.site-header .nav-links a:hover       { color: var(--ff-white); }
.site-header .nav-links a.nav-current {
  color: var(--ff-white);
  font-weight: 700;
  border-bottom: 2px solid var(--ff-gold);
  padding-bottom: 2px;
}

/* ── Client portal button ── */
.site-header .btn-portal {
  background: var(--ff-gold);
  color: var(--ff-white);
  padding: 0.55rem 1.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
}
.site-header .btn-portal:hover {
  background: var(--ff-white);
  color: var(--ff-navy);
}

/* ── Hamburger button (mobile) ── */
.site-header .hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-header .hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ff-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.site-header .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header .hamburger.open span:nth-child(2) { opacity: 0; }
.site-header .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ── */
.mobile-drawer {
  position: fixed;
  top: var(--ff-nav-height);
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--ff-navy);
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 49;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
  overflow-y: auto;
}
.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-drawer a {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.mobile-drawer a:hover { color: var(--ff-white); }
.mobile-drawer .btn-portal {
  display: block;
  margin-top: 1.5rem;
  background: var(--ff-gold);
  color: var(--ff-white);
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: none;
}
.mobile-drawer .btn-portal:hover {
  background: var(--ff-gold-light);
  color: var(--ff-white);
}

/* ── Drawer overlay ── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 48;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}
.drawer-overlay.open {
  visibility: visible;
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .site-header .nav-links { display: none; }
  .site-header .hamburger { display: flex; }
  :root { --ff-px: 2rem; }
}