/* HiGuppy global shell — homepage header/footer on all pages */

:root {
  --hg-navy: #082747;
  --hg-blue: #0d6f91;
  --hg-coral: #ff6b4a;
  --hg-max-w: 1160px;
}

/* Hide XStore / theme chrome when custom shell is active */
body.higuppy-site-shell #header.site-header,
body.higuppy-site-shell .header-wrapper,
body.higuppy-site-shell .site-header-vertical,
body.higuppy-site-shell .st-header,
body.higuppy-site-shell .header-desktop,
body.higuppy-site-shell .hg-nav-topbar,
body.higuppy-site-shell .hg-nav-header,
body.higuppy-site-shell header.site-header:not(.hg-nav-header),
body.higuppy-site-shell .hg-footer-wave,
body.higuppy-site-shell footer.hg-footer,
body.higuppy-site-shell .hg-footer-btt,
body.higuppy-site-shell .hg-footer-newsletter,
body.higuppy-site-shell footer.site-footer,
body.higuppy-site-shell .site-footer,
body.higuppy-site-shell .elementor-location-header,
body.higuppy-site-shell .elementor-location-footer {
  display: none !important;
}

body.higuppy-site-shell {
  overflow-x: hidden;
  background: #fff;
}

.hg-container {
  width: min(var(--hg-max-w), calc(100% - 40px));
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── NAV ─────────────────────────────────────────────────── */
.hg-nav {
  position: sticky;
  top: 10px;
  z-index: 40;
  width: min(var(--hg-max-w), calc(100% - 40px));
  margin: 14px auto 24px;
  min-height: 64px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  box-shadow: 0 10px 36px rgba(8, 39, 71, .09);
  color: var(--hg-navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

body.hg-homepage-active .hg-nav {
  margin-bottom: -76px;
}

.hg-logo,
.hg-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: inherit;
  text-decoration: none;
}

.hg-logo-img {
  display: block;
  width: auto;
  height: 42px;
  max-width: 168px;
  object-fit: contain;
}

.hg-logo-mark,
.hg-footer-logo .hg-logo-text {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #a7efff, #0d96b5);
  color: #fff;
  font-size: 18px;
}

.hg-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  font-size: 14px;
}

.hg-menu a {
  position: relative;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
}

.hg-menu a.is-active,
.hg-menu a:hover {
  color: var(--hg-coral);
}

.hg-menu a.is-active::after,
.hg-menu a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 3px;
  border-radius: 99px;
  background: var(--hg-coral);
}

.hg-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hg-action-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--hg-navy);
  cursor: pointer;
  text-decoration: none;
}

.hg-actions span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--hg-coral);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.hg-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--hg-navy);
  font-size: 24px;
  cursor: pointer;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.hg-site-footer {
  margin-top: 56px;
  padding: 48px 0 20px;
  background: linear-gradient(135deg, #0b3d5c, #082747 70%);
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.hg-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.hg-site-footer p {
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.hg-site-footer h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.hg-site-footer .hg-footer-grid a {
  display: block;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease;
}

.hg-site-footer .hg-footer-grid a:hover {
  color: #fff;
}

.hg-footer-logo {
  color: #fff !important;
  margin-bottom: 14px !important;
}

.hg-social {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.hg-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.hg-footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px 32px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

.hg-footer-copy {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .95);
  font-weight: 700;
}

.hg-footer-note {
  font-size: 12px;
  max-width: 38ch;
}

.hg-footer-bottom-col--links {
  text-align: right;
}

.hg-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  margin: 0 0 10px;
}

.hg-footer-legal a {
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.hg-footer-trust {
  font-size: 11px;
  color: rgba(255, 255, 255, .62);
}

/* ─── SEARCH ─────────────────────────────────────────────── */
.hg-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: start center;
  padding: calc(88px + var(--wp-admin--admin-bar--height, 0px)) 20px 20px;
  background: rgba(8, 36, 71, 0.42);
  backdrop-filter: blur(4px);
}

.hg-search-overlay[hidden] {
  display: none !important;
}

body.hg-search-open {
  overflow: hidden;
}

.hg-search-dialog {
  width: min(560px, 100%);
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(8, 39, 71, 0.18);
}

.hg-search-close {
  float: right;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 39, 71, 0.06);
  color: #082747;
  font-size: 24px;
  cursor: pointer;
}

.hg-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 8px;
}

.hg-search-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(8, 39, 71, 0.12);
  border-radius: 999px;
  padding: 0 18px;
  color: #082747;
  font-size: 15px;
}

.hg-search-form button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #ff6b4a;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* ─── BACK TO TOP ────────────────────────────────────────── */
.hg-back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--hg-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(8, 39, 71, .15);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.hg-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.hg-back-top:hover {
  transform: translateY(-2px);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hg-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    border-radius: 22px;
  }

  .hg-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hg-actions {
    margin-left: auto;
  }

  .hg-menu {
    display: none;
    width: 100%;
    padding: 0 0 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hg-nav.is-open .hg-menu {
    display: flex;
  }

  .hg-menu a {
    padding: 8px 0;
  }

  .hg-menu a::after {
    display: none;
  }

  .hg-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .hg-container,
  .hg-nav {
    width: min(100% - 20px, var(--hg-max-w));
  }

  .hg-footer-grid,
  .hg-footer-bottom {
    grid-template-columns: 1fr;
  }

  .hg-footer-bottom-col--links,
  .hg-footer-legal {
    text-align: left;
    justify-content: flex-start;
  }

  .hg-logo-img {
    height: 36px;
    max-width: 148px;
  }

  .hg-site-footer {
    padding: 36px 0 16px;
  }
}
