/* ============================================================
   Dynamic Header Block — Standalone CSS
   Prefix: dh-
   Breakpoint mobile: max-width 991px
   ============================================================ */

/* ── Reset scoped to block ── */
.dh-header *,
.dh-header *::before,
.dh-header *::after {
  box-sizing: border-box;
}

/* ── Header shell ── */
.dh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* ── Inner container ── */
.dh-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: relative;
}

@media (min-width: 1024px) {
  .dh-header__inner {
    padding: 0 3rem;
  }
}

/* ── Logo ── */
.dh-header__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.dh-header__logo {
  height: 40px;
  width: auto;
  display: block;
}

@media (min-width: 992px) {
  .dh-header__logo {
    height: 48px;
  }
}

.dh-header__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d1d1d;
  text-decoration: none;
}

/* ── Desktop navigation ── */
.dh-header__nav {
  display: flex;
  align-items: center;
}

.dh-header__nav > ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dh-header__nav > ul li {
  margin: 0;
  padding: 0;
}

.dh-header__link {
  font-size: 15px;
  font-weight: 500;
  color: #1d1d1d;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.dh-header__link:hover,
.dh-header__link:focus-visible {
  color: #e6332a;
  outline: none;
}

.dh-header__link.is-current {
  color: #e6332a;
}

/* ── Hamburger toggle ── */
.dh-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #1d1d1d;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.dh-header__toggle:hover,
.dh-header__toggle:focus-visible {
  color: #e6332a;
  outline: none;
}

/* ── Mobile nav panel (hidden by default) ── */
.dh-header__mobile {
  display: none;
}

/* ── Mobile breakpoint ── */
@media (max-width: 991px) {
  /* Hide desktop nav */
  .dh-header__nav {
    display: none;
  }

  /* Show hamburger */
  .dh-header__toggle {
    display: flex;
  }

  /* Mobile panel — shown when header has .is-open */
  .dh-header.is-open .dh-header__mobile {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 100;
  }

  .dh-header.is-open .dh-header__mobile > ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .dh-header.is-open .dh-header__mobile > ul li {
    margin: 0;
    padding: 0;
  }
}

/* ── Mobile links ── */
.dh-header__mobile-link {
  color: #1d1d1d;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.dh-header__mobile-link:hover,
.dh-header__mobile-link:focus-visible {
  color: #e6332a;
  outline: none;
}

.dh-header__mobile-link.is-current {
  color: #e6332a;
}
