/* ==========================================================
   RS VERITY – Services / practice / diagnostic / contact pages
   Works LTR + RTL (logical properties) and light + dark mode
   ========================================================== */
:root {
    --rsv-brown: #301e02;
    --rsv-brown-2: #4a3210;
    --rsv-gold: #c4a27c;
    --rsv-gold-2: #a8835a;
    --rsv-cream: #f7f2ea;
    --rsv-ink: #2a2118;
    --rsv-text: #5d554c;
    --rsv-line: #e9e1d5;
    --rsv-card: #ffffff;
    --rsv-alt: #faf7f2;
}
html[data-theme="dark"] {
    --rsv-ink: #f3ede4;
    --rsv-text: #bdb5aa;
    --rsv-line: #3a342d;
    --rsv-card: #1b1815;
    --rsv-alt: #161310;
    --rsv-cream: #24201c;
}

.rsv-page { color: var(--rsv-text); }
.rsv-page h1, .rsv-page h2, .rsv-page h3 { color: var(--rsv-ink); text-transform: none; letter-spacing: 0; }

/* ---------- Hero ---------- */
.rsv-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 64px;
    background: linear-gradient(135deg, #2a1a02 0%, #3d2706 55%, #4d3412 100%);
    color: rgba(255,255,255,.82);
}
.rsv-hero:before {
    content: "";
    position: absolute; inset-block: -40%; inset-inline-end: -10%;
    width: 520px; height: 520px; border-radius: 50%;
    border: 1px solid rgba(196,162,124,.25);
    box-shadow: 0 0 0 60px rgba(196,162,124,.05), 0 0 0 140px rgba(196,162,124,.035);
    pointer-events: none;
}
.rsv-hero .container { position: relative; }
.rsv-crumbs { font-size: 13px; margin-bottom: 26px; color: rgba(255,255,255,.6); }
.rsv-crumbs a { color: rgba(255,255,255,.75); }
.rsv-crumbs a:hover { color: var(--rsv-gold); }
.rsv-crumbs span[aria-hidden] { margin: 0 8px; opacity: .5; }
.rsv-crumbs [aria-current] { color: var(--rsv-gold); }
.rsv-eyebrow {
    display: inline-block; margin-bottom: 14px; padding: 5px 14px; border-radius: 30px;
    border: 1px solid rgba(196,162,124,.5); color: var(--rsv-gold);
    font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.rsv-page .rsv-hero h1 { color: #fff !important; font-size: 44px; line-height: 1.2; margin: 0 0 10px; font-weight: 700; max-width: 820px; }
.rsv-tagline { color: var(--rsv-gold) !important; font-size: 19px; font-style: italic; margin: 0 0 22px; }
.rsv-lead { color: rgba(255,255,255,.82) !important; font-size: 16px; line-height: 1.85; max-width: 780px; margin: 0 0 12px; }

/* ---------- Sections ---------- */
.rsv-section { padding: 72px 0; background: transparent; }
.rsv-section--alt { background: var(--rsv-alt); }
.rsv-head { max-width: 760px; margin-bottom: 36px; }
.rsv-head h2 { font-size: 30px; line-height: 1.3; margin: 0 0 14px; font-weight: 700; position: relative; padding-bottom: 16px; }
.rsv-head h2:after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 56px; height: 3px; background: var(--rsv-gold); border-radius: 2px; }
.rsv-head p { font-size: 16px; line-height: 1.85; margin: 0 0 10px; color: var(--rsv-text); }
.rsv-note { margin-top: 22px; font-size: 14px; line-height: 1.8; color: var(--rsv-text); padding-inline-start: 14px; border-inline-start: 3px solid var(--rsv-line); }

/* ---------- Practice cards ---------- */
.rsv-practices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rsv-practice {
    position: relative; display: flex; flex-direction: column;
    padding: 34px 30px 30px; border-radius: 6px; background: var(--rsv-card);
    border: 1px solid var(--rsv-line); color: var(--rsv-text); text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.rsv-practice:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(48,30,2,.12); border-color: var(--rsv-gold); color: var(--rsv-text); }
.rsv-practice-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--rsv-brown); color: var(--rsv-gold); font-size: 22px; margin-bottom: 22px; }
.rsv-practice-n { position: absolute; inset-inline-end: 26px; top: 22px; font-size: 40px; font-weight: 700; color: var(--rsv-line); line-height: 1; }
.rsv-practice h3 { font-size: 21px; margin: 0 0 4px; font-weight: 700; }
.rsv-practice-sub { color: var(--rsv-gold-2) !important; font-weight: 600; font-size: 14px; margin: 0 0 14px; }
.rsv-practice p { line-height: 1.8; margin: 0 0 20px; }
.rsv-more { margin-top: auto; color: var(--rsv-brown); font-weight: 700; font-size: 14px; }
html[data-theme="dark"] .rsv-more { color: var(--rsv-gold); }

