/* ══════════════════════════════════════════════════════════════
   HIND GROUP – SHARED HEADER / FOOTER / SEARCH
   Used by includes/header.php and includes/footer.php on every page.
   Everything is scoped to #hgHeader / #hgFooter and uses hg- class
   names so the per-page styles can't break it (and vice-versa).
   Sizes are in px on purpose: pages use different root font sizes.
══════════════════════════════════════════════════════════════ */
:root { --hg-h: 72px; }
@media (max-width: 768px) { :root { --hg-h: 64px; } }

#hgHeader, #hgFooter, .hg-search-overlay {
  --hg-navy: #0a2a4a;
  --hg-navy2: #071d35;
  --hg-blue2: #1565c0;
  --hg-orange: #f97316;
  --hg-orange2: #fb923c;
  --hg-gold: #f9c74f;
  --hg-font-h: 'Syne', sans-serif;
  --hg-font-b: 'DM Sans', sans-serif;
  --hg-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Defensive reset – neutralises generic page rules such as `nav ul li a {…}` */
#hgHeader *, #hgFooter * {
  box-sizing: border-box; margin: 0; padding: 0; border: 0;
  float: none; list-style: none; text-decoration: none; text-transform: none;
  letter-spacing: normal; text-shadow: none; max-width: none; min-width: 0;
  background: none; box-shadow: none; filter: none; transform: none; opacity: 1;
  color: inherit; text-align: inherit;
}
/* icons (<i class="fa-…">) keep the Font Awesome font */
#hgHeader :not(i), #hgFooter :not(i) { font: inherit; line-height: inherit; }
#hgHeader :is(a, li, ul, nav, div, span, button, p, address, h2)::before,
#hgHeader :is(a, li, ul, nav, div, span, button, p, address, h2)::after,
#hgFooter :is(a, li, ul, nav, div, span, button, p, address, h2)::before,
#hgFooter :is(a, li, ul, nav, div, span, button, p, address, h2)::after { content: none; }
#hgHeader img, #hgFooter img { display: block; max-width: 100%; border-radius: 0; }
#hgHeader i, #hgFooter i { font-style: normal; }
#hgHeader button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* ═════════════ HEADER ═════════════ */
#hgHeader {
  display: block; position: fixed; top: 0; left: 0; right: 0; width: auto; height: auto;
  margin: 0; padding: 0; z-index: 1000; transform: none; opacity: 1; visibility: visible;
  background: #0a2a4a; border: 0; border-bottom: 2px solid var(--hg-orange);
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible;
  font-family: var(--hg-font-b); font-size: 14px; font-weight: 400; line-height: 1.4; color: #fff; text-align: left;
  letter-spacing: normal; text-transform: none;
  transition: background .4s ease, box-shadow .4s ease;
}
#hgHeader.hg-header--sticky { position: sticky; position: -webkit-sticky; }
#hgHeader.is-scrolled {
  background: rgba(10, 42, 74, .96);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 32px rgba(0, 0, 0, .5), 0 1px 0 rgba(249, 115, 22, .2);
}
#hgHeader .hg-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 0;
  max-width: 1360px; height: 70px; margin: 0 auto; padding: 0 24px; position: relative;
}

/* Logo */
#hgHeader .hg-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; color: #fff; }
#hgHeader .hg-logo__img {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  background: rgba(255, 255, 255, .08); border: 2px solid rgba(249, 115, 22, .4);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
#hgHeader .hg-logo:hover .hg-logo__img { transform: scale(1.07); border-color: var(--hg-orange); box-shadow: 0 0 18px rgba(249, 115, 22, .4); }
#hgHeader .hg-logo__img img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
#hgHeader .hg-logo__text { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
#hgHeader .hg-logo__name { display: block; font-family: var(--hg-font-h); font-size: 20px; font-weight: 800; letter-spacing: 1.5px; color: #fff; }
#hgHeader .hg-logo__name span { color: var(--hg-orange); }
#hgHeader .hg-logo__tag { display: block; margin-top: 3px; font-size: 8.5px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255, 255, 255, .45); }

