/* ============================================================
   أخبار 24 — Art Contemporain Galerie (RTL Arabic, Morocco)
   Parent: Kadence | Hero: parallax-scroll | Header: logo-left-menu-right
   ============================================================ */

/* ---- 1. ROOT VARIABLES ---- */
:root {
  --rp-primary:   #0A0A0A;
  --rp-primary-2: #1A1A1A;
  --rp-accent:    #D63031;
  --rp-accent-2:  #B02728;
  --rp-bg:        #FFFFFF;
  --rp-surface:   #FAFAFA;
  --rp-text:      #0A0A0A;
  --rp-text-soft: #666666;
  --rp-line:      #E5E5E5;

  --rp-font-head: "Amiri", "Reem Kufi", "Cairo", Georgia, serif;
  --rp-font-body: "Cairo", "Tajawal", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --rp-radius-sm: 2px;
  --rp-radius:    4px;
  --rp-radius-lg: 10px;

  --rp-shadow-1: 0 2px 10px rgba(10,10,10,0.06);
  --rp-shadow-2: 0 16px 40px rgba(10,10,10,0.12);
  --rp-shadow-accent: 0 12px 32px rgba(214,48,49,0.22);

  --rp-container: 1280px;
  --rp-gutter: clamp(16px, 3vw, 40px);

  --rp-header-h: 84px;
}

/* ---- 2. BASE / RESET-LITE ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.rp-body {
  margin: 0;
  background: var(--rp-bg);
  color: var(--rp-text);
  font-family: var(--rp-font-body);
  font-size: 17px;
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rp-font-head);
  font-weight: 700;
  color: var(--rp-text);
  line-height: 1.25;
  margin: 0 0 .7em;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--rp-accent);
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
a:hover { color: var(--rp-accent-2); }

.rp-container { width: 100%; max-width: var(--rp-container); margin: 0 auto; padding: 0 var(--rp-gutter); }

.rp-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- 3. BUTTONS ---- */
.rp-btn {
  display: inline-block;
  font-family: var(--rp-font-body);
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 28px;
  border: 2px solid var(--rp-primary);
  background: var(--rp-primary);
  color: #fff;
  border-radius: var(--rp-radius-sm);
  cursor: pointer;
  text-align: center;
  letter-spacing: .02em;
  transition: all .3s ease;
  text-decoration: none;
  line-height: 1.2;
}
.rp-btn:hover { background: var(--rp-accent); border-color: var(--rp-accent); color: #fff; }

.rp-btn--cta {
  background: var(--rp-accent);
  border-color: var(--rp-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(214,48,49,0.20);
}
.rp-btn--cta:hover {
  background: var(--rp-accent-2);
  border-color: var(--rp-accent-2);
}

.rp-btn--ghost {
  background: transparent;
  border-color: var(--rp-primary);
  color: var(--rp-primary);
}
.rp-btn--ghost:hover {
  background: var(--rp-primary);
  color: #fff;
}

/* ---- 4. HEADER (logo-left-menu-right gallery style) ---- */
.rp-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--rp-line);
  backdrop-filter: saturate(180%) blur(10px);
}
.rp-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--rp-header-h);
  padding-top: 14px; padding-bottom: 14px;
}
.rp-header__brand {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
  text-decoration: none; color: var(--rp-primary);
}
.rp-header__logo {
  width: 52px; height: 52px;
  border-radius: var(--rp-radius-sm);
  object-fit: contain;
}
.rp-header__brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.rp-header__title {
  font-family: var(--rp-font-head);
  font-size: 1.6rem; font-weight: 700;
  color: var(--rp-primary);
}
.rp-header__tagline {
  font-size: .78rem;
  color: var(--rp-text-soft);
  margin-top: 4px;
}

.rp-header__nav { flex: 1; display: flex; justify-content: center; }
.rp-header__nav .rp-nav-list,
.rp-header__nav ul {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; padding: 0; margin: 0;
}
.rp-header__nav li { position: relative; }
.rp-header__nav a {
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--rp-font-body);
  font-size: .95rem; font-weight: 600;
  color: var(--rp-primary);
  border-bottom: 2px solid transparent;
  transition: all .2s ease;
}
.rp-header__nav a:hover { color: var(--rp-accent); border-bottom-color: var(--rp-accent); }
.rp-header__nav .current-menu-item > a,
.rp-header__nav .current_page_item > a {
  color: var(--rp-accent); border-bottom-color: var(--rp-accent);
}

