/* GQNET — shared header, footer, layout (all public pages) */
:root {
    --gq-container: min(1680px, calc(100vw - 2rem));
    --gq-container-pad: clamp(1rem, 1.5vw, 2rem);
    --gq-navy: #0c1f3d;
    --gq-navy-dark: #071428;
    --gq-gold: #b59461;
    --gq-text-nav: #4a5568;
    --gq-border: #e2e8f0;
}

*, *::before, *::after { box-sizing: border-box; }

body.gq-public {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--gq-navy);
    background: #fff;
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.gq-nav-open {
    overflow: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.gq-container {
    width: 100%;
    max-width: var(--gq-container);
    margin-inline: auto;
    padding-inline: var(--gq-container-pad);
}

.gq-main {
    flex: 1;
    width: 100%;
}

/* Full-width section helper */
.gq-section-full {
    width: 100%;
}

/* ── Header (white bar — same on every page) ── */
.gq-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 0.75rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--gq-border);
    box-shadow: 0 1px 0 rgba(12, 31, 61, 0.04);
}

.gq-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.gq-topbar__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.gq-topbar__brand-logo {
    height: 38px;
    width: 38px;
    max-width: 38px;
    object-fit: cover;
    object-position: left center;
    display: block;
    flex-shrink: 0;
    border-radius: 50%;
}

.gq-topbar__brand-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.gq-topbar__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.gq-topbar__brand-text strong {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gq-navy);
}

.gq-topbar__brand-text small {
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 0.2rem;
}

.gq-topbar__nav {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    flex: 1;
    justify-content: center;
}

.gq-topbar__nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gq-text-nav);
    white-space: nowrap;
    transition: color 0.2s;
    padding: 0.35rem 0 0.5rem;
    border-bottom: 3px solid transparent;
}

.gq-topbar__nav a:hover {
    color: var(--gq-navy);
}

.gq-topbar__nav a.is-active {
    color: var(--gq-navy);
    font-weight: 600;
    border-bottom-color: var(--gq-navy);
}

.gq-topbar__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.gq-topbar__login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.35rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
    color: #fff;
    background: linear-gradient(180deg, #c9a24e 0%, #a8862e 100%);
    border: 1px solid rgba(168, 134, 46, 0.35);
    box-shadow: 0 2px 8px rgba(168, 134, 46, 0.22);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.gq-topbar__login:hover {
    color: #fff;
    background: linear-gradient(180deg, #b89438 0%, #967622 100%);
    box-shadow: 0 4px 14px rgba(168, 134, 46, 0.35);
    transform: translateY(-1px);
}

.gq-topbar__login:active {
    transform: translateY(0);
}

.gq-topbar__login.is-active {
    box-shadow: 0 0 0 2px rgba(181, 148, 97, 0.45), 0 2px 8px rgba(168, 134, 46, 0.22);
}

.gq-topbar__apply.is-active {
    box-shadow: 0 0 0 2px rgba(181, 148, 97, 0.45);
}

.gq-topbar__apply,
.gq-btn-apply-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: 5px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #0c1f3d;
    color: #fff;
    border: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}

.gq-topbar__apply:hover,
.gq-btn-apply-now:hover {
    background: #071428;
    color: #fff;
}

.gq-topbar__user-divider {
    width: 1px;
    height: 36px;
    background: #e2e8f0;
    flex-shrink: 0;
}

.gq-topbar__user-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.15rem;
    border-radius: 8px;
    transition: opacity 0.2s, background 0.2s;
}

.gq-topbar__user-link:hover {
    opacity: 0.88;
}

.gq-topbar__user-link.is-active .gq-topbar__user-meta strong {
    color: #967622;
}

.gq-topbar__user-meta {
    text-align: right;
    line-height: 1.25;
}

.gq-topbar__user-meta strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0c1f3d;
}

.gq-topbar__user-meta small {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.gq-topbar__avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #0c1f3d;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(12, 31, 61, 0.08);
}

.gq-topbar__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gq-topbar__logout-form {
    margin: 0;
}

.gq-topbar__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: inherit;
    background: #0c1f3d;
    color: #fff;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.gq-topbar__logout:hover {
    background: #071428;
}

.gq-btn-apply-now--block {
    width: 100%;
}

body.gq-page--portal {
    background: #f4f6f9;
}

/* ── Footer (same on every page) ── */
.gq-site-footer {
    background: var(--gq-navy);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 0;
    margin-top: auto;
}

.gq-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.gq-topbar__brand-text--sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gq-footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 1rem;
}

.gq-footer-grid > div > p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 300px;
}

.gq-footer-tagline {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    max-width: 320px;
}

.gq-footer-col h4 {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.25rem;
}

.gq-footer-col ul { list-style: none; margin: 0; padding: 0; }
.gq-footer-col li { margin-bottom: 0.65rem; }

.gq-footer-col a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.gq-footer-col a:hover { color: #fff; }

.gq-footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.gq-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.gq-footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.gq-footer-social {
    display: flex;
    gap: 1.25rem;
}

.gq-footer-social a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}

