.shared-header,
.shared-header *,
.shared-footer,
.shared-footer * {
  box-sizing: border-box;
}

.shared-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: 80px;
  border-bottom: 1px solid #f1f5f9;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(24px);
  transition: transform .3s ease;
}

.shared-header.is-hidden { transform: translateY(-100%); }

.shared-header-inner {
  width: min(1280px, calc(100% - 40px));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.shared-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
  color: #0f172a;
  text-decoration: none;
}

.shared-brand img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.shared-brand span {
  font: 700 20px/1.15 "Space Grotesk", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.shared-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 2.2vw, 38px);
}

.shared-desktop-nav a,
.shared-mobile-nav a {
  color: #64748b;
  font: 600 13px/1.25 "IBM Plex Sans", sans-serif;
  letter-spacing: .025em;
  text-decoration: none;
  text-transform: uppercase;
}

.shared-desktop-nav a:hover,
.shared-desktop-nav a[aria-current="page"],
.shared-mobile-nav a:hover,
.shared-mobile-nav a[aria-current="page"] {
  color: #00687a;
}

.shared-desktop-nav .shared-header-cta {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #00687a;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 104, 122, .16);
}

.shared-desktop-nav .shared-header-cta:hover,
.shared-desktop-nav .shared-header-cta[aria-current="page"] {
  color: white;
  background: #020617;
}

.shared-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  color: #020617;
  font: 600 25px/1 Arial, sans-serif;
  cursor: pointer;
}

.shared-mobile-nav { display: none; }

.shared-footer {
  width: 100%;
  padding: 64px 20px;
  border-top: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
}

.shared-footer-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.shared-footer-title {
  color: #0f172a;
  font: 700 20px/1.15 "Space Grotesk", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.shared-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
}

.shared-footer-links a {
  color: #64748b;
  font: 500 14px/1.4 "IBM Plex Sans", sans-serif;
  text-decoration: none;
}

.shared-footer-links a:hover { color: #0891b2; }

.shared-footer-copy {
  color: #94a3b8;
  font: 500 12px/1.5 "IBM Plex Sans", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .shared-desktop-nav { display: none; }
  .shared-menu-toggle { display: grid; place-items: center; }
  .shared-mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 8px max(20px, calc((100% - 1240px) / 2)) 18px;
    border-top: 1px solid #f1f5f9;
    background: white;
  }
  .shared-mobile-nav a {
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
  }
  .shared-mobile-nav .shared-header-cta {
    align-self: center;
    margin: 6px 10px;
    border: 0;
    border-radius: 5px;
    background: #00687a;
    color: white;
    text-align: center;
  }
  .shared-mobile-nav .shared-header-cta:hover,
  .shared-mobile-nav .shared-header-cta[aria-current="page"] {
    color: white;
    background: #020617;
  }
}

@media (max-width: 640px) {
  .shared-header-inner { width: min(100% - 28px, 1280px); }
  .shared-brand { gap: 10px; }
  .shared-brand img { width: 34px; height: 34px; }
  .shared-brand span { font-size: 15px; letter-spacing: .07em; }
  .shared-mobile-nav.open { grid-template-columns: 1fr 1fr; padding: 8px 14px 16px; }
  .shared-mobile-nav a { font-size: 11px; }
  .shared-footer-links { display: grid; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .shared-header { transition: none; }
}
