/* ============================================================
   STONE GALLERIA — Google review badge (card style)
   Placement: "Our Locations" column, directly after </nav>

   Palette matched to the existing footer:
     #A9A9A9  — grey already used by footer links and social SVGs
     #FBBC05  — Google yellow, already present in the G logo

   IMPORTANT: this file is the only place the badge is styled.
   Do not add an inline <style> block for these classes — two
   competing rulesets is what broke the layout previously.
   ============================================================ */

.footer__reviews {
    display: block;
    margin-top: 18px;
    max-width: 100%;
}

.footer__google-badge {
    --gb-star: #FBBC05;
    --gb-rating: 4.8;

    /* layout */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 10px 12px;

    /* dark-footer surface */
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 10px;

    /* typography */
    color: #e9e9e9;
    text-decoration: none;
    line-height: 1.2;

    -webkit-tap-highlight-color: transparent;
    transition: background-color .25s ease,
                border-color .25s ease,
                transform .25s ease;
}

.footer__google-badge:hover,
.footer__google-badge:focus-visible {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.footer__google-badge:focus-visible {
    outline: 2px solid var(--gb-star);
    outline-offset: 3px;
}

.footer__google-badge:active {
    transform: translateY(0);
}

/* --- Google G --- */
.footer__google-badge-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
}

.footer__google-badge-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* --- text stack --- */
.footer__google-badge-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.footer__google-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer__google-badge-num {
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: #fff;
}

/* --- stars, filled to the true rating (4.8/5 = 96%) --- */
.footer__google-badge-stars {
    --pct: calc(var(--gb-rating) / 5 * 100%);

    font-size: .8rem;
    letter-spacing: 1px;
    white-space: nowrap;

    background: linear-gradient(90deg,
                var(--gb-star) var(--pct),
                rgba(255, 255, 255, .2) var(--pct));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

/* Fallback: without background-clip:text the transparent colour
   would render as invisible stars. Show solid gold instead. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .footer__google-badge-stars {
        color: var(--gb-star);
        background: none;
    }
}

/* --- review count --- */
.footer__google-badge-count {
    font-size: .72rem;
    color: #A9A9A9;
    letter-spacing: .015em;
    white-space: nowrap;
}

/* ============================================================
   MOBILE (≤ 767px)
   The locations column is col-6 here, so the card goes
   full-width and gets a comfortable tap target.
   ============================================================ */
@media (max-width: 767.98px) {
    .footer__reviews {
        margin-top: 14px;
    }
    .footer__google-badge {
        width: 100%;
        justify-content: flex-start;
        padding: 11px 12px;
        min-height: 52px;
    }
    .footer__google-badge-num {
        font-size: 1rem;
    }
    .footer__google-badge-stars {
        font-size: .85rem;
    }
    .footer__google-badge-count {
        font-size: .74rem;
    }
}

/* Very narrow phones — stop the stars crowding the count */
@media (max-width: 360px) {
    .footer__google-badge {
        gap: 8px;
        padding: 10px;
    }
    .footer__google-badge-stars {
        font-size: .78rem;
        letter-spacing: .5px;
    }
    .footer__google-badge-count {
        font-size: .7rem;
    }
}

/* ============================================================
   Respect reduced-motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .footer__google-badge {
        transition: none;
    }
    .footer__google-badge:hover,
    .footer__google-badge:focus-visible {
        transform: none;
    }
}