/**
 * Recommended law firms — isolated (do not mix with home-standard.css).
 * Gold #c5a059 · Tajawal AR · Inter EN (local fonts; never Lato / Google Fonts).
 */
body[data-page="recommended-law-firms-uae"] .site-main {
  font-family: "Tajawal", system-ui, sans-serif;
  background: #fff;
  color: #1a1a1a;
  max-width: 100%;
  overflow-x: hidden;
}
html[lang="en"] body[data-page="recommended-law-firms-uae"] .site-main {
  font-family: "Inter", system-ui, sans-serif;
}

.rf-page {
  background: #fff;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.rf-wrap {
  width: min(100% - 48px, 920px);
  margin-inline: auto;
  padding: 24px 0;
  box-sizing: border-box;
}

.rf-hero {
  position: relative;
  isolation: isolate;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  overflow: hidden;
  border-bottom: 3px solid #c5a059;
}
.rf-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 0;
}
.rf-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.72) 100%),
    linear-gradient(90deg, rgba(197, 160, 89, 0.38) 0%, rgba(197, 160, 89, 0.12) 55%, rgba(10, 10, 10, 0.35) 100%);
}
.rf-hero__inner {
  position: relative;
  z-index: 2;
  padding: 48px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.rf-crumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}
.rf-crumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.rf-crumb a:hover { color: #c5a059; }
.rf-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Tajawal", system-ui, sans-serif;
  font-size: clamp(1.4rem, 1.05rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: 1.45;
  max-width: 18em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
html[lang="en"] .rf-hero h1 {
  font-family: "Inter", system-ui, sans-serif;
}
.rf-hero__rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 18px;
  background: #c5a059;
  border-radius: 2px;
}
.rf-hero__lede {
  margin: 0;
  max-width: 38em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.8;
}

.rf-list {
  background: #f8f6f1;
  padding: 8px 0 40px;
}
.rf-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rf-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #efe6d6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.rf-card--featured {
  border-top: 3px solid #c5a059;
  box-shadow: 0 12px 32px rgba(197, 160, 89, 0.16);
  grid-template-columns: 260px minmax(0, 1fr);
}
.rf-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 88px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(197, 160, 89, 0.45);
  overflow: hidden;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.rf-card--featured .rf-card__media {
  width: 260px;
  height: 96px;
}
.rf-card__media--dark {
  background: #0a0a0a;
  padding: 0;
}
.rf-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rf-card__mono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #c5a059;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.rf-card__body {
  min-width: 0;
}
.rf-card h2 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  color: #1a1a1a;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.45;
}
.rf-card h2 a {
  color: inherit;
  text-decoration: none;
}
.rf-card h2 a:hover { color: #c5a059; }
.rf-star {
  flex: 0 0 auto;
  color: #c5a059;
  font-size: 1.05em;
  line-height: 1.4;
  filter: grayscale(0.15) saturate(1.4);
}
.rf-card__badge {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.12);
  color: #a98b45;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rf-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.65;
}
.rf-card__pin {
  flex: 0 0 auto;
  line-height: 1.65;
}
.rf-card__meta a {
  color: #c5a059;
  font-weight: 700;
  text-decoration: none;
}
.rf-card__meta a:hover { color: #a98b45; }
.rf-card__blurb {
  margin: 10px 0 0;
  color: #333;
  font-size: 1.02rem;
  line-height: 1.8;
}
.rf-card__reviewer {
  margin: 10px 0 0;
  color: #1a1a1a;
  font-size: 0.95rem;
  line-height: 1.7;
}
.rf-card__reviewer strong {
  color: #c5a059;
  font-weight: 800;
}

.rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: 8px;
  background: #c5a059;
  color: #fff !important;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.rf-btn:hover {
  background: #d8b46a;
  box-shadow: 0 6px 14px rgba(197, 160, 89, 0.35);
}
.rf-btn:active {
  transform: translateY(1px);
}

.rf-note {
  margin: 28px 0 0;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.7;
  text-align: center;
}

.rf-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .rf-wrap {
    width: 100%;
    padding: 16px;
  }
  .rf-hero {
    min-height: 260px;
  }
  .rf-hero__inner {
    padding: 28px 0 24px;
  }
  .rf-hero h1 { font-size: 1.32rem; }
  .rf-hero__lede { font-size: 0.98rem; }
  .rf-list { padding-bottom: 32px; }
  .rf-cards { gap: 16px; }
  .rf-card,
  .rf-card--featured {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px;
    padding: 20px 16px;
  }
  .rf-card h2,
  .rf-card__meta,
  .rf-card__reviewer {
    justify-content: center;
  }
  .rf-card__media,
  .rf-card--featured .rf-card__media {
    width: 100%;
    max-width: 100%;
    height: 80px;
  }
  .rf-btn {
    width: 90%;
    margin-inline: auto;
  }
}