.rp-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.rp-header__cta { padding: 10px 22px; font-size: .9rem; }

.rp-header__burger {
  display: none;
  background: transparent; border: none;
  width: 44px; height: 44px; padding: 10px;
  cursor: pointer;
  flex-direction: column; justify-content: space-around;
}
.rp-header__burger span {
  display: block; height: 2px; background: var(--rp-primary);
  transition: all .25s;
}

@media (max-width: 980px) {
  .rp-header__nav { display: none; }
  .rp-header__burger { display: flex; }
  .rp-header__cta { display: none; }
}

/* ---- 5. NAV DRAWER (mobile) ---- */
.rp-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.5);
  opacity: 0; pointer-events: none;
  z-index: 200; transition: opacity .3s;
}
.rp-nav-overlay.is-open { opacity: 1; pointer-events: all; }
.rp-nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 85%; max-width: 360px;
  background: var(--rp-bg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .35s ease;
  padding: 24px;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}
.rp-nav-drawer.is-open { transform: translateX(0); }
.rp-nav-drawer__close {
  background: none; border: none; font-size: 2rem;
  cursor: pointer; color: var(--rp-primary);
  position: absolute; top: 12px; left: 12px;
}
.rp-nav-drawer .rp-nav-list { list-style: none; padding: 0; margin: 50px 0 0; }
.rp-nav-drawer .rp-nav-list li { border-bottom: 1px solid var(--rp-line); }
.rp-nav-drawer .rp-nav-list a {
  display: block; padding: 16px 0;
  font-family: var(--rp-font-body); font-weight: 600;
  color: var(--rp-primary);
  font-size: 1.05rem;
}
.rp-nav-drawer .rp-nav-list a:hover { color: var(--rp-accent); }

/* ---- 6. HERO — PARALLAX-SCROLL ---- */
.rp-hero--parallax-scroll {
  position: relative;
  min-height: clamp(540px, 80vh, 760px);
  overflow: hidden;
  display: flex; align-items: center;
  color: #fff;
}
.rp-hero__parallax-bg {
  position: absolute; inset: -10%;
  background-size: cover; background-position: center;
  will-change: transform;
  transition: transform .15s linear;
  z-index: 0;
}
.rp-hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.35) 100%),
    linear-gradient(to top, rgba(10,10,10,0.7), rgba(10,10,10,0.2));
  z-index: 1;
}
.rp-hero__inner {
  position: relative; z-index: 2;
  max-width: 760px;
  padding-top: 80px; padding-bottom: 80px;
}
.rp-hero__eyebrow {
  display: inline-block;
  font-size: .8rem; letter-spacing: .1em;
  color: var(--rp-accent);
  font-weight: 700;
  border-right: 3px solid var(--rp-accent);
  padding-right: 12px; margin-bottom: 20px;
}
.rp-hero__title {
  color: #fff;
  font-family: var(--rp-font-head);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.15;
  margin-bottom: 24px;
  font-weight: 700;
}
.rp-hero__title em {
  font-style: italic;
  color: var(--rp-accent);
  background: linear-gradient(90deg, var(--rp-accent), #ff5a5a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rp-hero__lede {
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 600px;
}
.rp-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.rp-hero__actions .rp-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.rp-hero__actions .rp-btn--ghost:hover { background: #fff; color: var(--rp-primary); border-color: #fff; }
.rp-hero__signature {
  color: rgba(255,255,255,0.7);
  font-style: italic;
  font-size: .9rem;
  margin: 0;
}
.rp-hero__scroll-cue {
  position: absolute;
  bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: .8rem; letter-spacing: .15em;
}
.rp-hero__scroll-cue span {
  display: block; width: 2px; height: 36px;
  background: rgba(255,255,255,0.6);
  animation: rpScrollCue 2s ease-in-out infinite;
}
@keyframes rpScrollCue {
  0%, 100% { transform: scaleY(1); opacity: .6; }
  50% { transform: scaleY(1.4); opacity: 1; }
}

/* ---- 7. SECTIONS ---- */
.rp-section {
  padding: 90px 0;
  position: relative;
}
.rp-section--alt { background: var(--rp-surface); }
.rp-section__head {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}
.rp-section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.rp-section__title::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--rp-accent);
  margin: 16px auto 0;
}
.rp-section__lede {
  color: var(--rp-text-soft);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ---- 8. CATEGORIES GRID — GALLERY ASYMMETRIC ---- */
.rp-categories-grid--asymmetric {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  grid-auto-flow: dense;
}
.rp-cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--rp-primary);
  color: #fff;
  text-decoration: none;
  transition: transform .4s ease, box-shadow .4s ease;
}
.rp-cat-card--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.rp-cat-card--tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.rp-cat-card.no-img { background: var(--rp-primary); }
.rp-cat-card.no-img::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, var(--rp-primary) 0%, var(--rp-accent) 100%);
}
.rp-cat-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .4s ease;
  filter: grayscale(20%) brightness(.85);
}
.rp-cat-card:hover { transform: translateY(-4px); box-shadow: var(--rp-shadow-2); }
.rp-cat-card:hover .rp-cat-card__img {
  transform: scale(1.08);
  filter: grayscale(0%) brightness(.95);
}
.rp-cat-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,10,0.85) 100%);
  pointer-events: none;
}
.rp-cat-card__body {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  padding: 24px;
  z-index: 1;
}
.rp-cat-card__label {
  display: inline-block;
  font-size: .72rem;
  color: var(--rp-accent);
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 8px;
  border-right: 2px solid var(--rp-accent);
  padding-right: 8px;
}
.rp-cat-card__name {
  display: block;
  font-family: var(--rp-font-head);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .rp-categories-grid--asymmetric { grid-template-columns: repeat(2, 1fr); }
  .rp-cat-card--wide, .rp-cat-card--tall { grid-column: span 1; grid-row: span 1; aspect-ratio: 1 / 1; }
}
@media (max-width: 560px) {
  .rp-categories-grid--asymmetric { grid-template-columns: 1fr; gap: 14px; }
}