/* Desktop menu */
#hgHeader .hg-nav { display: flex; flex: 1; justify-content: flex-end; position: static; width: auto; height: auto; background: none; }
#hgHeader .hg-nav__list { display: flex; align-items: center; gap: 2px; position: static; flex-direction: row; width: auto; height: auto; background: none; }
#hgHeader .hg-nav__item { display: block; position: relative; width: auto; }
#hgHeader .hg-nav__link {
  display: block; position: relative; padding: 8px 13px; border-radius: 7px; white-space: nowrap;
  font-size: 12.3px; font-weight: 500; letter-spacing: .03em; color: rgba(255, 255, 255, .85);
  transition: color .2s, background .2s;
}
#hgHeader .hg-nav__link::after {
  content: ''; position: absolute; bottom: 3px; left: 13px; right: 13px; height: 1.5px;
  background: var(--hg-orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform .25s var(--hg-ease);
}
#hgHeader .hg-nav__item:hover > .hg-nav__link,
#hgHeader .hg-nav__item.is-active > .hg-nav__link { color: #fff; }
#hgHeader .hg-nav__item:hover > .hg-nav__link::after,
#hgHeader .hg-nav__item.is-active > .hg-nav__link::after { transform: scaleX(1); }
#hgHeader .has-drop > .hg-nav__link { padding-right: 24px; }
#hgHeader .has-drop > .hg-nav__link::before {
  content: '\f078'; position: absolute; right: 10px; top: 50%; margin-top: -5px;
  font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 8px; line-height: 10px; opacity: .5;
  transition: transform .25s, opacity .25s, color .25s;
}
#hgHeader .has-drop:hover > .hg-nav__link::before,
#hgHeader .has-drop.is-open > .hg-nav__link::before { transform: rotate(180deg); opacity: 1; color: var(--hg-orange); }

#hgHeader .hg-drop {
  display: none; position: absolute; top: 100%; left: 0; min-width: 236px;
  padding-top: 10px; z-index: 2000; pointer-events: none;
}
#hgHeader .hg-nav__item:nth-last-child(-n+3) > .hg-drop { left: auto; right: 0; }
#hgHeader .has-drop:hover > .hg-drop,
#hgHeader .has-drop:focus-within > .hg-drop,
#hgHeader .has-drop.is-open > .hg-drop { display: block; pointer-events: auto; }
#hgHeader .hg-drop__inner {
  display: block; padding: 6px 0; border-radius: 12px; background: rgba(10, 42, 74, .98);
  box-shadow: 0 20px 56px rgba(0, 0, 0, .5), 0 0 0 1px rgba(249, 115, 22, .15);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  animation: hgDropFade .12s ease;
}
@keyframes hgDropFade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
#hgHeader .hg-drop a {
  display: block; padding: 9px 18px; white-space: nowrap; font-size: 13.1px; line-height: 1.4;
  color: rgba(255, 255, 255, .65); border-left: 2px solid transparent;
  transition: background .15s, color .15s, padding-left .15s, border-color .15s;
}
#hgHeader .hg-drop a:hover,
#hgHeader .hg-drop a:focus-visible { background: rgba(249, 115, 22, .1); color: var(--hg-orange2); border-left-color: var(--hg-orange); padding-left: 22px; }
#hgHeader .hg-drop a.is-current { color: var(--hg-orange2); border-left-color: var(--hg-orange); }

/* Burger */
#hgHeader .hg-burger {
  display: none; align-items: center; justify-content: center; flex-shrink: 0;
  min-width: 44px; min-height: 44px; margin-left: 8px; padding: 9px 13px; border-radius: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; font-size: 16px; transition: background .2s, border-color .2s;
}
#hgHeader .hg-burger:hover { background: rgba(249, 115, 22, .2); border-color: rgba(249, 115, 22, .4); }

