﻿/**
 * Homepage Standard Model â€” uae-lawyer.com
 * #03 Al-Takfeel Â· #12 UX/UI Â· #22 Luxurious Simplicity
 * 8px rhythm Â· soft depth Â· WCAG contrast Â· â‰¤0.3s micro-motion
 */
:root {
  --home-space-1: 8px;
  --home-space-2: 16px;
  --home-space-3: 24px;
  --home-space-4: 32px;
  --home-space-5: 40px;
  --home-space-6: 48px;
  --home-space-7: 64px;
  --home-space-8: 80px;
  --home-space-9: 96px;
  --home-space-10: 112px;
  --home-space-11: 120px;
  --home-ink: #1a1a1a;
  --home-muted: #4b5563;
  --home-bg: #f8f6f1;
  --color-surface-warm: #f8f6f1;
  --color-surface-light: #ffffff;
  --home-card: #ffffff;
  --home-line: #e8e2d8;
  --home-black: #000000;
  --home-gold: #c5a46f;
  --home-gold-bright: #d4af37;
  --home-gold-soft: #f4eee3;
  --home-radius: 8px;
  --home-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  --home-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
  --home-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --home-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --home-duration: 0.28s;
  --home-max: 1120px;
  --home-contrast: #ffffff;
  --home-heading-lh: 1.25;
  --home-body-lh: 1.7;
  --site-header-h: 72px;
}

/* legacy site-header chrome removed — see site-chrome.css */

/* —— Site footer: carbon luxury · 4-col · payment · newsletter —— */
.site-footer {
  --footer-bg: #0b0b0b;
  --footer-bg-deep: #050505;
  --footer-ink: rgba(255, 255, 255, 0.9);
  --footer-muted: rgba(255, 255, 255, 0.82);
  --footer-line: rgba(197, 164, 111, 0.28);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(197, 164, 111, 0.12), transparent 55%),
    linear-gradient(165deg, #111111 0%, var(--footer-bg) 45%, #080808 100%);
  color: var(--footer-ink);
  padding: 0;
  font-family: "Cairo", "Tajawal", system-ui, sans-serif;
}

.site-footer__inner {
  width: min(100% - 70px, 1170px);
  margin-inline: auto;
  padding-block: var(--home-space-8) var(--home-space-6);
  padding-inline: 15px;
  box-sizing: border-box;
}

.site-footer__grid {
  display: grid;
  gap: var(--home-space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--home-space-6);
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.3fr 0.85fr 0.85fr 1.2fr;
    gap: var(--home-space-4);
    align-items: start;
  }
}

.site-footer__col {
  min-width: 0;
}

/* Brand: logo → name → blurb centered */
.site-footer__col--brand {
  text-align: center;
}

.site-footer__logo {
  display: block;
  height: 78px;
  width: auto;
  max-width: 240px;
  margin: 0 auto 14px;
  filter: brightness(1.08);
}

.site-footer__name {
  margin: 0 auto 12px;
  max-width: 22em;
  color: #fff;
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.08rem);
  font-weight: 800;
  line-height: 1.4;
  text-wrap: balance;
}

.site-footer__blurb {
  margin: 0 auto var(--home-space-3);
  max-width: 28em;
  color: var(--footer-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  text-wrap: balance;
}

.site-footer__heading {
  margin: 0 0 var(--home-space-2);
  color: var(--home-gold);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-footer__contact,
.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer__contact {
  margin-inline: auto;
  width: fit-content;
  max-width: 100%;
  text-align: start;
}

.site-footer__contact-item {
  display: grid;
  gap: 2px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--footer-muted);
}

.site-footer__contact-label {
  color: rgba(240, 215, 138, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
}

/* AR: phone sits flush under «الهاتف» on the right */
html[lang="ar"] .site-footer__contact-item--phone,
html[dir="rtl"] .site-footer__contact-item--phone {
  text-align: start;
}

html[lang="ar"] .site-footer__phone,
html[dir="rtl"] .site-footer__phone {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.site-footer__contact a,
.site-footer__list a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color var(--home-duration) var(--home-ease);
}

.site-footer__contact a:hover,
.site-footer__contact a:focus-visible,
.site-footer__list a:hover,
.site-footer__list a:focus-visible {
  color: var(--home-gold-bright);
}

.site-footer__list a {
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-footer__col--links {
  text-align: start;
}

.site-footer__col--links .site-footer__list {
  width: fit-content;
}

/* Social: 3 gold icons centered */
.site-footer__col--social {
  text-align: center;
}

.site-footer__col--social .site-footer__heading {
  text-align: center;
}

.site-footer__social {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(197, 164, 111, 0.4);
  color: var(--home-gold);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition:
    transform var(--home-duration) var(--home-ease),
    background var(--home-duration) var(--home-ease),
    color var(--home-duration) var(--home-ease);
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #d4af37, #c5a46f);
  border-color: transparent;
  color: #111;
}

/* Payments + newsletter: centered through end of footer content */
.site-footer__col--pay {
  text-align: center;
}

.site-footer__col--pay .site-footer__heading {
  text-align: center;
}

.site-footer__pay {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto 12px;
  padding: 0;
  list-style: none;
}

.site-footer__pay-item {
  display: inline-flex;
  color: var(--home-gold);
  border-radius: 6px;
  transition:
    transform var(--home-duration) var(--home-ease),
    color var(--home-duration) var(--home-ease);
}

.site-footer__pay-item:hover,
.site-footer__pay-item:focus-within {
  transform: translateY(-2px);
  color: var(--home-gold-bright);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}

.site-footer__pay-note {
  margin: 0 auto var(--home-space-3);
  max-width: 28em;
  color: var(--footer-muted);
  font-size: 0.84rem;
  line-height: 1.6;
  text-wrap: balance;
}

.site-footer__divider {
  height: 1px;
  margin: 0 auto var(--home-space-3);
  max-width: 220px;
  background: linear-gradient(90deg, transparent, var(--footer-line), transparent);
}

.site-footer__newsletter {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-inline: auto;
  max-width: 360px;
}

.site-footer__newsletter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  justify-content: center;
}

.site-footer__newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: transform var(--home-duration) var(--home-ease);
}

.site-footer__newsletter-input::placeholder {
  color: #8a847a;
}

.site-footer__newsletter-input:focus {
  border-color: var(--home-gold);
  box-shadow: 0 0 0 3px rgba(197, 164, 111, 0.28);
}

.site-footer__newsletter-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #c5a46f 55%, #b8924f);
  color: #111;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--home-duration) var(--home-ease);
}

.site-footer__newsletter-btn:hover,
.site-footer__newsletter-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 20px rgba(197, 164, 111, 0.35);
}

.site-footer__newsletter-hint {
  margin: 0;
  width: 100%;
  color: var(--footer-muted);
  font-size: clamp(0.68rem, 0.62rem + 0.35vw, 0.8rem);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.site-footer__newsletter-msg {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--home-gold-bright);
  text-align: center;
}

.site-footer__newsletter-msg.is-error {
  color: #f0b4b4;
}

