/* ════════════════════════════════════════════
   Ajman Lawyer — Premium Frontend CSS v3
   Inspired by MKOS Consultation Page
   ════════════════════════════════════════════ */

:root {
  --gold: #c5a55a;
  --gold-light: #f9f5e9;
  --gold-dark: #a0853c;
  --green: #1a5f2a;
  --green-dark: #0d3d1a;
  --green-light: #e8f5e9;
  --navy: #0a1628;
  --navy-light: #1a2a42;
  --accent: #c62828;
  --accent-hover: #b71c1c;
  --text: #1a1a2e;
  --text-light: #5a5a6e;
  --border: #e2e2e2;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 8px 32px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
}

/* ═══════ ANIMATIONS ═══════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197,165,90,.4); }
  50% { box-shadow: 0 0 0 12px rgba(197,165,90,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.animate { opacity: 0; }
.animate.visible { animation: fadeUp .7s ease forwards; }
.delay-1 { animation-delay: .1s !important; }
.delay-2 { animation-delay: .2s !important; }
.delay-3 { animation-delay: .3s !important; }
.delay-4 { animation-delay: .4s !important; }

/* ═══════ HERO SECTION ═══════ */
.aj-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0d2137 100%);
  color: var(--white);
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.aj-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(197,165,90,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.aj-hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(26,95,42,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.aj-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.aj-hero__icon {
  font-size: 64px;
  display: block;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}
.aj-hero__title {
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1.3;
}
.aj-hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.aj-hero__meta {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  margin-bottom: 40px;
}
.aj-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all .3s ease;
  box-shadow: 0 8px 24px rgba(197,165,90,.35);
  animation: pulse-gold 2s infinite;
}
.aj-hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(197,165,90,.5);
}

/* ═══════ CONTENT ═══════ */
.aj-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}
.aj-content__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}
.aj-article {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
}
.aj-article h2 {
  font-size: 28px;
  color: var(--navy);
  margin: 48px 0 24px;
  padding-right: 20px;
  border-right: 4px solid var(--gold);
}
.aj-article h3 {
  font-size: 22px;
  color: var(--navy-light);
  margin: 36px 0 18px;
}
.aj-article p { margin-bottom: 20px; }
.aj-article ul, .aj-article ol { margin-bottom: 24px; padding-right: 24px; }
.aj-article li { margin-bottom: 10px; }
.aj-article strong { color: var(--navy); }

/* ═══════ SIDEBAR ═══════ */
.aj-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}
.aj-sidebar__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.aj-sidebar__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.aj-sidebar__title {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}
.aj-sidebar__info {
  font-size: 14px;
  color: var(--text-light);
  line-height: 2.2;
}
.aj-sidebar__info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* ═══════ STATS ═══════ */
.aj-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 48px 0;
}
.aj-stats__item {
  background: linear-gradient(135deg, var(--gold-light), var(--white));
  padding: 32px 20px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(197,165,90,.2);
  transition: transform .3s;
}
.aj-stats__item:hover {
  transform: translateY(-6px);
}
.aj-stats__number {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
}
.aj-stats__number span { color: var(--gold); }
.aj-stats__label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
}

/* ═══════ FAQ ═══════ */
.aj-faq { margin: 48px 0; }
.aj-faq__title {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 24px;
  padding-right: 20px;
  border-right: 4px solid var(--gold);
}
.aj-faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all .3s;
}
.aj-faq__item:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.aj-faq__question {
  padding: 20px 24px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  font-size: 16px;
  font-family: inherit;
}
.aj-faq__question::after {
  content: '+';
  font-size: 24px;
  color: var(--gold);
  transition: transform .3s;
}
.aj-faq__item[open] .aj-faq__question::after {
  transform: rotate(45deg);
}
.aj-faq__answer {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 15px;
}

/* ═══════ CTA BOX ═══════ */
.aj-cta-box {
  background: linear-gradient(135deg, var(--navy), var(--green));
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--white);
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}
.aj-cta-box::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(197,165,90,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.aj-cta-box__title {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.aj-cta-box__text {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}
.aj-cta-box__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all .3s ease;
  box-shadow: 0 8px 24px rgba(197,165,90,.35);
  animation: pulse-gold 2s infinite;
  position: relative;
  z-index: 2;
}
.aj-cta-box__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(197,165,90,.5);
}

/* ═══════ CARDS ═══════ */
.aj-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 48px 0;
}
.aj-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s ease;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  display: block;
}
.aj-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.aj-card__icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}
.aj-card__title {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
}
.aj-card__text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 992px) {
  .aj-hero { padding: 60px 16px 50px; }
  .aj-hero__title { font-size: 30px; }
  .aj-hero__subtitle { font-size: 16px; }
  .aj-content__grid { grid-template-columns: 1fr; }
  .aj-sidebar { position: static; margin-top: 40px; }
  .aj-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .aj-hero__title { font-size: 24px; }
  .aj-hero__cta { padding: 14px 28px; font-size: 14px; }
  .aj-cta-box__title { font-size: 22px; }
  .aj-stats { grid-template-columns: 1fr; }
  .aj-cards { grid-template-columns: 1fr; }
}
