/* ==========================================================================
   Global Group — Base design system
   Tokens taken directly from the Figma file (Global Group / Website)
   ========================================================================== */

:root {
    /* Brand */
    --gg-primary: #2e368e;
    --gg-primary-dark: #232a70;
    --gg-accent: #f97316;
    --gg-accent-alt: #fc9e09;

    /* Neutrals */
    --gg-dark: #0f172a;
    --gg-dark-soft: #1e293b;
    --gg-slate: #475569;
    --gg-muted: #64748b;
    --gg-muted-light: #94a3b8;
    --gg-border: #e2e8f0;
    /* Figma page canvas behind every light section (Home frame 1:855) */
    --gg-bg: #f8f9ff;
    --gg-white: #ffffff;

    /* Type */
    --gg-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gg-font-display: 'Plus Jakarta Sans', var(--gg-font);

    /* Layout */
    --gg-container: 1280px;
    --gg-radius: 12px;
    --gg-radius-lg: 16px;
    --gg-radius-pill: 9999px;
    --gg-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --gg-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    --gg-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

    /* Header height — used for scroll offset + hero spacing */
    --gg-header-h: 80px;
}

/* --------------------------------------------------------------- reset -- */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--gg-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--gg-slate);
    background: var(--gg-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    background: none;
}

/* ----------------------------------------------------------- utilities -- */

.gg-container {
    width: 100%;
    max-width: var(--gg-container);
    margin-inline: auto;
    padding-inline: 40px;
}

@media (max-width: 900px) {
    .gg-container {
        padding-inline: 24px;
    }
}

@media (max-width: 560px) {
    .gg-container {
        padding-inline: 16px;
    }
}

/* Buttons ---------------------------------------------------------------- */

.gg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: var(--gg-radius-pill);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.gg-btn:hover {
    transform: translateY(-1px);
}

.gg-btn--primary {
    background: var(--gg-primary);
    color: var(--gg-white);
}

.gg-btn--primary:hover {
    background: var(--gg-primary-dark);
    box-shadow: var(--gg-shadow);
}

.gg-btn--accent {
    background: var(--gg-accent);
    color: var(--gg-white);
}

.gg-btn--accent:hover {
    background: #ea6a0c;
    box-shadow: var(--gg-shadow);
}

.gg-btn--outline {
    background: transparent;
    color: var(--gg-white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

.gg-btn--outline:hover {
    background: rgba(255, 255, 255, .1);
}

/* Section heading pattern ------------------------------------------------ */

.gg-eyebrow {
    font-family: var(--gg-font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gg-accent-alt);
}

.gg-section-title {
    font-size: 40px;
    line-height: 48px;
    font-weight: 700;
    color: var(--gg-dark);
    letter-spacing: -0.5px;
}

.gg-section-sub {
    font-size: 18px;
    line-height: 28px;
    color: var(--gg-muted);
}

@media (max-width: 768px) {
    .gg-section-title {
        font-size: 30px;
        line-height: 38px;
    }

    .gg-section-sub {
        font-size: 16px;
        line-height: 26px;
    }
}

/* ================================================================ HEADER == */

.gg-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--gg-shadow-sm);
}

.gg-header__inner {
    height: var(--gg-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 32px 16px 40px;
    max-width: var(--gg-container);
    margin-inline: auto;
}

.gg-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.gg-logo__mark {
    height: 33px;
    width: auto;
}

.gg-logo__word {
    height: 22px;
    width: auto;
}

/* The in-drawer CTA duplicates the header button on desktop — mobile only. */
.gg-nav .gg-btn {
    display: none;
}

.gg-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.gg-nav__link {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--gg-slate);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.gg-nav__link:hover {
    color: var(--gg-primary);
}

.gg-nav__link.is-active {
    color: var(--gg-primary);
    font-weight: 600;
    border-bottom-color: var(--gg-accent);
    padding-bottom: 6px;
}

/* Mobile menu toggle */

.gg-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--gg-primary);
}

.gg-nav-toggle span,
.gg-nav-toggle span::before,
.gg-nav-toggle span::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}

.gg-nav-toggle span::before {
    transform: translateY(-7px);
}

.gg-nav-toggle span::after {
    transform: translateY(5px);
}

.gg-nav-toggle.is-open span {
    background: transparent;
}

.gg-nav-toggle.is-open span::before {
    transform: rotate(45deg);
}

.gg-nav-toggle.is-open span::after {
    transform: rotate(-45deg) translateY(-1px);
}

@media (max-width: 900px) {
    .gg-header__inner {
        padding: 16px 20px;
    }

    .gg-nav-toggle {
        display: flex;
        order: 3;
    }

    .gg-header__cta {
        display: none;
    }

    .gg-nav {
        position: absolute;
        top: var(--gg-header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--gg-white);
        box-shadow: var(--gg-shadow);
        padding: 8px 20px 20px;
        display: none;
    }

    .gg-nav.is-open {
        display: flex;
    }

    .gg-nav__link {
        padding: 14px 0;
        border-bottom: 1px solid var(--gg-border);
    }

    .gg-nav__link.is-active {
        border-bottom-color: var(--gg-accent);
    }

    .gg-nav .gg-btn {
        display: inline-flex;
        margin-top: 16px;
    }
}

/* ================================================================ FOOTER == */

.gg-footer {
    background: var(--gg-dark);
    color: var(--gg-muted-light);
}

.gg-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
    max-width: var(--gg-container);
    margin-inline: auto;
    padding: 80px 48px 40px;
}

.gg-footer__brand {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    color: var(--gg-white);
    margin-bottom: 24px;
}

.gg-footer__about {
    font-size: 16px;
    line-height: 26px;
    color: var(--gg-muted-light);
    max-width: 320px;
}

.gg-footer__socials {
    display: flex;
    gap: 16px;
    padding-top: 24px;
}

.gg-footer__social {
    width: 40px;
    height: 40px;
    border-radius: var(--gg-radius-pill);
    background: var(--gg-dark-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease;
}

.gg-footer__social:hover {
    background: var(--gg-primary);
}

.gg-footer__social img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.gg-footer__heading {
    font-family: var(--gg-font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gg-accent-alt);
    margin-bottom: 24px;
}

.gg-footer__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gg-footer__list a,
.gg-footer__list li {
    font-size: 16px;
    line-height: 24px;
    color: var(--gg-muted-light);
    transition: color .2s ease;
}

.gg-footer__list a:hover {
    color: var(--gg-white);
}

.gg-footer__item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gg-footer__item img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.gg-footer__bottom {
    border-top: 1px solid var(--gg-dark-soft);
    padding: 41px 48px 40px;
    text-align: center;
    font-size: 14px;
    line-height: 20px;
    color: var(--gg-muted);
}

@media (max-width: 900px) {
    .gg-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 56px 24px 32px;
    }

    .gg-footer__col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .gg-footer__grid {
        grid-template-columns: 1fr;
        padding: 48px 16px 24px;
    }

    .gg-footer__bottom {
        padding: 32px 16px;
    }
}