/* Mobile menu */
#hgHeader .hg-mnav {
  display: none; position: absolute; top: 70px; left: 0; right: 0; z-index: 999;
  max-height: calc(100vh - 72px); max-height: calc(100svh - 72px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: rgba(10, 42, 74, .99); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-top: 1px solid rgba(249, 115, 22, .15); box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
}
#hgHeader .hg-mnav.is-open { display: block; animation: hgDropFade .2s ease; }
#hgHeader .hg-mnav__item { display: block; border-bottom: 1px solid rgba(255, 255, 255, .06); }
#hgHeader .hg-mnav__row { display: flex; align-items: stretch; }
#hgHeader .hg-mnav__row > a,
#hgHeader .hg-mnav__item--simple > a {
  display: flex; align-items: center; flex: 1; min-height: 52px; padding: 16px 20px;
  font-size: 14.7px; font-weight: 500; color: rgba(255, 255, 255, .85); transition: color .2s;
}
#hgHeader .hg-mnav__item.is-active > .hg-mnav__row > a,
#hgHeader .hg-mnav__item--simple.is-active > a,
#hgHeader .hg-mnav__row > a:hover,
#hgHeader .hg-mnav__item--simple > a:hover,
#hgHeader .hg-mnav__item--cta > a { color: var(--hg-orange); }
#hgHeader .hg-mnav__item--cta > a { font-weight: 700; }
#hgHeader .hg-mnav__toggle {
  display: flex; align-items: center; justify-content: center; min-width: 52px; min-height: 52px; padding: 0 18px;
  border-left: 1px solid rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .4); font-size: 11px;
  transition: transform .25s, color .2s;
}
#hgHeader .hg-mnav__toggle.is-open { transform: rotate(180deg); color: var(--hg-orange); }
#hgHeader .hg-mnav__sub { display: block; max-height: 0; overflow: hidden; opacity: 0; background: rgba(0, 0, 0, .2); transition: max-height .4s ease, opacity .3s ease; }
#hgHeader .hg-mnav__sub.is-open { max-height: 640px; opacity: 1; }
#hgHeader .hg-mnav__sub a {
  display: flex; align-items: center; min-height: 44px; padding: 13px 20px 13px 36px;
  font-size: 13.6px; color: rgba(255, 255, 255, .55); transition: color .2s;
}
#hgHeader .hg-mnav__sub a:hover,
#hgHeader .hg-mnav__sub a.is-current { color: var(--hg-orange); }

/* ═════════════ SEARCH ═════════════ */
#hgHeader .hg-search { display: block; position: relative; flex-shrink: 0; margin-left: 14px; }
#hgHeader .hg-search__toggle {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 14.4px;
  transition: background .25s, border-color .25s, transform .25s;
}
#hgHeader .hg-search__toggle:hover,
#hgHeader .hg-search__toggle.is-active { background: var(--hg-orange); border-color: var(--hg-orange); }
#hgHeader .hg-search__toggle:hover { transform: scale(1.06); }
#hgHeader .hg-search__panel {
  display: block; position: absolute; top: calc(100% + 14px); right: 0; z-index: 1999;
  width: 420px; max-width: calc(100vw - 40px); padding: 14px; border-radius: 16px;
  background: rgba(10, 42, 74, .99); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(249, 115, 22, .2); box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); pointer-events: none;
  transition: opacity .25s var(--hg-ease), transform .25s var(--hg-ease), visibility .25s;
}
#hgHeader .hg-search__panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
#hgHeader .hg-search__box {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 255, 255, .14); transition: border-color .2s;
}
#hgHeader .hg-search__box:focus-within { border-color: var(--hg-orange); }
#hgHeader .hg-search__icon { flex-shrink: 0; color: rgba(255, 255, 255, .4); font-size: 13.6px; }
#hgHeader .hg-search__box input {
  flex: 1; width: 100%; min-width: 0; height: auto; padding: 0; border: 0; outline: 0; background: none; box-shadow: none;
  -webkit-appearance: none; appearance: none; color: #fff; font-family: var(--hg-font-b); font-size: 14px;
}
#hgHeader .hg-search__box input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
#hgHeader .hg-search__box input::placeholder { color: rgba(255, 255, 255, .35); }
#hgHeader .hg-search__clear { display: none; flex-shrink: 0; padding: 4px; color: rgba(255, 255, 255, .4); font-size: 12.8px; }
#hgHeader .hg-search__clear.is-visible { display: block; }
#hgHeader .hg-search__clear:hover { color: var(--hg-orange2); }
#hgHeader .hg-search__results { display: block; max-height: 400px; overflow-y: auto; margin-top: 10px; }
#hgHeader .hg-search__results::-webkit-scrollbar { width: 4px; }
#hgHeader .hg-search__results::-webkit-scrollbar-thumb { background: rgba(249, 115, 22, .4); border-radius: 4px; }
#hgHeader .hg-sr-label { display: block; padding: 8px 10px 4px; font-size: 9.9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hg-orange2); }
#hgHeader .hg-sr-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; transition: background .15s; color: #fff; }
#hgHeader .hg-sr-item:hover, #hgHeader .hg-sr-item.is-active { background: rgba(249, 115, 22, .12); }
#hgHeader .hg-sr-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  background: rgba(249, 115, 22, .12); border: 1px solid rgba(249, 115, 22, .2); color: var(--hg-orange2); font-size: 12.8px;
}
#hgHeader .hg-sr-text { display: block; min-width: 0; }
#hgHeader .hg-sr-title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.3px; font-weight: 600; color: #fff; }
#hgHeader .hg-sr-title mark { background: none; color: var(--hg-orange2); font-weight: 800; }
#hgHeader .hg-sr-cat { display: block; margin-top: 1px; font-size: 10.9px; color: rgba(255, 255, 255, .4); }
#hgHeader .hg-sr-empty, #hgHeader .hg-sr-hint { display: block; padding: 26px 10px; text-align: center; font-size: 12.8px; color: rgba(255, 255, 255, .4); }
#hgHeader .hg-sr-empty i, #hgHeader .hg-sr-hint i { display: block; margin-bottom: 8px; font-size: 22px; opacity: .4; }

