/* ============================================================
   TESTIMONIALS PAGE — Argaman Plastic Surgeries Mexico
   Style inspired by Trustpilot / RealSelf review pages
   Palette : or / sombre / crème
   ============================================================ */

:root {
    --rev-card-bg:  #f5f3ed;
    --rev-card-bg-hover: #fffdf8;
    --rev-line:     #e6e3dc;
}

/* ---------- BREADCRUMB ---------- */
.rev-breadcrumb {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 18px 24px 0;
    width: 100%;
}
.rev-breadcrumb,
.rev-breadcrumb *,
.rev-breadcrumb *::before,
.rev-breadcrumb *::after {
    transition: none !important;
    animation: none !important;
}
.rev-breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 max(40px, 5vw);
}
.rev-breadcrumb-inner ol {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 10px; flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 400;
    color: #fff;
    letter-spacing: 0.2px;
}
.rev-breadcrumb-inner li {
    font-size: 14px; font-weight: 400;
    display: inline-flex; align-items: center;
}
.rev-breadcrumb-inner a,
.rev-breadcrumb-inner a:hover,
.rev-breadcrumb-inner a:focus,
.rev-breadcrumb-inner a:visited,
.rev-breadcrumb-inner a:active {
    color: #fff !important;
    text-decoration: none !important;
    background: transparent !important;
}
.rev-breadcrumb-inner li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: rgba(255,255,255,0.45);
    font-weight: 300;
}
.rev-breadcrumb-inner li:last-child { color: #fff; }

/* Tuer les pseudo-elements globaux héritésde index.css (trait doré animé + padding hover) */
.rev-breadcrumb-inner li a::before,
.rev-breadcrumb-inner li a:hover::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
}
.rev-breadcrumb-inner li a,
.rev-breadcrumb-inner li a:hover,
.rev-breadcrumb-inner li a:focus,
.rev-breadcrumb-inner li a:active {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ---------- HERO ---------- */
.rev-hero {
    position: relative;
    min-height: 70vh;
    padding: 120px 40px 140px;
    border-bottom: 1px solid var(--rev-line);
    background:
        linear-gradient(180deg, rgba(15,17,20,0.55) 0%, rgba(15,17,20,0.65) 100%),
        url('Images/reviews.argaman.%20plastic%20surgery%20mexico.webp') center / cover no-repeat;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.rev-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}
.rev-hero .kicker {
    color: #d8c28c;
    margin-bottom: 18px;
}
.rev-hero-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(38px, 4.5vw, 60px);
    line-height: 1.05;
    letter-spacing: -1.4px;
    color: #fff;
    margin: 0 0 22px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.rev-hero-sub {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
    font-weight: 300;
    max-width: 720px;
    margin: 0 auto;
}


/* ---------- SUMMARY BAR + TABS ---------- */
.rev-summary-section {
    background: #fff;
    padding: 50px 40px 30px;
}

.rev-summary-bar {
    max-width: 1280px;
    margin: 0 auto 36px;
    background: #fff;
    padding: 22px 30px;
    border: 1px solid var(--rev-line);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    box-shadow: 0 4px 12px rgba(47,53,59,0.04);
}

.rev-rating-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-family: var(--font-sans);
    color: var(--color-dark);
}
.rev-rating-summary strong {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-dark);
}
.rev-stars-big {
    color: var(--color-gold);
    font-size: 20px;
    letter-spacing: 2px;
}
.rev-rating-value {
    font-weight: 700;
    font-size: 17px;
}
.rev-rating-sep {
    color: #ccc;
    margin: 0 4px;
}
.rev-rating-count {
    color: var(--color-slate);
    font-size: 14px;
}

.rev-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: 1px solid var(--color-dark);
    background: transparent;
    color: var(--color-dark);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all .3s;
    cursor: pointer;
}
.rev-write-btn:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: #fff;
}


/* TABS */
.rev-tabs {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 36px;
    border-bottom: 1px solid var(--rev-line);
    padding-bottom: 0;
}
.rev-tab {
    background: none;
    border: none;
    padding: 14px 4px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-slate);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .3s;
}
.rev-tab img { width: 16px; height: 16px; }
.rev-tab-logo { width: 16px; height: 18px; flex: none; color: var(--color-dark); }
.rev-tab.active .rev-tab-logo { color: var(--color-gold); }
.rev-tab:hover { color: var(--color-dark); }
.rev-tab.active {
    color: var(--color-dark);
    border-bottom-color: var(--color-gold);
}


