/* Site-wide header + nav — Ghasum 2026 */

:root {
    --gh-red: #e11d2e;
    --gh-red-dark: #b91220;
    --gh-ink: #0e1014;
    --gh-line: #d5d9e0;
    --gh-white: #ffffff;
    --gh-display: "Barlow Condensed", "Spartan", sans-serif;
    --gh-body: "Manrope", "Spartan", sans-serif;
}

.gh-header,
.gh-header * { box-sizing: border-box; }
.gh-header a { color: inherit; text-decoration: none; }
.gh-header img { display: block; max-width: 100%; }
.gh-header button { font: inherit; cursor: pointer; }

.gh-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 120;
    height: 84px;
    color: var(--gh-white);
    font-family: var(--gh-body);
    transition: background .25s ease, box-shadow .25s ease, height .25s ease, color .25s ease;
}
.gh-header.is-scrolled {
    height: 72px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--gh-ink);
    box-shadow: 0 1px 0 var(--gh-line);
    backdrop-filter: blur(12px);
}
.gh-header.is-scrolled .gh-logo .gh-logo__default { display: none !important; }
.gh-header.is-scrolled .gh-logo .gh-logo__scrolled { display: block !important; }

.gh-header__inner {
    height: 100%;
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    gap: 28px;
}
.gh-container {
    width: min(100% - 48px, 1180px);
    margin-inline: auto;
}
.gh-logo {
    width: 168px;
    height: 52px;
    display: flex;
    align-items: center;
}
.gh-logo img { width: 100%; height: auto; }
.gh-logo .gh-logo__scrolled { display: none; }

.gh-btn {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gh-white);
    background: transparent;
    font-family: var(--gh-display);
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.gh-btn:hover { transform: translateY(-1px); }
.gh-btn--primary {
    background: var(--gh-red) !important;
    color: var(--gh-white) !important;
}
.gh-btn--primary:hover { background: var(--gh-red-dark) !important; }

.gh-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}
.gh-nav > a,
.gh-nav .gh-nav__drop-toggle {
    font-family: var(--gh-display) !important;
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    opacity: 0.88;
    color: inherit !important;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.gh-nav > a:hover,
.gh-nav__drop.is-open .gh-nav__drop-toggle,
.gh-nav__drop:hover .gh-nav__drop-toggle,
.gh-nav .gh-nav__drop-toggle:hover {
    opacity: 1;
    color: var(--gh-red) !important;
}
.gh-header.is-scrolled .gh-nav > a,
.gh-header.is-scrolled .gh-nav .gh-nav__drop-toggle {
    color: var(--gh-ink) !important;
}
.gh-header.is-scrolled .gh-nav > a:hover,
.gh-header.is-scrolled .gh-nav__drop.is-open .gh-nav__drop-toggle,
.gh-header.is-scrolled .gh-nav__drop:hover .gh-nav__drop-toggle,
.gh-header.is-scrolled .gh-nav .gh-nav__drop-toggle:hover {
    color: var(--gh-red) !important;
}

.gh-nav__drop {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}
.gh-nav__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 760px);
    padding: 20px 22px 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    background: var(--gh-white);
    color: var(--gh-ink);
    border: 1px solid var(--gh-line);
    border-radius: 3px;
    box-shadow: 0 18px 40px rgba(14, 16, 20, 0.12);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
}
.gh-nav__panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}
.gh-nav__drop.is-open .gh-nav__panel,
.gh-nav__drop:hover .gh-nav__panel,
.gh-nav__drop:focus-within .gh-nav__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.gh-nav__panel-group {
    display: grid;
    gap: 8px;
    align-content: start;
}
.gh-nav__panel-title {
    margin: 0 0 2px;
    color: var(--gh-ink) !important;
    font-family: var(--gh-display) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}
.gh-nav__panel a {
    color: #3a404a !important;
    font-family: var(--gh-body) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 4px 0;
}
.gh-nav__panel a:hover { color: var(--gh-red) !important; }

