/* === Global header vars (safe to share across site) === */
:root {
  --bg: #f3f4f6;
  --card-bg: #ffffff;
  --accent: #e11d48;
  --accent-soft: #fee2e2;
  --accent-green: #16a34a;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
}
  .header-meta {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .header-meta-main {
      font-size: 14px;
      font-weight: 600;
    }

    .header-meta-sub {
      font-size: 12px;
      color: var(--text-muted);
    }

/* Optional, in case you don't already have it in a main stylesheet */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === SITE HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  min-height: 64px;
}

/* Brand block */
.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}

.logo-text {
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  margin-top: 2px;
}

.location-pill svg {
  width: 14px;
  height: 14px;
}

/* === SHARED NAV SHELL (desktop + mobile) === */
.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

/* Desktop nav */
.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.top-nav a {
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.top-nav a.active {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

/* Header actions */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-small-outline {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 500;
  background: #ffffff;
  cursor: pointer;
  color: var(--text-main);
  white-space: nowrap;
}

.btn-small {
  border-radius: 999px;
  border: none;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.35);
  white-space: nowrap;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* === MOBILE HAMBURGER (NO ANIMATION) === */
.header-menu-toggle {
  display: none; /* shown only at mobile breakpoint */
  background: transparent;
  border: none;
  padding: 0;
  width: 28px;
  height: auto;
  cursor: pointer;
}

.header-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  margin: 3px 0;
  /* no transform / rotation / opacity transitions */
}

/* .is-open exists only for JS hook; no visual animation */
.header-menu-toggle.is-open span {
  background: var(--accent);
}

/* Prevent background scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* === RESPONSIVE BEHAVIOR FOR HEADER / NAV === */
@media (max-width: 768px) {
  .header-inner {
    padding-inline: 16px;
  }

	
	  .header-meta {
      display: none;
      flex-direction: column;
      gap: 3px;
    }

    .header-meta-main {
      font-size: 14px;
      font-weight: 600;
    }

    .header-meta-sub {
      font-size: 12px;
      color: var(--text-muted);
    }

  /* Mobile: nav-shell becomes a left drawer, controlled by jQuery animate */
  .nav-shell {
    position: fixed;
    top: 64px;               /* match header height */
    left: -280px;            /* off-screen to the left by default */
    width: 100%;            /* drawer width */
    right: auto;
	  box-sizing: border-box;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    padding: 14px 16px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    opacity: 0;
    display: none;           /* jQuery will .show()/.hide() */
    z-index: 39;
  }

  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .top-nav a {
    padding: 6px 0;
    font-size: 14px;
  }

  .header-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .header-cta .btn-small-outline,
  .header-cta .btn-small {
    width: 100%;
    justify-content: center;
    display: inline-flex;
  }

  .header-menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding-inline: 12px;
  }
}