.site-footer__bar {
  background: var(--footer-bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 20px;
  text-align: center;
}

.site-footer__copy {
  margin: 0 auto;
  max-width: 100%;
  color: rgba(220, 220, 220, 0.72);
  font-size: clamp(0.62rem, 0.55rem + 0.4vw, 0.78rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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;
}

@media (max-width: 719px) {
  .site-footer__inner {
    width: min(100% - 46px, 1170px);
    padding-block: var(--home-space-7) var(--home-space-5);
    padding-inline: 15px;
  }

  .site-footer__logo {
    height: 68px;
    max-width: 210px;
  }

  .site-footer__col + .site-footer__col {
    padding-top: var(--home-space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-footer__col--links,
  .site-footer__col--links .site-footer__heading,
  .site-footer__col--links .site-footer__list {
    text-align: center;
    margin-inline: auto;
  }

  .site-footer__col--links .site-footer__list {
    justify-items: center;
  }

  .site-footer__newsletter {
    max-width: 100%;
  }

  .site-footer__newsletter-row {
    flex-wrap: wrap;
  }

  .site-footer__newsletter-btn {
    width: 100%;
  }

  .site-footer__newsletter-hint {
    font-size: 0.68rem;
  }

  .site-footer__copy {
    font-size: 0.6rem;
  }
}

html {
  scroll-padding-top: calc(var(--site-chrome-h) + 16px);
}

.hero,
.trust-section,
.services-section,
.practice-areas,
.testimonials,
.team-section,
.home-articles,
.final-cta,
.seo-pillar {
  position: relative;
}

.trust-section__container,
.services-section__container,
.practice-areas__container,
.testimonials__container,
.team-section__container,
.home-articles__container,
.final-cta__container,
.seo-pillar__container {
  width: min(100% - var(--home-space-4), var(--home-max));
  margin-inline: auto;
}

/* —— Hero (clean rebuild · #03 / #12 / #22) —— */
.hero {
  --hero-pad-x: 100px;
  --hero-text-max: 520px;
  --hero-text-share: 46%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: calc(100svh - var(--site-chrome-h, 96px));
  min-height: calc(100vh - var(--site-chrome-h, 96px));
  padding: 48px var(--hero-pad-x) 56px;
  color: #fff;
  background: #050505;
  overflow: hidden;
}

.hero > picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 42%;
  display: block;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.84) 38%,
      rgba(0, 0, 0, 0.55) 50%,
      rgba(0, 0, 0, 0.18) 62%,
      rgba(0, 0, 0, 0.04) 78%,
      transparent 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 26%, transparent 78%, rgba(0, 0, 0, 0.32) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(100%, var(--hero-text-max), var(--hero-text-share));
  max-width: min(var(--hero-text-max), var(--hero-text-share));
  margin-left: 0;
  margin-right: auto;
  opacity: 1;
  transform: none;
  /* No entrance animation — PSI mobile reports NO_LCP with opacity/transform fades */
}

html[dir="rtl"] .hero__inner {
  text-align: right;
}

html[dir="ltr"] .hero__inner {
  text-align: left;
}

.hero__geo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.5em;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 0.5em 1.15em;
  border: 1px solid rgba(212, 175, 55, 0.72);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
}

.hero__geo-dot {
  color: var(--home-gold-bright);
  opacity: 0.9;
  font-size: 0.9em;
  line-height: 1;
  user-select: none;
}

.hero__title {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
}

.hero__title-main {
  display: block;
  font-size: clamp(1.85rem, 1.25rem + 1.9vw, 2.65rem);
  font-weight: 800;
  line-height: 1.22;
  color: #fff;
  white-space: nowrap;
  max-width: 100%;
}

.hero__title-a,
.hero__title-b {
  display: inline;
}

.hero__title-a::after {
  content: "\00a0";
}

.hero__title-sub {
  display: block;
  font-size: clamp(1rem, 0.88rem + 0.7vw, 1.3rem);
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

html[lang="en"] .hero__title-main {
  font-size: calc(clamp(1.85rem, 1.25rem + 1.9vw, 2.65rem) + 2px - 5px);
}

html[lang="en"] .hero__title-sub {
  font-size: calc(clamp(1rem, 0.88rem + 0.7vw, 1.3rem) + 5px - 5px);
  line-height: 1.35;
}

html[lang="en"] .hero__title-sub-a,
html[lang="en"] .hero__title-sub-b {
  display: block;
}

html[lang="en"] .hero__line {
  font-size: 0.98rem;
}

.hero__copy {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
}

.hero__line {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.65;
  white-space: normal;
  max-width: 100%;
}

.hero__line strong {
  color: #fff;
  font-weight: 800;
}

.hero__actions {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  direction: ltr;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 8px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 200px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--home-duration) var(--home-ease),
    background var(--home-duration) var(--home-ease),
    color var(--home-duration) var(--home-ease);
}

.hero__btn--gold {
  background: linear-gradient(180deg, #d4af37, var(--home-gold));
  border: 2px solid var(--home-gold);
  color: #000 !important;
  box-shadow: 0 10px 24px rgba(197, 164, 111, 0.28);
}

.hero__btn--gold:hover {
  background: var(--home-gold-bright);
  transform: translateY(-2px);
}

.hero__btn--dark {
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff !important;
}

.hero__btn--dark:hover {
  border-color: var(--home-gold);
  background: rgba(197, 164, 111, 0.12);
  transform: translateY(-2px);
}

.hero__btn--gold-outline {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--home-gold);
  color: #fff !important;
}

.hero__btn--gold-outline:hover {
  background: rgba(197, 164, 111, 0.16);
  border-color: var(--home-gold-bright);
  transform: translateY(-2px);
}

.hero__btn--gold-outline svg {
  color: var(--home-gold-bright);
  flex: 0 0 auto;
}

.hero__feats {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, var(--hero-text-max), var(--hero-text-share));
  max-width: min(var(--hero-text-max), var(--hero-text-share));
  margin: 28px 0 0;
  margin-right: auto;
  padding: 14px 16px;
  list-style: none;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero__feat {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 0;
}

.hero__feat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: #d4af37;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 230, 160, 0.28), transparent 55%),
    linear-gradient(160deg, rgba(212, 175, 55, 0.28), rgba(197, 164, 111, 0.1));
  border: 1.5px solid rgba(212, 175, 55, 0.75);
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero__feat-ico svg {
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.hero__feat-txt {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  white-space: normal;
}

/* Desktop — keep all copy inside left empty sky zone */
@media (min-width: 1101px) {
  .hero {
    --hero-text-max: 500px;
    --hero-text-share: 44%;
  }

  html[lang="en"] .hero {
    --hero-text-max: 560px;
  }

  html[lang="ar"] .hero__inner {
    margin-left: 40px;
  }

  /* Desktop hero: drop image 30px (beats Critical transform:none!important) */
  html[lang="ar"] #mam-lcp-hero.hero__bg,
  html[dir="rtl"] #mam-lcp-hero.hero__bg,
  html[lang="en"] #mam-lcp-hero.hero__bg,
  html[dir="ltr"] #mam-lcp-hero.hero__bg {
    transform: translateY(30px) !important;
  }

  html[lang="en"] .hero__line:last-child {
    white-space: nowrap;
  }

  html[lang="en"] .hero__feats {
    justify-content: flex-start;
    gap: 28px;
  }

  html[lang="en"] .hero__feat {
    flex: 0 1 auto;
    justify-content: flex-start;
    text-align: start;
  }

  .hero__title-a,
  .hero__title-b {
    display: inline;
  }

  .hero__title-a::after {
    content: "\00a0";
  }

  .hero__btn {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 18px;
  }

  .hero__feats {
    width: calc(min(100%, var(--hero-text-max), var(--hero-text-share)) + 280px);
    max-width: calc(min(var(--hero-text-max), var(--hero-text-share)) + 280px);
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 14px 22px;
  }

  .hero__feat {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  .hero__feat-ico {
    width: 31.5px;
    height: 31.5px;
  }

  .hero__feat-ico svg {
    width: 16.5px;
    height: 16.5px;
  }

  .hero__feat-txt {
    white-space: nowrap;
  }
}

@keyframes hero-in {
  from { opacity: 0.001; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__inner {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Tablet only — do not leak into mobile */
@media (min-width: 721px) and (max-width: 1100px) {
  .hero {
    --hero-pad-x: 48px;
    --hero-text-max: 460px;
    --hero-text-share: 50%;
  }

  .hero__bg {
    object-position: 92% 40%;
  }

  .hero__inner,
  .hero__feats {
    margin-left: 0;
    margin-right: auto;
  }

  .hero__feats {
    margin-top: 24px;
    gap: 12px;
  }

  .hero__feat-txt,
  .hero__line {
    white-space: normal;
  }

  .hero__actions {
    flex-wrap: wrap;
  }

  .hero__btn {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
  }
}

/* =========================================================
   MOBILE HERO LOCK (AR + EN) — approved composition
   Do not dilute with desktop text-zone / tablet rules.
   ========================================================= */
@media (max-width: 720px) {
  .hero {
    --hero-pad-x: 24px;
    --hero-text-max: 100%;
    --hero-text-share: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    min-height: min(100svh - var(--site-chrome-h, 88px), 860px);
    padding: 28px var(--hero-pad-x) 24px;
  }

  .hero__bg {
    object-fit: cover;
    object-position: 78% 28%;
    /* No scale/filter on mobile — compositor transforms confuse PSI LCP detection */
    transform: none;
    filter: none;
  }

  html[dir="rtl"] .hero__bg,
  html[dir="ltr"] .hero__bg,
  html[lang="ar"] .hero__bg,
  html[lang="en"] .hero__bg {
    object-position: 78% 28%;
    transform: none;
    filter: none;
  }

  .hero__shade {
    background:
      linear-gradient(
        180deg,
        rgba(5, 5, 5, 0.18) 0%,
        rgba(5, 5, 5, 0.28) 22%,
        rgba(5, 5, 5, 0.55) 48%,
        rgba(5, 5, 5, 0.86) 72%,
        rgba(5, 5, 5, 0.96) 100%
      ),
      linear-gradient(
        to right,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.08) 45%,
        rgba(0, 0, 0, 0.2) 100%
      );
  }

  .hero__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__geo {
    margin-bottom: 14px;
    font-size: 0.68rem;
    padding: 0.45em 1em;
  }

  .hero__title {
    gap: 8px;
    margin-bottom: 14px;
  }

  .hero__title-main {
    font-size: clamp(1.85rem, 8.2vw, 2.45rem);
    line-height: 1.2;
    max-width: none;
    white-space: normal;
  }

  .hero__title-a,
  .hero__title-b {
    display: block;
  }

  .hero__title-a::after {
    content: none;
  }

  .hero__title-sub {
    display: block;
    font-size: clamp(0.86rem, 0.55rem + 2.6vw, 1.06rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
  }

  .hero__copy {
    gap: 8px;
    margin-bottom: 18px;
  }

  .hero__line {
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: normal;
    max-width: none;
  }

  .hero__actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    direction: ltr;
    gap: 10px;
    width: 100%;
    margin: 0 0 16px;
  }

  .hero__btn {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 18px;
    font-size: 0.98rem;
  }

  .hero__feats {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px 16px;
  }

  .hero__feat {
    display: flex;
    flex: none;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
  }

  .hero__feat-ico {
    width: 21px;
    height: 21px;
  }

  .hero__feat-ico svg {
    width: 11px;
    height: 11px;
  }

  .hero__feat-txt {
    white-space: normal;
    font-size: 0.88rem;
  }

  /* EN mobile polish — locked */
  html[lang="en"] .hero {
    --hero-pad-x: 25px;
  }

  html[lang="en"] .hero__title {
    text-align: start;
  }

  html[lang="en"] .hero__title-main {
    font-size: calc(clamp(2.05rem, 9.2vw, 2.7rem) - 5px);
    line-height: 1.18;
    letter-spacing: -0.02em;
  }

  html[lang="en"] .hero__title-sub {
    font-size: calc(clamp(0.86rem, 0.55rem + 2.6vw, 1.06rem) + 5px - 5px);
    line-height: 1.35;
    white-space: normal;
  }

  html[lang="en"] .hero__line {
    font-size: 0.9rem;
  }

  /* Keep “and across the UAE” beside Dubai; wrap naturally to two lines */
  html[lang="en"] .hero__title-sub-a,
  html[lang="en"] .hero__title-sub-b {
    display: inline;
  }

  html[lang="en"] .hero__title-sub-a::after {
    content: "\00a0";
  }

  html[lang="en"] .hero__actions {
    align-items: center;
  }

  html[lang="en"] .hero__btn {
    width: min(100%, 320px);
    min-height: 52px;
    padding: 14px 22px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-inline: auto;
  }
}

@media (max-width: 380px) {
  .hero {
    --hero-pad-x: 20px;
  }

  .hero__title-main {
    font-size: 1.7rem;
  }

  .hero__title-sub {
    font-size: 0.84rem;
  }

  html[lang="en"] .hero {
    --hero-pad-x: 25px;
  }

  html[lang="en"] .hero__title-main {
    font-size: calc(1.9rem - 5px);
  }

  html[lang="en"] .hero__btn {
    width: 100%;
    font-size: 1rem;
  }
}

/* —— Trust & Results (#03 / #22 / #01) —— */
.trust-section {
  padding-top: var(--home-space-11);
  padding-bottom: var(--home-space-11);
  background: var(--color-surface-warm);
  border-block-end: 1px solid rgba(232, 226, 216, 0.85);
}

.trust-section__head,
.practice-areas__head {
  max-width: 720px;
  margin: 0 auto var(--home-space-8);
  text-align: center;
}

.trust-section__kicker,
.practice-areas__kicker {
  display: inline-block;
  margin: 0 0 var(--home-space-2);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--home-gold-soft);
  color: #6b5329;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Badge → title: +15px so the gold rule sits farther from the kicker */
.trust-section__kicker {
  margin-bottom: calc(var(--home-space-2) + 15px);
}

.trust-section__title,
.practice-areas__title {
  margin: 0 0 var(--home-space-2);
  color: var(--home-black);
  font-weight: 800;
  line-height: var(--home-heading-lh);
  letter-spacing: -0.01em;
}

.trust-section__title,
.practice-areas__title {
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem);
}

.trust-section__title::after {
  content: "";
  display: block;
  width: min(88px, 28%);
  height: 2px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #d4af37 18%, #f0d78a 50%, #d4af37 82%, transparent 100%);
}

.trust-section__intro,
.practice-areas__intro {
  margin: 0 auto;
  max-width: 56ch;
  color: var(--home-muted);
  font-size: 1.0625rem;
  line-height: var(--home-body-lh);
}

.trust-section__grid {
  display: grid;
  gap: var(--home-space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .trust-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .trust-section__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--home-space-3);
  }
}

.trust-card {
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
  border: 1px solid rgba(232, 226, 216, 0.95);
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow);
  padding: var(--home-space-5) var(--home-space-4);
  transition: transform var(--home-duration) var(--home-ease);
}

.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-hover);
  border-color: rgba(197, 164, 111, 0.35);
}

