/* ============================================================
   PATHWAYS — Header, Nav, Footer
   ============================================================ */

/* ── Logo ── */
.site-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}
.logo-pathways   { color: var(--navy); }
.logo-in         { color: var(--grey-500); font-style: italic; }
.logo-healthcare { color: var(--green); }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-200);
}
.header-inner {
  display: flex; align-items: center; gap: 2rem;
  height: var(--nav-h);
}

/* ── Main nav ── */
.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  display: flex; align-items: center; gap: .3rem;
  font-size: .875rem; font-weight: 500;
  color: var(--grey-700); text-decoration: none;
  padding: .45rem .7rem; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover         { color: var(--navy); background: var(--grey-100); }
.nav-link--active       { color: var(--navy); font-weight: 600; }
.nav-link--active::after {
  content: ''; display: block; position: absolute;
  bottom: -1px; left: .7rem; right: .7rem;
  height: 2px; background: var(--green); border-radius: 2px;
}
.nav-link { position: relative; }
.header-cta { margin-left: .75rem; white-space: nowrap; }

/* ── Dropdowns ── */
.nav-item--dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 230px; padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 300;
}
.dropdown--open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link {
  display: block; font-size: .875rem; color: var(--grey-700);
  text-decoration: none; padding: .55rem .9rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.dropdown-link:hover { background: var(--grey-100); color: var(--navy); }

/* ── Hamburger ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem;
  margin-left: auto;
}
.hamburger-bar {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
[aria-expanded="true"] .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[aria-expanded="true"] .hamburger-bar:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ── */
.mobile-nav {
  background: var(--white); border-top: 1px solid var(--grey-200);
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-nav ul { padding: .75rem 0 1.5rem; }
.mobile-link {
  display: block; font-size: .925rem; font-weight: 500;
  color: var(--navy); text-decoration: none;
  padding: .65rem 1.5rem;
  transition: background var(--transition);
}
.mobile-link:hover { background: var(--grey-100); }
.mobile-link--sub { color: var(--grey-700); font-size: .875rem; padding-left: 2.5rem; }
.mobile-section-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--green);
  padding: 1rem 1.5rem .25rem;
}
body.nav-open { overflow: hidden; }

/* ── Page offset ── */
body { padding-top: var(--nav-h); }

/* ── Footer ── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.65);
  padding-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p { font-size: .875rem; margin-top: .75rem; color: rgba(255,255,255,.5); line-height: 1.6; }
.footer-contact-line { margin-top: .5rem !important; }
.footer-contact-line a { color: var(--green); text-decoration: none; font-size: .875rem; }
.footer-contact-line a:hover { text-decoration: underline; }
.footer-logo .logo-pathways { color: var(--white); }
.footer-logo .logo-in       { color: rgba(255,255,255,.5); }
.footer-logo .logo-healthcare { color: var(--green); }

.footer-nav { display: contents; }
.footer-col h3 {
  font-family: 'DM Sans', sans-serif; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5); font-weight: 700;
  margin-bottom: .85rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a {
  font-size: .875rem; color: rgba(255,255,255,.6);
  text-decoration: none; transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 1rem;
}
.footer-disclaimer { font-size: .78rem; color: rgba(255,255,255,.35); max-width: 780px; line-height: 1.6; }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.35); white-space: nowrap; }

/* ── Responsive header/footer ── */
@media (max-width: 1020px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}