/* ---- 9. ARTICLE CARDS ---- */
.rp-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.rp-card {
  background: var(--rp-bg);
  border: 1px solid var(--rp-line);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.rp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rp-shadow-2);
  border-color: var(--rp-primary);
}
.rp-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rp-surface);
}
.rp-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.rp-card:hover .rp-card__media img { transform: scale(1.04); }
.rp-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.rp-card__meta {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 12px;
  font-size: .8rem; color: var(--rp-text-soft);
}
.rp-card__cat {
  font-weight: 700; color: var(--rp-accent);
  letter-spacing: .03em;
}
.rp-card__title {
  font-size: 1.3rem;
  line-height: 1.35;
  margin: 0 0 12px;
}
.rp-card__title a { color: var(--rp-primary); }
.rp-card__title a:hover { color: var(--rp-accent); }
.rp-card__excerpt {
  color: var(--rp-text-soft);
  font-size: .95rem;
  margin-bottom: 14px;
  flex: 1;
}
.rp-card__excerpt p { margin: 0; }
.rp-card__more {
  align-self: flex-start;
  font-weight: 700; color: var(--rp-accent);
  font-size: .95rem;
}

@media (max-width: 920px) { .rp-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rp-articles-grid { grid-template-columns: 1fr; } }

/* ---- 10. TESTIMONIAL SLIDER ---- */
.rp-testimonial-slider {
  max-width: 820px; margin: 0 auto;
  position: relative;
  padding: 50px 30px;
  background: var(--rp-bg);
  border: 1px solid var(--rp-line);
  text-align: center;
}
.rp-testimonial {
  display: none;
  animation: rpFadeIn .6s ease;
}
.rp-testimonial.is-active { display: block; }
.rp-testimonial blockquote {
  font-family: var(--rp-font-head);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: var(--rp-primary);
  font-style: italic;
  margin: 0 0 22px;
}
.rp-testimonial cite {
  color: var(--rp-text-soft);
  font-size: .95rem;
  font-style: normal;
  font-weight: 600;
}
.rp-testimonial-dots {
  margin-top: 30px;
  display: flex; justify-content: center; gap: 10px;
}
.rp-testimonial-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--rp-line);
  background: transparent;
  padding: 0; cursor: pointer;
  transition: all .25s;
}
.rp-testimonial-dots button.is-active {
  background: var(--rp-accent);
  border-color: var(--rp-accent);
  transform: scale(1.2);
}
@keyframes rpFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- 11. NEWSLETTER STRIP ---- */
.rp-newsletter {
  padding: 90px 0;
  background-color: var(--rp-primary);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}
