/* Premium Dark Stadium footer system */
.cg-premium-footer {
    --cgf-bg: #07111f;
    --cgf-surface: #0c192a;
    --cgf-surface-2: #102238;
    --cgf-border: rgba(148, 163, 184, .16);
    --cgf-text: #f8fafc;
    --cgf-muted: #9fb0c5;
    --cgf-green: #22c55e;
    --cgf-green-dark: #16a34a;
    position: relative;
    isolation: isolate;
    clear: both;
    width: 100%;
    overflow: hidden;
    background: var(--cgf-bg);
    color: var(--cgf-text);
    border-top: 1px solid rgba(34, 197, 94, .32);
}

.cg-premium-footer *,
.cg-premium-footer *::before,
.cg-premium-footer *::after {
    box-sizing: border-box;
}

.cg-footer-glow {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 4%, rgba(34, 197, 94, .18), transparent 28%),
        radial-gradient(circle at 72% 8%, rgba(59, 130, 246, .15), transparent 25%),
        radial-gradient(circle at 96% 64%, rgba(168, 85, 247, .1), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 42%);
}

.cg-footer-shell {
    width: min(calc(100% - 40px), var(--cg-shell-max));
    margin: 0 auto;
    padding: 48px 0 0;
}

.cg-footer-owner-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 36px;
    overflow: hidden;
    border: 1px solid rgba(34, 197, 94, .28);
    border-radius: 24px;
    background:
        linear-gradient(115deg, rgba(34, 197, 94, .13), rgba(15, 32, 53, .9) 55%),
        var(--cgf-surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .05);
}

.cg-footer-owner-cta::after {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -110px;
    width: 280px;
    height: 280px;
    border: 48px solid rgba(34, 197, 94, .05);
    border-radius: 50%;
    pointer-events: none;
}

.cg-footer-owner-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.cg-footer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #86efac;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cg-footer-owner-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.12;
    letter-spacing: -.025em;
}

.cg-footer-owner-copy p {
    max-width: 680px;
    margin: 12px 0 0;
    color: #c6d2e1;
    font-size: 16px;
    line-height: 1.7;
}

.cg-footer-owner-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.cg-footer-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.cg-footer-btn-primary {
    background: var(--cgf-green);
    color: #04210f;
    box-shadow: 0 12px 28px rgba(34, 197, 94, .24);
}

.cg-footer-btn-primary:hover {
    transform: translateY(-2px);
    background: #4ade80;
    color: #031a0c;
    box-shadow: 0 16px 32px rgba(34, 197, 94, .3);
}

.cg-footer-btn-ghost {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .055);
    color: #e2e8f0;
}

.cg-footer-btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(134, 239, 172, .45);
    background: rgba(34, 197, 94, .09);
    color: #fff;
}

.cg-footer-main {
    display: grid;
    grid-template-columns: 1.2fr .72fr .94fr 1.12fr;
    grid-template-areas:
        "brand explore owners newsletter"
        "support support support newsletter";
    gap: 28px;
    align-items: stretch;
    padding: 44px 12px 34px;
}

.cg-footer-brand {
    grid-area: brand;
}

.cg-footer-main>.cg-footer-links:nth-of-type(1) {
    grid-area: explore;
}

.cg-footer-main>.cg-footer-links:nth-of-type(2) {
    grid-area: owners;
}

.cg-footer-main h3,
.cg-detail-footer h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .04em;
}

.cg-footer-main h3::after {
    content: '';
    display: block;
    width: 34px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #60a5fa);
}

.cg-footer-links:nth-of-type(1) h3::after {
    background: linear-gradient(90deg, #38bdf8, #6366f1);
}

.cg-footer-links:nth-of-type(2) h3::after {
    background: linear-gradient(90deg, #34d399, #fbbf24);
}

.cg-footer-support h3::after {
    background: linear-gradient(90deg, #a78bfa, #38bdf8);
}

.cg-footer-brand p,
.cg-footer-support>p,
.cg-footer-newsletter>p {
    margin: 18px 0 0;
    color: var(--cgf-muted);
    font-size: 15.5px;
    line-height: 1.75;
}

.cg-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
}

.cg-footer-logo img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .3));
}

.cg-footer-logo span {
    display: grid;
    gap: 3px;
}

.cg-footer-logo strong {
    font-size: 21px;
    letter-spacing: -.01em;
}

.cg-footer-logo small {
    color: var(--cgf-muted);
    font-size: 12px;
    letter-spacing: .04em;
}

.cg-footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.cg-footer-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid var(--cgf-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
}

.cg-footer-trust i {
    color: #4ade80;
}

.cg-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cg-footer-links a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: -9px;
    padding: 0 9px;
    border-radius: 9px;
    color: #b6c4d5;
    font-size: 15px;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease, background .18s ease;
}

