/* ============================================================
   shared-nav.css  –  Single source of truth for site header,
   navigation, mobile menu, and button styles.
   All public-facing HTML pages link to this file.
   ============================================================ */

/* === Base Reset === */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
}

/* === CSS Variables === */
:root {
  --brand-navy: #0f2c4c;
  --brand-orange: #e09a1b;
  --brand-charcoal: #3d3528;
  --warm-light: #faf3e7;
  --warm-mid: #e0cba7;
}

/* === Site Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  height: 40px;
  width: auto;
  border-radius: 2px;
}

/* === Desktop Nav === */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .desktop-nav { display: flex; }
}
.nav-link {
  font-size: 0.875rem;
  color: #4b5563;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-link:hover { color: #111827; }
.nav-link.active { font-weight: 600; color: var(--brand-navy); }

/* === Buttons === */
.btn-primary {
  background: var(--brand-charcoal);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary:hover { background: #5a4d3a; }
.btn-secondary {
  background: #fff;
  color: var(--brand-charcoal);
  border: 2px solid var(--brand-charcoal);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background: #f7f2eb; }
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
}

/* === Mobile Menu Button === */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: #4b5563;
  padding: 0.5rem;
}
.mobile-menu-btn:hover { color: #111827; }
.mobile-menu-btn svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

/* === Mobile Menu === */
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 1.5rem;
}
.mobile-menu.open { display: block; }
@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

/* Nav links inside mobile menu */
.mobile-menu .nav-link {
  display: block;
  padding: 0.5rem 0;
}

/* Buttons keep their own colors inside mobile menu —
   this prevents .mobile-menu a from clobbering btn text colors */
.mobile-menu .btn-primary,
.mobile-menu .btn-secondary {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin-top: 0.5rem;
  font-family: inherit;
}