.rp-newsletter__inner { max-width: 720px; margin: 0 auto; }
.rp-newsletter__eyebrow {
  display: inline-block;
  font-size: .8rem; color: var(--rp-accent);
  letter-spacing: .15em; font-weight: 700;
  margin-bottom: 18px;
}
.rp-newsletter__title {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.3; margin-bottom: 18px;
}
.rp-newsletter__lede {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

/* ---- 12. TEAM TEASER ---- */
.rp-team-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.rp-team-teaser__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(40%) contrast(1.05);
  transition: filter .5s ease;
}
.rp-team-teaser__media:hover img { filter: none; }
.rp-team-teaser__eyebrow {
  display: inline-block;
  font-size: .8rem; color: var(--rp-accent);
  letter-spacing: .15em; font-weight: 700;
  margin-bottom: 14px;
  border-right: 3px solid var(--rp-accent);
  padding-right: 10px;
}
.rp-team-teaser h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 18px;
}
.rp-team-teaser p {
  color: var(--rp-text-soft);
  font-size: 1.05rem;
  margin-bottom: 24px;
}
@media (max-width: 860px) {
  .rp-team-teaser { grid-template-columns: 1fr; gap: 30px; }
}

/* ---- 13. PERSONA CARD (page About) ---- */
.rp-persona-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  margin: 32px 0;
  padding: 28px;
  background: var(--rp-surface);
  border-right: 4px solid var(--rp-accent);
}
.rp-persona-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--rp-radius);
  filter: grayscale(15%);
}
.rp-persona-info h3 { margin: 0 0 4px; font-size: 1.5rem; }
.rp-persona-role {
  color: var(--rp-accent);
  font-weight: 700;
  font-size: .95rem;
  margin: 0 0 16px;
  letter-spacing: .03em;
}
@media (max-width: 640px) {
  .rp-persona-card { grid-template-columns: 1fr; }
  .rp-persona-photo { max-width: 220px; }
}

/* ---- 14. FOOTER — MUSEUM MINIMAL ---- */
.rp-footer {
  background: var(--rp-primary);
  color: rgba(255,255,255,0.85);
  padding: 70px 0 30px;
  margin-top: 0;
}
.rp-footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.rp-footer__col h4 {
  color: #fff;
  font-family: var(--rp-font-head);
  font-size: 1.15rem;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 10px;
}
.rp-footer__col h4::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 36px; height: 2px;
  background: var(--rp-accent);
}
.rp-footer__col ul {
  list-style: none; padding: 0; margin: 0;
}
.rp-footer__col li { margin-bottom: 10px; }
.rp-footer__col a {
  color: rgba(255,255,255,0.75);
  font-size: .92rem;
  transition: color .2s;
}
.rp-footer__col a:hover { color: var(--rp-accent); }

.rp-footer__brand-mark {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  text-decoration: none;
}
.rp-footer__brand-mark img {
  width: 56px; height: 56px;
  border-radius: var(--rp-radius-sm);
  background: #fff; padding: 4px;
}
.rp-footer__brand-name {
  color: #fff;
  font-family: var(--rp-font-head);
  font-size: 1.5rem; font-weight: 700;
}
.rp-footer__brand-pitch {
  color: rgba(255,255,255,0.7);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.rp-footer__cta { display: inline-block; margin-bottom: 18px; }
.rp-footer__social { display: flex; gap: 12px; margin-top: 14px; }
.rp-footer__social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: #fff;
  transition: all .25s ease;
}
.rp-footer__social a:hover {
  background: var(--rp-accent);
  transform: translateY(-2px);
}
.rp-footer__social svg { width: 18px; height: 18px; fill: currentColor; }