.cg-footer-links a i {
    width: 17px;
    color: #64748b;
    text-align: center;
    transition: color .18s ease;
}

.cg-footer-links a:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, .045);
    color: #fff;
}

.cg-footer-links:nth-of-type(1) a i {
    color: #60a5fa;
}

.cg-footer-links:nth-of-type(2) a i {
    color: #34d399;
}

.cg-footer-links:nth-of-type(1) a:hover i {
    color: #93c5fd;
}

.cg-footer-links:nth-of-type(2) a:hover i {
    color: #86efac;
}

.cg-footer-support {
    grid-area: support;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: 20px;
    border: 1px solid rgba(167, 139, 250, .14);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(139, 92, 246, .055), rgba(59, 130, 246, .025));
}

.cg-footer-support-copy {
    min-width: 0;
}

.cg-footer-support-copy h3 {
    margin-bottom: 12px;
}

.cg-footer-support-copy>p {
    max-width: 580px;
    margin: 0;
    color: var(--cgf-muted);
    font-size: 15.5px;
    line-height: 1.65;
}

.cg-footer-support-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.cg-footer-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    color: #fff;
    text-decoration: none;
}

.cg-footer-contact-icon,
.cg-footer-newsletter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(34, 197, 94, .25);
    border-radius: 12px;
    background: rgba(34, 197, 94, .1);
    color: #4ade80;
}

.cg-footer-contact-link>span:last-child {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.cg-footer-contact-link small {
    color: var(--cgf-muted);
    font-size: 12px;
}

.cg-footer-contact-link strong {
    overflow-wrap: normal;
    font-size: 14px;
    white-space: nowrap;
}

.cg-footer-help-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    color: #86efac;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.cg-footer-help-link:hover {
    color: #fff;
}

.cg-footer-newsletter {
    grid-area: newsletter;
    height: 100%;
    padding: 22px;
    border: 1px solid var(--cgf-border);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
    box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

.cg-footer-newsletter h3 {
    margin: 16px 0 0;
}

.cg-footer-newsletter>p {
    margin-top: 8px;
    line-height: 1.6;
}

.cg-footer-form {
    margin-top: 16px;
}

.cg-footer-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
}

.cg-footer-input-row input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 11px;
    outline: 0;
    background: rgba(2, 8, 23, .45);
    color: #fff;
    font: inherit;
    font-size: 14px;
}

.cg-footer-input-row input::placeholder {
    color: #738399;
}

.cg-footer-input-row input:focus {
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .13);
}

.cg-footer-input-row button {
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    background: var(--cgf-green);
    color: #05210f;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.cg-footer-input-row button:hover {
    transform: translateY(-2px);
    background: #4ade80;
}

.cg-footer-socials {
    display: flex;
    gap: 9px;
    margin-top: 14px;
}

.cg-footer-socials a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cgf-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: #cbd5e1;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}

.cg-footer-socials a:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, .36);
    background: rgba(34, 197, 94, .1);
    color: #86efac;
}

.cg-footer-bottom {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 12px;
    border-top: 1px solid var(--cgf-border);
    color: #7f91a8;
    font-size: 13px;
}

.cg-footer-bottom p {
    margin: 0;
}

.cg-footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 22px;
}

.cg-footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
}

.cg-footer-bottom a:hover {
    color: #fff;
}

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

.cg-premium-footer a:focus-visible,
.cg-premium-footer button:focus-visible,
.cg-footer-back-top:focus-visible {
    outline: 3px solid rgba(74, 222, 128, .72);
    outline-offset: 3px;
}

#back-to-top.cg-footer-back-top {
    position: fixed;
    z-index: 999;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    background: #0b1728;
    color: #fff;
    box-shadow: 0 16px 35px rgba(2, 8, 23, .32);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

#back-to-top.cg-footer-back-top:hover {
    transform: translateY(-3px);
    background: #16a34a;
}

/* Ground detail variant */
.cg-detail-footer .cg-footer-shell {
    padding-top: 44px;
}

.cg-detail-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr .9fr;
    gap: 24px;
    padding-bottom: 38px;
}

.cg-footer-venue-card,
.cg-footer-hours-card,
.cg-footer-contact-card {
    padding: 28px;
    border: 1px solid var(--cgf-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, .035);
}

.cg-footer-venue-card h2 {
    margin: 12px 0 10px;
    color: #fff;
    font-size: 22px;
    line-height: 1.25;
}

.cg-footer-contact-card h3 {
    margin-top: 12px;
}

.cg-footer-venue-card>p,
.cg-footer-contact-card>p {
    margin: 0;
    color: var(--cgf-muted);
    font-size: 14px;
    line-height: 1.7;
}

.cg-footer-venue-category {
    color: #86efac;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.cg-footer-venue-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.cg-footer-venue-links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--cgf-border);
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 12px;
    text-decoration: none;
}

