/* ==========================================================================
   GT shell — site chrome: the header and footer of this site
   (markup in every page, behaviour in shell/nav.js).
   Load after components.css. Every class starts with gt- so neither site's own
   CSS reaches in; colours come from --gt-* tokens, so dark and light both follow.
   ========================================================================== */

/* Anchor targets stop below the fixed header instead of under it. */
html { scroll-padding-top: calc(var(--gt-header-h) + 16px); }

.gt-skip {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 300;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--gt-surface-solid);
    color: var(--gt-text);
    font: 600 0.95rem/1.2 var(--gt-font-body);
    text-decoration: none;
}
.gt-skip:focus { top: 12px; }

.gt-hd :focus-visible,
.gt-ft :focus-visible { outline: 2px solid var(--gt-primary); outline-offset: 2px; }

/* ── header bar ─────────────────────────────────────────────────────────── */
.gt-hd {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--gt-header-h);
    background: var(--gt-nav);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    backdrop-filter: saturate(1.4) blur(16px);
    border-bottom: 1px solid var(--gt-border);
    font-family: var(--gt-font-body);
    line-height: 1.4;
    transition: box-shadow var(--gt-dur) var(--gt-ease);
}
.gt-hd.is-scrolled { box-shadow: var(--gt-shadow-md); }
.gt-hd ul { margin: 0; padding: 0; list-style: none; }
.gt-hd p { margin: 0; }

.gt-hd__in {
    max-width: var(--gt-container);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--gt-gutter);
    display: flex;
    align-items: center;
    gap: 16px;
}

/* fixed slot: each site shows its own logo, and the menu stays in exactly the same place on both */
.gt-hd__logo { flex: none; display: block; width: 72px; }
.gt-hd__logo img { display: block; width: auto; height: 40px; }

.gt-hd__nav { margin-left: 28px; }
.gt-hd__groups { display: flex; gap: 4px; }
.gt-hd__group { position: relative; }

.gt-hd__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 9px 14px;
    border: 0;
    border-radius: var(--gt-radius-pill);
    background: transparent;
    color: var(--gt-text-2);
    font: 600 15px/1 var(--gt-font-body);
    cursor: pointer;
    transition: background var(--gt-dur), color var(--gt-dur);
}
.gt-hd__btn:hover {
    color: var(--gt-text);
    background: color-mix(in srgb, var(--gt-text) 6%, transparent);
}
.gt-hd__btn.is-current { color: var(--gt-text); }
.gt-hd__btn.is-current::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 30px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--gt-grad-line);
}
/* menu items are plain links: no wrapping, underline centred under the label */
.gt-hd__link { text-decoration: none; white-space: nowrap; }
.gt-hd__link.is-current::after { right: 14px; }

.gt-hd__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.gt-hd__theme,
.gt-hd__burger {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--gt-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--gt-text) 4%, transparent);
    color: var(--gt-text);
    cursor: pointer;
}
.gt-hd__theme:hover,
.gt-hd__burger:hover { border-color: var(--gt-border-glow); }
.gt-hd__theme svg,
.gt-hd__burger svg { width: 20px; height: 20px; }
.gt-hd__theme .icon-sun,
:root[data-theme="light"] .gt-hd__theme .icon-moon { display: none; }
:root[data-theme="light"] .gt-hd__theme .icon-sun { display: block; }
.gt-hd__burger { display: none; }
.gt-hd__burger .icon-close,
.gt-hd.is-open .gt-hd__burger .icon-menu { display: none; }
.gt-hd.is-open .gt-hd__burger .icon-close { display: block; }

.gt-hd__cta { padding: 11px 20px; font-size: 0.92rem; white-space: nowrap; }
.gt-hd__mobile-cta { display: none; }

/* ── phone and tablet: one full-height panel with the same links ────────── */
@media (max-width: 1200px) {
    .gt-hd__burger { display: inline-grid; }
    .gt-hd__actions .gt-hd__cta { display: none; }

    /* absolute to the header, not fixed: the header's backdrop-filter makes it the
       containing block for fixed children, which would squeeze the panel to 64px */
    .gt-hd__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100dvh - var(--gt-header-h));
        display: none;
        margin: 0;
        overflow-y: auto;
        padding: 8px var(--gt-gutter) 32px;
        background: var(--gt-bg);
        border-top: 1px solid var(--gt-border);
    }
    .gt-hd.is-open .gt-hd__nav { display: block; }
    .gt-hd__groups { flex-direction: column; gap: 0; }
    .gt-hd__group { position: static; border-bottom: 1px solid var(--gt-border); }
    .gt-hd__btn {
        width: 100%;
        justify-content: space-between;
        padding: 18px 4px;
        border-radius: 0;
        background: none;
        font-size: 1.05rem;
        color: var(--gt-text);
    }
    .gt-hd__btn:hover { background: none; }
    .gt-hd__btn.is-current::after { left: 4px; right: auto; width: 32px; bottom: 10px; }


    .gt-hd__mobile-cta { display: grid; margin-top: 24px; }
    .gt-hd__mobile-cta .gt-btn { width: 100%; }
    body.gt-hd-lock { overflow: hidden; }
}

/* ── footer ─────────────────────────────────────────────────────────────── */
.gt-ft {
    position: relative;
    padding-block: 56px 28px;
    border-top: 1px solid var(--gt-border);
    background: color-mix(in srgb, var(--gt-bg) 70%, transparent);
    color: var(--gt-text-muted);
    font: 400 0.95rem/1.6 var(--gt-font-body);
}
.gt-ft::before {
    content: '';
    position: absolute;
    inset: -1px 0 auto;
    height: 1px;
    background: var(--gt-grad-line);
    opacity: 0.6;
}
.gt-ft ul { margin: 0; padding: 0; list-style: none; }
.gt-ft a { color: var(--gt-text-2); text-decoration: none; transition: color var(--gt-dur); }
.gt-ft a:hover { color: var(--gt-text); }

.gt-ft__in { max-width: var(--gt-container); margin: 0 auto; padding: 0 var(--gt-gutter); }
.gt-ft__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr); gap: 48px; }
.gt-ft__logo { display: inline-block; }
.gt-ft__logo img { display: block; width: auto; height: 40px; }
.gt-ft__brand p { max-width: 36ch; margin: 14px 0 0; }
.gt-ft__contact a { color: var(--gt-text); }

.gt-ft__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.gt-ft__h {
    margin: 0 0 14px;
    color: var(--gt-text);
    font: 500 0.72rem/1.2 var(--gt-font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.gt-ft__col ul { display: grid; gap: 10px; }

.gt-ft__base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 32px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid var(--gt-border);
    font-size: 0.85rem;
}
.gt-ft__base p { margin: 0; }
.gt-ft__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.gt-ft__legal-set { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.gt-ft__legal-set > span { font: 500 0.68rem/1.4 var(--gt-font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.gt-ft__legal-set ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* keep the legal links clear of the floating corner buttons (back-to-top, WhatsApp) */
@media (min-width: 901px) {
    .gt-ft__base { padding-right: 80px; }
}

@media (max-width: 900px) {
    .gt-ft__top { grid-template-columns: 1fr; gap: 36px; }
    .gt-ft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
    .gt-ft__base { flex-direction: column; align-items: flex-start; }
}

@media print {
    .gt-skip,
    .gt-hd { display: none; }
    .gt-ft { padding-block: 16px 0; background: none; }
}

@media (prefers-reduced-motion: reduce) {
    .gt-hd,
    .gt-hd__btn,
    .gt-ft a { transition: none; }
}