.hg-search-overlay {
  position: fixed; inset: 0; z-index: 999; background: rgba(4, 10, 20, .55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.hg-search-overlay.is-visible { opacity: 1; pointer-events: auto; }

/* ═════════════ FOOTER ═════════════ */
#hgFooter {
  display: block; position: relative; width: auto; height: auto; margin: 0; padding: 0; z-index: 1;
  transform: none; opacity: 1; visibility: visible; clear: both;
  background: linear-gradient(180deg, #0a2a4a 0%, #071d35 100%);
  border: 0; border-top: 2px solid var(--hg-orange); box-shadow: none;
  font-family: var(--hg-font-b); font-size: 13px; font-weight: 400; line-height: 1.6; color: #fff; text-align: left;
}
#hgFooter .hg-footer__top {
  display: grid; grid-template-columns: 1.7fr 1fr 1.2fr 1.2fr 1.2fr; gap: 36px;
  max-width: 1280px; margin: 0 auto; padding: 60px 24px 40px;
}
#hgFooter .hg-fcol { display: block; min-width: 0; }
#hgFooter .hg-fcol__title {
  display: block; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--hg-font-h); font-size: 14px; font-weight: 700; line-height: 1.4; color: #fff;
}
#hgFooter .hg-fcol p { display: block; margin-bottom: 6px; font-size: 12.8px; line-height: 1.85; color: rgba(255, 255, 255, .5); }
#hgFooter address { display: block; font-style: normal; }
#hgFooter address p { display: flex; gap: 8px; align-items: flex-start; }
#hgFooter address i, #hgFooter .hg-fhours i { flex-shrink: 0; width: 14px; margin-top: 6px; color: var(--hg-orange); opacity: .85; font-size: 12px; }
#hgFooter address a { color: rgba(255, 255, 255, .5); word-break: break-word; transition: color .2s; }
#hgFooter address a:hover { color: var(--hg-orange2); }
#hgFooter .hg-fhours { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 12px; font-weight: 700; color: rgba(255, 255, 255, .85); }
#hgFooter .hg-fhours span { display: block; width: 100%; padding-left: 22px; font-weight: 400; color: rgba(255, 255, 255, .45); }
#hgFooter .hg-fcol ul { display: flex; flex-direction: column; gap: 2px; }
#hgFooter .hg-fcol li { display: block; }
#hgFooter .hg-fcol ul a {
  display: flex; align-items: center; gap: 6px; min-height: 30px;
  font-size: 12.8px; color: rgba(255, 255, 255, .5); transition: color .2s, padding-left .2s;
}
#hgFooter .hg-fcol ul a::before {
  content: '→'; font-size: 10.9px; color: var(--hg-orange); opacity: 0; transform: translateX(-5px);
  transition: opacity .2s, transform .2s;
}
#hgFooter .hg-fcol ul a:hover { color: var(--hg-orange2); padding-left: 4px; }
#hgFooter .hg-fcol ul a:hover::before { opacity: 1; transform: translateX(0); }

