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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-top: 5px solid var(--color-brand-yellow);
  background: rgba(255, 251, 209, 0.96);
  border-bottom: 1px solid rgba(232, 225, 213, 0.8);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.7rem;
  color: var(--color-text);
  text-decoration: none;
}
.brand-logo { display: block; width: 126px; height: 44px; object-fit: contain; object-position: left center; }
.brand-mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  color: #fff;
  background: var(--color-primary);
  border-radius: 50%;
  font-size: 1.45rem;
  box-shadow: 0 4px 0 #d28927;
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 1.05rem; }
.brand-copy span { margin-top: 0.25rem; color: var(--color-text-muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }

.main-navigation { display: flex; align-items: center; gap: 0.25rem; }
.main-navigation a:not(.button) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: var(--color-text-muted);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  text-decoration: none;
}
.main-navigation a:not(.button):hover,
.main-navigation a[aria-current="page"] { color: var(--color-text); background: var(--color-surface-soft); }

.menu-toggle { display: none; }

main { min-height: 65vh; }
.section { padding: 5rem 0; }
.section-compact { padding: 3.5rem 0; }
.section-tinted { background: var(--color-brand-yellow-soft); }
.section-green { background: var(--color-surface-green); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading p { max-width: 42rem; margin-bottom: 0; color: var(--color-text-muted); }

.footer-grid { display: grid; gap: 2.5rem; padding: 4rem 0 3rem; }
.site-footer { color: #e9efe6; background: #304132; }
.site-footer a { color: #e9efe6; }
.site-footer a:hover { color: #ffd18a; }
.brand-footer { color: #fff; }
.brand-footer .brand-logo { width: 164px; height: 58px; padding: .25rem .4rem; background: var(--color-brand-yellow); border-radius: 8px; }
.brand-footer .brand-mark { color: #304132; background: #ffd18a; box-shadow: 0 4px 0 #d8a65c; }
.brand-footer .brand-copy span { color: #bed0bd; }
.footer-note { max-width: 19rem; margin: 1.2rem 0 0; color: #bed0bd; }
.footer-heading { margin-bottom: 0.8rem; color: #fff; font-size: 1rem; letter-spacing: 0; }
.link-list { display: grid; gap: 0.45rem; padding: 0; margin: 0; list-style: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; color: #bed0bd; border-top: 1px solid rgba(255,255,255,.16); font-size: .8rem; }

@media (min-width: 700px) {
  .container { width: min(calc(100% - 4rem), var(--content-width)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
  }
  .menu-toggle > span:not(.sr-only) { width: 19px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
  .menu-toggle[aria-expanded="true"] > span:nth-last-child(3) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-last-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-last-child(1) { transform: translateY(-7px) rotate(-45deg); }
  .main-navigation {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
    padding: 1rem;
    background: var(--color-background);
    box-shadow: 0 18px 30px rgba(40,45,40,.12);
  }
  .main-navigation.is-open { display: flex; }
  .main-navigation a:not(.button) { min-height: 50px; padding-inline: 1rem; }
  .main-navigation .button { justify-content: center; margin-top: .5rem; }
}

@media (min-width: 901px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .section-heading { display: block; }
  .section-heading .text-link { display: inline-block; margin-top: 1rem; }
  .footer-bottom { display: grid; }
}
