/* Header styles scoped to the site header */
.site-header {
  background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
  color: #ffffff;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-wrap { display: flex; align-items: baseline; gap: 0.5rem; min-width: 0; }
.brand {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: 0.2px;
  font-size: 1.25rem;
}
.brand:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.brand-tagline {
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navigation */
.site-nav {}
.nav-list { list-style: none; display: flex; gap: 0.75rem; margin: 0; padding: 0; }
.nav-list a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background-color 200ms ease, color 200ms ease;
}
.nav-list a:hover { background: rgba(255,255,255,0.15); }
.nav-list a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; background: rgba(0,0,0,0.1); }

/* Menu toggle */
.menu-toggle {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.75);
  color: #ffffff;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  display: none; /* Shown on small screens via media query */
  align-items: center;
  gap: 0.5rem;
}
.menu-toggle:hover { background: rgba(255,255,255,0.12); }
.menu-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: 0.5rem; top: -40px; background: #111827; color: #fff;
  padding: 0.5rem 0.75rem; border-radius: 6px; z-index: 1100; text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

/* Responsive behavior: progressive enhancement */
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  /* By default, keep nav visible. If JS is enabled, .js will collapse it. */
  .js .site-nav { display: none; }
  .js .site-header[data-menu-open="true"] .site-nav { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: rgba(6, 78, 59, 0.98); backdrop-filter: saturate(120%) blur(2px); }
  .nav-list { flex-direction: column; padding: 0.5rem; }
  .nav-list a { width: 100%; }
  .brand-tagline { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav-list a { transition: none; }
}

/* Utility */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; clip-path: inset(50%); }