/* ---------- Feature cards ---------- */
.rsv-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rsv-features--2, .rsv-features--4 { grid-template-columns: repeat(2, 1fr); }
.rsv-feature { position: relative; padding: 28px 26px; background: var(--rsv-card); border: 1px solid var(--rsv-line); border-radius: 6px; }
.rsv-section--alt .rsv-feature { background: var(--rsv-card); }
.rsv-num { display: inline-block; font-size: 13px; font-weight: 700; color: var(--rsv-gold-2); border-bottom: 2px solid var(--rsv-gold); padding-bottom: 3px; margin-bottom: 14px; }
.rsv-feature h3 { font-size: 18px; margin: 0 0 10px; font-weight: 700; line-height: 1.45; }
.rsv-feature p { margin: 0; line-height: 1.8; }
.rsv-tag { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; padding: 4px 12px; border-radius: 20px; background: var(--rsv-cream); color: var(--rsv-brown); font-size: 12px; font-weight: 600; }
html[data-theme="dark"] .rsv-tag { color: var(--rsv-gold); }
.rsv-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rsv-chips li { padding: 5px 12px; border-radius: 20px; background: var(--rsv-cream); color: var(--rsv-ink); font-size: 13px; line-height: 1.5; border: 1px solid var(--rsv-line); }

/* ---------- Service cards (H3) ---------- */
.rsv-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.rsv-cards--3 { grid-template-columns: repeat(3, 1fr); }
.rsv-card { position: relative; padding: 30px 28px; background: var(--rsv-card); border: 1px solid var(--rsv-line); border-radius: 6px; border-top: 3px solid var(--rsv-gold); }
.rsv-card-n { display: block; font-size: 13px; font-weight: 700; color: var(--rsv-gold-2); margin-bottom: 8px; }
.rsv-card h3 { font-size: 19px; margin: 0 0 12px; font-weight: 700; line-height: 1.45; }
.rsv-card-lead { color: var(--rsv-ink) !important; font-weight: 600; margin: 0 0 8px; line-height: 1.7; }
.rsv-card p { line-height: 1.8; margin: 0 0 10px; }
.rsv-card .rsv-checklist { margin-top: 12px; grid-template-columns: 1fr; }

