﻿/* Legal services hub — Ajman 22 cards. Loaded only on /{lang}/legal-services. */
/* Tokens: Ajman navy #0b1f33 · gold #c9a84c (home-standard not required on this page). */

body[data-page="practice-areas"] {
  --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: #0b1f33;
  --home-muted: #4a5563;
  --home-black: #0b1f33;
  --home-gold: #c9a84c;
  --home-gold-bright: #d4af37;
  --home-gold-soft: #f3ebd4;
  --home-radius: 8px;
  --home-shadow: 0 8px 24px rgba(11, 31, 51, 0.05);
  --home-shadow-hover: 0 12px 32px rgba(11, 31, 51, 0.08);
  --home-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --home-duration: 0.28s;
  --home-heading-lh: 1.25;
  --home-body-lh: 1.7;
}
.legal-hub {
  position: relative;
  overflow: hidden;
  padding-block: var(--home-space-9) var(--home-space-11);
  background:
    radial-gradient(ellipse 70% 40% at 50% -8%, rgba(201, 168, 76, 0.1) 0%, transparent 62%),
    linear-gradient(180deg, #f7f5f2 0%, #ffffff 42%, #f4f1eb 100%);
}

.legal-hub__container {
  width: min(100% - var(--home-space-4), 1200px);
  margin-inline: auto;
}

.legal-hub__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--home-space-1);
  align-items: center;
  justify-content: center;
  margin-bottom: var(--home-space-4);
  font-size: 0.88rem;
}

.legal-hub__crumb {
  color: var(--home-muted);
}

.legal-hub__crumb:hover {
  color: var(--home-gold);
}

.legal-hub__crumb--current {
  color: #6b5329;
  font-weight: 700;
}

.legal-hub__crumb-sep {
  opacity: 0.45;
}

.legal-hub__head {
  max-width: 760px;
  margin: 0 auto var(--home-space-8);
  text-align: center;
}

.legal-hub__kicker {
  display: inline-block;
  margin: 0 0 var(--home-space-2);
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--home-gold-soft);
  border: 1px solid rgba(201, 168, 76, 0.28);
  color: #6b5329;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.legal-hub__title {
  margin: 0 0 var(--home-space-3);
  color: var(--home-black);
  font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.4rem);
  font-weight: 800;
  line-height: var(--home-heading-lh);
  letter-spacing: -0.015em;
}

.legal-hub__lead {
  margin: 0 auto;
  max-width: 62ch;
  color: var(--home-muted);
  font-size: 1.0625rem;
  line-height: var(--home-body-lh);
}

.legal-hub__grid {
  display: grid;
  gap: var(--home-space-4);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 720px) {
  .legal-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .legal-hub__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--home-space-3);
  }
}

.legal-hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  height: 100%;
  padding: var(--home-space-4) var(--home-space-3) var(--home-space-4);
  background: linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
  border: 1px solid rgba(232, 226, 216, 0.95);
  border-radius: 12px;
  box-shadow: var(--home-shadow);
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--home-duration) var(--home-ease),
    box-shadow var(--home-duration) var(--home-ease),
    border-color var(--home-duration) var(--home-ease);
}

.legal-hub-card:hover,
.legal-hub-card:hover .legal-hub-card__title {
  color: var(--home-black);
}

.legal-hub-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 16px 36px rgba(201, 168, 76, 0.22);
}

.legal-hub-card:hover .legal-hub-card__text {
  color: var(--home-muted);
}

.legal-hub-card:focus-visible {
  outline: 3px solid rgba(201, 168, 76, 0.55);
  outline-offset: 3px;
}

.legal-hub-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 0 var(--home-space-3);
  color: var(--home-gold);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 50%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.legal-hub-card__icon svg {
  display: block;
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
}

.legal-hub-card__title {
  margin: 0 0 6px;
  color: var(--home-black);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: var(--home-heading-lh);
}

.legal-hub-card__keyword {
  margin: 0 0 var(--home-space-2);
  color: #6b5329;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.legal-hub-card__keyword a {
  color: inherit;
  text-decoration: none;
}

.legal-hub-card__keyword a:hover {
  color: var(--home-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-hub-card__text {
  margin: 0 0 var(--home-space-4);
  flex: 1;
  color: var(--home-muted);
  font-size: 0.92rem;
  line-height: var(--home-body-lh);
}

a.legal-hub-card__cta,
.legal-hub-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 6px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--home-gold) 0%, var(--home-gold-bright) 100%);
  color: #0b1f33 !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(201, 168, 76, 0.22);
  transition:
    filter var(--home-duration) var(--home-ease),
    box-shadow var(--home-duration) var(--home-ease);
}

.legal-hub-card:hover .legal-hub-card__cta,
a.legal-hub-card__cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.32);
  color: #0b1f33 !important;
}

.legal-hub__payload {
  color: var(--home-ink);
}

/* â€”â€” Regional services & quick links (hub only Â· #01 / #03 / #22) â€”â€” */
.regional-services {
  background: #ffffff;
  border-block-start: 1px solid rgba(232, 226, 216, 0.95);
  padding-block: var(--home-space-9) var(--home-space-10);
}

.regional-services__container {
  width: min(100% - var(--home-space-4), 1200px);
  margin-inline: auto;
  text-align: center;
}

