.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #871417;
  color: white;
  padding: 1em;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: 100%;
}

/* Sections */
.header-left,
.header-center,
.header-right {
  flex: 1 1 200px;
  color: #f5a623;
  text-align: center;
  box-sizing: border-box;
}

/* Logo */
.site-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 0.5em;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Hechsher image */
.hechsher-img {
  max-height: 60px;
  height: auto;
  max-width: 100%;
}

/* Nav styles */
nav {
  margin-top: 0.5em;
}

nav a {
  color: #f5a623;
  margin: 0 0.5em;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: white;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
  }

  /* Force stacking order */
  .header-center {
    order: 1; /* logo/nav first */
  }

  .header-right {
    order: 2; /* hechsher second */
  }

  .header-left {
    order: 3; /* contact info last */
  }

  .header-left,
  .header-center,
  .header-right {
    flex: none; /* don’t stretch on mobile */
    width: 100%; /* full width so they stack nicely */
    text-align: center;
    margin-bottom: 1em;
  }

  .site-logo {
    max-width: 140px;
  }

  nav a {
    display: inline-block;
    margin: 0.5em;
  }
}

/* Reset default spacing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: white;
  line-height: 1.6;
}