.trust-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--home-space-2);
}

.trust-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--home-space-4);
  color: var(--home-gold);
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.trust-card__icon svg {
  display: block;
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.trust-card__title {
  margin: 0;
  font-size: 1.125rem;
  color: var(--home-black);
  line-height: var(--home-heading-lh);
  font-weight: 800;
}

.trust-card__text {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.98rem;
  line-height: var(--home-body-lh);
}

@media (max-width: 719px) {
  .trust-card__head {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: var(--home-space-3);
    margin-bottom: var(--home-space-2);
    text-align: start;
  }

  .trust-card__icon {
    width: 56px;
    height: 56px;
    margin: 0;
  }

  .trust-card__icon svg {
    width: 28px;
    height: 28px;
  }

  .trust-card__title {
    flex: 1;
    min-width: 0;
    text-align: start;
    font-size: 1.05rem;
  }

  .trust-card__text {
    text-align: start;
  }
}

@keyframes trust-fade-up {
  from {
    opacity: 0.001;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trust-section__fade-up {
  opacity: 1;
  animation: none;
  transform: none;
}

.trust-section__grid .trust-card:nth-child(2) {
  animation-delay: 0;
}

.trust-section__grid .trust-card:nth-child(3) {
  animation-delay: 0;
}

.trust-section__grid .trust-card:nth-child(4) {
  animation-delay: 0;
}

@supports not (animation-timeline: view()) {
  .trust-section__fade-up {
    opacity: 1;
    animation: none;
  }
}

/* —— Core Legal Services · screenshot layout (#01 / #03 / #22) —— */
.services-section {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  /* Desktop: match footer gap above CTA (cards → button) */
  padding-bottom: var(--home-space-8);
  background: var(--color-surface-warm);
  border-block-end: 1px solid rgba(232, 226, 216, 0.85);
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--home-ink, #1a1a1a);
}

html[lang="en"] .services-section,
html[dir="ltr"] .services-section {
  font-family: "Inter", system-ui, sans-serif;
}

/* Dark band: black ends 30px past image, then lifted 60px (net −30px above image bottom) */
.services-section {
  --svc-intro-gap: 50px;
  --svc-black-past-image: 30px;
  --svc-black-up: 60px;
  /* Mobile 1-col: image height = container × 10/16 */
  --svc-img-h: calc(min(100% - var(--home-space-4), var(--home-max, 1120px)) * 10 / 16);
  --svc-black-behind: calc(var(--svc-img-h) + var(--svc-black-past-image) - var(--svc-black-up));
}

.services-section__dark {
  position: relative;
  background: #050505;
  padding-top: 60px; /* badge lowered +30px */
  padding-bottom: calc(var(--svc-black-behind) + var(--svc-intro-gap));
  color: rgba(255, 255, 255, 0.92);
}

.services-section__glow {
  position: absolute;
  left: 50%;
  width: min(1100px, 140%);
  height: 260px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.services-section__glow--top {
  top: -90px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.22) 0%, rgba(197, 164, 111, 0.08) 40%, transparent 72%);
}

.services-section__container {
  position: relative;
  z-index: 1;
}

/* Pull cards up so black covers image + 30px only */
.services-section__container--cards {
  margin-top: calc(var(--svc-black-behind) * -1);
  background: transparent;
}

.services-section__head {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.services-section__kicker {
  display: inline-block;
  /* Title raised 15px toward badge (was space-2 + 35px) */
  margin: 0 0 calc(var(--home-space-2) + 20px);
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c5a46f 0%, #a8894f 55%, #d4af37 100%);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 8px 20px rgba(197, 164, 111, 0.28);
}

.services-section__title {
  margin: 0 0 var(--home-space-2);
  color: #ffffff;
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem);
  font-weight: 800;
  line-height: var(--home-heading-lh);
  letter-spacing: -0.01em;
}

.services-section__title-line {
  display: block;
}

.services-section__title::after {
  content: "";
  display: block;
  width: min(88px, 28%);
  height: 2px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #d4af37 18%, #f0d78a 50%, #d4af37 82%, transparent 100%);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}

.services-section__intro {
  margin: 0 auto;
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.0625rem;
  line-height: var(--home-body-lh);
}

.services-section__grid {
  display: grid;
  gap: var(--home-space-4);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 720px) {
  .services-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-section {
    /* 2-col: one gap between columns */
    --svc-img-h: calc((min(100% - var(--home-space-4), var(--home-max, 1120px)) - var(--home-space-4)) / 2 * 10 / 16);
  }
}

@media (min-width: 980px) {
  .services-section__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--home-space-4);
  }

  .services-section {
    /* 3-col: two gaps */
    --svc-img-h: calc((min(100% - var(--home-space-4), var(--home-max, 1120px)) - (var(--home-space-4) * 2)) / 3 * 10 / 16);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(197, 164, 111, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition: transform var(--home-duration) var(--home-ease);
}

/* First 3 cards: transparent shell so section black shows in gutters */
.services-section__grid > .service-card:nth-child(-n + 3) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.services-section__grid > .service-card:nth-child(-n + 3) .service-card__media {
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(197, 164, 111, 0.22);
  border-bottom: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.services-section__grid > .service-card:nth-child(-n + 3) .service-card__body {
  background: #ffffff;
  border: 1px solid rgba(197, 164, 111, 0.22);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.services-section__grid > .service-card:nth-child(-n + 3):hover {
  border-color: transparent;
  box-shadow: none;
}

.services-section__grid > .service-card:nth-child(-n + 3):hover .service-card__media,
.services-section__grid > .service-card:nth-child(-n + 3):hover .service-card__body {
  border-color: rgba(212, 175, 55, 0.55);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 18px 40px rgba(197, 164, 111, 0.22);
}

.service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.service-card__image {
  width: 100%;
  height: 100% !important;
  max-height: none;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--home-ease);
}

.service-card:hover .service-card__image {
  transform: scale(1.04);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 20px 20px 35px;
  text-align: center;
  background: #ffffff;
}

.service-card__title {
  display: block;
  margin: 0 0 var(--home-space-2);
  color: #111111;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: var(--home-heading-lh);
  text-align: center;
}

.service-card__text {
  margin: 0 0 var(--home-space-4);
  flex: 1;
  color: #5b616c;
  font-size: 0.95rem;
  line-height: var(--home-body-lh);
  text-align: center;
}

.service-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  margin-top: auto;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(90deg, #d4af37 0%, #c5a46f 48%, #a8894f 100%);
  color: #111111;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(197, 164, 111, 0.3);
  transition:
    background var(--home-duration) var(--home-ease),
    color var(--home-duration) var(--home-ease),
    transform var(--home-duration) var(--home-ease);
}

.service-card__button:hover,
.service-card__button:focus-visible {
  background: #111111;
  color: #d4af37;
  border-color: #d4af37;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.service-card__button-ico {
  display: inline-flex;
}

html[dir="rtl"] .service-card__button-ico svg {
  transform: scaleX(-1);
}

.services-section__footer {
  display: flex;
  justify-content: center;
  margin-top: var(--home-space-8);
}

.services-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #d4af37 0%, #c5a46f 50%, #a8894f 100%);
  color: #111111;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  opacity: 1;
  box-shadow: 0 12px 30px rgba(197, 164, 111, 0.32);
  transition:
    background var(--home-duration) var(--home-ease),
    color var(--home-duration) var(--home-ease),
    transform var(--home-duration) var(--home-ease);
}

.services-section__cta:hover,
.services-section__cta:focus-visible {
  background: #111111;
  color: #d4af37;
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

/* No view-timeline / translateY on cards — staggered scroll progress caused zigzag rows. */
@keyframes services-fade-up {
  from { opacity: 0.001; }
  to { opacity: 1; }
}

.services-section__fade-up {
  opacity: 1;
  animation: none;
  transform: none;
}

.services-section__grid .service-card.services-section__fade-up {
  opacity: 1;
  transform: none;
}

@media (max-width: 719px) {
  .services-section {
    --svc-intro-gap: 50px;
    padding-bottom: calc(var(--home-space-8) - 15px);
  }

  .services-section__footer {
    margin-top: calc(var(--home-space-8) - 15px);
  }

  /* Mobile: clean CTA — same gold language as card buttons, no glow/shadows */
  .services-section__cta {
    opacity: 1 !important;
    background: linear-gradient(90deg, #d4af37 0%, #c5a46f 48%, #a8894f 100%);
    color: #111111;
    border: 1px solid transparent;
    box-shadow: none;
  }

  .services-section__cta:hover,
  .services-section__cta:focus-visible {
    background: #111111;
    color: #d4af37;
    border-color: #d4af37;
    box-shadow: none;
  }
}

/* â€”â€” Practice areas â€”â€” */
.practice-areas {
  padding-block: var(--home-space-11);
  background: linear-gradient(180deg, #ffffff 0%, var(--home-bg) 100%);
  border-block-end: 1px solid rgba(232, 226, 216, 0.85);
}

.practice-areas__grid {
  display: grid;
  gap: var(--home-space-4);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 640px) {
  .practice-areas__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .practice-areas__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--home-space-4);
  }
}

.practice-card {
  display: flex;
  flex-direction: column;
  background: var(--home-card);
  border: 1px solid rgba(232, 226, 216, 0.95);
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow);
  overflow: hidden;
  transition: transform var(--home-duration) var(--home-ease);
}

.practice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-hover);
  border-color: rgba(197, 164, 111, 0.35);
}

.practice-card__media {
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}

.practice-card__media picture,
.practice-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(145deg, #111 0%, #2a2418 50%, #0f0f0f 100%);
  transition: transform 0.3s var(--home-ease);
}

.practice-card:hover .practice-card__image {
  transform: scale(1.02);
}

.practice-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--home-space-2);
  flex: 1;
  padding: var(--home-space-4);
}

