/* ==============================================
   Article CSS — مكتب مشاري الزامل للمحاماة
   ============================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:   #0d2137;
  --navy2:  #1a3a5c;
  --silver: #8a9bb0;
  --light:  #f5f7fa;
  --gold:   #c9a84c;
  --white:  #ffffff;
  --text:   #1a1a2e;
  --muted:  #4a5568;
  --shadow: 0 4px 24px rgba(13,33,55,0.13);
  --radius: 12px;
  --tr:     0.28s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* =====================
   HEADER / NAV
===================== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-wrap img {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
  transition: color var(--tr);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--tr);
}

.main-nav a:hover,
.main-nav a.active { color: var(--gold); }

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: var(--tr);
}

.header-phone:hover { background: #b8943a; }
.header-phone svg { flex-shrink: 0; stroke: var(--navy); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--tr);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #091828;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--tr);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--gold); }

/* =====================
   BREADCRUMB
===================== */
.breadcrumb {
  background: var(--navy2);
  padding: 10px 0;
  margin-top: 72px;
}

.breadcrumb-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--silver);
}

.breadcrumb a {
  color: var(--silver);
  transition: color var(--tr);
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb .sep {
  color: rgba(255,255,255,0.25);
  font-size: 0.7rem;
}

.breadcrumb .current { color: var(--gold); font-weight: 600; }

/* =====================
   ARTICLE HERO
===================== */
.article-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 52px 24px 44px;
}

.article-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.article-category {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.article-hero h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.article-meta span {
  color: var(--silver);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta svg { width: 14px; height: 14px; fill: var(--gold); }

/* =====================
   ARTICLE BODY
===================== */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 52px 24px 72px;
}

.article-intro {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 40px;
  padding: 20px 24px;
  background: var(--white);
  border-right: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow);
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.article-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy2);
  margin: 28px 0 12px;
}

.article-body p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0 28px 20px;
}

.article-body li { margin-bottom: 8px; }

.info-box {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}

.info-box-title {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box p { color: var(--text); margin: 0; font-size: 0.95rem; }

.warning-box {
  background: rgba(220,53,69,0.06);
  border: 1px solid rgba(220,53,69,0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}

.warning-box .info-box-title { color: #dc3545; }

.steps-list {
  list-style: none;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(13,33,55,0.06);
}

.step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-top: 1px;
}

.step-text {
  flex: 1;
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.6;
}

.step-text strong { color: var(--navy); }

/* =====================
   CTA BOX
===================== */
.article-cta {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
  margin-top: 52px;
}

.article-cta h3 {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.article-cta p {
  color: var(--silver);
  font-size: 1rem;
  margin-bottom: 28px;
}

.article-cta .cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.97rem;
  padding: 12px 28px;
  border-radius: 8px;
  transition: var(--tr);
}

.btn-primary:hover { background: #b8943a; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.97rem;
  padding: 12px 28px;
  border-radius: 8px;
  border: 2px solid var(--gold);
  transition: var(--tr);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* =====================
   RELATED ARTICLES
===================== */
.related-section {
  background: var(--navy);
  padding: 60px 24px;
}

.related-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.related-section h2 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.related-divider {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 36px;
  border-radius: 2px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--tr);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(201,168,76,0.3);
}

.related-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
}

.related-card h3 {
  color: var(--white);
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.5;
}

.related-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
  transition: var(--tr);
}

.related-card a:hover { gap: 10px; }

/* =====================
   FOOTER
===================== */
#footer {
  background: var(--navy);
  padding: 56px 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand img { height: 50px; margin-bottom: 14px; }

.footer-brand p {
  color: var(--silver);
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 30px; height: 2px;
  background: var(--gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--silver);
  font-size: 0.9rem;
  transition: color var(--tr);
}

.footer-links a:hover { color: var(--gold); }

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--silver);
  font-size: 0.88rem;
}

.footer-contact-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  fill: var(--gold);
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p { color: var(--silver); font-size: 0.82rem; }
.footer-bottom span { color: var(--gold); }

/* =====================
   WHATSAPP FLOAT
===================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  cursor: pointer;
  transition: var(--tr);
  animation: wa-pulse 2.5s infinite;
}

.whatsapp-float:hover {
  background: #1ebc57;
  transform: scale(1.1);
  animation: none;
}

.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%      { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .header-phone { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 28px 20px; }
  .article-cta .cta-btns { flex-direction: column; align-items: center; }
}