.gh-header__cta { min-height: 44px; padding-inline: 18px; }
.gh-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: inherit;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
.gh-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
    pointer-events: none;
}
.gh-header.is-scrolled .gh-menu-toggle { border-color: var(--gh-line); color: var(--gh-ink); }

/* Hamburger → X animation when nav open */
.gh-nav.is-open ~ * .gh-menu-toggle span:nth-child(1),
[aria-expanded="true"].gh-menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
[aria-expanded="true"].gh-menu-toggle span:nth-child(2) { opacity: 0; }
[aria-expanded="true"].gh-menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav backdrop */
.gh-nav-backdrop {
    display: none;
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(14, 16, 20, 0.4);
    z-index: 125;
    cursor: pointer;
}
.gh-nav-backdrop.is-visible { display: block; }

.gh-header-spacer { height: 72px; }

/* Hide legacy Creote header when new header is active */
body.gh-site-2026 .header_area,
body.gh-site-2026 .crt_mobile_menu { display: none !important; }

@media (max-width: 1100px) {
    .gh-header__inner {
        grid-template-columns: 160px 1fr auto;
        gap: 16px;
    }
    .gh-nav { gap: 18px; }
    .gh-header__cta { display: none; }
}

@media (max-width: 820px) {
    .gh-container { width: min(100% - 36px, 720px); }
    .gh-header { height: 72px; }
    .gh-header__inner {
        position: relative;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .gh-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 18px 20px;
        display: flex;
        flex-direction: column;
        gap: 0;
        color: var(--gh-ink);
        background: var(--gh-white);
        box-shadow: 0 16px 28px rgba(14, 16, 20, 0.12);
        transform: translateY(-12px);
        visibility: hidden;
        opacity: 0;
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
        z-index: 9990;
    }
    .gh-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    .gh-nav > a,
    .gh-nav .gh-nav__drop-toggle {
        padding: 14px 8px;
        border-bottom: 1px solid var(--gh-line);
        text-align: left;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .gh-nav .gh-nav__drop-toggle::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform .2s ease;
        flex-shrink: 0;
        margin-left: 12px;
    }
    .gh-nav__drop.is-open .gh-nav__drop-toggle::after {
        transform: rotate(-135deg);
        margin-top: 4px;
    }
    .gh-nav__drop {
        display: block;
        width: 100%;
        height: auto;
    }
    .gh-nav__panel,
    .gh-nav__drop.is-open .gh-nav__panel,
    .gh-nav__drop:hover .gh-nav__panel,
    .gh-nav__drop:focus-within .gh-nav__panel {
        position: static;
        transform: none;
        left: auto;
        width: 100%;
        max-width: none;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        box-shadow: none;
        border: 0;
        padding: 0 8px 8px;
        margin: 0;
        grid-template-columns: 1fr !important;
        gap: 0;
    }
    .gh-nav__drop.is-open .gh-nav__panel {
        display: flex !important;
        flex-direction: column;
        pointer-events: auto;
    }
    .gh-nav__panel::before { display: none; }
    .gh-nav__panel-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 4px 0 8px;
        border-bottom: 1px solid var(--gh-line);
        gap: 0;
    }
    .gh-nav__panel-group:last-child { border-bottom: 0; }
    .gh-nav__panel-title {
        display: block;
        width: 100%;
        padding: 10px 0 6px !important;
        margin: 0 !important;
    }
    .gh-nav__panel a {
        display: block;
        width: 100%;
        min-height: 40px;
        padding: 8px 0 8px 12px !important;
        line-height: 1.4;
        text-align: left;
    }
    .gh-menu-toggle {
        display: flex;
        min-width: 48px;
        min-height: 48px;
    }
    .gh-nav > a,
    .gh-nav .gh-nav__drop-toggle {
        min-height: 48px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .gh-nav__panel a {
        min-height: 44px !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}
