/* ==========================================================================
   Site Header — Three-column editorial bar
   Left: descriptor + headline | Centre: logo + tagline | Right: contact
   ========================================================================== */

.iwd-site-header {
  width: 100%;
  background-color: #f9f7f4;
  border-bottom: 1px solid #e8e4df;
}

.iwd-site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1320px;
  height: 100px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

/* ── Left ─────────────────────────────────────────────────────────────── */

.iwd-site-header__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  min-width: 0;
}

.iwd-site-header__descriptor {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #D97706;
  line-height: 1.4;
}

.iwd-site-header__headline {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #0a0a0a;
  line-height: 1.2;
  white-space: nowrap;
}

.iwd-hdr-static {
  color: #0a0a0a;
}

.iwd-hdr-cycle {
  color: #D97706;
}

.iwd-hdr-cursor {
  display: inline-block;
  color: #D97706;
  font-weight: 300;
  margin-left: 1px;
  animation: iwd-blink .7s step-end infinite;
}

@keyframes iwd-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Centre ───────────────────────────────────────────────────────────── */

.iwd-site-header__centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.iwd-site-header__logo-link {
  display: block;
  text-decoration: none;
}

.iwd-site-header__logo-img {
  display: block;
  max-height: 52px;
  width: auto;
}

.iwd-site-header__brand-text {
  display: block;
  font-family: "Lato", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0a0a0a;
  text-decoration: none;
}

.iwd-site-header__tagline {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #787474;
}

/* ── Right ────────────────────────────────────────────────────────────── */

.iwd-site-header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.iwd-site-header__contact-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.iwd-site-header__contact-item {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-family: "Lato", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.iwd-site-header__contact-item i {
  font-size: 14px;
  color: #D97706;
  flex-shrink: 0;
}

.iwd-site-header__contact-item:hover,
.iwd-site-header__contact-item:focus {
  color: #D97706;
  text-decoration: none;
}

.iwd-site-header__microcopy {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: #787474;
}

/* ── Hamburger button (hidden on desktop) ─────────────────────────────── */

.iwd-site-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.iwd-site-header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0a0a0a;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.iwd-site-header__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.iwd-site-header__hamburger--open span:nth-child(2) {
  opacity: 0;
}
.iwd-site-header__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Contact strip (mobile only — sits below top notice) ──────────────── */

.iwd-contact-strip {
  display: none;
  width: 100%;
  background-color: #f9f7f4;
  border-bottom: 1px solid #e8e4df;
}

.iwd-contact-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 10px 16px;
}

@media (max-width: 575px) {
  .iwd-contact-strip__inner {
    padding: 7px 16px;
  }
}

.iwd-contact-strip__item {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.iwd-contact-strip__item i {
  font-size: 15px;
  color: #D97706;
  flex-shrink: 0;
}

.iwd-contact-strip__item:hover,
.iwd-contact-strip__item:focus {
  color: #D97706;
  text-decoration: none;
}

/* ── Responsive: tight desktop (1024–1200px) — headline scale-down ───── */

@media (max-width: 1200px) {
  .iwd-site-header__headline { font-size: 22px; }
}
@media (max-width: 1100px) {
  .iwd-site-header__headline { font-size: 18px; }
}

/* ── Responsive: tablet + mobile (≤ 991px) ────────────────────────────── */

/* Wrapper gives the nav a positioned parent for the overlay */
.iwd-header-nav-wrap {
  position: relative;
}

@media (max-width: 991px) {
  /* Show contact strip */
  .iwd-contact-strip {
    display: block;
  }

  /* Header becomes a simple flex row: logo left, hamburger right */
  .iwd-site-header__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 16px;
    gap: 0;
  }

  /* Hide left purpose text and right contact section */
  .iwd-site-header__left,
  .iwd-site-header__right {
    display: none;
  }

  /* Logo left-aligned */
  .iwd-site-header__centre {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0;
  }

  .iwd-site-header__tagline {
    display: none;
  }

  /* Show hamburger */
  .iwd-site-header__hamburger {
    display: flex;
  }

  /* Editorial nav: overlay below header — does NOT push content down */
  .iwd-editorial-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #f9f7f4;
    border-bottom: 1px solid #e8e4df;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  }

  .iwd-editorial-nav.iwd-editorial-nav--open {
    display: block;
  }

  .iwd-editorial-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .iwd-editorial-nav__list li a {
    padding: 13px 20px;
    border-bottom: 1px solid #eeece9;
    border-left: 3px solid transparent;
    font-size: 16px;
  }

  .iwd-editorial-nav__list li a:hover,
  .iwd-editorial-nav__list li a:focus,
  .iwd-editorial-nav__list li.current-menu-item > a,
  .iwd-editorial-nav__list li.current_page_item > a {
    border-bottom-color: #eeece9;
    border-left-color: #D97706;
    color: #D97706;
  }
}
