﻿.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--site-shell-bg);
  border-bottom: 1px solid var(--site-shell-border);
  backdrop-filter: blur(8px);
}

.site-header__inner,
.site-footer__inner {
  width: min(1240px, 100% - 3rem);
  margin: 0 auto;
}

.site-header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  width: auto;
  max-width: 50vw;
  height: 80px;
  flex: 0 0 auto;
}

.site-brand__logo {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.site-brand__name {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 100%;
}

.site-nav {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav__link {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--site-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--site-shell-border);
  background: var(--site-footer-bg);
}

.site-footer__inner {
  padding: 2.4rem 0 1.2rem;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(300px, 1.3fr) repeat(3, minmax(140px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--site-shell-border);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #1d3557;
}

.site-footer__logo {
  /* width: 42px; */
  /* height: 42px; */
  width: 375px;
  height: 111px;
  object-fit: contain;
}

.site-footer__brand-name {
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 800;
}

.site-footer__tagline {
  margin: 0.9rem 0 1.2rem;
  color: #7085a1;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer__blurb {
  margin: 0;
  max-width: 380px;
  color: #37567a;
  line-height: 1.45;
  font-size: 1.15rem;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.site-footer__col h5 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  color: #0f2f53;
  font-weight: 800;
}

.site-footer__col a {
  color: #3f5f82;
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1.2;
}

.site-footer__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5d7594;
}

.site-footer__links {
  display: flex;
  gap: 1.25rem;
}

.site-footer__links a {
  color: #3f5f82;
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__col a:hover,
.site-footer__links a:hover,
.site-nav__link:hover {
  color: var(--site-primary);
}

.site-nav__link.is-active {
  background: rgba(32, 123, 231, 0.12);
  color: var(--site-primary);
}

/* Hamburger toggle — hidden on desktop */
.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.site-nav-toggle__bar {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--site-muted, #555);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav-toggle.is-open .site-nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-nav-toggle.is-open .site-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle.is-open .site-nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 2rem;
  }

  .site-footer__brand-name {
    font-size: 2rem;
  }

  .site-footer__blurb {
    font-size: 1.06rem;
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    min-height: 72px;
  }

  .site-brand {
    max-width: 62vw;
    height: 68px;
    gap: 0.45rem;
  }

  .site-brand__name {
    font-size: 2.75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 100%;
  }

  .site-nav-toggle {
    display: flex;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-bottom: 0.6rem;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    border-radius: 0.5rem;
  }

  .site-footer__inner {
    padding-top: 2rem;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer__brand-name {
    font-size: 1.8rem;
  }

  .site-footer__tagline {
    letter-spacing: 0.16em;
  }

  .site-footer__blurb {
    font-size: 1rem;
  }

  .site-footer__col h5 {
    font-size: 1.15rem;
  }

  .site-footer__col a {
    font-size: 1rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
