/* =====================================================================
   Salvatore — Google Reviews (bento cluster)
   Inspired by /design/hero-001.png — mixed card sizes, dashed connectors,
   sparkle accents. Stays in the brand's cream palette.
   ===================================================================== */

.sv-reviews {
    background: var(--sv-cream-soft);
    color: var(--sv-text);
    padding: var(--sv-section-y) var(--sv-gutter);
    position: relative;
    overflow: hidden;
}

/* faint Salvatore script in the corner — matches menu/footer pattern */
.sv-reviews::before {
    content: 'Salvatore';
    position: absolute;
    top: -40px;
    right: -20px;
    font-family: 'Pacifico', var(--sv-font-script), cursive;
    font-size: clamp(180px, 22vw, 360px);
    color: var(--sv-gold);
    opacity: 0.04;
    line-height: 1;
    pointer-events: none;
    transform: rotate(-4deg);
    z-index: 0;
}

.sv-reviews__inner {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
}

/* ---------- header ---------- */
.sv-reviews__header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: clamp(40px, 5vw, 72px);
    max-width: 720px;
}

.sv-reviews__title {
    font-family: var(--sv-font-display);
    font-weight: 500;
    color: var(--sv-text);
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.015em;
}

.sv-reviews__subtitle {
    color: var(--sv-text-soft);
    font-size: clamp(15px, 1.1vw, 17px);
    max-width: 560px;
    line-height: 1.7;
}

/* ---------- decorative dashed background ---------- */
.sv-reviews__deco {
    position: absolute;
    inset: 0;
    z-index: 1;
    color: var(--sv-gold);
    opacity: 0.35;
    pointer-events: none;
}

.sv-reviews__deco svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---------- bento ---------- */
.sv-reviews__bento {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: 18px;
    align-items: stretch;
}

/* Trust card — top-left, tall */
.sv-reviews__cell--trust {
    grid-column: span 4;
    grid-row: span 2;
    background: var(--sv-text);
    color: var(--sv-bone);
    border-radius: var(--sv-radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    box-shadow: var(--sv-shadow-md);
    position: relative;
    overflow: hidden;
}

.sv-reviews__cell--trust::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 80%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 184, 122, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.sv-reviews__trust-google {
    width: 36px;
    height: 36px;
    display: inline-flex;
    background: var(--sv-paper);
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.4);
}

.sv-reviews__trust-google svg { width: 100%; height: 100%; display: block; }

.sv-reviews__trust-rating {
    font-family: var(--sv-font-display);
    font-size: clamp(48px, 5vw, 72px);
    line-height: 1;
    color: var(--sv-bone);
    font-weight: 500;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
}

.sv-reviews__trust-rating span {
    font-size: 16px;
    color: var(--sv-gold-soft);
    font-weight: 400;
}

.sv-reviews__cell--trust .sv-stars { font-size: 18px; }
.sv-reviews__cell--trust .sv-star { color: rgba(245, 239, 230, 0.20); }
.sv-reviews__cell--trust .sv-star--on { color: var(--sv-gold); }

.sv-reviews__trust-count {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.7);
}

.sv-reviews__trust-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sv-gold);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    padding: 12px 18px;
    border: 1px solid rgba(216, 184, 122, 0.35);
    border-radius: 999px;
    width: max-content;
    transition: background .35s var(--sv-ease), color .35s var(--sv-ease);
}

.sv-reviews__trust-link:hover {
    background: var(--sv-gold);
    color: var(--sv-text);
    border-color: var(--sv-gold);
}

/* ---------- review cards ---------- */
.sv-reviews__cell--review {
    position: relative;
    border-radius: var(--sv-radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--sv-shadow-md);
    background: var(--sv-paper);
    overflow: hidden;
    transition: transform .5s var(--sv-ease), box-shadow .5s var(--sv-ease);
    transition-delay: calc(var(--sv-i, 0) * 60ms);
}

.sv-reviews__cell--review:hover {
    transform: translateY(-4px);
    box-shadow: var(--sv-shadow-lg);
}

/* Sizes */
.sv-reviews__cell--large  { grid-column: span 8; grid-row: span 2; }
.sv-reviews__cell--medium { grid-column: span 4; grid-row: span 2; }
.sv-reviews__cell--small  { grid-column: span 3; grid-row: span 1; padding: 20px; gap: 10px; }

/* Accents */
.sv-reviews__cell--paper { background: var(--sv-paper); }
.sv-reviews__cell--cream { background: var(--sv-cream); }
.sv-reviews__cell--gold {
    background: linear-gradient(160deg, #f3e0b8 0%, #e6c982 100%);
    color: var(--sv-text);
}
.sv-reviews__cell--ink {
    background: var(--sv-ink);
    color: var(--sv-bone);
}

.sv-reviews__cell--ink .sv-star { color: rgba(245, 239, 230, 0.20); }
.sv-reviews__cell--ink .sv-star--on { color: var(--sv-gold-soft); }

/* Google G in corner */
.sv-reviews__cell-google {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 22px;
    height: 22px;
    opacity: 0.85;
}

.sv-reviews__cell-google svg { width: 100%; height: 100%; }

/* Big quote behind the text on featured cards */
.sv-reviews__cell-quote {
    position: absolute;
    bottom: 18px;
    right: 24px;
    width: 64px;
    height: 64px;
    color: var(--sv-gold);
    opacity: 0.18;
    pointer-events: none;
}

.sv-reviews__cell-quote svg { width: 100%; height: 100%; }

.sv-reviews__cell--ink .sv-reviews__cell-quote {
    color: var(--sv-gold-soft);
    opacity: 0.25;
}

.sv-reviews__cell-stars { line-height: 1; }

.sv-reviews__cell-text {
    font-family: var(--sv-font-display);
    font-weight: 400;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.6;
    color: inherit;
    flex: 1;
    margin: 0;
}

.sv-reviews__cell--large .sv-reviews__cell-text {
    font-size: clamp(18px, 1.4vw, 22px);
    line-height: 1.55;
}

.sv-reviews__cell--small .sv-reviews__cell-text {
    font-size: 14px;
    line-height: 1.55;
}

.sv-reviews__cell--ink .sv-reviews__cell-text { color: var(--sv-bone); }

/* Footer (avatar + meta) */
.sv-reviews__cell-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(28, 24, 22, 0.10);
}