.practice-card__title {
  margin: 0;
  font-size: 1.125rem;
  color: var(--home-black);
  line-height: var(--home-heading-lh);
  font-weight: 800;
}

.practice-card__text {
  margin: 0;
  flex: 1;
  color: var(--home-muted);
  font-size: 0.98rem;
  line-height: var(--home-body-lh);
}

.practice-card__link {
  font-weight: 700;
  color: #8a6d3b;
  font-size: 0.95rem;
  line-height: 1.25;
  transition: color var(--home-duration) var(--home-ease);
}

.practice-card__link:hover {
  color: var(--home-black);
}

.practice-areas__footer {
  margin-top: var(--home-space-7);
  text-align: center;
}

.practice-areas__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 16px 32px;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  color: var(--home-black) !important;
  font-weight: 700;
  background: transparent;
  transition:
    background var(--home-duration) var(--home-ease),
    transform var(--home-duration) var(--home-ease);
}

.practice-areas__more:hover {
  border-color: rgba(197, 164, 111, 0.55);
  background: var(--home-card);
  box-shadow: var(--home-shadow);
  transform: translateY(-2px);
}

/* —— Client testimonials (#01 / #03 / #22) —— */
.testimonials {
  padding-top: calc(var(--home-space-11) - 20px);
  padding-bottom: calc(var(--home-space-11) - 20px);
  background: var(--color-surface-warm);
  border-block-end: 1px solid rgba(232, 226, 216, 0.85);
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--home-ink);
}

