/* ============================================================
   REVEAL-SPLIT.CSS — Reveal Line Split Style (shared)
   Used on: index.html (services section) + services.html
============================================================ */

/* ── Base card ── */
.rl-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 40px rgba(0,0,0,.09);
  margin-bottom: 24px;
}
.rl-card:last-child { margin-bottom: 0; }

/* RTL: col-1 = right, col-2 = left → flip swaps image to left */
.rl-card.flip .rl-img-wrap { grid-column: 2; grid-row: 1; }
.rl-card.flip .rl-body     { grid-column: 1; grid-row: 1; }

/* ── Image side ── */
.rl-img-wrap { position: relative; overflow: hidden; }
.rl-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .9s cubic-bezier(.4,0,.2,1);
}
.rl-card:hover .rl-img { transform: scale(1.05); }
.rl-tint {
  position: absolute; inset: 0;
  background: rgba(6,24,31,.28);
  transition: opacity .5s;
}
.rl-card:hover .rl-tint { opacity: .10; }

/* ── Content side ── */
.rl-body {
  background: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 52px 48px;
  position: relative;
}

/* Ghost number */
.rl-ghost {
  font-family: 'Poppins', sans-serif;
  font-size: 6rem; font-weight: 900;
  color: rgba(11,42,69,.04);
  line-height: 1; margin-bottom: -30px;
  user-select: none;
}

/* Gold line that draws itself */
.rl-line {
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green-dark));
  margin-bottom: 26px;
  transition: width 1.1s cubic-bezier(.4,0,.2,1);
}
.rl-card.in .rl-line { width: 72px; }

/* Tag */
.rl-tag {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-family: 'Poppins', sans-serif;
  margin-bottom: 8px;
}

/* Title — slides in */
.rl-body h3 {
  font-size: 1.6rem; font-weight: 800; color: var(--navy);
  line-height: 1.2; margin-bottom: 14px;
  opacity: 0; transform: translateX(18px);
  transition: opacity .7s .2s, transform .7s .2s;
}
[dir="ltr"] .rl-body h3 { transform: translateX(-18px); }
.rl-card.in .rl-body h3  { opacity: 1; transform: translateX(0); }

/* Paragraph */
.rl-body p {
  color: #4b5563; font-size: .91rem; line-height: 1.85;
  margin-bottom: 26px;
  opacity: 0; transform: translateX(18px);
  transition: opacity .7s .35s, transform .7s .35s;
}
[dir="ltr"] .rl-body p { transform: translateX(-18px); }
.rl-card.in .rl-body p  { opacity: 1; transform: translateX(0); }

/* Feature pills */
.rl-feats {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px;
  opacity: 0; transform: translateX(18px);
  transition: opacity .7s .5s, transform .7s .5s;
}
[dir="ltr"] .rl-feats { transform: translateX(-18px); }
.rl-card.in .rl-feats  { opacity: 1; transform: translateX(0); }
.rl-feat {
  border: 1px solid rgba(11,42,69,.14);
  color: var(--navy); padding: 4px 13px; border-radius: 999px;
  font-size: .74rem; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}
.rl-feat:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* CTA link */
.rl-cta {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--navy); font-weight: 800; font-size: .88rem;
  text-decoration: none; width: fit-content;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--gold);
  opacity: 0; transform: translateX(18px);
  transition: opacity .7s .65s, transform .7s .65s, color .2s;
}
[dir="ltr"] .rl-cta { transform: translateX(-18px); }
.rl-card.in .rl-cta  { opacity: 1; transform: translateX(0); }
.rl-cta:hover { color: var(--green-dark); }

/* ── Remaining services — slim rows (services.html only) ── */
.rl-extras {
  overflow: hidden;
  height: 0;
  transition: height .55s cubic-bezier(.4,0,.2,1), opacity .4s ease;
  opacity: 0;
}
.rl-extras.open {
  opacity: 1;
  /* height set by JS to scrollHeight */
}

.rl-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.rl-extra-item {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-decoration: none;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.rl-extra-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.09);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.rl-extra-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .95rem;
  transition: background .2s;
}
.rl-extra-item:hover .rl-extra-icon { background: var(--green-dark); }
.rl-extra-text { flex: 1; }
.rl-extra-text strong {
  display: block; font-size: .9rem; font-weight: 700;
  color: var(--navy); line-height: 1.3; margin-bottom: 2px;
}
.rl-extra-text span {
  font-size: .76rem; color: #6b7280;
  font-family: 'Poppins', sans-serif;
}
.rl-extra-arrow { color: #9ca3af; font-size: .78rem; }

/* ── Show More button ── */
.rl-show-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 32px;
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700; font-size: .88rem;
  padding: 12px 28px; border-radius: 10px;
  cursor: pointer;
  transition: background .25s, color .25s;
  font-family: 'Cairo', 'Poppins', sans-serif;
}
.rl-show-btn:hover { background: var(--navy); color: #fff; }
.rl-show-btn i { transition: transform .35s; }
.rl-show-btn.open i { transform: rotate(180deg); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .rl-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .rl-card.flip .rl-img-wrap { grid-column: 1; grid-row: 2; }
  .rl-card.flip .rl-body     { grid-column: 1; grid-row: 1; }
  .rl-img-wrap { min-height: 260px; }
  .rl-body { padding: 36px 28px; }
  .rl-ghost { font-size: 4rem; }
  .rl-extra-grid { grid-template-columns: 1fr; }
}