.cg-footer-venue-links a:hover {
    border-color: rgba(34, 197, 94, .4);
    color: #fff;
}

.cg-footer-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--cgf-border);
    border-radius: 12px;
    background: var(--cgf-border);
}

.cg-footer-hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    background: rgba(7, 17, 31, .92);
    color: #cbd5e1;
    font-size: 12px;
}

.cg-footer-hours-list strong {
    color: #f8fafc;
    font-weight: 700;
}

.cg-footer-hours-list .closed {
    color: #fda4af;
}

.cg-footer-hours-list .open-24 {
    color: #86efac;
    font-weight: 800;
}

.cg-footer-hours-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--cgf-border);
    border-radius: 12px;
    color: var(--cgf-muted);
    text-align: center;
}

.cg-footer-contact-empty {
    margin-top: 20px;
}

.cg-footer-phone {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 10px 14px;
    border: 1px solid rgba(34, 197, 94, .28);
    border-radius: 13px;
    background: rgba(34, 197, 94, .09);
    color: #fff;
    text-decoration: none;
}

.cg-footer-phone i {
    color: #4ade80;
}

.cg-footer-phone span {
    display: grid;
    gap: 2px;
}

.cg-footer-phone small {
    color: var(--cgf-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.cg-footer-phone strong {
    font-size: 15px;
}

.cg-footer-owner-note {
    display: flex;
    gap: 12px;
    margin: 0 0 34px;
    padding: 18px 20px;
    border: 1px solid rgba(245, 158, 11, .2);
    border-radius: 14px;
    background: rgba(245, 158, 11, .055);
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.65;
}

.cg-footer-owner-note i {
    margin-top: 3px;
    color: #fbbf24;
}

.cg-footer-owner-note p {
    margin: 0;
}

@media (max-width: 1100px) {
    .cg-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "brand explore"
            "owners owners"
            "support support"
            "newsletter newsletter";
        gap: 32px;
    }

    .cg-footer-newsletter {
        display: grid;
        grid-template-columns: auto 1fr 1.2fr auto;
        align-items: center;
        gap: 16px;
    }

    .cg-footer-newsletter h3,
    .cg-footer-newsletter>p,
    .cg-footer-newsletter .cg-footer-form,
    .cg-footer-newsletter .cg-footer-socials {
        margin: 0;
    }
}

@media (max-width: 900px) {
    .cg-footer-owner-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .cg-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "brand explore"
            "owners owners"
            "support support"
            "newsletter newsletter";
    }

    .cg-footer-support {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .cg-footer-support-actions {
        justify-content: flex-start;
    }

    .cg-footer-newsletter {
        display: block;
    }

    .cg-footer-newsletter h3 {
        margin-top: 16px;
    }

    .cg-footer-newsletter>p {
        margin-top: 8px;
    }

    .cg-footer-newsletter .cg-footer-form,
    .cg-footer-newsletter .cg-footer-socials {
        margin-top: 18px;
    }

    .cg-detail-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cg-footer-contact-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .cg-footer-shell {
        width: min(calc(100% - 32px), var(--cg-shell-max));
        padding-top: 28px;
    }

    .cg-footer-owner-cta {
        gap: 24px;
        padding: 26px 22px;
        border-radius: 19px;
    }

    .cg-footer-owner-copy h2 {
        font-size: 27px;
    }

    .cg-footer-owner-copy p {
        font-size: 14px;
    }

    .cg-footer-owner-actions {
        width: 100%;
        flex-direction: column;
    }

    .cg-footer-btn {
        width: 100%;
    }

    .cg-footer-main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "explore"
            "owners"
            "support"
            "newsletter";
        gap: 34px;
        padding: 46px 4px 38px;
    }

    .cg-footer-support-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .cg-footer-contact-link strong {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .cg-footer-help-link {
        white-space: normal;
    }

    .cg-footer-newsletter {
        padding: 22px;
    }

    .cg-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px 4px 28px;
    }

    .cg-footer-bottom nav {
        justify-content: flex-start;
        gap: 10px 18px;
    }

    .cg-detail-footer-grid {
        grid-template-columns: 1fr;
    }

    .cg-footer-contact-card {
        grid-column: auto;
    }

    .cg-footer-venue-card,
    .cg-footer-hours-card,
    .cg-footer-contact-card {
        padding: 22px;
    }

    #back-to-top.cg-footer-back-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 420px) {
    .cg-footer-logo img {
        width: 54px;
        height: 54px;
    }

    .cg-footer-trust {
        align-items: flex-start;
        flex-direction: column;
    }

    .cg-footer-input-row {
        grid-template-columns: minmax(0, 1fr) 46px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .cg-premium-footer *,
    .cg-footer-back-top {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}