/* ═══════════════════════════════════════════════════════════════
   Garnet Grid — Cookie Consent Banner
   GDPR/CCPA-compliant consent gate for remarketing pixels
   ═══════════════════════════════════════════════════════════════ */

.gg-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1.25rem 2rem;
    /* Respect iOS safe-area so banner doesn't overlap home-indicator. */
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.97) 0%, rgba(8, 8, 8, 0.99) 100%);
    border-top: 1px solid rgba(170, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gg-consent.visible {
    transform: translateY(0);
}

.gg-consent__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.gg-consent__text {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.gg-consent__text a {
    color: #aa0000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gg-consent__text a:hover {
    color: #cc1111;
}

.gg-consent__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.gg-consent__btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    /* WCAG min 44px tap target — was 0.6rem (≈9.6px) padding (under-target). */
    padding: 0.75rem 1.4rem;
    min-height: 44px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gg-consent__btn--accept {
    color: #fff;
    background: linear-gradient(135deg, #aa0000, #cc1111);
}

.gg-consent__btn--accept:hover {
    box-shadow: 0 4px 16px rgba(170, 0, 0, 0.35);
    transform: translateY(-1px);
}

.gg-consent__btn--decline {
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gg-consent__btn--decline:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .gg-consent {
        padding: 0.7rem 0.85rem;
        padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
    }
    .gg-consent__inner {
        flex-direction: row;
        text-align: left;
        gap: 0.6rem;
        align-items: center;
    }
    .gg-consent__text {
        font-size: 0.7rem;
        line-height: 1.35;
    }
    .gg-consent__actions {
        flex-shrink: 0;
        gap: 0.35rem;
    }
    .gg-consent__btn {
        font-size: 0.7rem;
        padding: 0.55rem 0.7rem;
        min-height: 38px;
    }
}

/* ── Banner-visible body padding to prevent overlap of hero CTAs ──
   Uses :has() (Chrome 105+, Safari 15.4+, Firefox 121+).
   When banner is visible at the bottom of the viewport, viewport-pinned
   hero sections (min-height: 100vh, flex-centered) push CTAs behind it.
   Shorten those heroes by the banner footprint so content lifts above. */
@supports selector(:has(*)) {
    body:has(.gg-consent.visible) .hero,
    body:has(.gg-consent.visible) .lane-hero,
    body:has(.gg-consent.visible) .contact-hero,
    body:has(.gg-consent.visible) .hc-hero,
    body:has(.gg-consent.visible) .arc-hero,
    body:has(.gg-consent.visible) section[class*="-hero"] {
        min-height: calc(100vh - 90px);
    }
}

/* JS-class fallback for browsers without :has() — sets via consent.js */
html.gg-consent-visible .hero,
html.gg-consent-visible .lane-hero,
html.gg-consent-visible .contact-hero,
html.gg-consent-visible .hc-hero,
html.gg-consent-visible .arc-hero,
html.gg-consent-visible section[class*="-hero"] {
    min-height: calc(100vh - 90px);
}