/* HQM child theme — header + footer + base type. Matched to the live Elementor
   "Header News" / "Footer News" measured values, so removing Elementor is a
   no-op visually. */

:root {
  --hqm-blue: #004b8b;
  --hqm-meta: #23538c;
  --hqm-ink: #1a1a1a;
  --hqm-teal: #0094b1;
}

body { font-family: "Barlow", system-ui, sans-serif; color: var(--hqm-ink); margin: 0; }
.hqm-wrap { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
img { max-width: 100%; height: auto; }

/* ============================ HEADER ============================ */
.hqm-hdr { background: #fff; padding: 18px 0 0; }
.hqm-hdr__inner { display: flex; flex-direction: column; }
.hqm-hdr__toggle { display: none; }  /* desktop: no hamburger */

.hqm-hdr__top { display: flex; align-items: center; justify-content: space-between; }
.hqm-hdr__brand img { display: block; width: 90px; height: 90px; }
.hqm-hdr__tr { display: flex; align-items: center; gap: 22px; }
.hqm-hdr__hqn img { display: block; width: 70px; height: auto; }
.hqm-hdr__social { display: flex; align-items: center; gap: 12px; }
.hqm-hdr__social a { display: inline-flex; color: #111; }
.hqm-hdr__social svg { width: 18px; height: 18px; fill: currentColor; }
.hqm-hdr__contact {
  display: inline-flex; align-items: center; gap: 8px;
  background: #000; color: #fff !important; text-decoration: none;
  font-size: 15px; font-weight: 500; padding: 12px 15px;
}
.hqm-hdr__contact svg { width: 16px; height: 16px; fill: #fff; }

.hqm-hdr__navrow { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 14px; }
.hqm-menu { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.hqm-menu a {
  display: inline-block; color: var(--hqm-meta) !important; text-decoration: none;
  font-size: 16px; font-weight: 400; padding: 8px 0; line-height: 1;
}
.hqm-menu a:hover { color: var(--hqm-blue) !important; }
.hqm-menu li + li::before { content: "\2022"; color: var(--hqm-teal); margin: 0 15px; font-size: 12px; }
.hqm-menu .current-menu-item > a,
.hqm-menu .current-page-ancestor > a { color: var(--hqm-blue) !important; font-weight: 500; }

.hqm-hdr__search { display: flex; align-items: stretch; }
.hqm-hdr__search input {
  border: 1px solid #393939; border-right: 0; background: transparent;
  height: 40px; padding: 0 14px; font-size: 16px; color: #393939; min-width: 150px;
}
.hqm-hdr__search input::placeholder { color: #6a6a6a; }
.hqm-hdr__search button {
  border: 0; background: var(--hqm-blue); width: 46px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.hqm-hdr__search button svg { width: 18px; height: 18px; fill: #fff; }

/* ============================ FOOTER ============================ */
.hqm-ftr { margin-top: 40px; }

.hqm-ftr__contact { background: #000; }
.hqm-ftr__contact-inner { display: flex; align-items: center; justify-content: center; gap: 90px; padding: 34px 15px; flex-wrap: wrap; }
.hqm-ftr__cx { display: flex; align-items: center; gap: 16px; color: #fff; }
.hqm-ftr__ico { width: 34px; height: 34px; fill: #fff; flex: 0 0 auto; }
.hqm-ftr__cx-body { display: flex; flex-direction: column; gap: 2px; }
.hqm-ftr__cx-label { font-size: 14px; opacity: .8; }
.hqm-ftr__cx a { color: #fff !important; text-decoration: none; font-size: 18px; font-weight: 600; }

.hqm-ftr__main { background: var(--hqm-blue); color: #fff; }
.hqm-ftr__main-inner { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 60px; padding: 46px 15px; }
.hqm-ftr__about { display: flex; align-items: flex-start; gap: 26px; }
.hqm-ftr__logo { width: 90px; height: 90px; flex: 0 0 auto; }
.hqm-ftr__about p { margin: 0; font-size: 15px; line-height: 1.75; color: #fff; }
.hqm-ftr__links h4 { margin: 0 0 14px; font-size: 20px; font-weight: 600; color: #fff; }
.hqm-ftr__links ul { list-style: none; margin: 0; padding: 0; }
.hqm-ftr__links a { color: #fff !important; text-decoration: none; font-size: 15px; line-height: 2.1; display: inline-block; }
.hqm-ftr__links a:hover { text-decoration: underline; }

.hqm-ftr__copy { background: #fff; color: #333; text-align: center; padding: 13px 0; font-size: 14px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  /* ---- Header: collapse to a hamburger ---- */
  .hqm-hdr { padding-top: 14px; }
  .hqm-hdr__top { flex-wrap: wrap; align-items: center; }
  .hqm-hdr__brand { margin-right: auto; }
  .hqm-hdr__brand img { width: 66px; height: 66px; }

  .hqm-hdr__toggle,
  .hqm-hdr__toggle:hover,
  .hqm-hdr__toggle:focus,
  .hqm-hdr__toggle:active {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; padding: 0;
    border: 1px solid #d8d8d8 !important; background: #fff !important;
    color: var(--hqm-blue) !important; cursor: pointer; box-shadow: none !important;
  }
  .hqm-hdr__toggle svg { width: 26px; height: 26px; }
  .hqm-hdr__toggle-close { display: none; }
  .hqm-hdr.is-open .hqm-hdr__toggle-open { display: none; }
  .hqm-hdr.is-open .hqm-hdr__toggle-close { display: block; }

  /* the panel (top-right group + nav + search) is hidden until toggled */
  .hqm-hdr__tr, .hqm-hdr__navrow { display: none; }
  .hqm-hdr.is-open .hqm-hdr__tr {
    order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap;
    align-items: center; gap: 16px 20px; margin-top: 16px;
  }
  .hqm-hdr.is-open .hqm-hdr__navrow {
    display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 8px 0 6px;
  }
  .hqm-menu { flex-direction: column; align-items: stretch; width: 100%; }
  .hqm-menu li { width: 100%; }
  .hqm-menu li + li::before { display: none; }
  .hqm-menu a { display: block; padding: 12px 0; font-size: 18px; border-top: 1px solid #eee; }
  .hqm-hdr__search { width: 100%; }
  .hqm-hdr__search input { flex: 1 1 auto; min-width: 0; }

  /* ---- Footer stacks ---- */
  .hqm-ftr__contact-inner { flex-direction: column; align-items: flex-start; gap: 22px; padding: 26px 15px; }
  .hqm-ftr__main-inner { grid-template-columns: 1fr; gap: 30px; padding: 34px 15px; }
  .hqm-ftr__about { flex-direction: column; gap: 16px; }
}