.regional-services__title {
  margin: 0 auto var(--home-space-4);
  max-width: 22ch;
  color: var(--home-black);
  font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.95rem);
  font-weight: 800;
  line-height: var(--home-heading-lh);
  letter-spacing: -0.015em;
}

.regional-services__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: var(--home-space-2) auto 0;
  background: linear-gradient(to inline-end, var(--home-gold), transparent);
}

.regional-services__intro {
  margin: 0 auto var(--home-space-3);
  max-width: 900px;
  color: var(--home-muted);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.8;
}

.regional-services__intro strong {
  color: var(--home-black);
  font-weight: 800;
}

.regional-services__label {
  margin: var(--home-space-6) auto var(--home-space-4);
  max-width: 900px;
  color: #6b5329;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: var(--home-heading-lh);
}

.regional-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-space-2);
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) {
  .regional-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--home-space-3);
  }
}

@media (min-width: 1100px) {
  .regional-services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

a.quick-link-card,
.quick-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 64px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid rgba(232, 226, 216, 0.95);
  border-radius: var(--home-radius);
  color: var(--home-muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--home-shadow);
  transition:
    transform var(--home-duration) var(--home-ease),
    box-shadow var(--home-duration) var(--home-ease),
    border-color var(--home-duration) var(--home-ease),
    color var(--home-duration) var(--home-ease);
}

a.quick-link-card:hover,
.quick-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 76, 0.55);
  box-shadow: var(--home-shadow-hover);
  color: var(--home-black);
}

a.quick-link-card:focus-visible,
.quick-link-card:focus-visible {
  outline: 3px solid rgba(201, 168, 76, 0.55);
  outline-offset: 3px;
}

/* â€”â€” CTA band (hub only) â€”â€” */
.legal-hub-cta.practice-hub__cta-band {
  position: relative;
  overflow: hidden;
  padding-block: var(--home-space-8);
  background:
    radial-gradient(ellipse 70% 80% at 80% 120%, rgba(201, 168, 76, 0.16), transparent 55%),
    linear-gradient(135deg, #061018 0%, #0b1f33 55%, #0a1a2a 100%);
  color: #ffffff;
}

.legal-hub-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--home-space-4);
  width: min(100% - var(--home-space-4), 1200px);
  margin-inline: auto;
}

.legal-hub-cta__copy {
  flex: 1 1 28rem;
  min-width: 0;
}

.legal-hub-cta__title {
  margin: 0 0 var(--home-space-2);
  color: #ffffff;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem);
  font-weight: 800;
  line-height: var(--home-heading-lh);
}

.legal-hub-cta__text {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: var(--home-body-lh);
}

a.legal-hub-cta__btn,
.legal-hub-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--home-gold) 0%, var(--home-gold-bright) 100%);
  color: #0b1f33 !important;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(201, 168, 76, 0.28);
  transition:
    filter var(--home-duration) var(--home-ease),
    box-shadow var(--home-duration) var(--home-ease);
}

a.legal-hub-cta__btn:hover,
.legal-hub-cta__btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.36);
  color: #0b1f33 !important;
}

@keyframes legal-hub-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-hub__fade-up {
  opacity: 0;
  animation: legal-hub-fade-up 0.5s var(--home-ease) both;
  animation-delay: var(--hub-delay, 0s);
  animation-timeline: view();
  animation-range: entry 0% cover 20%;
}

@supports not (animation-timeline: view()) {
  .legal-hub__fade-up {
    opacity: 1;
    animation: legal-hub-fade-up 0.5s var(--home-ease) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-hub-card,
  .legal-hub-card__cta,
  .quick-link-card,
  .legal-hub-cta__btn {
    transition: none;
  }

  .legal-hub-card:hover,
  .quick-link-card:hover {
    transform: none;
  }

  .legal-hub__fade-up {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

@media (max-width: 639px) {
  .legal-hub {
    padding-top: var(--home-space-6);
    padding-bottom: var(--home-space-4);
  }

  .legal-hub__container,
  .regional-services__container {
    width: min(100% - 32px, 1200px);
    padding-inline: 0;
  }

  .legal-hub-card {
    padding: 16px;
  }

  .legal-hub-card__cta,
  a.legal-hub-cta__btn,
  .legal-hub-cta__btn {
    width: 90%;
    margin-inline: auto;
    padding: 12px;
    border-radius: 8px;
  }

  .legal-hub__fade-up {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .regional-services {
    padding-block: var(--home-space-5) var(--home-space-6);
  }

  .regional-services__label {
    margin-block: var(--home-space-4) var(--home-space-3);
  }

  .legal-hub-cta.practice-hub__cta-band {
    padding-block: var(--home-space-5);
  }

  .legal-hub-cta__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--home-space-3);
    text-align: center;
  }

  .legal-hub-cta__copy {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
  }

  .legal-hub-cta__title {
    margin-bottom: var(--home-space-1);
  }

  .legal-hub-cta__text {
    margin-inline: auto;
  }

  a.legal-hub-cta__btn,
  .legal-hub-cta__btn {
    width: 90%;
    max-width: 100%;
    margin-inline: auto;
    white-space: normal;
    text-align: center;
  }
}

