/* tpl_gystiq chrome: base, header, mega-menus, mobile offcanvas, footer.
   Class names are gy-* only. Values come from the live theme (theme.9.css + custom.css), see tokens.css. */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--gy-bg);
  color: var(--gy-text);
  font-family: var(--gy-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gy-primary); }
a:hover { color: var(--gy-primary-hover); }
.gy-skip {
  position: absolute; left: 15px; top: 15px; z-index: 2000;
  padding: 8px 14px; background: #fff; color: var(--gy-ink);
  transform: translateY(-200%); border-radius: 4px; font-size: 14px; text-decoration: none;
}
.gy-skip:focus { transform: none; }
.gy-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gy-container { box-sizing: content-box; max-width: var(--gy-container); margin: 0 auto; padding: 0 var(--gy-container-pad); }
.gy-container--large { max-width: var(--gy-container-large); }
.gy-container--expand { max-width: none; }

/* ---------- Buttons (base, reused by the section kit) ---------- */
.gy-btn {
  display: inline-block; box-sizing: border-box; margin: 0; padding: 0 30px;
  border: 1px solid var(--gy-primary); border-radius: 500px;
  font: 600 15px/46px var(--gy-font-body); text-align: center; text-decoration: none; vertical-align: middle;
  cursor: pointer; transition: .2s ease-in-out; transition-property: color, background-color, border-color, box-shadow;
}
.gy-btn--primary {
  background-color: #166E6E;
  background-image: linear-gradient(51deg, #12605C 0%, #166E6E 55%, #1A7A7E 100%);
  color: #fff;
  box-shadow: -5px -5px 15px rgba(255, 255, 255, .04), 5px 5px 15px rgba(0, 0, 0, .2);
}
.gy-btn--primary:hover, .gy-btn--primary:focus-visible { background-color: #1A7A7E; background-image: none; color: #fff; }
.gy-btn--primary:active { background-color: #12605C; background-image: none; color: #fff; }
.gy-btn--lg { padding: 0 40px; font-size: 16px; line-height: 54px; }
.gy-btn--sm { padding: 0 20px; font-size: 14px; line-height: 38px; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--gy-primary); outline-offset: 2px; }

/* ---------- Header: desktop (from 1400px, as live) ---------- */
.gy-header, .gy-header-m { position: sticky; top: 0; z-index: 980; }
.gy-header { display: none; }
.gy-header-m { display: block; }
@media (min-width: 1400px) {
  .gy-header { display: block; }
  .gy-header-m { display: none; }
}
.gy-navbar {
  background: var(--gy-navbar-bg);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--gy-navbar-line);
  color: var(--gy-text);
}
.gy-navbar__inner {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: var(--gy-navbar-h); padding: 0 var(--gy-container-pad); box-sizing: border-box;
}
.gy-navbar__left { justify-self: start; }
.gy-navbar__right { justify-self: end; display: flex; align-items: center; }
.gy-logo { display: inline-block; color: #fff; text-decoration: none; font-size: 24px; font-weight: 600; vertical-align: middle; }
.gy-logo img { display: block; max-width: none; height: auto; }
.gy-logo:hover { color: #fff; }

.gy-nav { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.gy-nav > li { position: static; }
.gy-nav > li > a {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: 100%; min-height: var(--gy-navbar-h); padding: 0 14px;
  font: 600 15px/1.5 var(--gy-font-body); color: var(--gy-nav-link); text-decoration: none;
  transition: .1s ease-in-out; transition-property: color, background-color, border-color, box-shadow;
}
.gy-nav > li > a::before {
  content: ""; display: block; position: absolute; z-index: -1; bottom: 0; height: 3px;
  left: 50%; right: 50%; opacity: 0; background-color: transparent;
  transition: .35s ease-in-out; transition-property: background-color, border-color, box-shadow, height, left, right, opacity;
}
.gy-nav > li:hover > a,
.gy-nav > li > a[aria-expanded="true"],
.gy-nav > li.active > a,
.gy-nav > li > a:focus-visible { color: #fff; }
.gy-nav > li:hover > a::before,
.gy-nav > li > a[aria-expanded="true"]::before,
.gy-nav > li.active > a::before,
.gy-nav > li > a:focus-visible::before { left: 0; right: 0; background-color: #fff; opacity: 1; }
.gy-nav > li > a:focus-visible { outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) { .gy-nav > li > a, .gy-nav > li > a::before { transition: none; } }

/* ---------- Mega-menu panel (rendered by html/mod_menu/gystiq.php from the megamenu-<id> module) ---------- */
.gy-drop {
  position: absolute; top: calc(100% + 5px); left: 50%; z-index: 990;
  width: min(var(--gy-drop-w, 1600px), calc(100vw - 30px)); box-sizing: border-box; padding: 40px;
  transform: translateX(-50%);
  background: #fff; color: var(--gy-ink); border-radius: var(--gy-radius-dropdown); box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .2s ease-out, visibility 0s linear .2s;
}
.gy-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; } /* hover bridge */
.gy-nav > li.item-182 { --gy-drop-w: 1500px; }
.gy-nav > li.item-191 { --gy-drop-w: 1600px; }
.gy-nav > li.is-open > .gy-drop { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .2s ease-out; }
@media (prefers-reduced-motion: reduce) { .gy-drop, .gy-nav > li.is-open > .gy-drop { transition: none; } }

.gy-mega { display: grid; column-gap: 70px; }
.gy-mega--lead { grid-template-columns: calc((100% + 70px) / 4 - 70px) 1fr; align-items: start; }
.gy-mega__set { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; column-gap: 80px; align-items: stretch; }
.gy-mega__set > * { position: relative; display: flex; }
.gy-mega__set > * + *::before { content: ""; position: absolute; top: 0; bottom: 0; left: -40px; border-left: 1px solid rgba(51, 51, 51, .1); }
.gy-mega__card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 40px; align-content: start; flex: 1; box-sizing: border-box;
  padding: 15px; color: inherit; text-decoration: none;
  transition: color .1s ease-in-out, background-color .1s ease-in-out;
}
.gy-mega__card:hover, .gy-mega__card:focus-visible { background-color: rgba(90, 184, 180, .06); color: inherit; }
.gy-mega__card:hover .gy-mega__title, .gy-mega__card:focus-visible .gy-mega__title { color: rgb(90, 184, 180); }
.gy-mega__icon { display: block; color: var(--gy-ink); }
.gy-mega__icon svg { display: block; width: 24px; height: 24px; }
.gy-mega__title { display: block; font: 600 16px/1.4 var(--gy-font-body); color: var(--gy-ink); }
.gy-mega__text { display: block; margin-top: 20px; font-size: 14px; line-height: 1.4; color: rgba(51, 51, 51, .6); }
.gy-mega__more {
  position: relative; display: inline-block; margin-top: 22px; padding-right: 25px;
  font-size: 14px; line-height: 1.5; color: var(--gy-ink);
}
.gy-mega__more::after {
  content: ""; position: absolute; top: 50%; right: 0; width: 20px; height: 20px; transform: translateY(-50%);
  background: no-repeat calc(100% - 5px) 50% url("data:image/svg+xml;charset=UTF-8,%3Csvg width='20' height='11' viewBox='0 0 20 11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline fill='none' stroke='%23333333' stroke-width='1.2' points='13 1 18 5.5 13 10'/%3E%3Cline fill='none' stroke='%23333333' stroke-width='1.2' x1='0' y1='5.5' x2='18.4' y2='5.5'/%3E%3C/svg%3E");
  transition: background-position .2s ease-out;
}
.gy-mega__card:hover .gy-mega__more::after, .gy-mega__card:focus-visible .gy-mega__more::after { background-position: 100% 50%; }

/* ---------- Header: mobile ---------- */
.gy-header-m .gy-navbar__inner { grid-template-columns: 1fr auto 1fr; }
.gy-toggle {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: var(--gy-navbar-h);
  margin: 0; padding: 0; border: 0; background: none; color: #fff; cursor: pointer;
}
.gy-toggle:hover, .gy-toggle:focus-visible { color: var(--gy-primary); }
.gy-toggle svg { display: block; width: 20px; height: 20px; fill: currentColor; }

/* ---------- Offcanvas (push, from the left, as live) ---------- */
.gy-page { position: relative; transition: transform .3s ease-out; }
.gy-offcanvas { position: fixed; inset: 0; z-index: 1000; visibility: hidden; transition: visibility 0s linear .3s; }
.gy-offcanvas.is-open { visibility: visible; transition: none; }
.gy-offcanvas__overlay { position: absolute; inset: 0; background: rgba(30, 35, 50, .5); opacity: 0; transition: opacity .3s ease-out; }
.gy-offcanvas.is-open .gy-offcanvas__overlay { opacity: 1; }
.gy-offcanvas__bar {
  position: absolute; top: 0; bottom: 0; left: 0; width: 270px; box-sizing: border-box; padding: 20px;
  display: flex; flex-direction: column; overflow-y: auto; background: var(--gy-bg); color: var(--gy-text);
  text-align: center; transform: translateX(-100%); transition: transform .3s ease-out;
}
.gy-offcanvas.is-open .gy-offcanvas__bar { transform: none; }
@media (min-width: 640px) { .gy-offcanvas__bar { width: 350px; padding: 30px; } }
html.gy-oc-open, html.gy-oc-open body { overflow: hidden; }
html.gy-oc-open .gy-page { transform: translateX(270px); }
@media (min-width: 640px) { html.gy-oc-open .gy-page { transform: translateX(350px); } }
@media (prefers-reduced-motion: reduce) { .gy-page, .gy-offcanvas__bar, .gy-offcanvas__overlay { transition: none; } }
.gy-offcanvas__close {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; padding: 5px; box-sizing: border-box;
  border: 0; background: none; color: #fff; cursor: pointer; z-index: 1;
}
@media (min-width: 640px) { .gy-offcanvas__close { top: 10px; right: 10px; } }
.gy-offcanvas__close:hover, .gy-offcanvas__close:focus-visible { color: var(--gy-primary); }
.gy-offcanvas__close svg { display: block; width: 100%; height: 100%; }
.gy-offcanvas__brand { margin-bottom: auto; }
.gy-offcanvas__main { margin-top: 30px; }
.gy-nav-m { margin: 0; padding: 0; list-style: none; font: 600 16px/1.6 var(--gy-font-body); }
.gy-nav-m > li + li { margin-top: 4px; }
.gy-nav-m a { display: block; padding: 15px; border-radius: 7px; color: #fff; text-decoration: none; transition: .1s ease-in-out; transition-property: color, background-color; }
.gy-nav-m a:hover, .gy-nav-m a:focus-visible, .gy-nav-m li.active > a { color: var(--gy-primary); background-color: #2c334b; }
.gy-nav-m ul { margin: 0 0 8px; padding: 0; list-style: none; font-weight: 400; font-size: 14px; line-height: 1.5; }
.gy-nav-m ul a { padding: 8px 15px; color: var(--gy-text-muted); }
.gy-offcanvas__register { margin-top: 30px; }
.gy-offcanvas__social { margin-top: 94px; }

/* ---------- Register + social ---------- */
.gy-social { display: flex; justify-content: center; gap: 15px; margin: 0; padding: 0; list-style: none; }
.gy-social a { display: inline-block; color: var(--gy-text); }
.gy-social a:hover, .gy-social a:focus-visible { color: #fff; }
.gy-social svg { display: block; width: 20px; height: 20px; fill: currentColor; }

/* ---------- Footer ---------- */
.gy-footer { background: var(--gy-bg-footer); color: var(--gy-text); }
.gy-footer a { text-decoration: underline; }
.gy-footer a.gy-btn { text-decoration: none; }
.gy-footer__row { display: flex; flex-wrap: wrap; margin-left: calc(var(--gy-gutter) * -1); }
.gy-footer__row > * { box-sizing: border-box; width: 100%; padding-left: var(--gy-gutter); }
.gy-footer__cta { padding-top: 70px; }
.gy-footer__cta--wide { display: none; }
.gy-footer__mark { display: block; }
.gy-footer__title { margin: 0; font: 600 37.4px/1.2 var(--gy-font-body); color: #fff; }
.gy-footer__lead { margin: 10px 0; max-width: 600px; color: var(--gy-text); }
.gy-footer__cta .gy-footer__row { margin-top: 40px; }
.gy-footer__cta p:last-child { margin: 20px 0 0; }
.gy-footer__links { padding: 70px 0; }
.gy-footer__links .gy-footer__row { row-gap: 40px; }
.gy-footer__col h3 { margin: 0; font: 600 17px/1.4 var(--gy-font-body); color: #fff; }
.gy-footer__col ul { margin: 40px 0 0; padding: 0; list-style: none; }
.gy-footer__col li + li { margin-top: 10px; }
.gy-footer__col ul a { color: var(--gy-text-muted); text-decoration: none; }
.gy-footer__col ul a:hover, .gy-footer__col ul a:focus-visible { color: var(--gy-text); }
.gy-footer__col--follow { text-align: center; }
.gy-footer__col--follow .gy-social { justify-content: center; margin: 40px 0 0; }
.gy-footer__col--follow .gy-social a { color: var(--gy-text); text-decoration: none; }
.gy-footer__legal { padding: 0 0 40px; }
.gy-footer__legal .gy-footer__row { row-gap: 15px; align-items: center; text-align: center; }
.gy-footer__brand a { display: inline-block; text-decoration: none; }
.gy-footer__brand img { display: block; }
.gy-footer__legal p { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: var(--gy-text-muted); }
.gy-footer__legal a { color: var(--gy-primary); }
.gy-footer__legal a:hover { color: var(--gy-primary-hover); }
.gy-footer__brand { margin-bottom: 15px; }
.gy-footer__legal p:last-child { margin-bottom: 0; }
@media (min-width: 640px) { .gy-footer__col { width: 33.3333%; } }
@media (min-width: 960px) {
  .gy-footer__cta { padding-top: 140px; }
  .gy-footer__cta--wide { display: block; }
  .gy-footer__cta--narrow { display: none; }
  .gy-footer__cta--wide .gy-footer__title { font-size: 44px; }
  .gy-footer__cta--wide .gy-footer__lead { font-size: 20px; line-height: 1.5; color: var(--gy-text-muted); margin: 10px 0; }
  .gy-footer__cta--wide .gy-footer__row > :first-child { width: 66.6667%; }
  .gy-footer__cta--wide .gy-footer__row > :last-child { width: 33.3333%; }
  .gy-footer__cta--wide .gy-footer__row { margin-top: 40px; }
  .gy-footer__links { padding: 140px 0; }
  .gy-footer__col { width: 16.6667%; }
  .gy-footer__col--follow { text-align: left; }
  .gy-footer__col--follow .gy-social { justify-content: flex-start; }
  .gy-footer__legal .gy-footer__row { text-align: right; }
  .gy-footer__legal { padding-bottom: 48px; }
  .gy-footer__brand { width: 25%; text-align: left; margin-bottom: 0; }
  .gy-footer__legalcopy { width: 75%; }
}
@media (min-width: 1200px) { .gy-footer__links .gy-footer__row { row-gap: 70px; } }

/* ---------- 404 (ported from the Builder template layout) ---------- */
.gy-404 { display: flex; align-items: center; min-height: calc(100vh - var(--gy-navbar-h) - 1px); padding: var(--gy-section-pad-m) 0; text-align: center; }
.gy-404 > .gy-container { width: 100%; }
.gy-404__digits-wrap { margin-bottom: 40px; }
.gy-404__digits { max-width: 100%; height: auto; filter: drop-shadow(20px 20px 20px rgba(60, 65, 124, .12)) drop-shadow(-20px -20px 20px rgba(255, 255, 255, .9)); will-change: filter; }
.gy-404__title { margin: 0 0 20px; font: 700 43.2px/1.2 var(--gy-font-body); color: #fff; }
.gy-404__lead { margin: 20px 0; font-size: 20px; line-height: 1.5; color: var(--gy-text-muted); }
.gy-404__br { display: none; }
.gy-404 p:last-child { margin: 40px 0 0; }
.gy-error__box { padding-top: var(--gy-section-pad-m); padding-bottom: var(--gy-section-pad-m); }
.gy-error__box h1 { color: #fff; }
@media (min-width: 640px) { .gy-404__br { display: inline; } }
@media (min-width: 960px) { .gy-404__title { font-size: 54px; } .gy-404 { padding: var(--gy-section-pad-m) 0; } }
@media (min-width: 1200px) { .gy-404__digits-wrap { margin-bottom: 70px; } }
