/**
 * Sitewide premium home footer + header nav spacing.
 * Loaded from root layout on every page (after main.css / overrides).
 */

/* ==========================================================================
   Header menu — real desktop spacing (main.css uses 50px; prior override
   forced margin to 0 without a working flex gap, so items looked glued).
   ========================================================================== */

body.gl-site .gl-header .header-main .main-menu ul.gl-nav-list,
body.gl-site .gl-header .main-menu #mobile-menu > ul.gl-nav-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.gl-site .gl-header .header-main .main-menu ul.gl-nav-list > li,
body.gl-site .gl-header .main-menu #mobile-menu > ul.gl-nav-list > li {
  display: inline-flex !important;
  position: relative;
  float: none !important;
  margin: 0 !important;
  margin-inline-end: clamp(1.15rem, 1.8vw, 2.25rem) !important;
  padding: 0 !important;
}

body.gl-site .gl-header .header-main .main-menu ul.gl-nav-list > li:last-child,
body.gl-site .gl-header .main-menu #mobile-menu > ul.gl-nav-list > li:last-child {
  margin-inline-end: 0 !important;
}

body.gl-site .gl-header .header-main .logo .header-logo,
body.gl-site .gl-header .logo .header-logo {
  display: inline-flex;
  align-items: center;
}

body.gl-site .gl-header .header-main .logo .header-logo img,
body.gl-site .header-2 .header-main .logo .header-logo img,
body.gl-site .gl-header .logo img {
  width: auto !important;
  height: auto !important;
  max-height: 52px !important;
  max-width: min(240px, 48vw) !important;
}

body.gl-site .gl-header .header-main .main-menu ul.gl-nav-list > li > a,
body.gl-site .gl-header .main-menu #mobile-menu > ul.gl-nav-list > li > a {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  padding-block: 0.5rem !important;
  padding-inline: 0.15rem !important;
  font-size: clamp(0.78rem, 0.65rem + 0.35vw, 0.95rem) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

@media (min-width: 1200px) and (max-width: 1365px) {
  body.gl-site .gl-header .header-main .main-menu ul.gl-nav-list > li,
  body.gl-site .gl-header .main-menu #mobile-menu > ul.gl-nav-list > li {
    margin-inline-end: clamp(0.55rem, 0.7vw, 1.05rem) !important;
  }

  body.gl-site .gl-header .header-main .main-menu ul.gl-nav-list > li > a,
  body.gl-site .gl-header .main-menu #mobile-menu > ul.gl-nav-list > li > a {
    font-size: 0.78rem !important;
  }
}

/* ==========================================================================
   Premium footer (same look home + all inner pages)
   ========================================================================== */

body.gl-site .vt-footer {
  --vt-footer-bg: #0b0e13;
  --vt-footer-text: #ffffff;
  --vt-footer-muted: #ababab;
  --vt-footer-accent: #01dbff;
  --vt-footer-border: rgba(255, 255, 255, 0.1);
  --vt-footer-accent-dim: rgba(1, 219, 255, 0.14);
  --vt-footer-display: var(--font-sora), var(--vt-font-display), system-ui, sans-serif;
  --vt-footer-body: var(--font-manrope), var(--vt-font-body), system-ui, sans-serif;

  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(1.75rem, 3vw, 2.5rem);
  border: 0;
  border-top: 1px solid var(--vt-footer-border);
  background: var(--vt-footer-bg) !important;
  color: var(--vt-footer-text) !important;
  overflow-x: hidden;
  overflow-y: visible;
  font-family: var(--vt-footer-body);
  box-sizing: border-box;
  text-transform: none;
}

/* Match semi-transparent plate on premium home background */
body.gl-site.is-premium-home .vt-footer {
  background: rgba(33, 33, 33, 0.72) !important;
}

body.gl-site .vt-footer *,
body.gl-site .vt-footer *::before,
body.gl-site .vt-footer *::after {
  box-sizing: border-box;
}

