/* ===============================
   GLOBAL HEADER - SINGLE SOURCE
   Copied from working homepage
================================ */

#site-header { position: sticky; top: 0; z-index: 1000; }
.site-header { background: #F6F4EF; border-bottom: 1px solid rgba(0,0,0,.06); }
.site-header .header-wrap { max-width: 1100px; margin: 0 auto; padding: 12px 20px; }
.site-header .nav { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 24px !important; flex-wrap: nowrap !important; }
.site-header .brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; white-space: nowrap; text-decoration: none; color: inherit; flex-shrink: 0; }
.site-header .mark { width: 22px; height: 22px; background: url('/images/anchortop.svg') no-repeat center; background-size: contain; }
.nav-links-wrap, #site-nav { flex: 1; display: flex !important; justify-content: center; min-width: 0; }
.nav-links-wrap ul, #site-nav ul { display: flex !important; flex-direction: row !important; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-header .nav-cta { flex: 0 0 auto; white-space: nowrap; display: inline-flex !important; font-size: 13px !important; padding: 9px 14px !important; background: linear-gradient(180deg, #2E6B4F, #1F4E3A); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 700; }
.nav-mobile-cta { display: none !important; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 6px; background: none; border: none; cursor: pointer; flex-shrink: 0; }
.hamburger span { display: block; height: 2px; width: 100%; background: #444; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; transform-origin: center; }
.hamburger.open span:nth-child(1), .hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2), .hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3), .hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav links */
.site-header nav a { text-decoration: none; font-weight: 600; color: #444; font-size: 14px; white-space: nowrap; }
.nav-paid-item { border-left: 1px solid rgba(0,0,0,.10); padding-left: 18px !important; margin-left: 2px !important; }
.nav-guide-btn { display: inline-flex !important; padding: 8px 14px !important; background: linear-gradient(180deg, #D4A853, #C4983D); color: #fff !important; border-radius: 8px; text-decoration: none !important; font-weight: 700; font-size: 13px !important; white-space: nowrap; box-shadow: 0 2px 8px rgba(212,168,83,.25); transition: all .15s; }
.nav-guide-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,168,83,.35); }

/* Account section (desktop) */
.nav-account { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-login-link { font-size: 14px; font-weight: 600; color: #444; text-decoration: none; padding: 8px 10px; white-space: nowrap; }
.nav-login-link:hover { color: #2E6B4F; }
.nav-user-btn { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #444; padding: 6px 10px; border-radius: 10px; transition: background .15s; }
.nav-user-btn:hover { background: rgba(0,0,0,.05); }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, rgba(46,107,79,.15), rgba(212,168,83,.15)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #2E6B4F; flex-shrink: 0; }
.nav-user-name { font-weight: 600; font-size: 14px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-pro-badge { background: linear-gradient(135deg, #D4A853, #C4983D); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 4px; }

/* Stacked logo */
.brand-stack { display: flex; flex-direction: column; line-height: 1.1; }
.brand-top { display: flex; align-items: center; gap: 4px; }
.brand-no { font-size: 14px; font-weight: 800; letter-spacing: 0.5px; }
.brand-bottom { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; margin-left: 4px; }

/* Mobile account (hidden on desktop) */
.nav-mobile-account { display: none; }

/* ===============================
   MOBILE (768px breakpoint)
   Exact copy from working homepage
================================ */
@media (max-width: 768px) {
  .site-header .nav { flex-wrap: wrap !important; gap: 0 !important; }
  .nav-links-wrap, #site-nav { display: none !important; width: 100%; order: 10; flex: 0 0 100%; flex-direction: column; justify-content: flex-start; border-top: 1px solid rgba(0,0,0,.08); padding: 4px 0; margin: 0; }
  .nav-links-wrap.open, #site-nav.nav-open { display: flex !important; }
  .nav-links-wrap ul, #site-nav ul { flex-direction: column !important; gap: 0 !important; width: 100%; }
  .nav-links-wrap ul li a, #site-nav ul li a { display: block; padding: 14px 6px; font-size: 18px; font-weight: 700; color: #1E1F1D; text-align: center; border-bottom: 1px solid rgba(0,0,0,.06); }
  .nav-links-wrap ul li:last-child a, #site-nav ul li:last-child a { border-bottom: none !important; }
  .nav-mobile-cta { display: block !important; margin-top: 12px; text-align: center; padding: 13px 20px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; }
  .site-header .nav-cta { display: none !important; }
  .nav-account { display: none !important; }
  .nav-paid-item { display: none !important; }
  .hamburger { display: flex !important; }
  
  /* Mobile account section (inside menu) */
  .nav-mobile-account { display: flex !important; flex-direction: column; gap: 8px; padding: 12px 6px; border-top: 1px solid rgba(0,0,0,.06); width: 100%; }
  .nav-mobile-account a { display: block; padding: 14px 20px; text-align: center; font-size: 16px; font-weight: 700; border-radius: 10px; text-decoration: none; }
  .nav-mobile-account .mobile-primary { background: #2E6B4F; color: #fff; }
  .nav-mobile-account .mobile-secondary { border: 1px solid rgba(46,107,79,.3); color: #2E6B4F; background: rgba(46,107,79,.06); }
}
