/*
 * Homesick global shell
 * Shared page chrome for Home, Life, Business and Adventure.
 */

:root {
  --hs-shell-paper: #f6f0e4;
  --hs-shell-ink: #382447;
  --hs-shell-deep: #25162f;
  --hs-shell-accent: #f1ce64;
  --hs-shell-width: 1240px;
}

body.home-v13 { --hs-shell-accent: #f1ce64; }
body.theme-life { --hs-shell-accent: #a8dfc2; }
body.theme-business { --hs-shell-accent: #8fb3eb; }
body.adventure-hub-unified { --hs-shell-accent: #f1ce64; }
body.theme-about { --hs-shell-accent: #c7a9d8; }

.hs-global-header .hs-global-links .hs-global-link[aria-current="page"] {
  background: color-mix(in srgb, var(--hs-shell-accent) 20%, transparent) !important;
  box-shadow: inset 0 -3px 0 var(--hs-shell-accent) !important;
}

.hs-global-header .hs-global-whatsapp {
  box-shadow: 3px 3px 0 var(--hs-shell-accent);
}

.hs-global-header a:focus-visible,
.hs-global-header button:focus-visible,
.hs-global-footer a:focus-visible,
.hs-global-mobile-whatsapp:focus-visible {
  outline: 3px solid var(--hs-shell-accent);
  outline-offset: 3px;
}

.hs-global-footer.site-footer,
.hs-global-footer.footer {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 56px 0 28px;
  color: #fff;
  background-color: var(--hs-shell-deep);
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, .055) 0 1px, transparent 1.6px),
    linear-gradient(135deg, rgba(255, 255, 255, .025), transparent 45%);
  background-size: 33px 31px, auto;
  border: 0;
  border-top: 6px solid var(--hs-shell-accent);
  font-family: Arial, Helvetica, sans-serif;
}

.hs-global-footer *,
.hs-global-footer *::before,
.hs-global-footer *::after {
  box-sizing: border-box;
}

.hs-global-footer .footer-grid,
.hs-global-footer .footer-bottom {
  width: min(var(--hs-shell-width), calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.hs-global-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(130px, .55fr));
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}

.hs-global-footer .footer-brand img {
  display: block;
  width: 146px;
  height: auto;
  filter: brightness(0) invert(1);
}

.hs-global-footer .footer-brand p {
  max-width: 340px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .66);
  font-size: 15px;
  line-height: 1.55;
}

.hs-global-footer .footer-column h3 {
  margin: 3px 0 15px;
  color: var(--hs-shell-accent);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hs-global-footer .footer-column a {
  display: block;
  width: fit-content;
  padding: 6px 0;
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.hs-global-footer .footer-column a:hover {
  color: #fff;
}

.hs-global-footer .footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, .45);
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px;
  line-height: 1.4;
}

.hs-global-mobile-whatsapp {
  display: none;
}

@media (max-width: 1080px) {
  .hs-global-header .hs-global-links .hs-global-link[aria-current="page"] {
    background: color-mix(in srgb, var(--hs-shell-accent) 18%, transparent) !important;
    box-shadow: inset 3px 0 0 var(--hs-shell-accent) !important;
  }

  .hs-global-footer .footer-grid {
    grid-template-columns: 1.2fr repeat(2, 1fr);
  }

  .hs-global-footer .footer-column:last-child {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 62px;
  }

  body.modalOpen {
    padding-bottom: 0;
  }

  .hs-global-footer.site-footer,
  .hs-global-footer.footer {
    padding: 44px 0 24px;
  }

  .hs-global-footer .footer-grid,
  .hs-global-footer .footer-bottom {
    width: min(100% - 28px, var(--hs-shell-width));
  }

  .hs-global-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 22px;
  }

  .hs-global-footer .footer-brand {
    grid-column: 1 / -1;
  }

  .hs-global-footer .footer-column:last-child {
    grid-column: auto;
  }

  .hs-global-footer .footer-bottom {
    margin-top: 32px;
    flex-direction: column;
    gap: 7px;
  }

  .hs-global-mobile-whatsapp {
    position: fixed;
    right: 12px;
    bottom: 10px;
    left: 12px;
    z-index: 88;
    min-height: 48px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
    background: var(--hs-shell-ink);
    border: 2px solid var(--hs-shell-paper);
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--hs-shell-accent);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
  }

  body.modalOpen .hs-global-mobile-whatsapp {
    display: none;
  }
}

@supports not (color: color-mix(in srgb, white, black)) {
  .hs-global-header .hs-global-links .hs-global-link[aria-current="page"] {
    background: rgba(241, 206, 100, .14) !important;
  }
}

/*
 * Launch bug fixes
 * Keep the shared mobile contact dock authoritative over older page-specific
 * prototype rules, and make the Home hero fit narrow screens without clipping.
 */
@media (max-width: 760px) {
  body.home-v13 {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }

  body.home-v13 .mobile-whatsapp-dock.hs-global-mobile-whatsapp {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    min-height: 48px;
    margin: 0;
    z-index: 88;
  }

  .home-v13 .v13-welcome-copy,
  .home-v13 .v13-welcome h1,
  .home-v13 .v13-lead {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .home-v13 .v13-welcome h1 {
    font-size: clamp(46px, 15vw, 72px);
    overflow-wrap: normal;
  }

  .home-v13 .v13-welcome h1 span {
    max-width: 100%;
  }

  .home-v13 .v13-lead {
    overflow-wrap: break-word;
  }
}