html[lang="en"] .testimonials,
html[dir="ltr"] .testimonials {
  font-family: "Inter", system-ui, sans-serif;
}

.testimonials__head {
  max-width: 720px;
  margin: 0 auto calc(var(--home-space-8) - 10px);
  text-align: center;
}

.testimonials__kicker {
  display: inline-block;
  margin: 0 0 var(--home-space-2);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--home-gold-soft);
  color: #5c481f;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.testimonials__title {
  margin: 0;
  color: var(--home-black);
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: var(--home-heading-lh);
  letter-spacing: -0.01em;
}

.testimonials__title::after {
  content: "";
  display: block;
  width: min(88px, 28%);
  height: 2px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #d4af37 18%, #f0d78a 50%, #d4af37 82%, transparent 100%);
}

.testimonials__track {
  display: grid;
  gap: var(--home-space-4);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 720px) {
  .testimonials__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .testimonials__track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--home-space-3);
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 22px 22px;
  background: #ffffff;
  border: 1px solid rgba(197, 164, 111, 0.22);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transition: transform var(--home-duration) var(--home-ease);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 16px 34px rgba(197, 164, 111, 0.18);
}

.testimonial-card__quote {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--home-gold);
}

.testimonial-card__stars {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 12px;
  color: #d4af37;
}

.testimonial-card__star {
  display: block;
}

.testimonial-card__headline {
  margin: 0 0 10px;
  color: var(--home-black);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: var(--home-heading-lh);
}

.testimonial-card__text {
  margin: 0 0 16px;
  flex: 1;
  color: var(--home-muted);
  font-size: 0.95rem;
  line-height: var(--home-body-lh);
}

.testimonial-card__author {
  margin: 0;
  color: #8a6d3b;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

@keyframes testimonials-fade-up {
  from { opacity: 0.001; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonials__fade-up {
  opacity: 1;
  animation: none;
  transform: none;
}

.testimonials__track .testimonial-card:nth-child(2) { animation-delay: 0; }
.testimonials__track .testimonial-card:nth-child(3) { animation-delay: 0; }
.testimonials__track .testimonial-card:nth-child(4) { animation-delay: 0; }

@supports not (animation-timeline: view()) {
  .testimonials__fade-up {
    opacity: 1;
    animation: none;
  }
}

/* Mobile: horizontal scroll-snap slider */
@media (max-width: 719px) {
  .testimonials {
    padding-top: calc(var(--home-space-9) - 20px);
    padding-bottom: calc(var(--home-space-9) - 20px);
  }

  .testimonials__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-inline: calc(var(--home-space-4) * -0.5);
    padding-inline: calc(var(--home-space-4) * 0.5);
    scrollbar-width: thin;
  }

  .testimonials__track .testimonial-card {
    flex: 0 0 min(86vw, 320px);
    scroll-snap-align: start;
    height: auto;
  }
}

/* —— Legal team (#01 / #03 / #22) —— */
.team-section {
  --team-section-gap-end: var(--home-space-7);
  position: relative;
  padding-block: calc(var(--home-space-11) - 15px) var(--team-section-gap-end);
  background: #ffffff;
  border-block-end: 1px solid rgba(232, 226, 216, 0.85);
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--home-ink);
}

html[lang="en"] .team-section,
html[dir="ltr"] .team-section {
  font-family: "Inter", system-ui, sans-serif;
}

.team-section__rule {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(220px, 42%);
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #d4af37 18%, #f0d78a 50%, #d4af37 82%, transparent 100%);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.team-section__head {
  max-width: 780px;
  margin: 0 auto var(--home-space-8);
  text-align: center;
}

.team-section__title {
  margin: 0 0 var(--home-space-3);
  color: var(--home-black);
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: var(--home-heading-lh);
  letter-spacing: -0.01em;
}

/* Desktop: Arabic title stays one line (with —). Mobile keeps two lines. */
.team-section__title-line {
  display: inline;
}

.team-section__title-sep {
  display: inline;
  white-space: pre;
}

.team-section__intro {
  margin: 0 auto;
  max-width: 62ch;
  color: var(--home-muted);
  font-size: 1.05rem;
  line-height: var(--home-body-lh);
}

.team-section__grid {
  display: grid;
  gap: var(--home-space-4);
  grid-template-columns: 1fr;
  align-items: stretch;
  max-width: 880px;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .team-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--home-space-5);
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(197, 164, 111, 0.22);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transition: transform var(--home-duration) var(--home-ease);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 18px 36px rgba(197, 164, 111, 0.18);
}

.team-card__media {
  aspect-ratio: 4 / 5;
  max-height: 340px;
  overflow: hidden;
  background: var(--color-surface-warm);
}

.team-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.team-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 24px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f5 100%);
}

.team-card__name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--home-black);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: var(--home-heading-lh);
}

.team-card__ico {
  display: inline-flex;
  color: var(--home-gold);
  flex-shrink: 0;
}

.team-card__role {
  margin: 0 0 12px;
  color: #8a6d3b;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.team-card__text {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.95rem;
  line-height: var(--home-body-lh);
}

.team-section__footer {
  display: flex;
  justify-content: center;
  margin-top: var(--team-section-gap-end);
}

.team-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 8px;
  border: 1px solid rgba(197, 164, 111, 0.45);
  background: linear-gradient(180deg, #d4af37, var(--home-gold));
  color: #111 !important;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(197, 164, 111, 0.22);
  transition: transform var(--home-duration) var(--home-ease);
}

.team-section__cta:hover,
.team-section__cta:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

@keyframes team-fade-up {
  from { opacity: 0.001; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.team-section__fade-up {
  opacity: 1;
  animation: none;
  transform: none;
}

.team-section__grid .team-card.team-section__fade-up {
  opacity: 1;
  transform: none;
}

@media (max-width: 719px) {
  .team-section {
    padding-block: calc(var(--home-space-9) - 15px) var(--team-section-gap-end);
  }

  /* Keep Arabic title on two lines on mobile only */
  .team-section__title-line {
    display: block;
  }

  .team-section__title-sep {
    display: none;
  }

  .team-card__media {
    max-height: 300px;
  }
}

/* —— Legal articles after testimonials (#01 / #03 / #22) —— */
.home-articles {
  padding-block: calc(var(--home-space-11) - 30px) var(--home-space-11);
  background: #f7f5f1;
  border-block-end: 1px solid rgba(232, 226, 216, 0.85);
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--home-ink);
}

html[lang="en"] .home-articles,
html[dir="ltr"] .home-articles {
  font-family: "Inter", system-ui, sans-serif;
}

.home-articles__head {
  max-width: 760px;
  margin: 0 auto calc(var(--home-space-8) - 15px);
  text-align: center;
}

.home-articles__kicker {
  display: inline-block;
  margin: 0 0 var(--home-space-2);
  color: #6b5329;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.home-articles__title {
  margin: 0;
  color: var(--home-black);
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: var(--home-heading-lh);
  letter-spacing: -0.01em;
}

.home-articles__title-line {
  display: inline;
}

.home-articles__title::after {
  content: "";
  display: block;
  width: min(88px, 28%);
  height: 2px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #d4af37 18%, #f0d78a 50%, #d4af37 82%, transparent 100%);
}

.home-articles__track {
  display: grid;
  gap: var(--home-space-4);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 900px) {
  .home-articles__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--home-space-4);
  }

  /* One or two cards: avoid empty 3-col hole (looks broken). */
  .home-articles__track:has(> .article-card:only-child) {
    grid-template-columns: minmax(280px, 420px);
    justify-content: center;
  }

  .home-articles__track:has(> .article-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(280px, 420px));
    justify-content: center;
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(197, 164, 111, 0.22);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transition: transform var(--home-duration) var(--home-ease);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 16px 34px rgba(197, 164, 111, 0.18);
}

