/* HawaiiGuide global footer — 2026 platform redesign.
   Scoped to .hg-footer* so legacy and tool-specific footer rules remain intact. */

:root {
  --hg-footer-ink: #f7f8f2;
  --hg-footer-muted: #a9bcb5;
  --hg-footer-line: rgba(255, 255, 255, 0.13);
  --hg-footer-green: #37c98b;
  --hg-footer-gold: #f0c41a;
  --hg-footer-deep: #071b1a;
  --hg-footer-panel: rgba(255, 255, 255, 0.065);
}

.hg-footer-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hg-footer-eyebrow {
  display: block;
  margin: 0 0 8px;
  color: var(--hg-footer-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Island rail */
.social-bar.hg-footer-islands {
  display: block;
  float: none;
  width: 100%;
  padding: 38px 0 30px;
  background: #f2f4ef;
  color: #10231f;
}

.hg-footer-islands__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.hg-footer-islands__heading .hg-footer-eyebrow {
  color: #447067;
  margin: 0 0 4px;
}

.hg-footer-islands__heading h2 {
  margin: 0;
  color: #10231f;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.025em;
}

.hg-footer-islands__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.social-bar.hg-footer-islands .hg-footer-island {
  --island-color: #24695c;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  min-height: 82px;
  padding: 16px 18px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.22), transparent 45%),
    var(--island-color);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(21, 45, 39, 0.12);
  text-align: left;
  text-decoration: none;
  transform: translateY(0);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.social-bar.hg-footer-islands .hg-footer-island:hover,
.social-bar.hg-footer-islands .hg-footer-island:focus-visible {
  color: #fff;
  box-shadow: 0 16px 30px rgba(21, 45, 39, 0.2);
  transform: translateY(-3px);
}

.hg-footer-island--kauai { --island-color: #745a89 !important; }
.hg-footer-island--oahu { --island-color: #27698d !important; }
.hg-footer-island--maui { --island-color: #a7465b !important; }
.hg-footer-island--big-island { --island-color: #a9572e !important; }

.social-bar.hg-footer-islands .hg-footer-island > i:first-child {
  font-size: 30px;
  opacity: 0.92;
}

.social-bar.hg-footer-islands .hg-footer-island > i:last-child {
  font-size: 20px;
  opacity: 0.7;
  transition: transform 180ms ease;
}

.social-bar.hg-footer-islands .hg-footer-island:hover > i:last-child,
.social-bar.hg-footer-islands .hg-footer-island:focus-visible > i:last-child {
  transform: translateX(3px);
}

.social-bar.hg-footer-islands .hg-footer-island span {
  color: #fff;
  font-family: 'brother-1816-printed', 'Proxima', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

/* Footer foundation */
footer.hg-footer {
  display: block;
  width: 100%;
  margin: 0;
  padding: 72px 0 32px;
  overflow: hidden;
  position: relative;
  color: var(--hg-footer-ink);
  background:
    linear-gradient(145deg, rgba(15, 61, 53, 0.78), transparent 44%),
    var(--hg-footer-deep);
  box-sizing: border-box;
}

footer.hg-footer::before {
  content: "";
  display: block;
  width: 100%;
  height: 5px;
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(90deg, #745a89 0 25%, #27698d 25% 50%, #a7465b 50% 75%, #a9572e 75%);
}

footer.hg-footer::after {
  content: "HG";
  display: block;
  position: absolute;
  right: -45px;
  bottom: -70px;
  color: rgba(255, 255, 255, 0.022);
  font-family: 'brother-1816-printed', 'Proxima', sans-serif;
  font-size: clamp(220px, 28vw, 430px);
  font-weight: 900;
  letter-spacing: -0.12em;
  line-height: 0.8;
  pointer-events: none;
}

.hg-footer__glow {
  width: 430px;
  height: 430px;
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.15;
  pointer-events: none;
}

.hg-footer__glow--one {
  top: -260px;
  left: -180px;
  background: #37c98b;
}

.hg-footer__glow--two {
  top: 260px;
  right: -300px;
  background: #27698d;
}

footer.hg-footer a {
  color: inherit;
}

footer.hg-footer a:hover {
  color: var(--hg-footer-ink);
}

/* Hero */
.hg-footer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
}

.hg-footer-logo {
  display: block;
  width: min(100%, 390px);
  border: 0;
  text-decoration: none;
}

.hg-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
}

.hg-footer-identity > p {
  max-width: 590px;
  margin: 22px 0;
  color: #c2d0cb;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}

.hg-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hg-footer-social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #d7e2de !important;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--hg-footer-line);
  border-radius: 12px;
  font-size: 20px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hg-footer-social a:hover,
.hg-footer-social a:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.hg-footer-start {
  padding: clamp(26px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(7, 27, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.2);
}

footer.hg-footer .hg-footer-start h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.1vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hg-footer-start > p {
  margin: 16px 0 24px;
  color: #c2d0cb;
  font-size: 17px;
  line-height: 1.5;
}

.hg-footer-start__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

footer.hg-footer .hg-footer-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

footer.hg-footer .hg-footer-button:hover,
footer.hg-footer .hg-footer-button:focus-visible {
  transform: translateY(-2px);
}

footer.hg-footer .hg-footer-button--primary {
  color: #0a2922;
  background: var(--hg-footer-gold);
  box-shadow: 0 8px 24px rgba(240, 196, 26, 0.16);
}

footer.hg-footer .hg-footer-button--primary:hover,
footer.hg-footer .hg-footer-button--primary:focus-visible {
  color: #0a2922;
  background: #f8d75a;
}

footer.hg-footer .hg-footer-button--secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

footer.hg-footer .hg-footer-button--secondary:hover,
footer.hg-footer .hg-footer-button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

/* Search */
.hg-footer-search {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 58px 0 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--hg-footer-line);
  border-radius: 20px;
}

.hg-footer-search > label {
  color: #fff;
  font-family: 'brother-1816-printed', 'Proxima', sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.hg-footer-search__field {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  height: 54px;
  padding-left: 18px;
  overflow: hidden;
  color: #466158;
  background: #fff;
  border-radius: 14px;
}

.hg-footer-search__field > i {
  font-size: 18px;
}

footer.hg-footer .hg-footer-search__field input {
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 12px;
  color: #14231f;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 16px;
}

footer.hg-footer .hg-footer-search__field input:focus {
  outline: 0;
}

footer.hg-footer .hg-footer-search__field button {
  align-self: stretch;
  padding: 0 22px;
  color: #fff;
  background: #17694f;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease;
}

footer.hg-footer .hg-footer-search__field button:hover,
footer.hg-footer .hg-footer-search__field button:focus-visible {
  background: #0e503c;
}

/* Navigation */
.hg-footer-nav {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.25fr 1.1fr;
  gap: clamp(26px, 4vw, 58px);
  margin-top: 68px;
  padding-top: 58px;
  border-top: 1px solid var(--hg-footer-line);
}

.hg-footer-nav__group {
  min-width: 0;
}

footer.hg-footer .hg-footer-nav__group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: none;
}

.hg-footer-nav__group h2 span {
  color: var(--hg-footer-green);
  font-family: 'Proxima', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
}

footer.hg-footer .hg-footer-nav__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

footer.hg-footer .hg-footer-nav__group li {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.35;
}

footer.hg-footer .hg-footer-nav__group li + li {
  margin-top: 10px;
}

footer.hg-footer .hg-footer-nav__group a {
  display: inline;
  color: var(--hg-footer-muted);
  text-decoration: none;
  text-underline-offset: 3px;
}

footer.hg-footer .hg-footer-nav__group a:hover,
footer.hg-footer .hg-footer-nav__group a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.hg-footer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 50px 0;
  padding: 22px 0;
  border-top: 1px solid var(--hg-footer-line);
  border-bottom: 1px solid var(--hg-footer-line);
}

footer.hg-footer .hg-footer-tools a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: #c2d0cb;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

footer.hg-footer .hg-footer-tools a:hover,
footer.hg-footer .hg-footer-tools a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.hg-footer-tools i {
  color: var(--hg-footer-green);
}

/* Trust and legal */
.hg-footer-trust {
  display: grid;
  grid-template-columns: minmax(270px, 0.75fr) minmax(0, 1.25fr);
  gap: 50px;
  align-items: center;
}

footer.hg-footer .hg-footer-trust__copy h2 {
  margin: 0;
  color: #fff;
  font-size: 27px;
}

.hg-footer-trust__copy p {
  margin: 13px 0;
  color: var(--hg-footer-muted);
  font-size: 15px;
  line-height: 1.55;
}

.hg-footer-trust__copy strong {
  color: #e7eeeb;
}

footer.hg-footer .hg-footer-trust__copy > a {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

footer.hg-footer .hg-footer-trust__copy > a:hover,
footer.hg-footer .hg-footer-trust__copy > a:focus-visible {
  color: var(--hg-footer-gold);
}

.hg-footer-trust__marks {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.65fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.hg-footer-trust__mark,
.hg-footer-trust__award {
  display: flex;
  min-width: 0;
  min-height: 104px;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
}

.hg-footer-trust__award {
  text-decoration: none;
}

.hg-footer-trust__mark img,
.hg-footer-trust__award img {
  display: block;
  max-width: 100%;
  max-height: 76px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

.hg-footer-trust__award img {
  max-height: 70px;
}

.hg-footer-trust__mark--square img {
  max-height: 72px;
}

.hg-footer-bottom {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 50px;
  padding-top: 32px;
  border-top: 1px solid var(--hg-footer-line);
}

.hg-footer-intelligence {
  display: block;
  width: 96px;
  border: 0;
  border-radius: 18px;
  text-decoration: none;
}

.hg-footer-intelligence img {
  display: block;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 18px;
  font-size: 0;
}

.hg-footer-legal {
  color: #81958e;
}

.hg-footer-legal p {
  margin: 3px 0;
  color: inherit;
  font-size: 11px;
  line-height: 1.45;
}

.hg-footer-legal .hg-footer-legal__copyright {
  margin-bottom: 7px;
  color: #bccac5;
  font-size: 13px;
}

.hg-footer-legal__copyright strong {
  color: #fff;
}

.hg-footer-legal .hg-footer-made {
  margin-top: 10px;
  color: #8faaa0;
  font-size: 13px;
  font-style: italic;
}

.hg-footer-made .fa-heart {
  color: #ec5963;
}

@media (max-width: 1024px) {
  .hg-footer-shell {
    width: min(100% - 36px, 920px);
  }

  .hg-footer-islands__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hg-footer-hero {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .hg-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 64px;
  }

  .hg-footer-trust {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .hg-footer-shell {
    width: min(100% - 28px, 620px);
  }

  .social-bar.hg-footer-islands {
    padding: 30px 0 24px;
  }

  .hg-footer-islands__heading {
    display: block;
  }

  .social-bar.hg-footer-islands .hg-footer-island {
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    min-height: 68px;
    padding: 12px 14px;
    border-radius: 15px;
  }

  .social-bar.hg-footer-islands .hg-footer-island > i:first-child {
    font-size: 25px;
  }

  .social-bar.hg-footer-islands .hg-footer-island span {
    font-size: 16px;
  }

  footer.hg-footer {
    padding-top: 50px;
  }

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

  .hg-footer-logo {
    width: min(100%, 330px);
  }

  .hg-footer-start {
    margin-top: 8px;
  }

  .hg-footer-search {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 36px;
    padding: 16px;
  }

  .hg-footer-nav {
    gap: 38px 28px;
    margin-top: 48px;
    padding-top: 42px;
  }

  .hg-footer-tools {
    margin: 40px 0;
  }

  .hg-footer-trust__marks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hg-footer-bottom {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 18px;
  }

  .hg-footer-intelligence,
  .hg-footer-intelligence img {
    width: 68px;
    height: 68px;
    border-radius: 13px;
  }
}

@media (max-width: 350px) {
  .hg-footer-islands__grid {
    gap: 8px;
  }

  .social-bar.hg-footer-islands .hg-footer-island {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 64px;
    padding: 10px 12px;
  }

  .social-bar.hg-footer-islands .hg-footer-island > i:first-child {
    font-size: 22px;
  }

  .social-bar.hg-footer-islands .hg-footer-island > i:last-child {
    display: none;
  }

  .social-bar.hg-footer-islands .hg-footer-island span {
    font-size: 14px;
  }

  .hg-footer-start__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  footer.hg-footer .hg-footer-button {
    width: 100%;
  }

  .hg-footer-search__field {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 0 12px;
  }

  footer.hg-footer .hg-footer-search__field button {
    grid-column: 1 / -1;
    height: 46px;
    margin: 0 -12px;
  }

  .hg-footer-search__field {
    height: auto;
  }

  footer.hg-footer .hg-footer-search__field input {
    height: 50px;
    padding-right: 0;
    font-size: 15px;
  }

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

  .hg-footer-tools {
    gap: 6px;
  }

  footer.hg-footer .hg-footer-tools a {
    font-size: 12px;
  }

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

  .hg-footer-intelligence {
    width: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-footer-island,
  .hg-footer-island > i,
  .hg-footer-social a,
  .hg-footer-button {
    transition: none !important;
  }
}
