/* =================================================================
   PROFESSIONAL PROFILE — "ELEVATED BRAND BLUE" REFRESH LAYER
   -----------------------------------------------------------------
   Loads AFTER professional-profile.css and re-skins it to match the
   firm-profile brand (design-tokens.css + firm-profile-refresh.css).
   The base file is untouched — same markup / classes. Heavy !important
   because the base uses ~107 !important rules.
   To revert: remove the <link> to this file in page-professional-profile.php.
   Created: 2026-06-28
   ================================================================= */

/* ---------- Refresh tokens (scoped) + page canvas ---------- */
.rs-profile-page {
    --rf-blue:        #0064E0;
    --rf-blue-2:      #1A7BF0;
    --rf-blue-dark:   #0143B5;
    --rf-ink:         #0A1B33;
    --rf-text:        #1E2A3A;
    --rf-mid:         #586675;
    --rf-muted:       #8A93A0;
    --rf-line:        #E6ECF4;
    --rf-line-soft:   #EEF2F8;
    --rf-bg:          #F2F6FC;
    --rf-emerald:     #00A862;
    --rf-emerald-d:   #00824B;

    --rf-grad:        linear-gradient(135deg, #1A7BF0 0%, #0064E0 52%, #0143B5 100%);
    --rf-grad-emerald:linear-gradient(135deg, #14C074 0%, #00A862 100%);
    --rf-navy:        linear-gradient(160deg, #0143B5 0%, #0A1B33 100%);
    --rf-hero-bg:     linear-gradient(180deg, #FFFFFF 0%, #EAF2FF 100%);

    --rf-shadow-sm:   0 1px 2px rgba(16,24,40,.05);
    --rf-shadow:      0 2px 6px rgba(13,38,76,.05), 0 14px 30px -18px rgba(13,38,76,.22);
    --rf-shadow-lg:   0 24px 60px -24px rgba(13,38,76,.32);
    --rf-shadow-blue: 0 10px 24px -8px rgba(0,100,224,.45);

    --rf-radius:      20px;
    --rf-radius-sm:   12px;
    --rf-radius-pill: 999px;

    background:
        radial-gradient(1100px 420px at 50% -160px, rgba(0,100,224,.10), transparent 72%),
        var(--rf-bg) !important;
    font-family: var(--rs-font, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
}

/* ---------- Breadcrumbs ---------- */
.rs-profile-page .rs-breadcrumbs { color: var(--rf-muted) !important; font-weight: 500 !important; }
.rs-profile-page .rs-breadcrumbs a { color: var(--rf-mid) !important; }
.rs-profile-page .rs-breadcrumbs a:hover { color: var(--rf-blue) !important; }
.rs-profile-page .rs-bc-current { color: var(--rf-ink) !important; }

/* ======================= HERO ======================= */
.rs-profile-page .rs-hero {
    background: var(--rf-hero-bg) !important;
    border-bottom: 1px solid var(--rf-line) !important;
    position: relative;
    overflow: hidden;
}
.rs-profile-page .rs-hero::before {
    content: "";
    position: absolute; top: -160px; right: -120px;
    width: 460px; height: 460px;
    background: radial-gradient(circle at center, rgba(0,100,224,.12), transparent 65%);
    pointer-events: none;
}
.rs-profile-page .rs-hero-grid { position: relative; z-index: 1; }

/* Photo / avatar */
.rs-profile-page .rs-hero-photo img,
.rs-profile-page .rs-avatar-placeholder {
    border-radius: 20px !important;
    border: 1px solid var(--rf-line) !important;
    box-shadow: var(--rf-shadow) !important;
}
.rs-profile-page .rs-avatar-placeholder {
    background: var(--rf-grad) !important;
    color: #fff !important;
    font-weight: 800 !important;
    letter-spacing: -.5px !important;
}

/* Name + role */
.rs-profile-page .rs-name {
    color: var(--rf-ink) !important;
    font-weight: 800 !important;
    letter-spacing: -.02em !important;
}
.rs-profile-page .rs-role { color: var(--rf-mid) !important; font-weight: 600 !important; }

/* Rating row */
.rs-profile-page .rs-rating-num {
    background: var(--rf-grad) !important;
    color: #fff !important;
    border-radius: 9px !important;
    padding: 2px 10px !important;
    font-weight: 800 !important;
    box-shadow: var(--rf-shadow-blue) !important;
}
.rs-profile-page .rs-review-link { color: var(--rf-blue) !important; font-weight: 700 !important; }
.rs-profile-page .rs-rating-sep { color: var(--rf-line) !important; }

/* Accepting badge + read more */
.rs-profile-page .rs-accepting {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(0,168,98,.10) !important;
    color: var(--rf-emerald-d) !important;
    border-radius: var(--rf-radius-pill) !important;
    padding: 6px 14px !important;
    font-weight: 700 !important;
    width: max-content;
}
.rs-profile-page .rs-accepting i { color: var(--rf-emerald) !important; font-size: 8px !important; }
.rs-profile-page .rs-bio-excerpt { color: var(--rf-text) !important; }
.rs-profile-page .rs-readmore { color: var(--rf-blue) !important; font-weight: 700 !important; }

/* Hero sidebar (firm badge / details / actions) */
.rs-profile-page .rs-hero-sidebar,
.rs-profile-page .rs-firm-badge {
    background: #fff !important;
    border: 1px solid var(--rf-line) !important;
    border-radius: var(--rf-radius) !important;
    box-shadow: var(--rf-shadow) !important;
}
.rs-profile-page .rs-firm-logo,
.rs-profile-page .rs-firm-logo-ph { border-radius: 12px !important; border: 1px solid var(--rf-line) !important; }
.rs-profile-page .rs-firm-logo-ph { background: var(--rf-grad) !important; color: #fff !important; font-weight: 800 !important; }
.rs-profile-page .rs-firm-name { color: var(--rf-ink) !important; font-weight: 700 !important; }
.rs-profile-page .rs-detail-row { color: var(--rf-text) !important; }
.rs-profile-page .rs-detail-row i { color: var(--rf-blue) !important; }

/* ---------- Button system ---------- */
.rs-profile-page .rs-btn {
    border-radius: var(--rf-radius-pill) !important;
    font-weight: 700 !important;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease !important;
}
.rs-profile-page .rs-btn-dark,
.rs-profile-page .rs-write-review-link {
    background: var(--rf-grad) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: var(--rf-shadow-blue) !important;
}
.rs-profile-page .rs-btn-dark:hover,
.rs-profile-page .rs-write-review-link:hover { transform: translateY(-2px) !important; }
.rs-profile-page .rs-btn-block { width: 100% !important; justify-content: center !important; }
/* Non-primary hero action buttons → soft outline */
.rs-profile-page .rs-action-buttons .rs-btn:not(.rs-btn-dark) {
    background: #fff !important;
    color: var(--rf-blue-dark) !important;
    border: 1.5px solid var(--rf-line) !important;
    box-shadow: var(--rf-shadow-sm) !important;
}
.rs-profile-page .rs-action-buttons .rs-btn:not(.rs-btn-dark):hover { border-color: var(--rf-blue) !important; transform: translateY(-2px) !important; }

/* ======================= STICKY TAB BAR ======================= */
.rs-profile-page .rs-tab-bar {
    background: #fff !important;
    border-bottom: 1px solid var(--rf-line) !important;
    box-shadow: 0 2px 10px -6px rgba(13,38,76,.18) !important;
}
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
    .rs-profile-page .rs-tab-bar {
        background: rgba(255,255,255,.82) !important;
        -webkit-backdrop-filter: saturate(180%) blur(12px);
        backdrop-filter: saturate(180%) blur(12px);
    }
}
.rs-profile-page .rs-tab {
    color: var(--rf-mid) !important;
    font-weight: 700 !important;
    position: relative;
    background: transparent !important;
    border: none !important;
}
.rs-profile-page .rs-tab::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -1px;
    height: 3px; border-radius: 3px 3px 0 0;
    background: var(--rf-grad);
    transform: scaleX(0);
    transition: transform .22s cubic-bezier(.2,.7,.2,1);
}
.rs-profile-page .rs-tab:hover { color: var(--rf-ink) !important; }
.rs-profile-page .rs-tab.active { color: var(--rf-blue) !important; }
.rs-profile-page .rs-tab.active::after { transform: scaleX(1); }

/* ======================= SUITABILITY (navy) ======================= */
.rs-profile-page .rs-suitability-card {
    background:
        radial-gradient(600px 200px at 100% 0%, rgba(255,255,255,.12), transparent 60%),
        linear-gradient(135deg, #0A1B33 0%, #0143B5 100%) !important;
    border: none !important;
    border-radius: var(--rf-radius) !important;
    box-shadow: var(--rf-shadow-lg) !important;
    color: #fff !important;
    overflow: hidden;
}
.rs-profile-page .rs-suit-header h3 { color: #fff !important; font-weight: 800 !important; }
.rs-profile-page .rs-suit-desc { color: rgba(255,255,255,.85) !important; }
.rs-profile-page .rs-suit-dots .rs-dot { background: #6FE0AE !important; opacity: .55; }
.rs-profile-page .rs-suit-input {
    border: 1px solid rgba(255,255,255,.25) !important;
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    border-radius: var(--rf-radius-sm) !important;
}
.rs-profile-page .rs-suit-input::placeholder { color: rgba(255,255,255,.6) !important; }
.rs-profile-page .rs-suit-icon { color: rgba(255,255,255,.7) !important; }
.rs-profile-page .rs-suit-input-row .rs-btn {
    background: #fff !important;
    color: var(--rf-blue-dark) !important;
    box-shadow: var(--rf-shadow) !important;
}

/* ======================= CARDS ======================= */
.rs-profile-page .rs-card {
    background: #fff !important;
    border: 1px solid var(--rf-line) !important;
    border-radius: var(--rf-radius) !important;
    box-shadow: var(--rf-shadow) !important;
    transition: box-shadow .2s ease !important;
}
.rs-profile-page .rs-card:hover { box-shadow: var(--rf-shadow-lg) !important; }
.rs-profile-page .rs-card > h3 {
    color: var(--rf-ink) !important;
    font-weight: 800 !important;
    letter-spacing: -.01em !important;
    position: relative;
    padding-bottom: 12px !important;
}
.rs-profile-page .rs-card > h3::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 40px; height: 3px; border-radius: 3px;
    background: var(--rf-grad);
}

/* Section headings (Experience / Reviews) */
.rs-profile-page .rs-section-heading {
    color: var(--rf-ink) !important;
    font-weight: 800 !important;
    letter-spacing: -.02em !important;
    display: flex; align-items: center; gap: 12px;
}
.rs-profile-page .rs-section-heading::before {
    content: "";
    width: 5px; height: 24px; border-radius: 4px;
    background: var(--rf-grad);
}

/* ---------- Overview rating ---------- */
.rs-profile-page .rs-big-rating,
.rs-profile-page .rs-rev-big {
    background: var(--rf-grad) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800 !important;
}
.rs-profile-page .rs-rating-label { color: var(--rf-emerald-d) !important; font-weight: 800 !important; }
.rs-profile-page .rs-rev-slash,
.rs-profile-page .rs-rev-count { color: var(--rf-mid) !important; }

/* Circle badges → gradient rings */
.rs-profile-page .rs-circle-ring {
    background: var(--rf-grad) !important;
    box-shadow: var(--rf-shadow-blue) !important;
    border: none !important;
}
.rs-profile-page .rs-circle-badge:nth-child(1) .rs-circle-ring { background: var(--rf-grad-emerald) !important; box-shadow: 0 8px 18px -6px rgba(0,168,98,.5) !important; }
.rs-profile-page .rs-circle-pct { color: #fff !important; font-weight: 800 !important; }
.rs-profile-page .rs-circle-label { color: var(--rf-ink) !important; font-weight: 600 !important; }

/* Criteria rows */
.rs-profile-page .rs-criteria-row { border-bottom: 1px solid var(--rf-line-soft) !important; }
.rs-profile-page .rs-criteria-row i {
    color: var(--rf-blue) !important;
    background: rgba(0,100,224,.09) !important;
    border-radius: 8px !important;
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
}
.rs-profile-page .rs-criteria-name { color: var(--rf-text) !important; font-weight: 600 !important; }
.rs-profile-page .rs-criteria-score { color: var(--rf-ink) !important; font-weight: 800 !important; }

/* Contact + hours */
.rs-profile-page .rs-contact-col h3,
.rs-profile-page .rs-hours-col h3 { color: var(--rf-ink) !important; }
.rs-profile-page .rs-contact-item i { color: var(--rf-blue) !important; }
.rs-profile-page .rs-contact-item a { color: var(--rf-blue-dark) !important; font-weight: 600 !important; }
.rs-profile-page .rs-hour-row.rs-today,
.rs-profile-page .rs-today { background: rgba(0,100,224,.05) !important; border-radius: 8px !important; }
.rs-profile-page .rs-day { color: var(--rf-text) !important; }
.rs-profile-page .rs-open-badge { color: var(--rf-emerald-d) !important; font-weight: 700 !important; }
.rs-profile-page .rs-location-address strong { color: var(--rf-ink) !important; }

/* Experience items */
.rs-profile-page .rs-exp-logo { border-radius: 10px !important; border: 1px solid var(--rf-line) !important; }
.rs-profile-page .rs-experience-item strong { color: var(--rf-ink) !important; }
.rs-profile-page .rs-exp-role { color: var(--rf-mid) !important; }
.rs-profile-page .rs-exp-dates { color: var(--rf-muted) !important; }
.rs-profile-page .rs-bio-full { color: var(--rf-text) !important; line-height: 1.7 !important; }

/* ======================= REVIEWS ======================= */
.rs-profile-page .rs-brk-bar { background: #EDF1F7 !important; border-radius: var(--rf-radius-pill) !important; overflow: hidden; }
.rs-profile-page .rs-brk-fill,
.rs-profile-page .rs-fill-green {
    background: var(--rf-grad-emerald) !important;
    border-radius: var(--rf-radius-pill) !important;
    transform-origin: left center;
    animation: rf-grow .9s cubic-bezier(.2,.7,.2,1) both;
}
.rs-profile-page .rs-brk-label { color: var(--rf-text) !important; }
.rs-profile-page .rs-brk-count { color: var(--rf-muted) !important; }

.rs-profile-page .rs-review-card {
    background: #fff !important;
    border: 1px solid var(--rf-line) !important;
    border-radius: var(--rf-radius) !important;
    box-shadow: var(--rf-shadow) !important;
    transition: box-shadow .2s ease, transform .2s ease !important;
}
.rs-profile-page .rs-review-card:hover { box-shadow: var(--rf-shadow-lg) !important; transform: translateY(-2px); }
.rs-profile-page .rs-reviewer-avatar {
    background: var(--rf-grad) !important;
    color: #fff !important;
    font-weight: 800 !important;
    box-shadow: var(--rf-shadow-blue) !important;
    border: 2px solid #fff !important;
}
.rs-profile-page .rs-reviewer-name { color: var(--rf-ink) !important; font-weight: 700 !important; }
.rs-profile-page .rs-verified { color: var(--rf-emerald-d) !important; font-weight: 700 !important; }
.rs-profile-page .rs-verified i { color: var(--rf-emerald) !important; }
.rs-profile-page .rs-rev-date { color: var(--rf-muted) !important; }
.rs-profile-page .rs-area-badge {
    background: rgba(0,100,224,.07) !important;
    color: var(--rf-blue-dark) !important;
    border-radius: var(--rf-radius-pill) !important;
    font-weight: 700 !important;
}
.rs-profile-page .rs-rev-title { color: var(--rf-ink) !important; font-weight: 800 !important; }
.rs-profile-page .rs-rev-text { color: var(--rf-text) !important; line-height: 1.7 !important; }

/* Tagged solicitor panel */
.rs-profile-page .rs-tagged-solicitor {
    background: linear-gradient(180deg, #F7FAFF 0%, #EEF4FF 100%) !important;
    border: 1px solid rgba(0,100,224,.16) !important;
    border-left: 3px solid var(--rf-blue) !important;
    border-radius: var(--rf-radius-sm) !important;
}
.rs-profile-page .rs-tagged-label { color: var(--rf-blue-dark) !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .4px; font-size: 11px; }
.rs-profile-page .rs-tagged-person span { color: var(--rf-ink) !important; font-weight: 600 !important; }
.rs-profile-page .rs-tagged-avatar-ph { background: var(--rf-grad) !important; color: #fff !important; font-weight: 800 !important; }

/* Review footer */
.rs-profile-page .rs-rev-footer { border-top: 1px solid var(--rf-line-soft) !important; }
.rs-profile-page .rs-helpful-label { color: var(--rf-mid) !important; }
.rs-profile-page .rs-icon-btn {
    border: 1.5px solid var(--rf-line) !important;
    border-radius: var(--rf-radius-pill) !important;
    background: #fff !important;
    color: var(--rf-mid) !important;
    transition: all .16s ease !important;
}
.rs-profile-page .rs-icon-btn:hover { border-color: var(--rf-blue) !important; color: var(--rf-blue) !important; }
.rs-profile-page .rs-helpful-wrap.rs-voted .rs-helpful-btn[data-vote="yes"] { border-color: var(--rf-emerald) !important; color: var(--rf-emerald-d) !important; background: rgba(0,168,98,.08) !important; }
.rs-profile-page .rs-collected { color: var(--rf-muted) !important; }
.rs-profile-page .rs-collected strong { color: var(--rf-blue) !important; }

/* ======================= SIDEBAR ======================= */
.rs-profile-page .rs-expertise-item { color: var(--rf-text) !important; font-weight: 600 !important; }
.rs-profile-page .rs-expertise-item i { color: var(--rf-blue) !important; }
.rs-profile-page .rs-lang-tag {
    background: rgba(0,100,224,.07) !important;
    color: var(--rf-blue-dark) !important;
    border: 1px solid rgba(0,100,224,.16) !important;
    border-radius: var(--rf-radius-pill) !important;
    font-weight: 600 !important;
}

/* CTA card (navy, matches firm sidebar CTA) */
.rs-profile-page .rs-cta-card {
    background:
        radial-gradient(500px 180px at 100% 0%, rgba(255,255,255,.14), transparent 60%),
        var(--rf-navy) !important;
    border: none !important;
    box-shadow: var(--rf-shadow-lg) !important;
    color: #fff !important;
    overflow: hidden;
}
.rs-profile-page .rs-cta-card h3 { color: #fff !important; }
.rs-profile-page .rs-cta-card h3::after { display: none !important; }
.rs-profile-page .rs-cta-card p { color: rgba(255,255,255,.8) !important; }
.rs-profile-page .rs-cta-list li { color: rgba(255,255,255,.92) !important; }
.rs-profile-page .rs-cta-list li i { color: #6FE0AE !important; }
.rs-profile-page .rs-cta-card .rs-btn-dark {
    background: #fff !important;
    color: var(--rf-blue-dark) !important;
    box-shadow: var(--rf-shadow) !important;
}
.rs-profile-page .rs-cta-card .rs-btn-dark:hover { transform: translateY(-2px) !important; }

/* =================================================================
   v1.0.1 PATCH — fixes from the rendered screenshot.
   ================================================================= */

/* (1) Suitability card labels ("See availability / Expertise / Costs") were
   DARK text on the navy card — the label text sits directly inside
   .rs-suit-dots (not in a styled span), so it inherited the dark base colour. */
.rs-profile-page .rs-suit-dots {
    color: rgba(255,255,255,.9) !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 4px;
}
.rs-profile-page .rs-suit-dots .rs-dot { margin-left: 14px !important; }
.rs-profile-page .rs-suit-dots .rs-dot:first-child { margin-left: 0 !important; }
/* keep the dots' semantic colours (green = good, red = costs) */
.rs-profile-page .rs-suit-dots .rs-dot-green { background: #6FE0AE !important; }
.rs-profile-page .rs-suit-dots .rs-dot-red   { background: #FF8A9B !important; }

/* (2) Suitability header: give the title and the labels room to breathe. */
.rs-profile-page .rs-suit-header {
    display: flex;
    align-items: center;
    gap: 16px !important;
    flex-wrap: wrap;
}

/* (3) "Write a review" pill — force the brand pill to win (stronger selector). */
.rs-profile-page .rs-tab-bar .rs-write-review-link {
    background: var(--rf-grad) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--rf-radius-pill) !important;
    padding: 9px 18px !important;
    font-weight: 700 !important;
    box-shadow: var(--rf-shadow-blue) !important;
    transition: transform .16s ease !important;
}
.rs-profile-page .rs-tab-bar .rs-write-review-link:hover { transform: translateY(-2px) !important; }
.rs-profile-page .rs-tab-bar .rs-write-review-link i { color: #fff !important; }

/* (4) "Check suitability" button — keep white & legible on the navy input row. */
.rs-profile-page .rs-suit-btn {
    background: #fff !important;
    color: var(--rf-blue-dark) !important;
    box-shadow: var(--rf-shadow) !important;
}
.rs-profile-page .rs-suit-btn:hover { transform: translateY(-2px) !important; }

/* =================================================================
   v1.0.2 PATCH — hero sidebar card fix.
   The sidebar (.rs-hero-sidebar) is the CARD; the firm badge
   (.rs-firm-badge) is its header ROW — not a second nested card.
   The earlier rule styled BOTH as cards → card-in-a-card + no padding.
   ================================================================= */
.rs-profile-page .rs-hero-sidebar {
    padding: 22px !important;
    border-left: none !important;   /* base had a left-divider border */
}
.rs-profile-page .rs-firm-badge {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--rf-line) !important;  /* keep header separator only */
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 0 14px !important;
    margin-bottom: 16px !important;
}
/* Firm logo/photo: tidy fixed size so the header row is balanced */
.rs-profile-page .rs-firm-badge .rs-firm-logo,
.rs-profile-page .rs-firm-badge .rs-firm-logo-ph,
.rs-profile-page .rs-firm-badge .rs-firm-logo img {
    width: 52px !important;
    height: 52px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
}
.rs-profile-page .rs-firm-name { color: var(--rf-ink) !important; font-weight: 700 !important; font-size: 17px !important; }

/* ======================= ANIMATIONS ======================= */
@keyframes rf-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
    .rs-profile-page .rs-brk-fill,
    .rs-profile-page .rs-fill-green { animation: none !important; }
    .rs-profile-page * { transition: none !important; }
}