.article-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-warm, #efeae2);
}

.article-card__image {
  width: 100%;
  height: 100% !important;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s var(--home-ease);
}

.article-card:hover .article-card__image {
  transform: scale(1.04);
}

.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 22px;
  text-align: start;
}

.article-card__title {
  margin: 0 0 10px;
  color: var(--home-black);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: var(--home-heading-lh);
}

.article-card__text {
  margin: 0 0 18px;
  flex: 1;
  color: var(--home-muted);
  font-size: 0.95rem;
  line-height: var(--home-body-lh);
}

.article-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(197, 164, 111, 0.45);
  background: linear-gradient(180deg, #d4af37, var(--home-gold));
  color: #111 !important;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(197, 164, 111, 0.2);
  transition: transform var(--home-duration) var(--home-ease);
}

.article-card__cta:hover,
.article-card__cta:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.article-card__kicker {
  margin: 0 0 8px;
  color: #6b5329;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.home-articles__empty {
  margin: 0;
  grid-column: 1 / -1;
  text-align: center;
  color: var(--home-muted);
}

.home-articles__more {
  margin: var(--home-space-6) 0 0;
  text-align: center;
}

.home-articles__more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  color: #6b5329;
  font-weight: 700;
  text-decoration: none;
}

.home-articles__more a:hover,
.home-articles__more a:focus-visible {
  color: var(--home-black);
  text-decoration: underline;
}

@keyframes home-articles-fade-up {
  from { opacity: 0.001; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-articles__fade-up {
  opacity: 1;
  animation: none;
  transform: none;
}

.home-articles__track .article-card.home-articles__fade-up {
  opacity: 1;
  transform: none;
}

@media (max-width: 899px) {
  .home-articles {
    padding-block: calc(var(--home-space-9) - 30px) var(--home-space-9);
  }

  .home-articles__title-line {
    display: block;
  }

  .home-articles__track {
    display: flex;
    gap: var(--home-space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-inline: calc(var(--home-space-4) * -0.5);
    padding-inline: calc(var(--home-space-4) * 0.5);
    scrollbar-width: thin;
  }

  .home-articles__track .article-card {
    flex: 0 0 min(86vw, 340px);
    scroll-snap-align: start;
    height: auto;
  }
}

/* —— Final consultation CTA before footer (#01 / #03 / #22) —— */
.final-cta {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--home-space-11) + 8px - 15px) calc(var(--home-space-11) + 8px);
  background: #050505;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Tajawal", system-ui, sans-serif;
  text-align: center;
}

html[lang="en"] .final-cta,
html[dir="ltr"] .final-cta {
  font-family: "Inter", system-ui, sans-serif;
}

.final-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.28;
  display: block;
}

.final-cta__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.72) 45%, rgba(5, 5, 5, 0.9) 100%),
    radial-gradient(ellipse at 50% 20%, rgba(212, 175, 55, 0.16) 0%, transparent 58%);
}

.final-cta__glow {
  position: absolute;
  left: 50%;
  width: min(980px, 130%);
  height: 220px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.final-cta__glow--top {
  top: -90px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.22) 0%, rgba(197, 164, 111, 0.08) 42%, transparent 72%);
}

.final-cta__glow--bottom {
  bottom: -110px;
  background: radial-gradient(ellipse at center, rgba(197, 164, 111, 0.14) 0%, rgba(212, 175, 55, 0.05) 45%, transparent 75%);
}

.final-cta__container {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.final-cta__title {
  margin: 0 0 var(--home-space-3);
  font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.35rem);
  font-weight: 800;
  line-height: var(--home-heading-lh);
  letter-spacing: -0.015em;
  color: #f7efd8;
  background: linear-gradient(180deg, #fff6df 0%, #e7c978 48%, #c9a24a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* AR title stays two lines: size down enough for each phrase to fit */
html[lang="ar"] .final-cta__title,
html[dir="rtl"] .final-cta__title {
  font-size: clamp(1.15rem, 0.85rem + 1.8vw, 2rem);
}

.final-cta__title-line {
  display: block;
}

.final-cta__title-firm,
.final-cta__title-end {
  display: inline;
}

/* AR desktop: line1 ends with أفضل · line2 = مكتب محاماة في أبوظبي */
html[lang="ar"] .final-cta__title-ar-l1,
html[dir="rtl"] .final-cta__title-ar-l1,
html[lang="ar"] .final-cta__title-ar-l2,
html[dir="rtl"] .final-cta__title-ar-l2 {
  display: block;
  white-space: nowrap;
}

html[lang="ar"] .final-cta__title-ar-best--mob,
html[dir="rtl"] .final-cta__title-ar-best--mob {
  display: none;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .final-cta__title {
    color: #f0d78a;
    background: none;
    -webkit-text-fill-color: unset;
  }
}

.final-cta__text {
  margin: 0 auto var(--home-space-5);
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: var(--home-body-lh);
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
}

.final-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform var(--home-duration) var(--home-ease),
    background var(--home-duration) var(--home-ease),
    color var(--home-duration) var(--home-ease);
}

.final-cta__btn--gold {
  background: linear-gradient(180deg, #d4af37, var(--home-gold));
  border: 2px solid var(--home-gold);
  color: #000 !important;
  box-shadow: 0 12px 28px rgba(197, 164, 111, 0.32);
}

.final-cta__btn--gold:hover,
.final-cta__btn--gold:focus-visible {
  background: var(--home-gold-bright);
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(212, 175, 55, 0.38);
}

.final-cta__btn--dark {
  background: rgba(8, 8, 8, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.final-cta__btn--dark:hover,
.final-cta__btn--dark:focus-visible {
  border-color: rgba(240, 215, 138, 0.55);
  color: #f0d78a !important;
  transform: translateY(-2px);
}

@keyframes final-cta-fade-up {
  from { opacity: 0.001; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.final-cta__fade-up {
  opacity: 1;
  animation: none;
  transform: none;
}

@supports not (animation-timeline: view()) {
  .final-cta__fade-up {
    opacity: 1;
    animation: none;
  }
}

@media (max-width: 719px) {
  .final-cta {
    padding-block: calc(var(--home-space-9) - 15px) var(--home-space-9);
  }

  /* AR: exactly two lines — shrink type + nowrap per line */
  html[lang="ar"] .final-cta__title,
  html[dir="rtl"] .final-cta__title {
    font-size: clamp(1.02rem, 0.72rem + 3.6vw, 1.35rem);
  }

  /* AR mobile: line2 = أفضل مكتب محاماة في أبوظبي */
  html[lang="ar"] .final-cta__title-ar-l1,
  html[dir="rtl"] .final-cta__title-ar-l1 {
    display: block;
    white-space: nowrap;
  }

  html[lang="ar"] .final-cta__title-ar-best--desk,
  html[dir="rtl"] .final-cta__title-ar-best--desk {
    display: none;
  }

  html[lang="ar"] .final-cta__title-ar-best--mob,
  html[dir="rtl"] .final-cta__title-ar-best--mob {
    display: inline;
  }

  /* EN mobile: restore natural wrap for the lead, only pin "in Abu Dhabi" alone */
  html[lang="en"] .final-cta__title-line--lead,
  html[dir="ltr"] .final-cta__title-line--lead,
  html[lang="en"] .final-cta__title-line--rest,
  html[dir="ltr"] .final-cta__title-line--rest {
    display: inline;
  }

  html[lang="en"] .final-cta__title-end,
  html[dir="ltr"] .final-cta__title-end {
    display: block;
  }

  .final-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta__btn {
    width: 100%;
  }
}

/* —— SEO pillar · luxury dark band after services (#01 / #03 / #22) —— */
.seo-pillar {
  position: relative;
  overflow: hidden;
  padding-block: var(--home-space-11);
  background: #050505;
  color: rgba(255, 255, 255, 0.92);
  border-block-end: 1px solid rgba(197, 164, 111, 0.18);
  font-family: "Tajawal", system-ui, sans-serif;
}

html[lang="en"] .seo-pillar,
html[dir="ltr"] .seo-pillar {
  font-family: "Inter", system-ui, sans-serif;
}

.seo-pillar__glow {
  position: absolute;
  left: 50%;
  width: min(1100px, 140%);
  height: 240px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.seo-pillar__glow--top {
  top: -80px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.2) 0%, rgba(197, 164, 111, 0.08) 42%, transparent 72%);
}

.seo-pillar__glow--bottom {
  bottom: -100px;
  background: radial-gradient(ellipse at center, rgba(197, 164, 111, 0.14) 0%, rgba(212, 175, 55, 0.05) 45%, transparent 75%);
}

/* Soft black→gold depth on the text side (EN: left text / right towers) */
.seo-pillar__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(12, 10, 6, 0.82) 36%, rgba(197, 164, 111, 0.1) 58%, transparent 78%);
}

/* AR: text on right — keep left clearer so towers read */
html[dir="rtl"] .seo-pillar__shade,
html[lang="ar"] .seo-pillar__shade {
  background: linear-gradient(270deg, rgba(5, 5, 5, 0.94) 0%, rgba(12, 10, 6, 0.78) 42%, rgba(5, 5, 5, 0.2) 68%, transparent 86%);
}

/* EN: full-section skyline, towers emphasized on the right */
.seo-pillar__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.seo-pillar__image {
  width: 112%;
  height: 130%;
  max-width: none;
  object-fit: cover;
  object-position: 72% 0%;
  display: block;
  opacity: 0.52;
  filter: saturate(0.92) contrast(1.06) brightness(0.96);
  /* EN desktop: towers raised (+50px from prior -56 → -106) */
  transform: translate(-30px, -106px);
  transform-origin: center top;
}

/* AR: dedicated left skyline panel (mirror of EN right), same tower crop */
html[dir="rtl"] .seo-pillar__media,
html[lang="ar"] .seo-pillar__media {
  inset: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: min(58%, 760px);
}

html[dir="rtl"] .seo-pillar__image,
html[lang="ar"] .seo-pillar__image {
  width: 135%;
  height: 135%;
  object-position: 72% 0%;
  opacity: 0.58;
  /* AR only: towers −50px more left, −30px more up (from -112/-91) */
  transform: translate(-162px, -121px);
}

.seo-pillar__media-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.9) 34%, rgba(5, 5, 5, 0.55) 58%, rgba(5, 5, 5, 0.28) 78%, rgba(5, 5, 5, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.12) 0%, transparent 22%, transparent 70%, rgba(5, 5, 5, 0.38) 100%);
}

