/* =========================================================
   Bizmantra - Reviews section
   assets/css/reviews.css?v=1
   - Same system as about.css?v=1: --bm-* tokens, light / dark theme.
   - Fallback values are included, so it also works on its own.
   ========================================================= */
.bmr {
    --r-bg: #FFFFFF;
    --r-card: #F6F8FD;
    --r-track: #E9EEF8;
    --r-line: #E0E7F5;
    --r-sub: #4F5D7A;
    --r-muted: #7A87A3;
    --r-star: #F2A81D;
    --r-star-off: #D6DDEC;

    --r-head: var(--bm-head, #16275C);
    --r-text: var(--bm-text, #1B2A4A);
    --r-blue: var(--bm-blue, #5A82E8);
    --r-blue-d: var(--bm-blue-d, #3A5FC7);
    --r-green: var(--bm-green, #9ACD4F);
    --r-btn: var(--bm-btn, #1F3573);

    position: relative; overflow: hidden;
    padding-block: clamp(56px, 8vw, 104px);
    background: var(--r-bg);
    color: var(--r-text);
    font-family: var(--bm-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
}
:root[data-theme="dark"] .bmr {
    --r-bg: #0B1330;
    --r-card: #141E3D;
    --r-track: rgba(143,176,255,.16);
    --r-line: rgba(143,176,255,.20);
    --r-sub: #B4C1E0;
    --r-muted: #8F9DC2;
    --r-star-off: rgba(143,176,255,.28);
}

:where(.bmr) *, :where(.bmr) *::before, :where(.bmr) *::after { box-sizing: border-box; }
:where(.bmr) ul { list-style: none; margin: 0; padding: 0; }
:where(.bmr) h2, :where(.bmr) p { margin: 0; }
:where(.bmr) svg { display: block; flex: none; }
.bmr :focus-visible { outline: 2px solid var(--r-blue-d); outline-offset: 2px; border-radius: 8px; }

.bmr__container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }

/* ---------------- HEADING ---------------- */
.bmr__head { scroll-margin-top: 120px; }
.bmr__title {
    position: relative; padding-bottom: 16px;
    font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; color: var(--r-head);
}
.bmr__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--r-blue), var(--r-green)); }

/* ---------------- STARS ---------------- */
.bmr__stars { position: relative; display: inline-block; line-height: 0; --sz: 16px; }
.bmr__stars-bg, .bmr__stars-fg { display: flex; gap: 2px; white-space: nowrap; }
.bmr__stars-bg { color: var(--r-star-off); }
.bmr__stars-fg { position: absolute; left: 0; top: 0; width: var(--r); overflow: hidden; color: var(--r-star); }
.bmr__stars svg { width: var(--sz); height: var(--sz); }

/* ---------------- SUMMARY ---------------- */
.bmr__summary {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
    margin-top: 36px; padding-bottom: 34px; border-bottom: 1px solid var(--r-line);
}
.bmr__score { padding-right: clamp(28px, 5vw, 64px); margin-right: clamp(28px, 5vw, 64px); border-right: 1px solid var(--r-line); text-align: center; }
.bmr__num { font-size: clamp(52px, 6vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--r-head); }
.bmr__score .bmr__stars { --sz: 20px; margin-top: 12px; }
.bmr__count { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--r-muted); }

.bmr__bars { display: grid; gap: 11px; }
.bmr__bars li { display: grid; grid-template-columns: 14px minmax(0, 1fr) 96px; align-items: center; gap: 14px; }
.bmr__bar-label { font-size: 13.5px; font-weight: 800; color: var(--r-head); }
.bmr__track { display: block; height: 8px; border-radius: 8px; background: var(--r-track); overflow: hidden; }
.bmr__fill { display: block; height: 100%; width: var(--w); border-radius: 8px; background: var(--r-blue-d); }
.bmr__bars li:first-child .bmr__fill { background: var(--r-green); }
.bmr__bar-n { font-size: 12.5px; font-weight: 500; text-align: right; color: var(--r-muted); }

/* bars grow when the section scrolls into view (JS only) */
.bmr-js .bmr__fill { width: 0; transition: width .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.bmr-js.is-in .bmr__fill { width: var(--w); }

/* ---------------- CATEGORY SCORES ---------------- */
.bmr__cats { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--r-line); }
.bmr__cats li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--r-line); border-radius: 10px; background: var(--r-card); }
.bmr__cats b { min-width: 38px; padding: 4px 7px; border-radius: 6px; background: var(--r-btn); color: #fff; font-size: 12.5px; font-weight: 800; text-align: center; }
.bmr__cats span { font-size: 13.5px; font-weight: 600; color: var(--r-head); }

/* ---------------- REVIEW LIST ---------------- */
.bmr__item {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 16px; row-gap: 12px; align-items: center;
    padding: 26px 0; border-bottom: 1px solid var(--r-line);
}
.bmr__avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--r-btn); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.bmr__avatar--g { background: var(--r-green); color: #17306B; }
.bmr__name { font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--r-head); }
.bmr__when { margin-top: 3px; font-size: 12.5px; color: var(--r-muted); }
.bmr__rate { display: grid; justify-items: end; gap: 5px; }
.bmr__rate-n { font-size: 15.5px; font-weight: 800; line-height: 1; color: var(--r-head); }
.bmr__rate .bmr__stars { --sz: 14px; }
.bmr__text { grid-column: 2 / -1; max-width: 86ch; font-size: 15px; line-height: 1.7; color: var(--r-sub); }

