.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  border-bottom: 1px solid rgba(245, 240, 224, 0.1);
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}

.header-inner,
.container {
  width: min(100% - 2.5rem, 80rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 3rem;
  border-radius: 0.75rem;
  text-decoration: none;
}

.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.logo-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.55vw + 1rem, 1.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.logo-subtitle {
  display: block;
  margin-top: 0.25rem;
  color: rgba(245, 240, 224, 0.72);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.logo--compact {
  min-height: auto;
}

.logo--compact .logo-title {
  font-size: clamp(1.35rem, 0.6vw + 1.1rem, 1.55rem);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: rgba(245, 240, 224, 0.75);
  font-size: 0.875rem;
  line-height: 1.55;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav .nav-link {
  position: relative;
  padding: 0.5rem 0.875rem;
}

.main-nav .nav-link::after {
  position: absolute;
  pointer-events: none;
  inset-inline: 0.875rem;
  bottom: -0.125rem;
  height: 0.125rem;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  content: "";
  transition: opacity 0.2s ease;
}

.main-nav .nav-link:hover {
  background: rgba(245, 240, 224, 0.1);
  color: var(--primary-foreground);
}

.main-nav .nav-link.active {
  background: transparent;
  color: var(--accent);
  font-weight: 600;
}

.main-nav .nav-link.active::after {
  opacity: 1;
}

.header-cta {
  display: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--foreground);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--primary-foreground);
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: rgba(245, 240, 224, 0.12);
}

.menu-icon {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 0.875rem;
}

.menu-icon::before,
.menu-icon::after,
.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.menu-icon::before { top: 0; }
.menu-icon span { top: 0.39rem; }
.menu-icon::after { top: 0.78rem; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0.39rem; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0.39rem; transform: rotate(-45deg); }

.mobile-backdrop {
  position: fixed;
  inset: 68px 0 0;
  z-index: 30;
  display: none;
  border: 0;
  background: rgba(6, 78, 59, 0.4);
  backdrop-filter: blur(4px);
}

.mobile-backdrop.is-open {
  display: block;
}

.mobile-panel {
  position: relative;
  z-index: 40;
  display: none;
  border-top: 1px solid rgba(245, 240, 224, 0.1);
  background: var(--primary);
  box-shadow: var(--shadow-lift);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
}

.mobile-nav .nav-link {
  display: flex;
  justify-content: space-between;
  border-left: 2px solid transparent;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  color: rgba(245, 240, 224, 0.85);
}

.mobile-nav .nav-link:hover {
  background: rgba(245, 240, 224, 0.1);
  color: var(--primary-foreground);
}

.mobile-nav .nav-link.active {
  border-left-color: var(--accent);
  color: var(--primary-foreground);
  font-weight: 600;
}

.main-content {
  min-height: 60vh;
  outline: none;
}

.site-footer {
  margin-top: 6rem;
  border-top: 1px solid rgba(245, 240, 224, 0.1);
  background: var(--primary);
  color: var(--primary-foreground);
}

.footer-inner {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

.footer-title {
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-text,
.footer-list,
.footer-bottom {
  color: rgba(245, 240, 224, 0.74);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-text {
  max-width: 28rem;
  margin-top: 1rem;
}

.footer-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  list-style: none;
}

.footer-list a:hover,
.footer-bottom a:hover {
  color: var(--accent);
}

.footer-contact-list {
  gap: 0.625rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  color: var(--accent);
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 240, 224, 0.1);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.brendigo {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 240, 224, 0.1);
  color: rgba(245, 240, 224, 0.7);
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .main-nav,
  .header-cta {
    display: flex;
  }

  .menu-toggle,
  .mobile-backdrop,
  .mobile-panel {
    display: none !important;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .header-inner,
  .container {
    width: min(100% - 4rem, 80rem);
  }
}