/* AR veil: soft fade from left towers into right text field */
html[dir="rtl"] .seo-pillar__media-veil,
html[lang="ar"] .seo-pillar__media-veil {
  background:
    linear-gradient(to right, rgba(5, 5, 5, 0.08) 0%, rgba(5, 5, 5, 0.28) 36%, rgba(5, 5, 5, 0.72) 72%, #050505 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.12) 0%, transparent 22%, transparent 70%, rgba(5, 5, 5, 0.38) 100%);
}

.seo-pillar__container {
  position: relative;
  z-index: 1;
}

.seo-pillar__content {
  width: min(100%, 680px);
  max-width: 680px;
}

/* EN desktop: content shifted 25px further left (from -10 → -35) */
html[dir="ltr"] .seo-pillar__content,
html[lang="en"] .seo-pillar__content {
  margin-inline-start: 0;
  margin-inline-end: auto;
  text-align: left;
  transform: translateX(-35px);
}

/* AR only: content +30px right; inner left edge +35px more inward */
html[dir="rtl"] .seo-pillar__content,
html[lang="ar"] .seo-pillar__content {
  width: min(100%, 625px); /* 660 − 35 inner inset */
  max-width: 625px;
  margin-left: auto;
  margin-right: 10px;
  text-align: right;
  transform: translateX(30px);
}

.seo-pillar__title {
  position: relative;
  margin: 0 0 var(--home-space-4);
  color: #ffffff;
  font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.2rem);
  font-weight: 800;
  line-height: var(--home-heading-lh);
  letter-spacing: -0.01em;
}

html[lang="ar"] .seo-pillar__title {
  max-width: none;
}

/* EN: natural wrap to ~2 lines (no forced break points) */
html[lang="en"] .seo-pillar__title {
  max-width: min(34ch, 100%);
}

.seo-pillar__title::before {
  content: "";
  position: absolute;
  inset-inline-start: -12px;
  inset-block: -8px auto;
  width: min(220px, 55%);
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.seo-pillar__title::after {
  content: "";
  display: block;
  width: min(88px, 28%);
  height: 2px;
  margin-block-start: 18px;
  margin-inline: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4af37 0%, #f0d78a 50%, transparent 100%);
}

html[dir="rtl"] .seo-pillar__title::after,
html[lang="ar"] .seo-pillar__title::after {
  background: linear-gradient(270deg, #d4af37 0%, #f0d78a 50%, transparent 100%);
}

.seo-pillar__copy {
  display: grid;
  gap: var(--home-space-2);
  margin: 0 0 var(--home-space-5);
}

.seo-pillar__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: var(--home-body-lh);
}

.seo-pillar__lead {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 1.1rem !important;
}

.seo-pillar__copy strong {
  color: #ffffff;
  font-weight: 800;
}

.seo-pillar__copy em {
  color: #f0d78a;
  font-style: normal;
  font-weight: 700;
}

.seo-pillar__points {
  display: grid;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 var(--home-space-6);
  padding: 22px 24px; /* equal inset: gold dots ↔ edge matches text ↔ edge */
  list-style: none;
  background: linear-gradient(180deg, rgba(248, 246, 241, 0.96) 0%, rgba(244, 238, 227, 0.94) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

html[dir="rtl"] .seo-pillar__points,
html[lang="ar"] .seo-pillar__points {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

.seo-pillar__point {
  position: relative;
  padding-inline-start: 22px;
  color: #1a1a1a;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: var(--home-body-lh);
}

.seo-pillar__point::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #a8894f);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.seo-pillar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
}

.seo-pillar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform var(--home-duration) var(--home-ease),
    background var(--home-duration) var(--home-ease),
    color var(--home-duration) var(--home-ease);
}

.seo-pillar__btn--gold {
  background: linear-gradient(180deg, #d4af37, var(--home-gold));
  border: 2px solid var(--home-gold);
  color: #000 !important;
  box-shadow: 0 10px 24px rgba(197, 164, 111, 0.28);
}

.seo-pillar__btn--gold:hover,
.seo-pillar__btn--gold:focus-visible {
  background: var(--home-gold-bright);
  transform: translateY(-2px);
}

.seo-pillar__btn--dark {
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff !important;
}

.seo-pillar__btn--dark:hover,
.seo-pillar__btn--dark:focus-visible {
  border-color: var(--home-gold);
  background: rgba(197, 164, 111, 0.12);
  transform: translateY(-2px);
}

@keyframes seo-pillar-fade-up {
  from { opacity: 0.001; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.seo-pillar__fade-up {
  opacity: 1;
  animation: none;
  transform: none;
}

@media (max-width: 900px) {
  .seo-pillar__content {
    width: min(100%, 680px);
  }

  html[lang="en"] .seo-pillar__title {
    max-width: min(36ch, 100%);
  }
}

@media (max-width: 719px) {
  .seo-pillar {
    /* Raise content / trim bottom: −20px from space-9 (includes latest −5px) */
    padding-block: calc(var(--home-space-9) - 20px) calc(var(--home-space-9) - 20px);
  }

  .seo-pillar__shade,
  html[dir="rtl"] .seo-pillar__shade,
  html[lang="ar"] .seo-pillar__shade {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.28) 0%, rgba(12, 10, 6, 0.55) 48%, rgba(5, 5, 5, 0.82) 100%);
  }

  .seo-pillar__media,
  html[dir="rtl"] .seo-pillar__media,
  html[lang="ar"] .seo-pillar__media {
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }

  .seo-pillar__image,
  html[dir="rtl"] .seo-pillar__image,
  html[lang="ar"] .seo-pillar__image {
    width: 100% !important;
    height: 100% !important;
    opacity: 0.5;
    object-fit: cover;
    object-position: 70% 18%;
    transform: none !important;
    filter: saturate(0.95) contrast(1.08) brightness(1.02);
  }

  .seo-pillar__media-veil,
  html[dir="rtl"] .seo-pillar__media-veil,
  html[lang="ar"] .seo-pillar__media-veil {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.35) 0%, rgba(5, 5, 5, 0.62) 45%, rgba(5, 5, 5, 0.88) 100%) !important;
  }

  .seo-pillar__content,
  html[dir="ltr"] .seo-pillar__content,
  html[lang="en"] .seo-pillar__content,
  html[dir="rtl"] .seo-pillar__content,
  html[lang="ar"] .seo-pillar__content {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    margin-right: 0;
    transform: translateX(-3px); /* micro left alignment */
  }

  .seo-pillar__title,
  html[lang="en"] .seo-pillar__title {
    max-width: none;
  }

  .seo-pillar__points {
    padding: 18px 18px;
  }

  .seo-pillar__actions {
    flex-direction: column;
  }

  .seo-pillar__btn {
    width: 100%;
  }
}

/* â€”â€” Practice Areas hub (Phase 5) â€”â€” */
.practice-hub {
  padding-block: var(--home-space-9) var(--home-space-6);
  background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
  color: var(--home-contrast);
}

.practice-hub__container {
  width: min(100% - var(--home-space-4), var(--home-max));
  margin-inline: auto;
}

.practice-hub__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--home-space-1);
  align-items: center;
  margin-bottom: var(--home-space-3);
  font-size: 0.9rem;
}