.rp-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 920px) {
  .rp-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .rp-footer__cols { grid-template-columns: 1fr; gap: 30px; }
  .rp-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- 15. ANIMATIONS (CTA / CTR / CTO) ---- */
@keyframes rpCtaCardHover {
  0%   { transform: translateY(0) scale(1);    box-shadow: 0 2px 8px rgba(0,0,0,0.10); }
  100% { transform: translateY(-6px) scale(1.02); box-shadow: 0 16px 40px rgba(214,48,49,0.30); }
}
.rp-btn--cta { transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease; }
.rp-btn--cta:hover { animation: rpCtaCardHover .4s ease forwards; }
.rp-card:hover .rp-btn--cta { animation: rpCtaCardHover .4s ease forwards; }

@keyframes rpHotspotPulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(214,48,49,0.55); }
  70%  { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(214,48,49,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(214,48,49,0); }
}
.rp-hotspot {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: var(--rp-accent); cursor: pointer;
  animation: rpHotspotPulse 2s infinite;
}
.rp-hotspot__tooltip {
  position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
  background: var(--rp-primary); color: #fff;
  padding: 8px 12px; border-radius: 6px;
  font-size: .85rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.rp-hotspot:hover .rp-hotspot__tooltip { opacity: 1; }

@keyframes rpCtoBubbleIn {
  0%   { transform: translateY(20px) scale(.9); opacity: 0; }
  100% { transform: translateY(0)    scale(1);  opacity: 1; }
}
.rp-callback-widget {
  position: fixed; bottom: 24px; inset-inline-start: 24px;
  background: var(--rp-primary); color: #fff;
  padding: 14px 22px; border-radius: 30px;
  font-family: var(--rp-font-body); font-weight: 700;
  font-size: .92rem;
  cursor: pointer; z-index: 999;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  display: flex; gap: 10px; align-items: center;
  text-decoration: none;
  animation: rpCtoBubbleIn .5s ease forwards;
}
.rp-callback-widget:hover { background: var(--rp-accent); color: #fff; transform: translateY(-2px); }
.rp-callback-widget__icon { font-size: 1.05rem; }
@media (max-width: 560px) {
  .rp-callback-widget { padding: 12px 16px; font-size: .85rem; }
}

/* ---- 16. MOUSE EFFECT — section_hover_soft_overlay ---- */
@media (hover: hover) {
  .rp-section, .rp-categories-grid > a, .rp-articles-grid > article {
    position: relative;
    transition: filter .35s ease;
  }
  .rp-section::after, .rp-categories-grid > a::after, .rp-articles-grid > article::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    background: radial-gradient(circle 280px at var(--rp-mx, 50%) var(--rp-my, 50%),
      rgba(214,48,49,0.10), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 0;
  }
  .rp-section:hover::after,
  .rp-categories-grid > a:hover::after,
  .rp-articles-grid > article:hover::after { opacity: 1; }
  .rp-section > *, .rp-categories-grid > a > *, .rp-articles-grid > article > * {
    position: relative; z-index: 1;
  }
}
@media (hover: none) {
  .rp-section::after, .rp-categories-grid > a::after, .rp-articles-grid > article::after { display: none; }
}

/* ---- 17. INTERACTIVE TOOLS ---- */
.rp-tool {
  max-width: 760px; margin: 32px auto;
  padding: 32px;
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
}
.rp-tool__intro h2 {
  margin-top: 0;
  border-right: 4px solid var(--rp-accent);
  padding-right: 14px;
}
.rp-tool__intro p {
  color: var(--rp-text-soft);
  margin-bottom: 24px;
}
.rp-tool__panel {
  margin: 24px 0;
  padding: 24px;
  background: var(--rp-bg);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
}
.rp-tool__panel label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--rp-primary);
}
.rp-tool__panel textarea,
.rp-tool__panel input[type="number"],
.rp-tool__panel select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-sm);
  font-family: var(--rp-font-body);
  font-size: 1rem;
  background: var(--rp-bg); color: var(--rp-text);
  margin-bottom: 16px;
  resize: vertical;
}
.rp-tool__panel textarea:focus,
.rp-tool__panel input:focus,
.rp-tool__panel select:focus {
  outline: 2px solid var(--rp-accent);
  outline-offset: 2px;
  border-color: var(--rp-accent);
}
.rp-tool__row {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 16px;
  justify-content: space-between;
}
.rp-tool__row label { flex: 1; margin: 0; }
.rp-tool__row input, .rp-tool__row select { flex: 2; margin: 0; }
.rp-tool__result {
  margin-top: 24px;
  padding: 24px;
  background: var(--rp-bg);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
}
.rp-tool__metric {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rp-line);
}
.rp-tool__metric:last-child { border-bottom: none; }
.rp-tool__metric-label { color: var(--rp-text-soft); font-size: .95rem; }
.rp-tool__metric-value { font-weight: 700; font-size: 1.15rem; color: var(--rp-primary); }
.rp-tool__metric-status {
  font-size: .85rem; font-weight: 700;
  padding: 4px 10px; border-radius: 12px;
}
.rp-tool__metric-status.is-good { background: #E8F5E8; color: #2D7A2D; }
.rp-tool__metric-status.is-warn { background: #FFF4E0; color: #B36B00; }
.rp-tool__metric-status.is-bad  { background: #FBE0E0; color: #B02728; }
.rp-tool__advice {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--rp-surface);
  border-right: 3px solid var(--rp-accent);
  font-size: .95rem;
  line-height: 1.7;
}
.rp-tool__big-number {
  text-align: center;
  padding: 18px 0;
}
.rp-tool__big-number span:first-child {
  font-family: var(--rp-font-head);
  font-size: 4rem; font-weight: 700;
  color: var(--rp-accent);
  line-height: 1;
}
.rp-tool__big-unit {
  font-size: 1.2rem;
  color: var(--rp-text-soft);
  margin-right: 8px;
}
.rp-quiz-opt {
  display: block;
  width: 100%;
  text-align: right;
  padding: 14px 18px;
  margin: 8px 0;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-sm);
  background: var(--rp-bg);
  color: var(--rp-primary);
  font-family: var(--rp-font-body);
  font-size: 1rem; font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.rp-quiz-opt:hover { border-color: var(--rp-accent); background: var(--rp-surface); }
.rp-quiz-opt:disabled { cursor: not-allowed; opacity: .85; }
.rp-quiz-opt.is-correct { background: #E8F5E8; border-color: #2D7A2D; color: #2D7A2D; font-weight: 700; }
.rp-quiz-opt.is-wrong { background: #FBE0E0; border-color: var(--rp-accent); color: var(--rp-accent); font-weight: 700; }

/* ---- 18. CATEGORY PAGE — single description placement ---- */
.rp-category-intro {
  max-width: 820px; margin: 40px auto;
  padding: 0 var(--rp-gutter);
  color: var(--rp-text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}
.rp-category-outro {
  max-width: 820px; margin: 40px auto;
  padding: 28px var(--rp-gutter);
  background: var(--rp-surface);
  border-right: 4px solid var(--rp-accent);
}

/* ---- 19. CONTACT PAGE / JOTFORM ---- */
.rp-contact-intro { max-width: 760px; margin: 0 auto 30px; line-height: 1.8; }
.rp-contact-intro p { font-size: 1.05rem; color: var(--rp-text); }
[id^="JotFormIFrame"] {
  border: 1px solid var(--rp-line) !important;
  border-radius: var(--rp-radius) !important;
}

/* ---- 20. UTILITIES + PRINT ---- */
.rp-text-muted { color: var(--rp-text-soft); }
.rp-text-accent { color: var(--rp-accent); }
.rp-mt-0 { margin-top: 0; }
.rp-mb-0 { margin-bottom: 0; }

@media print {
  .rp-header, .rp-footer, .rp-callback-widget, .rp-newsletter, .rp-testimonial-slider { display: none; }
  body.rp-body { color: #000; background: #fff; }
  .rp-hero__parallax-bg, .rp-hero__veil { display: none; }
  .rp-hero { min-height: auto; color: #000; padding: 20px 0; }
  .rp-hero__title { color: #000; }
}

/* ---- 21. FORM ELEMENTS (basic) ---- */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  font-family: var(--rp-font-body);
}

/* ---- 22. SELECTION ---- */
::selection { background: var(--rp-accent); color: #fff; }


/* Mouse effect : section_hover_soft_overlay */
@media (hover: hover) {
  .rp-section, .rp-categories-grid > a, .rp-articles-grid > article {
    position: relative;
    transition: filter .35s ease;
  }
  .rp-section::after, .rp-categories-grid > a::after, .rp-articles-grid > article::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    background: radial-gradient(circle 280px at var(--rp-mx, 50%) var(--rp-my, 50%),
      rgba(214,48,49,0.10), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 0;
  }
  .rp-section:hover::after,
  .rp-categories-grid > a:hover::after,
  .rp-articles-grid > article:hover::after { opacity: 1; }
}
@media (hover: none) {
  .rp-section::after, .rp-categories-grid > a::after, .rp-articles-grid > article::after { display: none; }
}
