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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  overflow: hidden;
  background: rgba(247, 244, 238, 0.96);
  border-bottom: 1px solid var(--color-border);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-primary);
  flex: 0 0 auto;
}

.brand__mark {
  display: block;
  width: 94px;
  height: 94px;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  flex: 0 0 94px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand__tag {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.nav {
  display: block;
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
}

.nav__list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  height: auto;
}

.nav__list > li {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 0.7rem;
  margin: 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 40px;
  white-space: nowrap;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  position: relative;
  top: 0;
  vertical-align: middle;
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link.is-active {
  color: var(--color-primary);
  font-weight: 500;
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 6px;
  height: 2px;
  background: var(--color-accent);
  pointer-events: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-primary);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-main {
  min-height: 50vh;
}

.site-footer {
  margin-top: var(--space-9);
  background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-8) 0 var(--space-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent-soft);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: var(--space-3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--fs-xs);
}

.page-hero {
  position: relative;
  padding: var(--space-8) 0 var(--space-7);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 40, 32, 0.88) 0%, rgba(11, 61, 46, 0.72) 45%, rgba(11, 61, 46, 0.45) 100%),
    var(--page-hero-image, url("https://images.unsplash.com/photo-1581093458791-9d42e3c7e11f?auto=format&fit=crop&w=1600&q=80"))
      center / cover no-repeat;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  max-width: 18ch;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 52ch;
  font-size: var(--fs-md);
}

.section {
  padding: var(--space-8) 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--color-border);
}

.section__head {
  max-width: 640px;
  margin-bottom: var(--space-6);
}

.section__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(247, 244, 238, 0.98);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    box-shadow: var(--shadow-md);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .nav__link {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    height: 48px;
    line-height: 48px;
    padding: 0 1rem;
  }

  .nav__link.is-active::after {
    left: 1rem;
    right: auto;
    width: 1.5rem;
    bottom: 12px;
  }

  .brand__name {
    font-size: 1rem;
  }

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

@media (max-width: 640px) {
  .brand__tag {
    display: none;
  }

  .section {
    padding: var(--space-7) 0;
  }
}