#hgFooter .hg-flogo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #fff; }
#hgFooter .hg-flogo__img {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 54px; height: 54px; border-radius: 50%; overflow: hidden;
  background: rgba(255, 255, 255, .08); border: 2px solid rgba(249, 115, 22, .4);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
#hgFooter .hg-flogo:hover .hg-flogo__img { transform: scale(1.07); border-color: var(--hg-orange); box-shadow: 0 0 18px rgba(249, 115, 22, .4); }
#hgFooter .hg-flogo__img img { width: 100%; height: 100%; object-fit: contain; }
#hgFooter .hg-flogo__text { display: block; }
#hgFooter .hg-flogo__name { display: block; font-family: var(--hg-font-h); font-size: 16.8px; font-weight: 800; letter-spacing: 1px; line-height: 1.2; color: #fff; }
#hgFooter .hg-flogo__name span { color: var(--hg-orange); }
#hgFooter .hg-flogo__tag { display: block; margin-top: 2px; font-size: 8px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255, 255, 255, .4); }

#hgFooter .hg-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#hgFooter .hg-social a {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  font-size: 13.6px; color: rgba(255, 255, 255, .5); transition: all .2s;
}
#hgFooter .hg-social a:hover { background: var(--hg-orange); border-color: var(--hg-orange); color: #fff; transform: translateY(-3px); box-shadow: 0 6px 18px rgba(249, 115, 22, .4); }

#hgFooter .hg-footer__bar { display: block; background: #071d35; border-top: 1px solid rgba(249, 115, 22, .08); }
#hgFooter .hg-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  max-width: 1280px; margin: 0 auto; padding: 16px 24px;
  font-size: 11.7px; color: rgba(255, 255, 255, .35);
}
#hgFooter .hg-footer__bottom a { color: rgba(255, 255, 255, .45); transition: color .2s; }
#hgFooter .hg-footer__bottom a:hover { color: var(--hg-orange); }

/* ═════════════ RESPONSIVE ═════════════ */
@media (max-width: 1180px) {
  #hgFooter .hg-footer__top { grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
  #hgFooter .hg-fcol--brand { grid-column: 1 / -1; max-width: 560px; }
}
@media (max-width: 1100px) {
  #hgHeader .hg-nav__link { padding: 8px 10px; font-size: 12px; }
  #hgHeader .has-drop > .hg-nav__link { padding-right: 20px; }
  #hgHeader .has-drop > .hg-nav__link::before { right: 7px; }
}
@media (max-width: 1024px) {
  #hgHeader .hg-nav { display: none; }
  #hgHeader .hg-burger { display: flex; }
  #hgHeader .hg-header__inner { justify-content: flex-start; }
  #hgHeader .hg-search { margin-left: auto; }
  #hgHeader .hg-search__panel { right: -60px; width: calc(100vw - 32px); max-width: 420px; }
}
@media (max-width: 768px) {
  #hgHeader .hg-header__inner { height: 62px; padding: 0 14px; }
  #hgHeader .hg-mnav { top: 62px; max-height: calc(100vh - 64px); max-height: calc(100svh - 64px); }
  #hgHeader .hg-logo__img { width: 42px; height: 42px; }
  #hgHeader .hg-logo__name { font-size: 16px; }
  #hgHeader .hg-logo__tag { display: none; }
  #hgFooter .hg-footer__top { grid-template-columns: 1fr 1fr; gap: 26px 20px; padding: 40px 16px 28px; }
  #hgFooter .hg-footer__bottom { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
}
@media (max-width: 480px) {
  #hgHeader .hg-search__toggle { width: 36px; height: 36px; font-size: 13px; }
  #hgHeader .hg-search__panel { position: fixed; top: 72px; left: 12px; right: 12px; width: auto; max-width: none; }
  #hgFooter .hg-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  @supports (padding: max(0px)) {
    #hgHeader .hg-header__inner { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  }
}
@media (prefers-reduced-motion: reduce) {
  #hgHeader *, #hgFooter * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
