/*
 * Shared HOHANK primary header.
 *
 * This file is imported by both the commercial-power and mining shells. Keep
 * business-specific labels and destinations in the HTML; geometry, logo,
 * colour, responsive behaviour and controls belong here.
 */
:root {
  --hohank-header-height: 72px;
  --hohank-header-wide: 1760px;
  --hohank-header-inline: clamp(40px, 7vw, 128px);
  --hohank-header-navy: #00183f;
  --hohank-header-yellow: #f8b918;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  color: #fff !important;
  background: var(--hohank-header-navy) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: none !important;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif !important;
}

.site-header .nav-inner {
  position: relative !important;
  display: flex !important;
  width: min(calc(100% - var(--hohank-header-inline)), var(--hohank-header-wide)) !important;
  max-width: var(--hohank-header-wide) !important;
  min-height: var(--hohank-header-height) !important;
  margin-inline: auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}

.site-header .brand {
  display: inline-flex !important;
  min-width: 178px !important;
  flex: 0 0 178px !important;
  align-items: center !important;
  gap: 12px !important;
  margin-right: 32px !important;
  color: #fff !important;
  text-decoration: none !important;
}

.site-header .brand-mark {
  display: block !important;
  position: relative !important;
  width: 48px !important;
  height: 42px !important;
  flex: 0 0 48px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("/assets/brand/standard-logo/hohank-mark-white-transparent.png") center / contain no-repeat !important;
  box-shadow: none !important;
  color: transparent !important;
}

.site-header .brand-mark::before,
.site-header .brand-mark::after,
.site-header .brand-mark span {
  display: none !important;
}

.site-header .brand-copy {
  display: block !important;
  min-width: 0 !important;
  color: #fff !important;
  line-height: 1 !important;
}