body.gl-site .vt-footer .vt-footer__inner {
  width: min(100% - clamp(1.5rem, 5vw, 3rem) * 2, 1280px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

body.gl-site .vt-footer__marquee {
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  opacity: 0.38;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

body.gl-site .vt-footer__marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--vt-footer-muted);
  animation: vt-footer-marquee 28s linear infinite;
}

@keyframes vt-footer-marquee {
  to {
    transform: translateX(-50%);
  }
}

body.gl-site .vt-footer__top {
  display: grid;
  grid-template-columns: minmax(16rem, 1.15fr) minmax(0, 2.2fr);
  gap: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  margin: 0 0 2rem;
}

body.gl-site .vt-footer__brand {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

body.gl-site .vt-footer__logo {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  line-height: 0 !important;
  font-size: 0 !important;
  text-decoration: none !important;
}

body.gl-site .vt-footer__logo img {
  display: block;
  width: min(220px, 70vw);
  height: auto;
  max-width: 100%;
}

body.gl-site .vt-footer__lede {
  margin: 0;
  max-width: 36ch;
  color: var(--vt-footer-muted) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
}

body.gl-site .vt-footer__address {
  margin: 0;
  font-style: normal;
}

body.gl-site .vt-footer__address a {
  color: var(--vt-footer-text) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
}

body.gl-site .vt-footer__address a:hover,
body.gl-site .vt-footer__address a:focus-visible {
  color: var(--vt-footer-accent) !important;
}

body.gl-site .vt-footer__hours {
  margin: 0;
  color: var(--vt-footer-muted) !important;
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
}

body.gl-site .gl-header a[href^="mailto:"] {
  text-transform: none !important;
}

body.gl-site .vt-footer__email {
  width: fit-content !important;
  max-width: 100% !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  padding: 0.55rem 0.85rem !important;
  border: 1px solid var(--vt-footer-border) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--vt-footer-text) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: none !important;
  overflow-wrap: anywhere;
}

body.gl-site .vt-footer__email:hover,
body.gl-site .vt-footer__email:focus-visible {
  border-color: var(--vt-footer-accent) !important;
  color: var(--vt-footer-accent) !important;
}

body.gl-site .vt-footer__cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: var(--vt-footer-accent);
  color: #0b0e13 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.gl-site .vt-footer__cta:hover,
body.gl-site .vt-footer__cta:focus-visible {
  filter: brightness(1.06);
}

body.gl-site .vt-footer__dirs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: start;
}

body.gl-site .vt-footer__col {
  margin: 0;
  padding: 0;
  border: 0;
}

body.gl-site .vt-footer__col-head {
  display: block;
  margin: 0 0 0.7rem;
  color: var(--vt-footer-text) !important;
  font-family: var(--vt-footer-display);
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  line-height: 1.3 !important;
  text-transform: uppercase;
}

body.gl-site .vt-footer__list {
  display: grid !important;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.gl-site .vt-footer__list a,
body.gl-site .vt-footer__meta-list a,
body.gl-site .vt-footer__legal a {
  color: #d5d8de !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  font-weight: 550 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  transition: color 0.2s ease;
}

body.gl-site .vt-footer__list a:hover,
body.gl-site .vt-footer__list a:focus-visible,
body.gl-site .vt-footer__meta-list a:hover,
body.gl-site .vt-footer__meta-list a:focus-visible,
body.gl-site .vt-footer__legal a:hover,
body.gl-site .vt-footer__legal a:focus-visible {
  color: var(--vt-footer-accent) !important;
}

body.gl-site .vt-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  margin: 0 0 1.35rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--vt-footer-border);
}

body.gl-site .vt-footer__meta-label {
  margin: 0;
  color: var(--vt-footer-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.gl-site .vt-footer__meta-list,
body.gl-site .vt-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.gl-site .vt-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--vt-footer-border);
}

body.gl-site .vt-footer__copy {
  margin: 0 !important;
  color: var(--vt-footer-muted) !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  background: none !important;
  border: 0 !important;
}

@media (max-width: 1099px) {
  body.gl-site .vt-footer__top {
    grid-template-columns: 1fr;
  }

  body.gl-site .vt-footer__dirs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.gl-site .vt-footer__dirs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.15rem;
  }
}

@media (max-width: 520px) {
  body.gl-site .vt-footer__dirs {
    grid-template-columns: 1fr;
  }
}

/* Accessible header: caret, hover + expanded dropdowns, mobile drawer */
body.gl-site .gl-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

body.gl-site .gl-nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 1.1rem;
}

body.gl-site .gl-nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
}

body.gl-site .gl-nav-cta {
  display: none;
}

body.gl-site .gl-nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: 0.15rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
}

body.gl-site .gl-header .has-dropdown {
  align-items: center;
}

