.header {
    width: 100%;
    height: 72px;
    padding-top: 12px;
    padding-bottom: 8px;
    justify-content: space-between;
    background-color: #FAEDCB;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: top 0.3s ease;
}

.header-logo {
    width: 200px;
    height: 68px;
    margin-left: 64px;
    gap: 8px;
}

.header-logo-ribbon {
    width: 68px;
    height: auto;
}

.header-logo-text {
    width: 124px;
    height: auto;
}

.header-links {
    gap: 24px;
    height: 64px;
    font-weight: 600
}

.header-link {
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-buttons {
    gap: 24px;
    margin-right: 64px;
}

.underline {
    transform: translate(0, 12px);
    height: 2px;
    width: 0%;
    background-color: black;
    transition: 0.3s ease width;
}

.clickable {
    cursor: pointer;
}

/* Mobile / responsive header additions */
.menu-toggle-checkbox {
  display: none;
}
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 110;
}
.burger span {
  position: absolute;
  width: 26px;
  height: 2.5px;
  background: #222;
  left: 50%;
  transform: translateX(-50%);
  transition: transform .35s ease, opacity .35s ease, top .35s ease;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.menu-toggle-checkbox:checked + .burger span:nth-child(1) {
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}
.menu-toggle-checkbox:checked + .burger span:nth-child(2) {
  opacity: 0;
}
.menu-toggle-checkbox:checked + .burger span:nth-child(3) {
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}

.mobile-nav-panel {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  left: 0;
  right: 0;
  background: #FAEDCB;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-16px);
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
  z-index: 100;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 20px 16px 32px 16px;
}

.menu-toggle-checkbox:checked ~ .mobile-nav-panel {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-panel a {
  display: block;
  width: 100%;
  padding: 12px 0;
  margin-bottom: 10px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  transition: color 0.2s, box-shadow 0.2s, background 0.2s;
}

.mobile-nav-panel a:active {
  color: #222;
  background: #e0cfa3;
  box-shadow: 0 1px 6px rgba(49,82,91,0.18) inset;
  transition: color 0.2s, box-shadow 0.2s, background 0.2s;
}

.mobile-nav-panel .button,
.mobile-nav-panel .button-invert {
  display: inline-block;
  width: auto;
  min-width: 120px;
  max-width: 200px;
  margin: 0 auto 10px auto;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
}

@media (max-width: 1040px) {
  .header { padding-left: 16px; padding-right: 8px; }
  .header-logo { margin-left: 0; }
  .header-buttons { margin-right: 0; }
}

@media (max-width: 840px) {
  .header { top: 0; z-index: 200; }
  .header-links, .header-buttons { display: none !important; }
  .burger { display: flex; }
  .mobile-nav-panel { display: block; }
}

/* @media (prefers-reduced-motion: reduce) {
  .burger span, .mobile-nav-panel { transition: none; }
  .mobile-nav-panel { transform:none !important; }
  .mobile-nav-panel [data-anim] { opacity:1 !important; transform:none !important; transition:none !important; }
} */
