/* ============================================================
   GOOGLE REVIEWS BADGE — Premium social proof
   Sits inside the testimonials section as a single click target
   that takes the visitor to the live GBP listing.
   ============================================================ */

.g-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 16px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    color: var(--color-text-primary, #fff);
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
        border-color 0.25s var(--ease-out),
        box-shadow 0.25s var(--ease-out),
        transform 0.25s var(--ease-out);
}

.g-badge:hover {
    border-color: rgba(201, 169, 98, 0.45);
    transform: translateY(-2px);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.40),
        0 0 0 4px rgba(201, 169, 98, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* G logo — sits on a pure white tile so the brand colours stay vivid */
.g-badge__logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 7px;
}
.g-badge__logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.g-badge__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.g-badge__line-1 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.g-badge__rating {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-gold, #C9A962);
    line-height: 1;
}

/* Stars: gold filled overlay on top of dim base, supports decimal ratings */
.g-badge__stars {
    display: inline-flex;
    gap: 1px;
    line-height: 1;
}
.g-badge__star {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23444'><path d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2 9.19 8.62 2 9.24l5.46 4.73L5.82 21z'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}
.g-badge__star::before {
    content: "";
    position: absolute;
    inset: 0;
    width: var(--fill, 0%);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E8D5A3'><path d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2 9.19 8.62 2 9.24l5.46 4.73L5.82 21z'/></svg>");
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: left center;
}

.g-badge__count {
    font-size: 13px;
    color: var(--color-text-secondary, rgba(255, 255, 255, 0.78));
    letter-spacing: 0.2px;
}

.g-badge__line-2 {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.50);
}
.g-badge__line-2 strong {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

.g-badge__arrow {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.g-badge:hover .g-badge__arrow {
    color: var(--color-gold, #C9A962);
    transform: translate(2px, -2px);
}

/* Helper wrapper to centre the badge inside the testimonials section */
.testimonials__google-row {
    display: flex;
    justify-content: center;
    margin: 24px auto 28px;
}

@media (max-width: 540px) {
    .g-badge {
        gap: 12px;
        padding: 12px 16px 12px 12px;
        width: 100%;
    }
    .g-badge__logo {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    .g-badge__rating { font-size: 20px; }
    .g-badge__count  { font-size: 12px; }
    .g-badge__line-2 { font-size: 10px; }
}