body.gl-site .gl-header .has-dropdown.is-expanded > .submenu,
body.gl-site .gl-header .has-dropdown:focus-within > .submenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) and (min-width: 1200px) {
  body.gl-site .gl-header .has-dropdown:hover > .submenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

body.gl-site .gl-nav-caret[aria-expanded="true"] i {
  transform: rotate(180deg);
}

@media (max-width: 1199px) {
  :root {
    --vt-header-h: 72px;
    --vt-header-offset: 72px;
  }

  body.gl-site .gl-header {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  body.gl-site .gl-header .header-main {
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
  }

  body.gl-site .gl-nav-toggle {
    display: inline-flex;
  }

  body.gl-site .gl-header:not(.is-nav-open) .mean__menu-wrapper {
    display: none !important;
  }

  body.gl-site .gl-header.is-nav-open {
    background: #0b0e13;
  }

  body.gl-site .gl-header.is-nav-open .mean__menu-wrapper {
    display: block !important;
    flex: 1 1 100% !important;
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    mask-image: none;
    -webkit-mask-image: none;
    background: #0b0e13;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.gl-site .gl-header.is-nav-open .header-main .main-menu,
  body.gl-site .gl-header.is-nav-open .header-main .main-menu nav {
    width: 100%;
    min-width: 0;
  }

  body.gl-site .gl-header.is-nav-open .header-main .main-menu ul.gl-nav-list,
  body.gl-site .gl-header.is-nav-open .main-menu #mobile-menu > ul.gl-nav-list {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(70vh, 36rem);
    overflow: auto;
    box-sizing: border-box !important;
    padding: 0.45rem 0.85rem 0.9rem !important;
    margin: 0 !important;
  }

  body.gl-site .gl-header.is-nav-open .header-main .main-menu ul.gl-nav-list > li,
  body.gl-site .gl-header.is-nav-open .main-menu #mobile-menu > ul.gl-nav-list > li {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
  }

  body.gl-site .gl-header.is-nav-open .header-main .main-menu ul.gl-nav-list > li > a,
  body.gl-site .gl-header.is-nav-open .main-menu #mobile-menu > ul.gl-nav-list > li > a {
    margin: 0 !important;
    padding: 0.75rem 0.4rem !important;
    min-width: 0;
    min-height: 44px;
    max-width: 100%;
    overflow: visible !important;
    letter-spacing: 0 !important;
  }

  body.gl-site .gl-nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0.35rem 0.85rem 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #01dbff;
    color: #0b0e13;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: none;
    box-sizing: border-box;
  }

  body.gl-site .gl-nav-cta:hover,
  body.gl-site .gl-nav-cta:focus-visible {
    color: #0b0e13;
    filter: brightness(1.06);
  }

  body.gl-site .gl-header.is-nav-open .has-dropdown {
    justify-content: space-between;
  }

  body.gl-site .gl-header.is-nav-open .has-dropdown > a {
    flex: 1 1 auto;
  }

  body.gl-site .gl-header.is-nav-open .gl-nav-caret {
    margin-left: auto;
    flex: 0 0 auto;
  }

  body.gl-site .gl-header.is-nav-open .has-dropdown > .submenu {
    flex: 1 1 100%;
  }

  body.gl-site .gl-header.is-nav-open .submenu.gl-submenu,
  body.gl-site .gl-header.is-nav-open .header-main .main-menu ul li .submenu {
    position: static !important;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden;
    transform: none;
    box-shadow: none !important;
    border-top: 0;
    padding: 0;
  }

  body.gl-site .gl-header.is-nav-open .has-dropdown.is-expanded > .submenu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: min(40vh, 18rem) !important;
    overflow: auto !important;
    padding: 0.35rem 0 0.6rem !important;
  }
}

@media (max-width: 575px) {
  :root {
    --vt-header-h: 68px;
    --vt-header-offset: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.gl-site .vt-footer__marquee-track,
  body.gl-site .vt-marquee__track {
    animation: none !important;
    transform: none !important;
  }

  body.gl-site .gl-header.sticky,
  body.gl-site #header-sticky.sticky {
    animation: none !important;
    transition: none !important;
  }
}

html.vt-nav-lock,
body.vt-nav-lock {
  overflow: hidden;
}

body.gl-site #gt-back-top.gt-back-to-top {
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}
