@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* Review section background: one of the shop's own flower baskets under a cream wash,
   so the cards stay easy to read. Applies wherever this stylesheet is loaded. */
section.testimonials {
    background:
        linear-gradient(rgba(255, 249, 245, 0.84), rgba(255, 249, 245, 0.9)),
        url('/assets/images/basket2.webp') center / cover no-repeat;
}

/* ============ Google reviews carousel ============
   Markup: /partials/reviews.html (loaded into [data-reviews] by /js/reviews.js).
   Change the colours / spacing in the first block below.
   Header star fill: --pct on .fc-rev__rating (100% = 5.0, 94% = 4.7). Everything is scoped under .fc-rev. */
.fc-rev {
    --fc-card: #f3f3f3;     /* header bar + card background */
    --fc-accent: #1a6b4f;   /* "See all reviews" button */
    --fc-ink: #0b0b0b;
    --fc-muted: #7a7a7a;
    --fc-gap: 18px;
    --per: 3;               /* cards visible at once */

    --fc-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f9b900' d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
    --fc-star-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d3d3d3' d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
    --fc-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%234285F4'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --fc-g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E");

    box-sizing: border-box;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
    color: var(--fc-ink);
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.fc-rev *, .fc-rev *::before, .fc-rev *::after { box-sizing: border-box; }

/* ---------- Header bar ---------- */
.fc-rev__bar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 14px 24px;
    background: var(--fc-card);
    border: 1px solid #e3e3e3;
    border-radius: 16px;
    padding: 16px 22px;
    margin-bottom: 16px;
}
.fc-rev__brand { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.fc-rev__google {
    font-family: 'Product Sans', 'Poppins', Arial, sans-serif;
    font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -.02em;
}
.fc-rev__google span:nth-child(1), .fc-rev__google span:nth-child(4) { color: #4285F4; }
.fc-rev__google span:nth-child(2), .fc-rev__google span:nth-child(6) { color: #EA4335; }
.fc-rev__google span:nth-child(3) { color: #FBBC05; }
.fc-rev__google span:nth-child(5) { color: #34A853; }
.fc-rev__rating {
    position: relative; display: inline-block; width: 110px; height: 22px;
    background: var(--fc-star-off) 0 0/22px 22px repeat-x;
}
.fc-rev__rating::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--pct, 100%);
    background: var(--fc-star) 0 0/22px 22px repeat-x;
}
.fc-rev__score { font-size: 16px; font-weight: 600; }
.fc-rev__label {
    font-size: 16px; font-weight: 600;
    padding-left: 12px; border-left: 1px solid #1a1a1a; line-height: 1.1;
}
.fc-rev__cta {
    display: inline-block;
    background: var(--fc-accent); color: #fff;
    font-size: 14px; font-weight: 600; line-height: 1.2;
    padding: 10px 16px; border-radius: 6px;
    text-decoration: none;
    transition: filter .2s ease;
}
.fc-rev .fc-rev__cta:hover,
.fc-rev .fc-rev__cta:focus,
.fc-rev .fc-rev__cta:active {
    background: var(--fc-accent);
    color: #fff;
    text-decoration: none;
    filter: brightness(1.15);
}

/* ---------- Slider ---------- */
.fc-rev__slider { position: relative; }
.fc-rev__track {
    display: flex; gap: var(--fc-gap);
    margin: 0; padding: 0;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
}
.fc-rev__track::-webkit-scrollbar { display: none; }
.fc-rev__track:focus-visible { outline: 2px solid var(--fc-accent); outline-offset: 4px; border-radius: 16px; }

.fc-rev__card {
    flex: 0 0 calc((100% - (var(--per) - 1) * var(--fc-gap)) / var(--per));
    scroll-snap-align: start;
    display: flex; flex-direction: column;
    background: var(--fc-card);
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    padding: 20px;
    min-width: 0;
}
.fc-rev__top { display: flex; align-items: center; gap: 14px; }
.fc-rev__avatar {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--c, #7b8d9a); color: #fff;
    font-size: 20px; font-weight: 400; line-height: 1;
}
.fc-rev__who { flex: 1; min-width: 0; line-height: 1.25; }
.fc-rev__who strong { display: block; font-size: 15px; font-weight: 600; color: var(--fc-ink); overflow-wrap: anywhere; }
.fc-rev__who span { display: block; font-size: 13px; color: var(--fc-muted); }
.fc-rev__g { flex: 0 0 22px; width: 22px; height: 22px; align-self: flex-start; background: var(--fc-g) center/contain no-repeat; }

.fc-rev__stars { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.fc-rev__stars::before { content: ""; width: 90px; height: 18px; background: var(--fc-star) 0 0/18px 18px repeat-x; }
.fc-rev__stars::after { content: ""; width: 16px; height: 16px; background: var(--fc-check) center/contain no-repeat; }

.fc-rev__text {
    margin: 12px 0 0;
    font-size: 15px; line-height: 1.55; font-weight: 400; color: var(--fc-ink);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4;
    overflow: hidden;
}
.fc-rev__card.is-open .fc-rev__text { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.fc-rev .fc-rev__more {
    margin: auto 0 0; padding: 10px 0 0;
    align-self: flex-start;
    background: none; border: 0; border-radius: 0; box-shadow: none; cursor: pointer;
    font: inherit; font-size: 14px; color: var(--fc-muted);
    text-decoration: none; text-transform: none; letter-spacing: normal;
}
.fc-rev .fc-rev__more[hidden] { display: none; }
.fc-rev .fc-rev__more:hover,
.fc-rev .fc-rev__more:focus,
.fc-rev .fc-rev__more:active {
    background: none;
    border: 0;
    box-shadow: none;
    color: var(--fc-ink);
    text-decoration: underline;
}

/* ---------- Arrows ---------- */
.fc-rev .fc-rev__nav {
    position: absolute; top: 50%; z-index: 2;
    width: 36px; height: 36px; padding: 0;
    transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 0; border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    color: #444; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.fc-rev .fc-rev__nav:hover,
.fc-rev .fc-rev__nav:focus,
.fc-rev .fc-rev__nav:active {
    background: #fff;
    color: #444;
    border: 0;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.fc-rev__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-rev__nav--prev { left: -18px; }
.fc-rev__nav--next { right: -18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .fc-rev { --per: 2; }
}
@media (max-width: 680px) {
    .fc-rev { --per: 1; --fc-gap: 14px; }
    .fc-rev__bar { padding: 14px 16px; }
    .fc-rev__google { font-size: 26px; }
    .fc-rev__label { padding-left: 0; border-left: 0; } /* the label wraps to its own line here */
    .fc-rev__rating { width: 95px; height: 19px; background-size: 19px 19px; }
    .fc-rev__rating::after { background-size: 19px 19px; }
    .fc-rev__cta { width: 100%; text-align: center; }
    .fc-rev__card { padding: 18px; }
    .fc-rev__text { font-size: 14.5px; }
    .fc-rev .fc-rev__nav { width: 32px; height: 32px; }
    .fc-rev__nav--prev { left: -14px; }
    .fc-rev__nav--next { right: -14px; }
}
@media (prefers-reduced-motion: reduce) {
    .fc-rev .fc-rev__nav, .fc-rev__cta { transition: none; }
}
