/* ==========================================================
   ARCH header – header.css
   Works on its own or alongside style.css (uses its own variables).
   ========================================================== */

.site-header {
  --hdr-blue: #123e8e;
  --hdr-blue-dark: #0e3277;
  --hdr-text: #111;
  --hdr-border: #eef0e4;
  --hdr-container: 1140px;
  --hdr-gutter: 24px;

  font-family: "Poppins", system-ui, sans-serif;
  background: #fff;
  border-bottom: 1px solid var(--hdr-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}
.site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }

.site-header__inner {
  max-width: calc(var(--hdr-container) + var(--hdr-gutter) * 2);
  margin-inline: auto;
  padding: 12px var(--hdr-gutter);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ARCH logo → main home page */
.site-header__logo { display: inline-flex; flex: none; }
.site-header__logo img { height: 62px; width: auto; display: block; }

.site-header__right { display: flex; align-items: center; gap: 32px; }

/* Phone */
.site-header__phone {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--hdr-text); text-decoration: none;
  font-size: 15px; font-weight: 500; white-space: nowrap;
}
.site-header__phone svg { width: 26px; height: 26px; color: var(--hdr-blue); flex: none; }
.site-header__phone:hover span { text-decoration: underline; }

/* Submit The Abstract button */
.site-header__btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hdr-blue); color: #fff;
  font-size: 13px; font-weight: 500; line-height: 1;
  padding: 13px 14px; border-radius: 6px;
  text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.site-header__btn:hover { background: var(--hdr-blue-dark); }

/* 25 Years in Design logo */
.site-header__badge img { height: 62px; width: auto; display: block; }

.site-header a:focus-visible { outline: 3px solid var(--hdr-blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .site-header__inner { gap: 12px; min-height: 72px; }
  .site-header__logo img, .site-header__badge img { height: 46px; }
  .site-header__right { gap: 14px; }
  .site-header__phone span { display: none; }          /* phone icon only */
  .site-header__phone svg { width: 28px; height: 28px; }
  .site-header__btn { font-size: 12px; padding: 11px 12px; }
}
@media (max-width: 480px) {
  .site-header { --hdr-gutter: 14px; }
  .site-header__badge { display: none; }                /* keep the bar uncluttered */
  .site-header__logo img { height: 40px; }
}

/* ---------- Hamburger (hidden on desktop) ---------- */
.site-header__burger {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 7px;
}
.site-header__burger span { display: block; height: 2px; width: 100%; background: var(--hdr-blue); border-radius: 2px; }

@media (max-width: 900px) {
  .site-header__right { display: none; }               /* phone / button / badge move into the menu */
  .site-header__burger { display: flex; }
}

/* ---------- Full-screen mobile menu ---------- */
.mnav {
  position: fixed; inset: 0; z-index: 1000;
  background: #fff;
  display: flex; flex-direction: column;
  font-family: "Poppins", system-ui, sans-serif;
  overflow-y: auto;
}
.mnav[hidden] { display: none; }
.mnav *, .mnav *::before, .mnav *::after { box-sizing: border-box; }

.mnav__bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; padding: 10px 16px;
  border-bottom: 1px solid #0b1c3d;
  flex: none;
}
.mnav__logo img { height: 50px; width: auto; display: block; }
.mnav__close { width: 44px; height: 44px; padding: 8px; background: transparent; border: 0; color: var(--hdr-blue, #123e8e); cursor: pointer; }
.mnav__close svg { width: 100%; height: 100%; display: block; }

.mnav__body {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 28px; padding: 64px 24px 40px;
  text-align: center;
}
.mnav__tag { margin: 0; font-size: 18px; font-weight: 500; color: #111; }
.mnav__tag span { color: #123e8e; }

.mnav__phone {
  display: inline-flex; align-items: center; gap: 12px;
  color: #111; text-decoration: none; font-size: 18px; font-weight: 500;
}
.mnav__phone svg { width: 28px; height: 28px; color: #123e8e; flex: none; }

.mnav__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 160px; padding: 13px 22px;
  font-size: 14px; font-weight: 600; line-height: 1.2;
  border-radius: 4px; text-decoration: none; border: 1px solid #ffa800;
}
.mnav__btn--fill { background: #ffa800; color: #fff; }
.mnav__btn--line { background: #fff; color: #ffa800; }
.mnav__btn:hover { opacity: .9; }
.mnav__badge { height: 84px; width: auto; margin-top: 4px; }

.mnav a:focus-visible, .mnav button:focus-visible, .site-header__burger:focus-visible {
  outline: 3px solid #123e8e; outline-offset: 3px; border-radius: 4px;
}
body.menu-open { overflow: hidden; }
