/* ========================================================================
   AC-1 SITEWIDE BRAND + CONVERSION
   Approved ten-artifact amendment. This stylesheet loads after page styles
   so the exact locally mirrored Accueco.ai mark governs every shared surface.
   ======================================================================== */

.brand__mark--exact,
.primary-nav__featured-mark,
.site-footer__accueco img,
.sister-pathway__leaf,
.games-sister-bridge__leaf {
    object-fit: contain;
    background: none !important;
}

/* First and featured destination in the global navigation. */
.primary-nav__featured a {
    min-height: 48px;
    gap: 0.58rem;
    align-items: center;
    padding: 0.48rem 0.68rem !important;
    color: #f3fff8 !important;
    background: linear-gradient(135deg, rgba(22, 229, 141, 0.18), rgba(47, 217, 255, 0.1));
    border: 1px solid rgba(128, 255, 188, 0.34);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.primary-nav__featured a::after {
    display: none;
}

.primary-nav__featured a:hover,
.primary-nav__featured a:focus-visible {
    background: linear-gradient(135deg, rgba(22, 229, 141, 0.28), rgba(47, 217, 255, 0.16));
    border-color: rgba(128, 255, 188, 0.62);
}

.primary-nav__featured-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.primary-nav__featured-copy {
    display: grid;
    line-height: 1.05;
}

.primary-nav__featured-copy strong {
    color: #f6fff9;
    font-size: 0.83rem;
    letter-spacing: 0.01em;
}

.primary-nav__featured-copy small {
    margin-top: 0.2rem;
    color: #aee6cc;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.primary-nav__featured-arrow {
    color: #ffd866;
    font-size: 0.85rem;
}

.primary-nav__cta {
    white-space: nowrap;
}

/* Featured, balanced Accueco.ai footer pathway on every templated route. */
.site-footer__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer__accueco {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(1.2rem, 3vw, 2.4rem);
    align-items: center;
    padding: clamp(1.2rem, 2.8vw, 1.8rem);
    margin-top: clamp(2.2rem, 5vw, 4rem);
    background:
        radial-gradient(circle at 90% 15%, rgba(255, 216, 102, 0.1), transparent 18rem),
        linear-gradient(120deg, rgba(22, 229, 141, 0.12), rgba(47, 217, 255, 0.06));
    border: 1px solid rgba(128, 255, 188, 0.26);
    border-radius: var(--radius-md, 20px);
}

.site-footer__accueco-identity {
    display: inline-flex;
    min-height: 58px;
    gap: 0.8rem;
    align-items: center;
    color: #f3fff8;
    text-decoration: none;
}

.site-footer__accueco-identity img {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
}

.site-footer__accueco-identity small,
.site-footer__accueco-identity strong {
    display: block;
}

.site-footer__accueco-identity small {
    color: #9fc6b5;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__accueco-identity strong {
    margin-top: 0.2rem;
    color: #f3fff8;
    font-size: 1.18rem;
}

.site-footer__accueco-copy .eyebrow {
    margin-bottom: 0.28rem;
}

.site-footer__accueco-copy h2 {
    margin: 0 0 0.35rem;
    color: #f3fff8;
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.site-footer__accueco-copy > p:last-child {
    max-width: 610px;
    margin: 0;
    color: #a8c4b8;
    font-size: 0.86rem;
    line-height: 1.55;
}

.site-footer__accueco-cta {
    min-height: 52px;
    text-align: center;
    white-space: nowrap;
}

/* The AC-1 sitewide battery also covers the unchanged footer rails. Keep
   disabled channel labels and legal microcopy readable at phone scaling. */
.social-link.is-disabled {
    color: #84958e;
    opacity: 1;
}

.site-footer__bottom {
    color: #697f75;
}

/* Exact visible mark on legacy embedded pathways and the Games bridge. */
.sister-pathway__leaf {
    display: block;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
}

.games-sister-bridge__leaf {
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

@media (min-width: 961px) and (max-width: 1180px) {
    .primary-nav {
        gap: 0.45rem;
    }

    .primary-nav ul a {
        padding-inline: 0.48rem;
        font-size: 0.76rem;
    }

    .primary-nav__featured a {
        padding-inline: 0.55rem !important;
    }

    .primary-nav__featured-copy small,
    .primary-nav__cta {
        display: none;
    }

    .primary-nav__featured-mark {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }
}

@media (max-width: 960px) {
    .primary-nav__featured a {
        min-height: 66px;
        padding: 0.72rem 0.82rem !important;
        border-bottom: 1px solid rgba(128, 255, 188, 0.34) !important;
    }

    .primary-nav__featured-copy strong {
        font-size: 0.96rem;
    }

    .primary-nav__featured-copy small {
        font-size: 0.7rem;
    }

    .primary-nav__featured-arrow {
        margin-left: auto;
    }

    .primary-nav__cta {
        width: 100%;
        justify-content: center;
    }

    .site-footer__accueco {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .site-footer__accueco-cta {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        white-space: normal;
    }
}

@media (max-width: 720px) {
    .site-footer__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .site-footer__accueco {
        grid-template-columns: 1fr;
    }

    .site-footer__accueco-identity img {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
}

@media (max-width: 430px) {
    .site-footer__nav {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .primary-nav__featured a,
    .site-footer__accueco a {
        transition: none;
    }
}