/* ---------- GRID ---------- */
.rev-grid-section {
    background: #fff;
    padding: 50px 40px 100px;
}
.rev-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}


/* ---------- REVIEW CARD ---------- */
.rev-card {
    background: var(--rev-card-bg);
    border-radius: 6px;
    padding: 26px 24px 24px;
    position: relative;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    border: 1px solid transparent;
}
.rev-card:hover {
    background: var(--rev-card-bg-hover);
    border-color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(47,53,59,0.08);
}

.rev-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-right: 30px;
    position: relative;
}
.rev-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}
.rev-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rev-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.2;
    min-width: 0;
}
.rev-meta strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}
.rev-meta small {
    font-size: 11.5px;
    color: var(--color-grey-soft);
    font-weight: 400;
}

.rev-source-logo {
    position: absolute;
    top: -2px;
    right: 0;
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.rev-source-logo.rs { filter: grayscale(0.5) brightness(0.5); width: 22px; }
.rev-source-logo.argaman { width: 20px; height: 22px; color: var(--color-dark); display: inline-flex; align-items: center; justify-content: center; }
.argaman-mark { width: 100%; height: 100%; display: block; }
/* Avatar des avis Argaman : marque « a/ » sur fond crème */
.rev-avatar--brand { background: #f5eee6 !important; color: var(--color-dark); }
.rev-avatar--brand .argaman-mark { width: 58%; height: 58%; }

/* Avatar Argaman Plastic Surgeries Mexico : fond crème pour mettre en valeur le logo SVG */
.rev-card-header .rev-avatar img[src*="favicon"],
.rev-card-header .rev-avatar img[alt="Argaman Plastic Surgeries Mexico"] {
    width: 70%; height: 70%; object-fit: contain;
}
.rev-color-sand:has(img[alt="Argaman Plastic Surgeries Mexico"]) { background: #f5eee6 !important; }

/* ---------- Add a comment form ---------- */
.rev-addcomment-section {
    background: #fff;
    padding: 60px 24px 80px;
    border-top: 1px solid #ece9df;
}
.rev-addcomment-wrap {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.rev-addcomment-wrap h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 300;
    color: #2F353B;
    margin: 0 0 14px;
    letter-spacing: -0.6px;
}
.rev-addcomment-wrap > p {
    font-family: 'Inter', sans-serif;
    font-size: 15.5px;
    color: #545F66;
    margin: 0 0 36px;
    line-height: 1.65;
}
.rev-addcomment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: left;
}
.rev-addcomment-form .full { grid-column: 1 / -1; }
.rev-addcomment-form label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
}
.rev-addcomment-form input,
.rev-addcomment-form select,
.rev-addcomment-form textarea {
    width: 100%;
    padding: 13px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: #2F353B;
    border: 1px solid #ece9df;
    background: #fafafa;
    border-radius: 2px;
    transition: border-color .25s;
}
.rev-addcomment-form input:focus,
.rev-addcomment-form select:focus,
.rev-addcomment-form textarea:focus {
    outline: none;
    border-color: #C0A062;
    background: #fff;
}
.rev-addcomment-form textarea { min-height: 130px; resize: vertical; }
/* Star rating picker — 5 stars cliquables, radio inputs masqués */
.rev-rating-pick {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    padding: 4px 0;
}
.rev-rating-pick input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}
.rev-rating-pick label {
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    color: #d8d4ca;
    transition: color .15s ease;
    margin: 0;
    padding: 0 2px;
    letter-spacing: 0;
    text-transform: none;
    user-select: none;
}
/* État sélectionné (clic) : étoile cochée + toutes celles à droite visuellement (= siblings ~ dans le DOM reversed) */
.rev-rating-pick input:checked ~ label { color: #C0A062; }
/* Hover : étoile survolée + toutes celles à droite visuellement */
.rev-rating-pick label:hover,
.rev-rating-pick label:hover ~ label { color: #C0A062; }
.rev-rating-pick input:focus-visible + label { outline: 2px solid #C0A062; outline-offset: 2px; }
.rev-submit-btn {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 8px;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: #C0A062;
    border: 1px solid #C0A062;
    cursor: pointer;
    transition: all .3s;
}
.rev-submit-btn:hover { background: transparent; color: #C0A062; }
.rev-form-message {
    grid-column: 1 / -1;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    background: #f5eee6;
    border-left: 3px solid #C0A062;
    color: #2F353B;
    display: none;
}
.rev-form-message.active { display: block; }
@media (max-width: 600px) {
    .rev-addcomment-form { grid-template-columns: 1fr; }
}


/* Stars */
.rev-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 14px;
    color: #e8a39e;
    font-size: 16px;
    letter-spacing: 1px;
}
.rev-stars.gold { color: var(--color-gold); }
.rev-stars .star.dim { color: #e0ddd2; }
.rev-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #4285f4;
    color: #fff;
    font-size: 8px;
    margin-left: 6px;
    font-weight: 700;
}


/* Text */
.rev-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 8px;
    line-height: 1.35;
}
.rev-text {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-slate);
    font-weight: 400;
    flex-grow: 1;
    margin: 0 0 14px;
    /* Truncate to 4 lines */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rev-readmore {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-grey-soft);
    text-decoration: none;
    cursor: pointer;
    transition: color .3s;
    margin-top: auto;
    align-self: flex-start;
}
.rev-card:hover .rev-readmore { color: var(--color-gold); }


/* Avatar colors */
.rev-color-pink   { background: #c58b95; }
.rev-color-orange { background: #c8946b; }
.rev-color-blue   { background: #6f8caa; }
.rev-color-green  { background: #8aa186; }
.rev-color-purple { background: #9586a6; }
.rev-color-coral  { background: #d49b7a; }
.rev-color-teal   { background: #6ba4a0; }
.rev-color-rose   { background: #c39086; }
.rev-color-sand   { background: #b9a17c; }
.rev-color-slate  { background: #7e8a96; }


/* Load more */
.rev-loadmore-wrap {
    text-align: center;
    margin-top: 50px;
}
.rev-loadmore-btn {
    background: var(--color-dark);
    color: #fff;
    border: 1px solid var(--color-dark);
    padding: 16px 38px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.rev-loadmore-btn i { font-size: 11px; transition: transform .3s; }
.rev-loadmore-btn:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
}
.rev-loadmore-btn:hover i { transform: translateY(3px); }
.rev-loadmore-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #ccc;
    border-color: #ccc;
}
.rev-shown {
    margin-top: 16px;
    font-size: 12px;
    color: var(--color-grey-soft);
    letter-spacing: 1px;
}


/* ---------- MODAL ---------- */
.rev-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15,17,20,0.7);
    z-index: 4000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 40px;
    overflow-y: auto;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.rev-modal-overlay.open {
    display: flex;
    animation: revFadeIn .25s ease-out;
}
@keyframes revFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.rev-modal-card {
    background: #fff;
    width: 100%;
    max-width: 560px;
    border-radius: 6px;
    padding: 40px 38px 36px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: revModalUp .3s ease-out;
}
@keyframes revModalUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.rev-modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--color-slate);
    cursor: pointer;
    transition: color .3s;
}
.rev-modal-close:hover { color: var(--color-gold); }

.rev-modal-content .rev-card-header {
    margin-bottom: 22px;
}
.rev-modal-content .rev-text {
    -webkit-line-clamp: unset;
    display: block;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--color-dark);
    margin-bottom: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .rev-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .rev-hero { padding: 80px 24px 50px; }
    .rev-summary-section { padding: 40px 24px 20px; }
    .rev-grid-section { padding: 30px 24px 80px; }

    .rev-summary-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }
    .rev-rating-summary { justify-content: center; }
    .rev-write-btn { justify-content: center; }

    .rev-tabs {
        justify-content: center;
        gap: 22px;
        flex-wrap: wrap;
    }

    .rev-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .rev-card { min-height: 280px; padding: 22px 20px; }
}

@media (max-width: 600px) {
    .rev-grid { grid-template-columns: 1fr; }
    .rev-hero-title { font-size: 34px; letter-spacing: -0.8px; }
    .rev-hero-sub { font-size: 15px; }
    .rev-tab { font-size: 11px; letter-spacing: 1px; padding: 12px 4px; }
    .rev-modal-card { padding: 32px 22px 28px; }
}