.sv-reviews__cell--ink .sv-reviews__cell-foot {
    border-top-color: rgba(245, 239, 230, 0.12);
}

.sv-reviews__cell-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d8b87a, #6b3f1d);
    color: var(--sv-paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sv-font-display);
    font-weight: 500;
    font-size: 13px;
    overflow: hidden;
    flex-shrink: 0;
}

.sv-reviews__cell-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sv-reviews__cell-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sv-reviews__cell-meta strong {
    font-family: var(--sv-font-body);
    font-size: 13px;
    font-weight: 600;
    color: inherit;
}

.sv-reviews__cell-meta small {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.65;
    margin-top: 2px;
}

/* ---------- avatar stack chip ---------- */
.sv-reviews__cell--avatars {
    grid-column: span 4;
    grid-row: span 1;
    background: var(--sv-paper);
    border-radius: var(--sv-radius-lg);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--sv-shadow-md);
}

.sv-reviews__avatar-stack {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.sv-reviews__avatar-stack li {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d8b87a, #6b3f1d);
    color: var(--sv-paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sv-font-display);
    font-size: 12px;
    font-weight: 500;
    border: 3px solid var(--sv-paper);
    margin-left: -10px;
}

.sv-reviews__avatar-stack li:first-child { margin-left: 0; }
.sv-reviews__avatar-stack li:nth-child(2) { background: linear-gradient(135deg, #b78a3c, #4a2a13); }
.sv-reviews__avatar-stack li:nth-child(3) { background: linear-gradient(135deg, #d8b87a, #b78a3c); }
.sv-reviews__avatar-stack li:nth-child(4) { background: linear-gradient(135deg, #4a2a13, #1c1816); }

.sv-reviews__avatar-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.sv-reviews__avatar-text strong {
    font-family: var(--sv-font-display);
    font-size: 22px;
    color: var(--sv-text);
    font-weight: 500;
}

.sv-reviews__avatar-text span {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sv-text-muted);
    font-weight: 600;
    margin-top: 4px;
}

/* ---------- sparkle accents ---------- */
.sv-reviews__sparkle {
    position: absolute;
    color: var(--sv-gold);
    z-index: 3;
    pointer-events: none;
    animation: sv-reviews-sparkle 4s ease-in-out infinite;
}

.sv-reviews__sparkle svg { width: 100%; height: 100%; display: block; }

.sv-reviews__sparkle--a {
    width: 28px;
    height: 28px;
    top: 30%;
    right: -10px;
    animation-delay: .2s;
}

.sv-reviews__sparkle--b {
    width: 22px;
    height: 22px;
    bottom: 12%;
    left: 32%;
    animation-delay: 1.6s;
}

@keyframes sv-reviews-sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
    50%      { opacity: 0.95; transform: scale(1.15) rotate(35deg); }
}

/* ---------- stars (shared) ---------- */
.sv-stars {
    display: inline-flex;
    gap: 2px;
    line-height: 1;
}

.sv-star {
    color: rgba(28, 24, 22, 0.18);
    font-size: 14px;
    line-height: 1;
}

.sv-star--on {
    color: var(--sv-gold);
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .sv-reviews__bento {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: minmax(110px, auto);
    }
    .sv-reviews__cell--trust   { grid-column: span 6; grid-row: span 1; }
    .sv-reviews__cell--large   { grid-column: span 6; grid-row: span 2; }
    .sv-reviews__cell--medium  { grid-column: span 3; grid-row: span 2; }
    .sv-reviews__cell--small   { grid-column: span 3; grid-row: span 1; }
    .sv-reviews__cell--avatars { grid-column: span 6; grid-row: span 1; }
    .sv-reviews__cell--trust {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 22px;
    }
    .sv-reviews__trust-rating { margin-top: 0; }
    .sv-reviews__sparkle { display: none; }
}

@media (max-width: 600px) {
    .sv-reviews__bento {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(160px, auto);
    }
    .sv-reviews__cell--trust,
    .sv-reviews__cell--large,
    .sv-reviews__cell--medium,
    .sv-reviews__cell--small,
    .sv-reviews__cell--avatars {
        grid-column: 1 / -1;
        grid-row: span 1;
    }
    .sv-reviews__cell-text { font-size: 15px; }
    .sv-reviews__cell--large .sv-reviews__cell-text { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .sv-reviews__sparkle { animation: none; }
}