/* ---------------- READ ALL BUTTON ---------------- */
.bmr__more {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 28px;
    border: 1.5px solid var(--r-head); border-radius: 10px; background: transparent; color: var(--r-head);
    font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; cursor: pointer;
    transition: background .2s, color .2s;
}
.bmr__more[hidden] { display: none; }
.bmr__more svg { width: 16px; height: 16px; transition: transform .25s; }
.bmr__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.bmr__more:hover { background: var(--r-head); color: var(--r-bg); }

/* extra reviews: hidden until expanded (JS only) */
.bmr-js .bmr__item--more { display: none; }
.bmr-js.is-open .bmr__item--more { display: grid; animation: bmrIn .4s ease both; }
@keyframes bmrIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 767px) {
    .bmr__summary { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .bmr__score { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; justify-items: start; margin: 0; padding: 0 0 26px; border-right: 0; border-bottom: 1px solid var(--r-line); text-align: left; }
    .bmr__num { grid-row: 1 / 3; }
    .bmr__score .bmr__stars { margin-top: 0; align-self: end; }
    .bmr__count { margin-top: 4px; align-self: start; }
}
@media (max-width: 599px) {
    .bmr__container { padding-inline: 16px; }
    .bmr__summary { margin-top: 28px; padding-bottom: 26px; }
    .bmr__bars { gap: 9px; }
    .bmr__bars li { grid-template-columns: 12px minmax(0, 1fr) 74px; gap: 10px; }
    .bmr__bar-label { font-size: 12.5px; }
    .bmr__bar-n { font-size: 11.5px; }

    .bmr__cats { gap: 8px; padding: 20px 0; }
    .bmr__cats li { gap: 8px; padding: 6px 12px 6px 6px; }
    .bmr__cats b { min-width: 34px; padding: 3px 6px; font-size: 12px; }
    .bmr__cats span { font-size: 12.5px; }

    .bmr__item { grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 12px; padding: 20px 0; }
    .bmr__avatar { width: 40px; height: 40px; border-radius: 10px; font-size: 12.5px; }
    .bmr__name { font-size: 14.5px; }
    .bmr__when { font-size: 12px; }
    .bmr__rate-n { font-size: 14.5px; }
    .bmr__rate .bmr__stars { --sz: 12px; }
    .bmr__text { grid-column: 1 / -1; font-size: 14px; line-height: 1.65; }
    .bmr__more { min-height: 50px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .bmr *, .bmr-js .bmr__fill { transition-duration: .01ms !important; transition-delay: 0ms !important; }
    .bmr-js.is-open .bmr__item--more { animation: none; }
}