.gq-footer-social a:hover { color: #fff; }

/* Mobile menu toggle */
.gq-topbar__menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--gq-border);
    border-radius: 8px;
    background: #fff;
    color: var(--gq-navy);
    cursor: pointer;
    flex-shrink: 0;
}

.gq-topbar__menu-icon,
.gq-topbar__menu-icon::before,
.gq-topbar__menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gq-topbar__menu-icon {
    position: relative;
}

.gq-topbar__menu-icon::before,
.gq-topbar__menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.gq-topbar__menu-icon::before { top: -6px; }
.gq-topbar__menu-icon::after { top: 6px; }

.gq-topbar.is-nav-open .gq-topbar__menu-icon {
    background: transparent;
}

.gq-topbar.is-nav-open .gq-topbar__menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.gq-topbar.is-nav-open .gq-topbar__menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.gq-topbar__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 20, 40, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 240;
}

.gq-topbar.is-nav-open .gq-topbar__backdrop {
    opacity: 1;
    pointer-events: auto;
}

.gq-topbar__mobile-actions {
    display: none;
}

.gq-topbar__mobile-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gq-navy);
    border-bottom: 1px solid #eef2f6;
}

.gq-topbar__mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    background: var(--gq-navy);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.gq-topbar__mobile-btn--outline {
    background: #fff;
    color: var(--gq-navy);
    border: 1px solid var(--gq-border);
}

.gq-topbar__mobile-btn--login {
    margin-top: 0;
    background: linear-gradient(180deg, #c9a24e 0%, #a8862e 100%);
    border: 1px solid rgba(168, 134, 46, 0.35);
    box-shadow: 0 2px 8px rgba(168, 134, 46, 0.22);
}

.gq-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
    .gq-topbar__menu-toggle {
        display: inline-flex;
    }

    .gq-topbar__inner {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .gq-topbar__brand-text small {
        display: none;
    }

    .gq-topbar__nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 260;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: min(320px, 88vw);
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 5rem 1.25rem 1.5rem;
        background: #fff;
        box-shadow: -10px 0 40px rgba(12, 31, 61, 0.12);
        transform: translateX(100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        flex: unset;
    }

    .gq-topbar.is-nav-open .gq-topbar__nav {
        transform: translateX(0);
    }

    .gq-topbar__nav a {
        white-space: normal;
        border-bottom: none;
        border-left: 3px solid transparent;
        padding: 0.8rem 0;
        font-size: 0.9375rem;
    }

    .gq-topbar__nav a.is-active {
        border-left-color: var(--gq-navy);
        padding-left: 0.5rem;
    }

    .gq-topbar__mobile-actions {
        display: block;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--gq-border);
    }

    .gq-topbar__actions {
        gap: 0.5rem;
    }

    .gq-topbar__login--desktop {
        display: none;
    }

    .gq-topbar__apply {
        padding: 0.5rem 0.85rem;
        font-size: 0.75rem;
    }

    .gq-topbar__logout {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

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

@media (max-width: 768px) {
    .gq-topbar__actions .gq-topbar__apply,
    .gq-topbar__actions .gq-topbar__logout-form {
        display: none;
    }

    .gq-topbar__user-divider {
        display: none;
    }
}

@media (max-width: 640px) {
    :root {
        --gq-container-pad: 1rem;
    }

    .gq-topbar {
        padding: 0.625rem 0;
    }

    .gq-topbar__brand-logo {
        height: 34px;
        width: 34px;
        max-width: 34px;
    }

    .gq-topbar__brand-text strong {
        font-size: 0.9375rem;
    }

    .gq-topbar__user-meta {
        display: none;
    }

    .gq-topbar__actions {
        gap: 0.35rem;
    }

    .gq-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gq-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .gq-site-footer {
        padding-top: 2.5rem;
    }
}

/* ── Global buttons (CTA band + shared) ── */
.gq-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background: var(--gq-gold);
    color: #fff;
    transition: background 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.gq-btn-gold:hover {
    background: #a38352;
    color: #fff;
}

/* ── Page CTA band (every public page footer) ── */
.gq-page-cta {
    background: linear-gradient(135deg, #001b3d 0%, #0c1f3d 100%);
    color: #fff;
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    width: 100%;
}

.gq-page-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

.gq-page-cta__copy h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.gq-page-cta__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    max-width: 520px;
    font-size: 0.9375rem;
}

.gq-page-cta__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.gq-btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    text-align: center;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    transition: background 0.15s ease, border-color 0.15s ease;
    line-height: 1.3;
}

.gq-btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    color: #fff;
}

.gq-page-cta .gq-btn-gold {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.85rem 1.25rem;
}

@media (max-width: 900px) {
    .gq-page-cta__inner {
        grid-template-columns: 1fr;
    }

    .gq-page-cta__actions {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    .gq-page-cta__actions {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .gq-btn-outline-dark,
    .gq-page-cta .gq-btn-gold {
        width: 100%;
        white-space: normal;
    }
}
