/* ggb2b homepage - self-contained styles (no framework) */
:root {
    --gg-bg: #f4f7fb;
    --gg-ink: #0d1b2a;
    --gg-muted: #5c6b7a;
    --gg-line: #e3e9f2;
    --gg-brand: #0b4f9c;
    --gg-brand-dark: #083b76;
    --gg-accent: #f97316;
    --gg-radius: 14px;
    --gg-shadow: 0 8px 28px rgba(13, 27, 42, .09);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.gg-home {
    margin: 0;
    background: #fff;
    color: var(--gg-ink);
    font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.gg-home img { max-width: 100%; display: block; border: 0; }
:where(.gg-home) a { color: inherit; text-decoration: none; }
.gg-home h1, .gg-home h2, .gg-home h3, .gg-home p, .gg-home ul, .gg-home dl, .gg-home dd { margin: 0; }
.gg-home ul { padding: 0; list-style: none; }

.gg-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.gg-skip {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--gg-brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.gg-skip:focus { left: 0; }

/* ---------- buttons ---------- */
.gg-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 18px; border-radius: 10px;
    font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
    border: 1px solid transparent; cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.gg-btn--primary { background: var(--gg-brand); color: #fff; }
.gg-btn--primary:hover { background: var(--gg-brand-dark); }
.gg-btn--ghost { color: var(--gg-ink); }
.gg-btn--ghost:hover { background: var(--gg-bg); color: var(--gg-brand); }
.gg-btn--outline { background: #fff; border-color: var(--gg-brand); color: var(--gg-brand); }
.gg-btn--outline:hover { background: #eef5ff; }
.gg-btn--light { background: #fff; color: var(--gg-brand); }
.gg-btn--light:hover { background: #eaf2fd; }
.gg-btn--accent { background: var(--gg-accent); color: #fff; }
.gg-btn--accent:hover { background: #ea6a0c; }
.gg-btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.gg-btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.gg-btn--lg { padding: 13px 24px; font-size: 15px; border-radius: 11px; }

/* ---------- header ---------- */
.gg-header {
    position: sticky; top: 0; z-index: 50;
    background: #fff; border-bottom: 1px solid var(--gg-line);
}
.gg-header__inner {
    display: flex; align-items: center; gap: 28px;
    min-height: 68px;
}
.gg-logo { flex-shrink: 0; display: flex; align-items: center; }
.gg-logo img { height: 34px; width: auto; }
.gg-nav { display: flex; align-items: center; gap: 22px; flex: 1 1 auto; min-width: 0; }
.gg-nav a {
    font-size: 14.5px; font-weight: 500; color: #34465a;
    white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent;
}
.gg-nav a:hover { color: var(--gg-brand); border-bottom-color: var(--gg-brand); }
.gg-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.gg-burger {
    display: none; width: 40px; height: 40px; border: 1px solid var(--gg-line);
    border-radius: 10px; background: #fff; padding: 10px 9px; cursor: pointer;
}
.gg-burger span { display: block; height: 2px; background: var(--gg-ink); border-radius: 2px; margin: 3px 0; }

/* ---------- hero ---------- */
.gg-hero {
    background:
        radial-gradient(900px 380px at 85% -10%, #dceefc 0%, rgba(220,238,252,0) 60%),
        linear-gradient(180deg, #eef5ff 0%, #f7fafd 70%, #ffffff 100%);
    padding: 54px 0 60px;
}
.gg-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; }
.gg-eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gg-brand); background: #e2eefc; border-radius: 999px; padding: 6px 12px;
}
.gg-eyebrow--light { color: #dbeafe; background: rgba(255,255,255,.14); }
.gg-hero h1 {
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.12; letter-spacing: -.02em; font-weight: 800;
    margin: 18px 0 16px; color: #0a1a2b;
}
.gg-hero__copy > p { font-size: 17px; color: var(--gg-muted); max-width: 56ch; }
.gg-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.gg-stats {
    display: flex; gap: 40px; margin-top: 34px; padding-top: 22px; border-top: 1px solid #dbe5f0;
}
.gg-stats dt { font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: var(--gg-brand); }
.gg-stats dd { font-size: 13px; color: var(--gg-muted); margin-top: 2px; }

.gg-hero__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gg-tile {
    position: relative; display: block; overflow: hidden; border-radius: var(--gg-radius);
    background: #e9eef5; border: 1px solid var(--gg-line); aspect-ratio: 4 / 3;
}
.gg-tile img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.gg-tile:hover img { transform: scale(1.045); }
.gg-tile__body {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
    padding: 26px 12px 10px;
    background: linear-gradient(180deg, rgba(6,20,36,0) 0%, rgba(6,20,36,.82) 100%);
    color: #fff;
}
.gg-tile__title {
    font-size: 12.5px; font-weight: 600; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gg-tile__price { font-size: 11.5px; font-weight: 700; background: rgba(249,115,22,.95); border-radius: 6px; padding: 3px 7px; white-space: nowrap; }

/* ---------- sections ---------- */
.gg-section { padding: 54px 0; }
.gg-section--muted { background: var(--gg-bg); border-top: 1px solid var(--gg-line); border-bottom: 1px solid var(--gg-line); }
.gg-section__head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px;
}
.gg-section__head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.gg-link { font-size: 14px; font-weight: 600; color: var(--gg-brand); }
.gg-link:hover { text-decoration: underline; }

/* ---------- category grid ---------- */
.gg-cats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.gg-cat {
    display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
    background: #fff; border: 1px solid var(--gg-line); border-radius: 12px;
    padding: 13px 14px 14px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.gg-cat:hover { border-color: #b9d3f2; box-shadow: 0 6px 18px rgba(11,79,156,.1); transform: translateY(-2px); }
.gg-cat__icon { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.gg-cat__text { display: flex; flex-direction: column; min-width: 0; }
.gg-cat__name {
    font-size: 13px; font-weight: 600; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gg-cat__count { font-size: 11.5px; color: var(--gg-muted); margin-top: 2px; }

/* ---------- product cards ---------- */
.gg-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 18px; }
.gg-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--gg-line); border-radius: var(--gg-radius);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.gg-card:hover { box-shadow: var(--gg-shadow); transform: translateY(-3px); border-color: #cfe0f5; }
.gg-card__media { display: block; aspect-ratio: 1 / 1; background: #f6f8fb; overflow: hidden; }
.gg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gg-card:hover .gg-card__media img { transform: scale(1.035); }
.gg-card__body { display: flex; flex-direction: column; gap: 7px; padding: 13px 14px 15px; }
.gg-card__title {
    font-size: 14px; font-weight: 600; line-height: 1.4; color: #1b2c3d;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 39px;
}
.gg-card__title:hover { color: var(--gg-brand); }
.gg-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.gg-price { font-size: 15px; font-weight: 800; color: var(--gg-brand); }
.gg-moq { font-size: 11.5px; color: var(--gg-muted); background: var(--gg-bg); border-radius: 6px; padding: 2px 6px; }
.gg-card__supplier {
    font-size: 12px; color: var(--gg-muted); border-top: 1px dashed var(--gg-line); padding-top: 8px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gg-card__supplier:hover { color: var(--gg-brand); }

/* ---------- industry floors ---------- */
.gg-floor { padding: 26px 0 34px; }
.gg-floor + .gg-floor { border-top: 1px solid var(--gg-line); }
.gg-floor__grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: stretch; }
.gg-floor__panel {
    position: relative; overflow: hidden; border-radius: 18px; color: #fff;
    background: linear-gradient(155deg, #0f5cb3 0%, #0b4f9c 45%, #07305f 100%);
    padding: 26px 24px 24px; display: flex; flex-direction: column; align-items: flex-start;
    min-height: 300px;
}
.gg-floor__watermark {
    position: absolute; right: -18px; bottom: -18px; width: 168px; height: 168px;
    object-fit: contain; opacity: .16; filter: grayscale(1) brightness(2); pointer-events: none;
}
.gg-floor__panel h2 { font-size: 24px; font-weight: 800; line-height: 1.2; margin: 14px 0 6px; letter-spacing: -.01em; }
.gg-floor__panel h2 a { color: #fff; }
.gg-floor__panel h2 a:hover { text-decoration: underline; }
.gg-floor__panel > p { font-size: 13px; color: rgba(255,255,255,.72); }
.gg-floor__subs {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px;
    margin: 16px 0 20px; width: 100%;
}
.gg-floor__subs a { font-size: 12.5px; color: rgba(255,255,255,.9); }
.gg-floor__subs a:hover { color: #fff; text-decoration: underline; }
.gg-floor__panel .gg-btn { margin-top: auto; position: relative; }
.gg-floor__products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gg-card--flat { box-shadow: none; }
.gg-card--flat:hover { box-shadow: var(--gg-shadow); }

/* ---------- suppliers ---------- */
.gg-suppliers { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 14px; }
.gg-supplier {
    display: flex; align-items: center; gap: 13px;
    background: #fff; border: 1px solid var(--gg-line); border-radius: 12px; padding: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.gg-supplier:hover { border-color: #cfe0f5; box-shadow: 0 6px 18px rgba(11,79,156,.1); transform: translateY(-2px); }
.gg-supplier__logo {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 10px;
    background: #f2f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.gg-supplier__logo img { max-width: 46px; max-height: 46px; object-fit: contain; }
.gg-supplier__initials { font-size: 17px; font-weight: 800; color: var(--gg-brand); letter-spacing: .02em; }
.gg-supplier__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gg-supplier__info strong {
    font-size: 14px; font-weight: 700; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gg-supplier__info em { font-style: normal; font-size: 12px; color: var(--gg-muted); }
.gg-badge { align-self: flex-start; font-size: 11px; font-weight: 700; color: #b45309; background: #fff4e6; border-radius: 6px; padding: 2px 7px; }

/* ---------- CTA ---------- */
.gg-cta { background: linear-gradient(120deg, #0b4f9c 0%, #0e6f8f 100%); color: #fff; padding: 42px 0; }
.gg-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.gg-cta h2 { font-size: 27px; font-weight: 800; letter-spacing: -.01em; }
.gg-cta p { margin-top: 8px; font-size: 15px; color: rgba(255,255,255,.82); max-width: 62ch; }
.gg-cta__actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ---------- footer ---------- */
.gg-footer { background: #0d1b2a; color: #cdd7e3; padding: 48px 0 0; }
.gg-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.gg-footer__logo { height: 30px; width: auto; background: #fff; border-radius: 8px; padding: 5px 9px; }
.gg-footer__brand p { font-size: 13.5px; line-height: 1.8; color: rgba(205,215,227,.72); margin-top: 14px; max-width: 36ch; }
.gg-footer__stats { font-weight: 700; color: #93b8e0 !important; letter-spacing: .01em; }
.gg-footer__col h3 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.gg-footer__col li { margin-bottom: 9px; }
.gg-footer__col a { font-size: 13.5px; color: rgba(205,215,227,.78); }
.gg-footer__col a:hover { color: #fff; text-decoration: underline; }
.gg-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; }
.gg-footer__bottom .gg-container {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding-top: 16px; padding-bottom: 18px; font-size: 12.5px; color: rgba(205,215,227,.6);
}

/* ---------- focus ---------- */
.gg-home a:focus-visible, .gg-home button:focus-visible {
    outline: 2px solid var(--gg-accent); outline-offset: 2px; border-radius: 6px;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    .gg-hero__grid { grid-template-columns: 1fr; gap: 30px; }
    .gg-hero__tiles { grid-template-columns: repeat(4, 1fr); }
    .gg-floor__grid { grid-template-columns: 1fr; }
    .gg-floor__panel { min-height: 0; }
    .gg-floor__products { grid-template-columns: repeat(4, 1fr); }
    .gg-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .gg-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .gg-nav {
        position: absolute; left: 0; right: 0; top: 68px;
        display: none; flex-direction: column; align-items: flex-start; gap: 0;
        background: #fff; border-bottom: 1px solid var(--gg-line);
        box-shadow: 0 16px 30px rgba(13,27,42,.12); padding: 8px 20px 14px;
    }
    .gg-nav.is-open { display: flex; }
    .gg-nav a { display: block; width: 100%; padding: 11px 0; border-bottom: 1px solid var(--gg-line); }
    .gg-nav a:last-child { border-bottom: 0; }
    .gg-burger { display: block; }
    .gg-hero { padding: 38px 0 44px; }
    .gg-hero h1 { font-size: 31px; }
    .gg-hero__copy > p { font-size: 16px; }
    .gg-stats { gap: 26px; }
    .gg-stats dt { font-size: 22px; }
    .gg-section { padding: 40px 0; }
    .gg-section__head { align-items: center; }
    .gg-section__head h2 { font-size: 22px; }
    .gg-cats { grid-template-columns: 1fr 1fr; }
    .gg-products { grid-template-columns: 1fr 1fr; gap: 12px; }
    .gg-floor__products { grid-template-columns: 1fr 1fr; }
    .gg-floor__grid { gap: 16px; }
    .gg-suppliers { grid-template-columns: 1fr; }
    .gg-cta__inner { flex-direction: column; align-items: flex-start; }
    .gg-footer__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 560px) {
    .gg-header__actions .gg-btn--ghost { display: none; }
    .gg-header__inner { gap: 12px; }
    .gg-logo img { height: 30px; }
    .gg-hero__tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gg-tile { aspect-ratio: 1 / 1; }
    .gg-stats { gap: 18px; }
    .gg-stats dt { font-size: 20px; }
    .gg-stats dd { font-size: 12px; }
    .gg-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gg-cat { padding: 11px 12px 12px; gap: 7px; }
    .gg-cat__icon { width: 24px; height: 24px; }
    .gg-cat__name { font-size: 12.5px; }
    .gg-products { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gg-card__body { padding: 10px 11px 12px; }
    .gg-price { font-size: 14px; }
    .gg-floor__panel { padding: 22px 18px 20px; }
    .gg-floor__panel h2 { font-size: 21px; }
    .gg-floor__subs { grid-template-columns: 1fr; }
    .gg-floor__products { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gg-cta__actions { width: 100%; }
    .gg-cta__actions .gg-btn { flex: 1; }
    .gg-footer__grid { grid-template-columns: 1fr; }
    .gg-footer__bottom .gg-container { flex-direction: column; align-items: flex-start; }
}