/* ---------- Checklists ---------- */
.rsv-checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
.rsv-checklist li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.75; padding: 14px 18px; background: var(--rsv-card); border: 1px solid var(--rsv-line); border-radius: 6px; }
.rsv-checklist li i { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 2px; }
.rsv-checklist--challenge li i { background: #f6ebe0; color: #9a5a1c; }
.rsv-checklist--outcome li i, .rsv-checklist--list li i { background: var(--rsv-brown); color: var(--rsv-gold); }
html[data-theme="dark"] .rsv-checklist--challenge li i { background: #3a2a18; color: #e8b77f; }
.rsv-card .rsv-checklist li { padding: 0; border: 0; background: transparent; }

/* ---------- Steps ---------- */
.rsv-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.rsv-steps li { display: flex; gap: 20px; align-items: flex-start; padding: 22px 24px; background: var(--rsv-card); border: 1px solid var(--rsv-line); border-radius: 6px; }
.rsv-step-n { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--rsv-brown); color: var(--rsv-gold); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.rsv-steps h3 { font-size: 17px; margin: 0 0 6px; font-weight: 700; }
.rsv-steps p { margin: 0; line-height: 1.8; }
.rsv-steps--row { grid-template-columns: repeat(3, 1fr); position: relative; }
.rsv-steps--row li { flex-direction: column; gap: 14px; position: relative; }
.rsv-steps--row li:not(:last-child):after {
    content: "\f178"; font-family: FontAwesome; position: absolute; top: 34px; inset-inline-end: -14px; z-index: 2;
    width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: var(--rsv-gold); color: #fff; font-size: 12px;
}
html[dir="rtl"] .rsv-steps--row li:not(:last-child):after { content: "\f177"; }
/* maturity scale */
.rsv-steps--scale li { border-inline-start: 4px solid var(--rsv-gold); }
.rsv-steps--scale li:nth-child(1) .rsv-step-n { background: #c9b79f; color: #301e02; }
.rsv-steps--scale li:nth-child(2) .rsv-step-n { background: #b08f68; color: #fff; }
.rsv-steps--scale li:nth-child(3) .rsv-step-n { background: #8a6a43; color: #fff; }
.rsv-steps--scale li:nth-child(4) .rsv-step-n { background: #5d4220; color: #fff; }
.rsv-steps--scale li:nth-child(5) .rsv-step-n { background: #301e02; color: var(--rsv-gold); }

/* ---------- Callout ---------- */
.rsv-callout { display: flex; gap: 20px; margin-top: 34px; padding: 26px 28px; border-radius: 6px; background: var(--rsv-cream); border-inline-start: 4px solid var(--rsv-gold); }
.rsv-callout-icon { font-size: 26px; color: var(--rsv-gold-2); margin-top: 4px; }
.rsv-callout h3 { font-size: 18px; margin: 0 0 6px; font-weight: 700; }
.rsv-callout p { margin: 0; line-height: 1.8; }

/* ---------- Buttons ---------- */
.rsv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.rsv-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 3px;
    background: var(--rsv-brown); color: #fff !important; font-weight: 600; font-size: 15px; line-height: 1.3;
    border: 1px solid var(--rsv-brown); text-decoration: none !important; cursor: pointer; transition: all .25s ease;
}
.rsv-btn:hover { background: var(--rsv-gold); border-color: var(--rsv-gold); color: #1e1202 !important; }
.rsv-btn--ghost { background: transparent; color: var(--rsv-brown) !important; }
html[data-theme="dark"] .rsv-btn--ghost { color: var(--rsv-gold) !important; border-color: var(--rsv-gold); }
html[dir="rtl"] .rsv-btn .fa-long-arrow-right:before, html[dir="rtl"] .rsv-more .fa-long-arrow-right:before, html[dir="rtl"] .rsv-textlink .fa-long-arrow-right:before { content: "\f177"; }
.rsv-textlink { margin-top: 22px; }
.rsv-textlink a { color: var(--rsv-brown); font-weight: 700; }
html[data-theme="dark"] .rsv-textlink a { color: var(--rsv-gold); }

/* ---------- CTA band ---------- */
.rsv-cta { padding: 64px 0; background: var(--rsv-brown); background-image: radial-gradient(circle at 85% 20%, rgba(196,162,124,.18), transparent 45%); }
.rsv-cta .rsv-head { margin-bottom: 0; }
.rsv-page .rsv-cta h2 { color: #fff !important; }
.rsv-cta p { color: rgba(255,255,255,.8) !important; }
.rsv-cta .rsv-btn { background: var(--rsv-gold); border-color: var(--rsv-gold); color: #1e1202 !important; }
.rsv-cta .rsv-btn:hover { background: #fff; border-color: #fff; }
.rsv-cta .rsv-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }

/* ---------- Contact ---------- */
.rsv-contact-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 34px; align-items: start; }
.rsv-form-wrap, .rsv-contact-card { padding: 34px; border-radius: 6px; background: var(--rsv-card); border: 1px solid var(--rsv-line); }
.rsv-form-wrap h2, .rsv-contact-card h2 { font-size: 24px; margin: 0 0 22px; font-weight: 700; }
.rsv-contact-card { background: var(--rsv-brown); border-color: var(--rsv-brown); position: sticky; top: 120px; }
.rsv-page .rsv-contact-card h2 { color: #fff !important; }
.rsv-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.rsv-field--full { grid-column: 1 / -1; }
.rsv-field label { display: block; font-weight: 600; font-size: 14px; color: var(--rsv-ink) !important; margin-bottom: 7px; }
.rsv-req { color: #b3541e; }
.rsv-opt { font-weight: 400; color: var(--rsv-text); font-size: 12px; }
.rsv-form input[type="text"], .rsv-form input[type="email"], .rsv-form input[type="tel"], .rsv-form select, .rsv-form textarea {
    width: 100%; height: 48px; padding: 0 14px; margin: 0; border: 1px solid var(--rsv-line); border-radius: 4px;
    background: var(--rsv-alt); color: var(--rsv-ink); font-size: 14px; box-shadow: none; transition: border-color .2s ease, background .2s ease;
}
.rsv-form textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.rsv-form select { appearance: auto; }
.rsv-form input:focus, .rsv-form select:focus, .rsv-form textarea:focus { outline: none; border-color: var(--rsv-gold); background: var(--rsv-card); }
.rsv-form .is-invalid { border-color: #c0392b !important; }
html[dir="rtl"] .rsv-form input[dir="ltr"] { text-align: right; }
.rsv-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; line-height: 1.7; cursor: pointer; }
.rsv-consent input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--rsv-brown); flex: 0 0 auto; }
.rsv-form .rsv-actions { margin-top: 24px; }
.rsv-form .form-msg { margin-top: 18px; }
.rsv-contact-list { list-style: none; margin: 0; padding: 0; }
.rsv-contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12) !important; color: rgba(255,255,255,.85) !important; line-height: 1.6; }
.rsv-contact-list li:last-child { border-bottom: 0 !important; }
.rsv-contact-list i { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: rgba(196,162,124,.18); color: var(--rsv-gold); display: inline-flex; align-items: center; justify-content: center; }
.rsv-contact-list a { color: #fff !important; }
.rsv-contact-list a:hover { color: var(--rsv-gold) !important; }
.rsv-contact-list span { padding-top: 7px; }

/* ---------- Arabic typography ---------- */
html[dir="rtl"] .rsv-page .rsv-hero h1 { font-size: 42px; line-height: 1.45; font-weight: 800; }
html[dir="rtl"] .rsv-tagline { font-style: normal; font-weight: 600; }
html[dir="rtl"] .rsv-lead, html[dir="rtl"] .rsv-head p { line-height: 2; font-size: 16.5px; }
html[dir="rtl"] .rsv-head h2 { font-size: 30px; font-weight: 800; line-height: 1.5; }
html[dir="rtl"] .rsv-feature p, html[dir="rtl"] .rsv-card p, html[dir="rtl"] .rsv-checklist li, html[dir="rtl"] .rsv-steps p, html[dir="rtl"] .rsv-practice p { line-height: 1.95; font-size: 15px; }
html[dir="rtl"] .rsv-feature h3, html[dir="rtl"] .rsv-card h3, html[dir="rtl"] .rsv-practice h3 { font-weight: 800; }
html[dir="rtl"] .rsv-eyebrow { letter-spacing: 0; }
html[dir="rtl"] .rsv-num, html[dir="rtl"] .rsv-card-n, html[dir="rtl"] .rsv-practice-n { font-family: "Poppins", sans-serif !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .rsv-practices, .rsv-features, .rsv-cards--3 { grid-template-columns: repeat(2, 1fr); }
    .rsv-contact-grid { grid-template-columns: 1fr; }
    .rsv-contact-card { position: static; }
    .rsv-page .rsv-hero h1 { font-size: 36px; }
}
@media (max-width: 767px) {
    .rsv-hero { padding: 48px 0 44px; }
    .rsv-section, .rsv-cta { padding: 52px 0; }
    .rsv-practices, .rsv-features, .rsv-features--2, .rsv-features--4, .rsv-cards, .rsv-cards--3, .rsv-checklist, .rsv-steps--row, .rsv-form-grid { grid-template-columns: 1fr; }
    .rsv-steps--row li:not(:last-child):after { display: none; }
    .rsv-page .rsv-hero h1, html[dir="rtl"] .rsv-page .rsv-hero h1 { font-size: 30px; }
    .rsv-head h2, html[dir="rtl"] .rsv-head h2 { font-size: 24px; }
    .rsv-form-wrap, .rsv-contact-card { padding: 24px 20px; }
    .rsv-actions { flex-direction: column; align-items: stretch; }
    .rsv-btn { justify-content: center; }
}

/* keep brand colours on the dark hero / CTA / contact card in both themes */
html .rsv-page .rsv-hero .rsv-lead { color: rgba(255,255,255,.82) !important; }
html .rsv-page .rsv-hero .rsv-tagline { color: var(--rsv-gold) !important; }
html .rsv-page .rsv-cta p { color: rgba(255,255,255,.8) !important; }
html .rsv-page .rsv-contact-list li { color: rgba(255,255,255,.85) !important; }
html .rsv-page .rsv-practice-sub { color: var(--rsv-gold-2) !important; }
html[data-theme="dark"] .rsv-page .rsv-practice-sub { color: var(--rsv-gold) !important; }
html .rsv-page .rsv-card-lead { color: var(--rsv-ink) !important; }
html .rsv-page .rsv-chips li { color: var(--rsv-ink) !important; }
html .rsv-page .rsv-field label { color: var(--rsv-ink) !important; }
html[data-theme="dark"] .rsv-page .rsv-form input, html[data-theme="dark"] .rsv-page .rsv-form select, html[data-theme="dark"] .rsv-page .rsv-form textarea { background-color: var(--rsv-alt) !important; border-color: var(--rsv-line) !important; }
html[data-theme="dark"] .rsv-page img { filter: none; }
