.header-outer {
  width: 100%;
}
.header-inner {
  position: relative; /* For absolute children */
  max-width: 970px;
  margin: 0 auto;
  padding: 0 1rem 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.header-social-desktop {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  z-index: 100;
  display: flex;
}
.header-social-desktop ul {
  display: flex;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
}
.header-social-desktop li {
  list-style: none;
  margin: 0;
}
.header-social-desktop i {
  font-size: 1.2em;
  color: var(--color-accent, #F0AB00);
}
.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
  /* Padding leaves room for the absolute social group above */
  padding-top: 0.2rem; 
}
.header-logo {
  flex: 0 0 auto;

}
.header-logo img {
  max-width: 7.6rem;
  height: auto;
  display: block;
}
.header-slogan {
  flex: 0 1 18em;
  max-width: 18em;
}
.header-slogan img {
  width: 100%;
  max-width: 25rem;
  min-width: 100px;
  height: auto;
  display: block;
}
.header-nav {
  flex: 1 1 auto;
}
.header-nav ul.nav-menu {
  display: flex;
  gap: 2.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}
.header-nav .nav-menu a {
  text-decoration: none;
  color: var(--color-accent, #F0AB00);
  font-weight: 700;
  padding: 0.75rem 0;
  border: none;
  border-top: 3px solid transparent;
  background: none;
  display: flex;
  align-items: center;
  transition: color 0.2s, border-color 0.2s;
  font-size: 1.0rem;
}
.header-nav .nav-menu a:hover,
.header-nav .nav-menu .current-menu-item > a,
.header-nav .nav-menu .current_page_item > a,
.header-nav .nav-menu a:focus {
  color: var(--color-accent-hover, #B7F254);
  border-top: 3px solid var(--color-accent-hover, #B7F254);
}

.header-menu-toggle {
  display: none;
}

/* Responsive: stack on mobile and float social into normal flow */
/* Desktop: >970px (default styles) */
/* No special media query required; use your core header styles */

/* Tablet: 801px–970px */
@media (max-width: 970px) and (min-width: 801px) {
  .header-inner {
    max-width: 100vw;
    padding: 0 0.5rem 0.2rem 0.5rem;
  }
  .header-logo img {
    max-width: 7rem; /* slightly smaller than desktop */
  }
  .header-slogan {
    max-width: 12em;
    font-size: 1.2rem;
    margin-left: 1em;
  }
  .header-slogan img {
    max-width: 14rem;
    min-width: 80px;
    width: 100%;
  }
  .header-main-row {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
  }

  .header-nav {
    display: block;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
  }
}

/* Mobile: ≤800px */
@media (max-width: 800px) {
  .header-menu-toggle {
    display: block;
    font-size: 2rem;
    padding: 0.5rem;
  }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-bg-light, #fff);
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    padding: 1rem 2rem;
    z-index: 999;
    min-width: 180px;
  }
  .header-nav.open {
    display: block;
  }
  .header-nav ul.nav-menu {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }

}


/* Optional: add hamburger animation/transition */