.site-header .brand-copy strong {
  display: block !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

.site-header .brand-copy small {
  display: block !important;
  margin-top: 1px !important;
  color: var(--hohank-header-yellow) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.05em !important;
}

.site-header .main-nav {
  display: flex !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(7px, 0.55vw, 10px) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: clamp(12px, 0.72vw, 13px) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

.site-header .main-nav > a {
  display: inline-flex !important;
  min-height: 34px !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  padding: 8px 0 !important;
  color: inherit !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.site-header .main-nav > a:hover,
.site-header .main-nav > a:focus-visible,
.site-header .main-nav > a.active,
.site-header .main-nav > a[aria-current="page"] {
  color: #fff !important;
  border-bottom-color: var(--hohank-header-yellow) !important;
  outline: none !important;
}

.site-header .header-language-actions {
  display: flex !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: auto !important;
}

.site-header .header-language-actions .language-control {
  margin: 0 !important;
}

.site-header .nav-cta {
  display: inline-flex !important;
  width: auto !important;
  min-width: 108px !important;
  min-height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  color: #061833 !important;
  background: var(--hohank-header-yellow) !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.site-header .nav-cta:hover,
.site-header .nav-cta:focus-visible {
  color: #061833 !important;
  background: #ffd052 !important;
  outline: none !important;
}

.site-header .nav-toggle {
  display: none !important;
  width: 44px !important;
  height: 42px !important;
  flex: 0 0 44px !important;
  place-items: center !important;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
}

.site-header .nav-toggle span,
.site-header .nav-toggle span::before,
.site-header .nav-toggle span::after {
  display: block !important;
  position: relative !important;
  width: 20px !important;
  height: 2px !important;
  background: currentColor !important;
  content: "" !important;
}

.site-header .nav-toggle span::before,
.site-header .nav-toggle span::after {
  position: absolute !important;
  left: 0 !important;
}

.site-header .nav-toggle span::before {
  top: -7px !important;
}

.site-header .nav-toggle span::after {
  top: 7px !important;
}

@media (max-width: 1500px) {
  .site-header .nav-inner {
    width: min(100% - 32px, var(--hohank-header-wide)) !important;
  }

  .site-header .brand {
    margin-right: auto !important;
  }

  .site-header .nav-toggle {
    display: inline-grid !important;
  }

  .site-header .main-nav {
    display: none !important;
    position: absolute !important;
    top: var(--hohank-header-height) !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 90 !important;
    max-height: calc(100vh - var(--hohank-header-height)) !important;
    overflow-y: auto !important;
    padding: 16px 20px 22px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: var(--hohank-header-navy) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 22px 44px rgba(0, 18, 48, 0.22) !important;
  }

  .site-header .main-nav.open {
    display: flex !important;
  }

  .site-header .main-nav > a {
    width: 100% !important;
    min-height: 44px !important;
    padding: 11px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .site-header .header-language-actions {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .site-header .header-language-actions .nav-cta {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 560px) {
  .site-header .nav-inner {
    width: min(100% - 24px, var(--hohank-header-wide)) !important;
  }

  .site-header .brand {
    min-width: 0 !important;
    flex-basis: auto !important;
  }

  .site-header .brand-copy small {
    display: none !important;
  }
}

/* global-section-spacing-system-20260731 */
:root {
  --site-section-space: 72px;
  --site-section-space-tight: 52px;
  --site-section-adjacent-start: 48px;
}

main > .section:not(.contact-landing-hero):not(.gallery-view),
main > .section-tight:not(.contact-landing-hero):not(.gallery-view) {
  padding-block: var(--site-section-space);
}

main > .section.tight:not(.contact-landing-hero):not(.gallery-view),
main > .section-tight:not(.contact-landing-hero):not(.gallery-view) {
  padding-block: var(--site-section-space-tight);
}

main > :is(.section, .section-tight):not(.contact-landing-hero):not(.gallery-view)
  + :is(.section, .section-tight):not(.contact-landing-hero):not(.gallery-view) {
  padding-top: var(--site-section-adjacent-start);
}

@media (max-width: 900px) {
  :root {
    --site-section-space: 56px;
    --site-section-space-tight: 44px;
    --site-section-adjacent-start: 36px;
  }
}

@media (max-width: 720px) {
  :root {
    --site-section-space: 48px;
    --site-section-space-tight: 40px;
    --site-section-adjacent-start: 32px;
  }
}
/* /global-section-spacing-system-20260731 */

/* Phase 4H: mobile bottom chrome has one job—provide the direct engineering
   contact path. Secondary navigation remains available in the page and menu. */
@media (max-width: 720px) {
  .mobile-cta,
  .commercial-mobile-cta {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .mobile-cta > a,
  .commercial-mobile-cta > a {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Phase 4C: compatibility layer for legacy commercial headers. It aligns the
   responsive breakpoint and menu behaviour without replacing page markup. */
@media (max-width: 1500px) {
  .commercial-site-header .commercial-nav-inner {
    position: relative !important;
    width: min(100% - 32px, var(--hohank-header-wide)) !important;
  }

  .commercial-site-header .commercial-brand {
    margin-right: auto !important;
  }

  .commercial-site-header .commercial-nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .commercial-site-header .commercial-main-nav {
    display: none !important;
    position: absolute !important;
    top: var(--hohank-header-height) !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 90 !important;
    max-height: calc(100dvh - var(--hohank-header-height)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding: 16px 20px calc(96px + env(safe-area-inset-bottom)) !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    background: var(--hohank-header-navy) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 22px 44px rgba(0, 18, 48, 0.22) !important;
  }

  .commercial-site-header .commercial-main-nav.open {
    display: grid !important;
  }

  .commercial-site-header .commercial-main-nav > a {
    width: 100% !important;
    min-height: 44px !important;
    padding: 11px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .commercial-site-header .header-language-actions {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .commercial-site-header .commercial-nav-cta {
    width: 100% !important;
    min-width: 0 !important;
  }

  .site-header .main-nav {
    max-height: calc(100dvh - var(--hohank-header-height)) !important;
    overscroll-behavior: contain !important;
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }
}

@media (min-width: 561px) and (max-width: 720px) {
  .commercial-site-header .commercial-brand-copy small {
    display: block !important;
  }
}

@media (max-width: 560px) {
  .commercial-site-header .commercial-nav-inner {
    width: min(100% - 24px, var(--hohank-header-wide)) !important;
  }

  .commercial-site-header .commercial-brand {
    min-width: 0 !important;
  }

  .commercial-site-header .commercial-brand-copy small {
    display: none !important;
  }
}

/* Phase 4G: persistent mobile header with language and engineering contact
   available as first-level icon actions. The full text actions remain in the
   desktop navigation but are not duplicated inside the collapsed menu. */
.header-quick-actions {
  display: none;
}

.header-contact-quick {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  color: #061833;
  background: var(--hohank-header-yellow);
  border: 1px solid var(--hohank-header-yellow);
  border-radius: 8px;
  text-decoration: none;
}

.header-contact-quick:hover,
.header-contact-quick:focus-visible {
  color: #061833;
  background: #ffd052;
  border-color: #ffd052;
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.header-contact-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 1500px) {
  html,
  body {
    overflow-x: clip !important;
  }

  .site-header .nav-inner,
  .commercial-site-header .commercial-nav-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 44px !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .site-header .brand,
  .commercial-site-header .commercial-brand {
    min-width: 0 !important;
    margin-right: 0 !important;
  }

  .header-quick-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .header-quick-actions .language-control,
  .header-quick-actions .language-control summary {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
  }

  .site-header .main-nav .header-language-actions,
  .commercial-site-header .commercial-main-nav .header-language-actions {
    display: none !important;
  }

  .site-header .nav-toggle,
  .commercial-site-header .commercial-nav-toggle {
    margin: 0 !important;
  }
}

@media (max-width: 560px) {
  .site-header .brand,
  .commercial-site-header .commercial-brand {
    gap: 8px !important;
  }

  .site-header .brand-mark,
  .commercial-site-header .commercial-brand-mark {
    width: 40px !important;
    height: 36px !important;
    flex-basis: 40px !important;
  }

  .site-header .brand-copy strong,
  .commercial-site-header .commercial-brand-copy strong {
    font-size: 16px !important;
  }
}
