/* ==========================================================================
   ZIP — Layout: header & footer
   ========================================================================== */

/* ---- Header -------------------------------------------------------------- */
.site-header {
  background: var(--zip-white);
  position: relative;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1680px;
  margin-inline: auto;
  padding: 16px 40px;
}

.site-nav { flex: 1 0 0; min-width: 0; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 48px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 24px;
  color: var(--zip-black);
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.site-nav__link:hover { color: var(--zip-red); }
.site-nav__link.is-active { border-bottom-color: var(--zip-red); color: var(--zip-black); }

.site-logo {
  flex: none;
  display: block;
  width: 189px;
  height: 120px;
}
.site-logo svg { width: 100%; height: 100%; display: block; }

.site-header__cta {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

/* Language switcher (HR / EN) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}
.lang-switch__link {
  display: inline-block;
  padding: 2px 12px;
  color: var(--zip-text-muted);
  transition: color var(--t-fast);
}
.lang-switch__link:first-child { padding-left: 0; }
.lang-switch__link:last-child { padding-right: 0; }
.lang-switch__link + .lang-switch__link {
  border-left: 1px solid rgba(26, 26, 26, 0.22);
}
.lang-switch__link:hover { color: var(--zip-red); }
.lang-switch__link.is-active {
  color: var(--zip-red);
  font-weight: 700;
}
/* Switcher placement: right (in CTA) on desktop, left (by hamburger) on mobile. */
.lang-slot--desktop { display: inline-flex; align-items: center; }
.lang-slot--mobile { display: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 48px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 24px;
  color: var(--zip-white);
  background: var(--zip-red);
  border-radius: 0;
  transition: background var(--t-fast);
}
.nav-cta:hover { background: var(--zip-red-dark); color: var(--zip-white); }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0;
  position: relative;
  flex: none;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: '';
  position: absolute;
  left: 10px;
  width: 24px; height: 2px;
  background: var(--zip-black);
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--zip-white);
  padding-block: 40px;
}
.site-footer__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.site-footer__logos {
  width: 100%;
  display: flex;
  justify-content: center;
}
.site-footer__logos svg {
  width: 850px;
  max-width: 100%;
  height: auto;
}
.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  margin: 0; padding: 24px 0;
  list-style: none;
}
.footer-nav__list a {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 32px;
  color: var(--zip-black);
}
.footer-nav__list a:hover { color: var(--zip-red); }
.site-footer__disclaimer {
  max-width: 100%;
  margin: 0;
  font-size: 1rem;
  line-height: 24px;
  color: var(--zip-black);
}
.site-footer__copyright {
  margin: 0;
  font-size: 0.875rem;
  line-height: 22px;
  color: var(--zip-black);
}

/* ---- Responsive: header/footer ------------------------------------------ */
@media (max-width: 1100px) {
  .site-nav__link { padding: 12px 24px; }
}
@media (max-width: 860px) {
  /* Grid with two equal side columns => logo is always dead-centered. */
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    padding: 12px 20px;
  }
  .nav-toggle { display: block; justify-self: start; padding: 0; }
  .site-logo { width: 132px; height: 84px; justify-self: center; margin-inline: 0; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--zip-white);
    flex: none;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    transition: max-height var(--t);
  }
  .nav-open .site-nav { max-height: 60vh; }
  .site-nav__list { flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav__link { width: 100%; justify-content: flex-start; padding: 14px 24px; border-bottom: 0; }
  .site-nav__link.is-active { background: var(--zip-pink); }
  .site-header__cta { justify-self: end; flex: none; gap: 12px; }
  .nav-cta { padding: 10px 24px; }
  .footer-nav__list { gap: 24px; }
  .footer-nav__list a { font-size: 1.125rem; }

  /* Switcher sits inside the slide-down menu (not in the header bar). */
  .lang-slot--desktop { display: none; }
  .lang-slot--mobile {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  .lang-slot--mobile .lang-switch { font-size: 1rem; }
  .lang-slot--mobile .lang-switch__link { padding: 6px 14px; }
}
@media (max-width: 480px) {
  .nav-cta { padding: 9px 16px; font-size: 0.875rem; }
  .site-header__inner { gap: 8px; }
  .site-logo { width: 104px; height: 66px; }
}
