/* ============================================================
   Guidance — Shared Stylesheet
   Loaded on all pages. Contains nav, footer, mobile nav,
   and utility classes shared across the site.
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS VARIABLES ── */
:root {
  --white:     #ffffff;
  --off-white: #f8fafc;
  --gray-1:    #f1f5f9;
  --gray-2:    #e2e8f0;
  --gray-3:    #94a3b8;
  --gray-4:    #64748b;
  --slate:     #475569;
  --text:      #0f172a;
  --blue:      #2563eb;
  --blue-l:    #3b82f6;
  --blue-xl:   #60a5fa;
  --blue-bg:   #eff6ff;
  --green:     #16a34a;
  --border:    #e2e8f0;
  --navy:      #0a0f1e;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

/* ── SHARED NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-nav .nav-logo img { width: auto; height: 32px; max-width: 138px; display: block; }
.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.site-nav .nav-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav .nav-links a:hover { color: var(--text); }
.site-nav .nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.site-nav .nav-cta:hover { background: var(--blue-l) !important; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px; max-width: 300px;
  background: var(--white);
  z-index: 200;
  padding: 80px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  border-left: 1px solid var(--border);
}
.mobile-nav-drawer.open { transform: translateX(0); }
.mobile-nav-drawer a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-drawer a:hover { color: var(--blue); }
.mobile-nav-drawer .mobile-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 14px 20px !important;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  border-bottom: none !important;
  margin-top: 1rem;
}
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: var(--gray-3);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

/* ── SHARED FOOTER ── */
.site-footer {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding: 3rem 5%;
}
.site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.site-footer .footer-logo img { width: 24px; height: 24px; }
.site-footer .footer-logo-text { font-size: 1rem; font-weight: 700; color: var(--text); }
.site-footer .footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.site-footer .footer-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.site-footer .footer-links a:hover { color: var(--text); }
.site-footer .footer-copy { font-size: 0.8rem; color: var(--gray-3); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-nav .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