.practice-hub__crumb {
  color: rgba(255, 255, 255, 0.85);
}

.practice-hub__crumb:hover {
  color: var(--home-gold);
}

.practice-hub__crumb--current {
  color: rgba(255, 255, 255, 0.65);
}

.practice-hub__crumb-sep {
  opacity: 0.55;
}

.practice-hub__kicker {
  display: inline-block;
  margin: 0 0 var(--home-space-2);
  padding: 6px 14px;
  border: 1px solid rgba(197, 164, 111, 0.45);
  border-radius: 999px;
  color: var(--home-gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.practice-hub__title {
  margin: 0 0 var(--home-space-2);
  color: var(--home-contrast);
  font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.35rem);
  font-weight: 800;
  line-height: var(--home-heading-lh);
}

.practice-hub__lead {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
  line-height: var(--home-body-lh);
}

.practice-areas--hub {
  border-block-start: 0;
}

.practice-hub__payload {
  color: var(--home-ink);
}

.practice-hub__payload h2,
.practice-hub__payload h3 {
  color: var(--home-black);
}

.practice-hub__cta-band {
  padding-block: var(--home-space-8);
  background: linear-gradient(135deg, #000, #1a1a1a);
  color: var(--home-contrast);
}

.practice-hub__cta-band-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--home-space-3);
}

.practice-hub__cta-title {
  margin: 0 0 var(--home-space-1);
  color: var(--home-contrast);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.55rem);
  line-height: var(--home-heading-lh);
}

.practice-hub__cta-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42ch;
  line-height: var(--home-body-lh);
}

@media (prefers-reduced-motion: reduce) {
  .hero__btn,
  .trust-card,
  .service-card,
  .service-card__button,
  .services-section__cta,
  .testimonial-card,
  .team-card,
  .team-section__cta,
  .article-card,
  .article-card__cta,
  .article-card__image,
  .final-cta__btn,
  .practice-card,
  .practice-card__image,
  .practice-areas__more,
  .seo-pillar__btn,
  .site-header__cta {
    transition: none;
  }

  .hero__btn:hover,
  .trust-card:hover,
  .service-card:hover,
  .service-card__button:hover,
  .services-section__cta:hover,
  .testimonial-card:hover,
  .team-card:hover,
  .team-section__cta:hover,
  .article-card:hover,
  .article-card__cta:hover,
  .final-cta__btn:hover,
  .practice-card:hover,
  .practice-areas__more:hover,
  .seo-pillar__btn:hover,
  .site-header__cta:hover {
    transform: none;
  }

  .practice-card:hover .practice-card__image,
  .article-card:hover .article-card__image {
    transform: none;
  }

  .trust-section__fade-up,
  .trust-section__grid .trust-card,
  .services-section__fade-up,
  .services-section__grid .service-card,
  .testimonials__fade-up,
  .testimonials__track .testimonial-card,
  .team-section__fade-up,
  .team-section__grid .team-card,
  .home-articles__fade-up,
  .home-articles__track .article-card,
  .final-cta__fade-up,
  .seo-pillar__fade-up {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

@media (max-width: 639px) {
  .trust-section,
  .practice-areas {
    padding-top: var(--home-space-9);
    padding-bottom: var(--home-space-9);
  }

  .team-section {
    padding-top: calc(var(--home-space-9) - 15px);
    padding-bottom: var(--team-section-gap-end);
  }

  .testimonials {
    padding-top: calc(var(--home-space-9) - 20px);
    padding-bottom: calc(var(--home-space-9) - 20px);
  }

  .home-articles {
    padding-top: calc(var(--home-space-9) - 50px);
    padding-bottom: var(--home-space-9);
  }

  .services-section {
    padding-top: 0;
  }
}

/*
 * Homepage chrome parity — match inner pages (site-chrome.css) after deferred CSS hydrate.
 * Scoped to body.site-body--home only; overrides #mam-critical-home flex/header drift.
 * No layout.php edits; loads last on home so inner-page chrome wins without PSI/LCP changes.
 */
@media (min-width: 993px) {
  body.site-body--home {
    --site-topbar-h: 40px;
    --site-header-h: 72px;
    --site-chrome-h: 112px;
  }

  body.site-body--home .top-bar__inner {
    width: min(100% - 32px, 1200px);
    justify-content: space-between;
    gap: 16px;
    padding-block: 8px;
    min-height: var(--site-topbar-h, 40px);
    height: auto;
  }

  body.site-body--home .top-bar {
    height: auto;
    min-height: var(--site-topbar-h, 40px);
  }

  body.site-body--home .top-bar__links {
    flex-wrap: nowrap;
    align-items: center;
  }

  body.site-body--home .top-bar__link {
    min-height: 48px;
    padding-block: 12px;
    padding-inline: 12px;
    margin-inline: 4px;
    color: #f5f5f5;
  }

  body.site-body--home .top-bar__link--lang {
    color: #e8c97a;
    font-weight: 700;
    border-inline-start: 0;
    padding-inline: 12px;
    margin-inline-start: 4px;
  }

  body.site-body--home .top-bar__separator {
    margin-inline: 10px;
    color: #d4af37;
  }

  body.site-body--home .top-bar__social {
    margin-inline-start: auto;
    gap: 10px;
  }

  body.site-body--home .top-bar__social-link {
    width: 41px !important;
    height: 41px !important;
    min-width: 41px !important;
    min-height: 41px !important;
  }

  body.site-body--home .top-bar__social-link svg {
    width: 14px !important;
    height: 14px !important;
  }

  body.site-body--home .main-header__phone-icon {
    width: 41px !important;
    height: 41px !important;
    min-width: 41px !important;
    min-height: 41px !important;
  }

  body.site-body--home .main-header__phone-icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  body.site-body--home .gp-float__btn--call {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  body.site-body--home .gp-float__btn--call .gp-float__icon {
    width: 19px !important;
    height: 19px !important;
  }

  body.site-body--home .main-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: min(100% - 32px, 1200px);
    height: 72px;
    gap: 24px;
  }

  body.site-body--home .main-header__nav {
    display: flex;
    flex: unset;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
  }

  body.site-body--home .main-header__list {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 0;
    height: auto;
  }

  body.site-body--home .main-header__item {
    height: auto;
    min-height: 0;
  }

  body.site-body--home .main-header__link,
  body.site-body--home .main-header__link--toggle {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #f5f5f5;
  }

  body.site-body--home .main-header__link--active,
  body.site-body--home .main-header__link:hover,
  body.site-body--home .main-header__link--toggle:hover {
    color: #fff;
    font-weight: 700;
  }

  body.site-body--home .main-header__help {
    display: flex;
    margin-inline-start: 0;
    justify-self: end;
  }

  body.site-body--home .main-header__phone {
    display: inline-flex;
  }

  body.site-body--home .main-header__toggle {
    display: none;
  }

  html[lang="en"] body.site-body--home .main-header__list {
    gap: 8px;
  }

  html[lang="en"] body.site-body--home .main-header__link,
  html[lang="en"] body.site-body--home .main-header__link--toggle {
    padding-inline: 12px;
  }
}
