/* =========================================================================
   Demo Law — Theme foundation
   Sections styling is added incrementally as designs arrive.
   ========================================================================= */

/* -------- Design tokens -------- */
:root {
	/* Light identity: white background, black + gold */
	--color-navy: #0f1b2e;      /* deep navy — the site's "dark" brand colour */
	--color-navy-2: #17273f;
	/* Same colour as RGB channels, so overlays/scrims can be built with
	   rgba(var(--color-ink-rgb), a) and follow the control panel too. */
	--color-ink-rgb: 15, 27, 46;
	--color-gold: #b8860b;
	--color-gold-rgb: 184, 134, 11;
	--color-gold-2: #d4af37;
	--color-gold-soft: #f3ead2;
	--color-ink: #0f1b2e;
	--color-body: #4a4a4a;
	--color-muted: #8a8a8a;
	--color-line: #ececec;
	--color-bg: #ffffff;
	--color-bg-soft: #f7f5f0;   /* warm off-white like the mockup cards */
	--color-white: #ffffff;

	--font-body: "Cairo", "Segoe UI", Tahoma, sans-serif;
	--font-head: "Tajawal", "Cairo", sans-serif;

	--container: 1200px;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow-sm: 0 2px 10px rgba(var(--color-ink-rgb), .06);
	--shadow-md: 0 10px 30px rgba(var(--color-ink-rgb), .10);
	--transition: .25s ease;
	--space: 96px;
}

/* -------- Reset / base -------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* -------- Lenis smooth scroll (official baseline) -------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.8;
	color: var(--color-body);
	background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--color-ink);
	line-height: 1.3;
	margin: 0 0 .5em;
	font-weight: 700;
}

p { margin: 0 0 1.2em; }

a {
	color: var(--color-gold);
	text-decoration: none;
	transition: color var(--transition);
}
a:hover { color: var(--color-gold-2); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; }

/* -------- Layout helpers -------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 20px;
}

.section { padding-block: var(--space); }
.section:nth-child(even) { background: var(--color-bg-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--color-gold);
	text-transform: uppercase;
	font-size: 14px;
	margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); }
.section-lead { color: var(--color-muted); font-size: 18px; }

/* -------- Buttons — one unified shape + "Soft Ripple" hover -------------
   Two colorways only: .btn-light (for light sections) and .btn-dark (for
   dark sections). Same shape + same ripple animation; colors differ only.
   ---------------------------------------------------------------------- */
.btn {
	--btn-bg: var(--color-gold);
	--btn-fg: #ffffff;
	--btn-ripple: rgba(255,255,255,.30);
	--btn-ring: transparent;

	position: relative;
	z-index: 0;
	overflow: hidden;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	/* min-height instead of vertical padding: Arabic and Latin labels were
	   resolving to slightly different box heights (50px vs 53px). */
	min-height: 54px;
	padding: 0 42px;
	border-radius: 6px;
	/* No real border anywhere: the outline variant draws its ring with an inset
	   shadow, so every colorway keeps exactly the same box size. */
	border: 0;
	box-shadow: inset 0 0 0 2px var(--btn-ring);
	background: var(--btn-bg);
	color: var(--btn-fg);
	cursor: pointer;
	letter-spacing: .01em;
	-webkit-appearance: none;
	appearance: none;
	transition: box-shadow .35s ease, transform .35s ease, color .35s ease;
}
/* Soft Ripple: a circle grows from the centre until it fully covers the
   button. It is sized off the width (aspect-ratio keeps it round), so wide
   buttons no longer keep un-covered corners the way a 100%x100% ellipse did. */
.btn::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 130%;
	aspect-ratio: 1 / 1;
	background: var(--btn-ripple);
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(0);
	transition: transform .55s cubic-bezier(.22, 1, .36, 1);
	z-index: -1;
}
.btn:hover::before,
.btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
/* Buttons are links, and the global `a:hover` colour rule outranks `.btn`.
   Pin the label colour so it keeps the colorway's own foreground. */
.btn:hover,
.btn:focus,
.btn:focus-visible { color: var(--btn-fg); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .1s; }
.btn:focus-visible { outline: 3px solid var(--color-gold-2); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.btn, .btn::before { transition: none; }
	.btn:hover { transform: none; }
}

/* Colorway — light sections: black button, gold fills in on hover */
.btn-light {
	--btn-bg: var(--color-ink);
	--btn-fg: #ffffff;
	--btn-ripple: var(--color-gold);
}
/* Colorway — dark sections: gold button. The fill must contrast with the
   section behind it, so it goes to white (ink would vanish into the navy). */
.btn-dark {
	--btn-bg: var(--color-gold);
	--btn-fg: #ffffff;
	--btn-ripple: #ffffff;
}
.btn-dark:hover,
.btn-dark:focus-visible { color: var(--color-ink); }

/* Back-compat aliases so older markup keeps working */
.btn-primary { --btn-bg: var(--color-ink);  --btn-fg:#fff; --btn-ripple: var(--color-gold); }
.btn-gold    { --btn-bg: var(--color-gold); --btn-fg:#fff; --btn-ripple: #fff; }
.btn-gold:hover { color: var(--color-ink); }

/* Outline / secondary — same box, ring drawn with an inset shadow */
.btn-ghost {
	--btn-bg: transparent;
	--btn-fg: var(--color-ink);
	--btn-ring: var(--color-ink);
	--btn-ripple: var(--color-ink);
}
.btn-ghost:hover { color: #fff; }
.section-dark .btn-ghost,
.hero-slider .btn-ghost {
	--btn-fg: #fff;
	--btn-ring: rgba(255,255,255,.75);
	--btn-ripple: #fff;
}
.section-dark .btn-ghost:hover,
.hero-slider .btn-ghost:hover { color: var(--color-ink); --btn-ring: #fff; }

/* WhatsApp — brand green, wider two-line label */
.btn-wa {
	--btn-bg: #25d366;
	--btn-fg: #ffffff;
	--btn-ripple: #128c7e;
	gap: 14px;
	padding: 14px 26px;
	text-align: start;
	box-shadow: 0 8px 20px rgba(37,211,102,.28);
}
.btn-wa:hover { color: #fff; box-shadow: 0 12px 26px rgba(18,140,126,.34); }
.btn-wa-icon {
	flex: 0 0 40px;
	width: 40px; height: 40px;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.18);
	font-size: 22px;
}
.btn-wa-icon svg { width: 1em; height: 1em; }
.btn-wa-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.35; }
.btn-wa-text strong { font-size: 16px; font-weight: 700; }
.btn-wa-text small { font-size: 12.5px; font-weight: 500; opacity: .85; }


/* -------- Accessibility -------- */
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px;
	overflow: hidden;
}
.skip-link {
	position: absolute; inset-inline-start: -9999px; top: 0;
	background: var(--color-navy); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { inset-inline-start: 0; }

/* =========================================================================
   Top bar
   ========================================================================= */
.topbar {
	background: var(--color-navy);
	color: rgba(255,255,255,.85);
	font-size: 14px;
}
.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	gap: 16px;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--color-gold-2); }
.topbar-contact { display: flex; gap: 20px; }
.topbar-social .social-links { display: flex; gap: 14px; list-style: none; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
	background: var(--color-white);
	box-shadow: var(--shadow-sm);
	position: relative;
	z-index: 100;
}
/* Sticky is opt-in from: لوحة تحكم القالب ← الهوية والشعار ← الهيدر */
body.has-sticky-header .site-header {
	position: sticky;
	top: 0;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}
.site-branding .site-title {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 24px;
	color: var(--color-navy);
}
.custom-logo { max-height: 56px; width: auto; }

.main-navigation .nav-menu {
	display: flex;
	gap: 28px;
	list-style: none;
	align-items: center;
}
.main-navigation a {
	font-family: var(--font-head);
	font-weight: 500;
	color: var(--color-ink);
	padding: 8px 0;
	position: relative;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--color-gold); }
.main-navigation .current-menu-item > a::after {
	content: "";
	position: absolute; inset-inline: 0; bottom: 0;
	height: 2px; background: var(--color-gold);
}

/* sub menus */
.main-navigation .sub-menu {
	position: absolute;
	background: #fff;
	box-shadow: var(--shadow-md);
	min-width: 220px;
	list-style: none;
	padding: 8px 0;
	border-radius: var(--radius-sm);
	display: none;
	z-index: 50;
}
.main-navigation .menu-item-has-children { position: relative; }
.main-navigation .menu-item-has-children:hover > .sub-menu { display: block; }
.main-navigation .sub-menu a { display: block; padding: 8px 18px; }

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 10px;
	flex-direction: column;
	gap: 5px;
}
.menu-toggle-bar { width: 24px; height: 2px; background: var(--color-navy); display: block; }

/* =========================================================================
   Hero slider (الانترو)
   ========================================================================= */
.hero-slider {
	position: relative;
	height: clamp(600px, 88vh, 860px);
	overflow: hidden;
	background: var(--color-ink);
}
.hero-track { position: absolute; inset: 0; }
.hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.06);
	transition: opacity 1s ease, transform 6s ease;
	display: flex;
	align-items: center;
	/* keep the centred caption above the cards that overlap the hero bottom */
	padding-bottom: 150px;
}
.hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}
.hero-overlay {
	position: absolute; inset: 0;
	/* Dark end sits on the caption side (right in RTL) plus a base scrim, so any
	   photo the client uploads keeps the headline readable. */
	background: rgba(var(--color-ink-rgb), .68);
}
.hero-slide-inner { position: relative; z-index: 2; width: 100%; }
.hero-caption { max-width: 720px; }
.hero-eyebrow {
	display: inline-block; color: var(--color-gold-2);
	font-family: var(--font-head); font-weight: 700; letter-spacing: .05em; margin-bottom: 14px;
}
.hero-title {
	color: #fff;
	font-size: clamp(26px, 4.2vw, 46px);
	font-weight: 800;
	line-height: 1.5;
	margin-bottom: 30px;
}

/* arrows */
.hero-nav {
	position: absolute; z-index: 5;
	inset-inline-end: 44px; top: 50%;
	transform: translateY(-50%);
	display: flex; flex-direction: column; gap: 14px;
}
.hero-arrow {
	width: 46px; height: 46px;
	padding: 0;
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 50%;
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(var(--color-ink-rgb), .45);
	color: #fff;
	font-size: 18px;
	transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.hero-arrow svg { width: 1em; height: 1em; }
/* The shared icon points to the inline start; flip it for "previous". */
.hero-prev svg { transform: rotate(180deg); }
.hero-arrow:hover {
	background: var(--color-gold);
	border-color: var(--color-gold);
	color: #fff;
}

/* dots */
.hero-dots {
	position: absolute; z-index: 5;
	inset-inline-start: 0; inset-inline-end: 0; bottom: 128px;
	display: flex; justify-content: center; gap: 10px;
}
.hero-dot {
	width: 12px; height: 12px; padding: 0;
	border: 2px solid #fff; border-radius: 50%;
	background: transparent; cursor: pointer; transition: all var(--transition);
}
.hero-dot.is-active { background: var(--color-gold); border-color: var(--color-gold); }

/* =========================================================================
   Intro cards (إدارتنا / رسالتنا / رؤيتنا) — overlaps hero
   ========================================================================= */
.section-intro-cards { padding-block: 0; background: transparent; }
.section-intro-cards:nth-child(even) { background: transparent; }
.intro-cards-row {
	margin-top: -90px;
	position: relative;
	z-index: 6;
}
.intro-card {
	background: var(--color-bg-soft);
	padding: 40px 32px;
	height: 100%;
	border-radius: 4px;
	box-shadow: var(--shadow-md);
	transition: transform var(--transition), box-shadow var(--transition);
}
.intro-card:hover { transform: translateY(-6px); }
.intro-card-icon {
	width: 74px; height: 74px;
	margin-bottom: 22px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--color-gold-soft);
	color: var(--color-gold);
	transition: background var(--transition), color var(--transition);
}
.intro-card:hover .intro-card-icon { background: var(--color-gold); color: #fff; }
/* Glyph fills more of the disc, with a heavier stroke so it reads clearly. */
.intro-card-icon svg { width: 44px; height: 44px; stroke-width: 1.85; }
.intro-card-icon img { width: 44px; height: 44px; object-fit: contain; }
.intro-card-title {
	font-size: 22px; color: var(--color-ink);
	position: relative; padding-bottom: 14px; margin-bottom: 16px;
}
.intro-card-title::after {
	content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
	width: 46px; height: 2px; background: var(--color-gold);
}
.intro-card-text { color: var(--color-body); margin: 0; font-size: 15.5px; }

/* Add breathing room after the overlapping cards */
.section-intro-cards::after { content: ""; display: block; height: 96px; }

/* =========================================================================
   Dark section scheme (reusable — alternating light/dark sections)
   ========================================================================= */
.section-dark {
	background: var(--color-ink);
	color: rgba(255,255,255,.78);
	position: relative;
}
.section-dark::before {
	/* subtle gold texture accent */
	content: "";
	position: absolute; inset: 0;
	background:;
	pointer-events: none;
}
.section-dark .section-title,
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .container { position: relative; z-index: 1; }

/* Brand emblem mark above section titles (replaces the old line marks) */
.section-mark {
	display: block;
	width: 58px; height: 58px;
	margin: 0 auto 16px;
	line-height: 0;
}
.section-mark img { width: 100%; height: 100%; object-fit: contain; }
.section-mark-start { margin-inline: 0; width: 52px; height: 52px; }

/* =========================================================================
   About (من نحن)
   ========================================================================= */
.section-about .about-media {
	position: relative;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.section-about .about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.section-about .about-media-placeholder {
	width: 100%; padding-top: 120%;
	background: var(--color-navy-2);
}
.section-about .about-media::after {
	content: "";
	position: absolute; inset-inline-start: -14px; top: 30px; bottom: 30px;
	width: 4px; background: var(--color-gold);
}
.about-content .section-title { margin-bottom: 22px; line-height: 1.6; }
.about-text { color: rgba(255,255,255,.72); font-size: 16px; margin-bottom: 30px; }
.about-text p { margin-bottom: 1em; }

/* Stats bar */
.stats-bar {
	margin-top: 70px;
	background: rgba(255,255,255,.03);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 6px;
	overflow: hidden;
}
.stat {
	text-align: center;
	padding: 34px 16px;
	position: relative;
}
.stats-bar .col-lg-3:not(:last-child) .stat::after,
.stats-bar .col-6:nth-child(odd) .stat::after {
	content: "";
	position: absolute; inset-inline-end: 0; top: 22%; bottom: 22%;
	width: 1px; background: rgba(255,255,255,.10);
}
.stat-value {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(30px, 4vw, 44px);
	color: var(--color-gold-2);
	line-height: 1;
	display: inline-flex; align-items: baseline; gap: 2px;
}
.stat-suffix { font-size: .6em; }
.stat-label { margin-top: 10px; color: rgba(255,255,255,.7); font-size: 15px; }

@media (max-width: 991px) {
	.stats-bar .col-6:nth-child(odd) .stat::after { display: none; }
	.stats-bar .col-6:nth-child(even) .stat { border-inline-start: 1px solid rgba(255,255,255,.10); }
	.stats-bar .row > div:nth-child(-n+2) .stat { border-bottom: 1px solid rgba(255,255,255,.10); }
}

/* =========================================================================
   Services (الخدمات القانونية) — cards with hover-image reveal
   ========================================================================= */
.service-card {
	position: relative;
	display: block;
	height: 100%;
	min-height: 240px;
	background: var(--color-bg-soft);
	border-radius: 6px;
	padding: 40px 30px;
	overflow: hidden;
	text-align: center;
	color: inherit;
	isolation: isolate;
	transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-md); }

/* Disc behind the icon — centred on the glyph, not offset from it */
.service-icon::before {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 74px; height: 74px;
	margin: -37px 0 0 -37px;
	background: rgba(var(--color-gold-rgb), .12);
	border-radius: 50%;
	z-index: -1;
	transition: transform var(--transition), background var(--transition);
}
.service-card:hover .service-icon::before {
	transform: scale(1.15);
	background: rgba(var(--color-gold-rgb), .2);
}
.service-card.has-hover:hover .service-icon::before { background: rgba(255,255,255,.14); }

.service-face { position: relative; z-index: 2; display: block; }
.service-icon {
	position: relative;
	width: 60px; height: 60px;
	margin: 0 auto 22px;
	color: var(--color-gold);
	display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 40px; height: 40px; stroke-width: 1.8; }
.service-icon img { width: 40px; height: 40px; object-fit: contain; }
.service-title { font-size: 20px; color: var(--color-ink); margin-bottom: 12px; }
.service-text { color: var(--color-muted); font-size: 15px; margin: 0; }

/* hover image overlay */
.service-hover {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-size: cover;
	background-position: center;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.06);
	transition: opacity .5s ease, transform .7s ease, visibility .5s;
}
.service-hover::after {
	content: "";
	position: absolute; inset: 0;
	background: rgba(var(--color-ink-rgb), .82);
}
.service-card.has-hover:hover .service-hover,
.service-card.has-hover:focus-visible .service-hover {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}
/* On hover only the title remains: the icon and the blurb fade and slide out,
   the title turns white and moves up into the space they leave. */
.service-icon,
.service-text {
	transition: opacity .35s ease, transform .45s ease, visibility .35s;
}
.service-title { transition: color .35s ease, transform .45s ease; }

.service-card.has-hover:hover .service-icon,
.service-card.has-hover:focus-visible .service-icon,
.service-card.has-hover:hover .service-text,
.service-card.has-hover:focus-visible .service-text {
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
}
.service-card.has-hover:hover .service-title,
.service-card.has-hover:focus-visible .service-title {
	color: #fff;
	transform: translateY(-18px);
}

/* "المزيد" link */
.services-more { text-align: center; margin-top: 50px; }
/* Touch devices: reveal on tap/focus, and never trap content behind hover */
@media (hover: none) {
	.service-card.has-hover .service-hover { opacity: .16; visibility: visible; transform: none; }
	.service-card.has-hover:hover .service-title { color: var(--color-ink); }
	.service-card.has-hover:hover .service-text { color: var(--color-muted); }
}

/* =========================================================================
   Content areas (blog / pages)
   ========================================================================= */
.main-area { padding-block: 64px; }
.content-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.primary-content { min-width: 0; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }

.post-card {
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.post-card-media img { width: 100%; height: 210px; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-card .entry-title { font-size: 20px; margin-bottom: 10px; }
.post-card .entry-meta { color: var(--color-muted); font-size: 13px; margin-bottom: 10px; }
.read-more { font-family: var(--font-head); font-weight: 700; }

.page-header { margin-bottom: 40px; }
.page-title { font-size: clamp(28px, 4vw, 40px); }

.entry-content { font-size: 17px; }
.entry-content h2 { margin-top: 1.6em; }
.entry-thumbnail { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }

/* Breadcrumbs */
.breadcrumbs { font-size: 14px; color: var(--color-muted); margin-bottom: 24px; }
.breadcrumbs .sep { margin-inline: 8px; }
.breadcrumbs .current { color: var(--color-ink); }

/* Sidebar / widgets */
.widget { margin-bottom: 36px; }
.widget-title { font-size: 18px; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.widget-title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 40px; height: 3px; background: var(--color-gold); }
.widget ul { list-style: none; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--color-line); }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-field {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
	font-family: inherit;
}
.search-submit { padding: 12px 22px; background: var(--color-navy); color: #fff; border: 0; border-radius: var(--radius-sm); cursor: pointer; }

/* Pagination */
.pagination { margin-top: 48px; display: flex; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; padding: 10px 16px; margin: 0 4px;
	border: 1px solid var(--color-line); border-radius: var(--radius-sm);
	color: var(--color-ink);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--color-gold); color: #fff; border-color: var(--color-gold); }

/* 404 */
.error-404 { text-align: center; padding-block: 80px; }
.error-code { font-size: clamp(80px, 16vw, 160px); color: var(--color-gold); margin: 0; line-height: 1; }
.error-404 .search-form { max-width: 420px; margin: 24px auto; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--color-navy); color: rgba(255,255,255,.75); margin-top: 80px; }
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	padding-block: 64px;
}
.site-footer .widget-title { color: #fff; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--color-gold-2); }
.site-footer li { border-color: rgba(255,255,255,.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
	display: flex; align-items: center; justify-content: center;
	padding-block: 22px; gap: 10px 28px; flex-wrap: wrap; font-size: 14px;
	text-align: center;
}
.footer-bottom-inner .copyright { margin: 0; }
.legal-menu { display: flex; gap: 20px; list-style: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 992px) {
	.content-with-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	:root { --space: 64px; }
	.menu-toggle { display: flex; }
	.main-navigation .nav-menu {
		display: none;
		position: absolute;
		top: 100%; inset-inline: 0;
		flex-direction: column;
		background: #fff;
		box-shadow: var(--shadow-md);
		padding: 12px 20px;
		gap: 0;
	}
	.main-navigation.is-open .nav-menu { display: flex; }
	.main-navigation .nav-menu li { border-bottom: 1px solid var(--color-line); }
	.main-navigation .sub-menu { position: static; box-shadow: none; display: block; padding-inline-start: 16px; }
	.header-cta { display: none; }
	.topbar-social { display: none; }
}

/* =========================================================================
   Additions — new homepage sections, sticky header, footer, forms
   ========================================================================= */

/* -------- Icon sizing baseline (all inline SVGs) -------- */
.topbar svg, .contact-ico svg, .footer-contact svg, .social-links svg,
.why-item-icon svg, .process-icon svg, .intro-card-icon svg, .service-icon svg,
.faq-sign svg, .blog-card-meta svg, .read-more svg, .cta-phone-icon svg,
.team-socials svg, .testi-arrow svg, .testi-quote svg, .testi-star svg,
.about-points svg, .attorney-meta svg, .attorney-spec svg { width: 1em; height: 1em; }

/* -------- Sticky header: deepen the shadow once it detaches -------- */
.site-header { transition: box-shadow .3s ease; }
body.has-sticky-header .site-header.is-stuck { box-shadow: var(--shadow-md); }

/* -------- Top bar tweaks -------- */
.topbar-contact a, .topbar-note {
	display: inline-flex; align-items: center; gap: 8px;
}
.topbar-note { color: rgba(255,255,255,.6); }
.topbar-social .social-links a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border-radius: 50%;
	background: rgba(255,255,255,.08); font-size: 14px;
}
.topbar-social .social-links a:hover { background: var(--color-gold); color: #fff; }

/* -------- Hero additions -------- */
.hero-slide-img {
	position: absolute; inset: 0;
	width: 100%; height: 100%; object-fit: cover;
	opacity: 0; pointer-events: none;
}
.hero-text {
	color: rgba(255,255,255,.82);
	font-size: 17px; max-width: 620px; margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* -------- Shared "more" button row -------- */
.section-more { text-align: center; margin-top: 48px; }

/* -------- About additions -------- */
.about-media { position: relative; }
.about-media-2 {
	position: absolute; inset-inline-end: -24px; bottom: -32px;
	width: 42%; border: 8px solid var(--color-ink); border-radius: 4px; overflow: hidden;
	display: block;
}
.about-points { list-style: none; margin: 24px 0 32px; display: grid; gap: 12px; }
.about-points li { display: flex; align-items: flex-start; gap: 12px; }
.about-points li span[aria-hidden] {
	flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--color-gold); color: #fff; font-size: 13px; margin-top: 4px;
}
.section-dark .about-points li { color: rgba(255,255,255,.82); }

/* =========================================================================
   لماذا تختارنا
   ========================================================================= */
.section-why { background: var(--color-bg); }
.why-media { position: relative; border-radius: 4px; overflow: hidden; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-media-placeholder {
	aspect-ratio: 5 / 6;
	background: var(--color-gold-soft);
	border-radius: 4px;
}
.why-badge {
	position: absolute; inset-inline-start: 24px; bottom: 24px;
	background: var(--color-gold); color: #fff;
	padding: 18px 24px; border-radius: 4px; max-width: 220px;
	box-shadow: var(--shadow-md);
}
.why-badge-value { display: block; font-family: var(--font-head); font-size: 40px; font-weight: 900; line-height: 1; }
.why-badge-label { display: block; font-size: 14px; line-height: 1.5; margin-top: 6px; }
.why-lead { color: var(--color-body); font-size: 17px; margin-bottom: 8px; }
.why-items { margin-top: 24px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item-icon {
	flex: 0 0 52px; width: 52px; height: 52px; border-radius: 4px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--color-gold-soft); color: var(--color-gold); font-size: 24px;
	transition: background var(--transition), color var(--transition);
}
.why-item:hover .why-item-icon { background: var(--color-gold); color: #fff; }
.why-item-title { font-size: 19px; margin-bottom: 6px; }
.why-item-text { color: var(--color-body); font-size: 15px; margin: 0; }

/* =========================================================================
   كيف نعمل
   ========================================================================= */
.section-process { background: var(--color-bg-soft); }
.process-grid { list-style: none; }
.process-step {
	position: relative; height: 100%;
	background: #fff; border-radius: 4px;
	padding: 40px 28px 34px;
	text-align: center;
	transition: transform var(--transition), box-shadow var(--transition);
	overflow: hidden;
}
.process-step::before {
	content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
	background: var(--color-gold); transform: scaleX(0); transform-origin: inline-end;
	transition: transform .4s ease;
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.process-step:hover::before { transform: scaleX(1); }
.process-icon {
	width: 62px; height: 62px; margin: 0 auto 20px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: var(--color-gold-soft);
	color: var(--color-gold);
	transition: background var(--transition), color var(--transition);
}
.process-icon svg { width: 30px; height: 30px; stroke-width: 1.8; }
.process-step:hover .process-icon { background: var(--color-gold); color: #fff; }
.process-title { font-size: 19px; margin-bottom: 10px; }
.process-text { color: var(--color-body); font-size: 15px; margin: 0; }

/* =========================================================================
   شريط الحث على التواصل — contained card over the photo
   ========================================================================= */
.section-cta {
	position: relative;
	padding-block: 96px;
	background: var(--color-ink);
	background-size: cover;
	background-position: center;
	background-attachment: scroll;
}
/* Lighter than a full blackout: the card carries the contrast, so the photo
   stays legible instead of being a dark smudge. */
.section-cta.has-bg::before {
	content: "";
	position: absolute; inset: 0;
	background: rgba(var(--color-ink-rgb), .62);
}
.section-cta .container { position: relative; z-index: 2; }

.cta-card {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 56px;
	padding: 52px 56px;
	border-radius: 8px;
	/* Solid so the card separates cleanly from the scrim behind it. */
	background: var(--color-ink);
	border: 1px solid rgba(255,255,255,.09);
	box-shadow: 0 34px 80px rgba(0, 0, 0, .5);
}
/* Gold rule down the leading edge + a faint emblem-ish glow in the corner. */
.cta-card::before {
	content: "";
	position: absolute; inset-block: 0; inset-inline-start: 0;
	width: 4px;
	background: var(--color-gold);
}
.cta-body { position: relative; z-index: 2; max-width: 640px; }

.cta-badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 16px;
	margin-bottom: 20px;
	border-radius: 999px;
	background: rgba(var(--color-gold-rgb), .16);
	color: var(--color-gold-2);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: .02em;
}
.cta-badge svg { width: 1.05em; height: 1.05em; }

.cta-heading {
	color: #fff;
	font-size: clamp(26px, 2.8vw, 36px);
	line-height: 1.45;
	margin-bottom: 14px;
}
.cta-lead {
	color: rgba(255,255,255,.68);
	font-size: 16.5px;
	margin-bottom: 22px;
}
.cta-points {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 26px;
	margin: 0;
}
.cta-points li {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: rgba(255,255,255,.85);
	font-size: 14.5px;
}
.cta-points span {
	flex: 0 0 20px;
	width: 20px; height: 20px;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--color-gold);
	color: #fff;
	font-size: 11px;
}
.cta-points span svg { width: 1em; height: 1em; }

/* ---- Action panel ---- */
.cta-actions {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	min-width: 290px;
	padding-inline-start: 56px;
	border-inline-start: 1px solid rgba(255,255,255,.12);
	text-align: center;
}
.cta-actions .cta-btn { width: 100%; }

.cta-or {
	display: flex;
	align-items: center;
	gap: 12px;
	color: rgba(255,255,255,.45);
	font-size: 13px;
}
.cta-or::before,
.cta-or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(255,255,255,.14);
}

.cta-phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 12px 18px;
	border-radius: 6px;
	background: rgba(255,255,255,.06);
	color: #fff;
	transition: background var(--transition), color var(--transition);
}
.cta-phone:hover { background: rgba(255,255,255,.12); color: var(--color-gold-2); }
.cta-phone-icon {
	flex: 0 0 38px;
	width: 38px; height: 38px;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(var(--color-gold-rgb), .2);
	color: var(--color-gold-2);
	font-size: 17px;
}
.cta-phone-icon svg { width: 1em; height: 1em; }
.cta-phone-number {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: .01em;
}

.cta-note {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	color: rgba(255,255,255,.5);
	font-size: 13px;
}
.cta-note svg { width: 1em; height: 1em; }

@media (max-width: 991px) {
	.section-cta { padding-block: 64px; }
	.cta-card {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 40px 32px;
	}
	.cta-actions {
		min-width: 0;
		padding-inline-start: 0;
		padding-top: 28px;
		border-inline-start: 0;
		border-top: 1px solid rgba(255,255,255,.12);
	}
}
@media (max-width: 575px) {
	.cta-card { padding: 32px 22px; }
	.cta-points { gap: 10px 18px; }
}

/* =========================================================================
   فريق المحامين
   ========================================================================= */
.section-team { background: var(--color-bg); }
.team-card {
	height: 100%; background: #fff;
	border: 1px solid var(--color-line); border-radius: 4px; overflow: hidden;
	transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-media { position: relative; overflow: hidden; background: var(--color-bg-soft); }
.team-media::after {
	content: "";
	position: absolute; inset: 0;
	background: rgba(var(--color-ink-rgb), .62);
	opacity: 0;
	transition: opacity .45s ease;
	pointer-events: none;
}
.team-card:hover .team-media::after { opacity: 1; }
.team-media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; transition: transform .6s ease; }
.team-card:hover .team-media img { transform: scale(1.06); }
.team-media-placeholder {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 5 / 6; font-size: 54px; color: var(--color-muted);
}
.team-socials {
	position: absolute; z-index: 2; inset-inline-end: 14px; bottom: 14px;
	list-style: none; display: flex; flex-direction: column; gap: 8px;
	opacity: 0; transform: translateY(12px);
	transition: opacity var(--transition), transform var(--transition);
}
.team-card:hover .team-socials { opacity: 1; transform: translateY(0); }
.team-socials a {
	width: 34px; height: 34px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--color-gold); color: #fff; font-size: 15px;
}
.team-socials a:hover { background: var(--color-ink); color: #fff; }
.team-body { padding: 22px; text-align: center; }
.team-name { font-size: 20px; margin-bottom: 4px; }
.team-name a { color: var(--color-ink); }
.team-name a:hover { color: var(--color-gold); }
.team-role { color: var(--color-gold); font-family: var(--font-head); font-weight: 700; margin: 0 0 4px; }
.team-spec { color: var(--color-muted); font-size: 14px; margin: 0; }
@media (hover: none) {
	.team-socials { opacity: 1; transform: none; }
}

/* =========================================================================
   آراء العملاء
   ========================================================================= */
.section-testimonials { position: relative; background-size: cover; background-position: center; }
.section-testimonials.has-bg::before {
	content: ""; position: absolute; inset: 0; background: rgba(var(--color-ink-rgb),.9);
}
.section-testimonials .container { position: relative; z-index: 2; }
.testi-slider { position: relative; overflow: hidden; }
.testi-track { display: flex; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.testi-slide { flex: 0 0 100%; padding-inline: 8px; }
@media (min-width: 768px)  { .testi-slide { flex-basis: 50%; } }
@media (min-width: 1200px) { .testi-slide { flex-basis: 33.3333%; } }
.testi-card {
	position: relative; height: 100%;
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 4px; padding: 36px 28px 28px;
}
.testi-quote {
	position: absolute; inset-inline-end: 24px; top: 22px;
	font-size: 34px; color: rgba(var(--color-gold-rgb), .35);
}
.testi-stars { display: flex; gap: 4px; margin-bottom: 16px; font-size: 15px; }
.testi-star { color: rgba(255,255,255,.2); }
.testi-star.is-on { color: var(--color-gold-2); }
.testi-text { color: rgba(255,255,255,.8); font-size: 15.5px; margin: 0 0 22px; border: 0; padding: 0; }
.testi-text p:last-child { margin-bottom: 0; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: 0 0 52px; }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-avatar-fallback {
	display: flex; align-items: center; justify-content: center;
	background: var(--color-gold); color: #fff;
	font-family: var(--font-head); font-weight: 700; font-size: 22px;
}
.testi-name { display: block; color: #fff; font-family: var(--font-head); }
.testi-role { display: block; color: var(--color-gold-2); font-size: 13px; }
.testi-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.testi-arrow {
	width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.1); color: #fff; font-size: 18px;
	transition: background var(--transition);
}
.testi-arrow:hover { background: var(--color-gold); }
.testi-prev svg { transform: rotate(180deg); }
.testi-dots { display: flex; gap: 8px; }
.testi-dots button {
	width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
	border: 0; background: rgba(255,255,255,.25); transition: all var(--transition);
}
.testi-dots button.is-active { background: var(--color-gold); width: 26px; border-radius: 5px; }

/* =========================================================================
   الأسئلة الشائعة
   ========================================================================= */
.section-faq { background: var(--color-bg-soft); }
.faq-media { border-radius: 4px; overflow: hidden; }
.faq-media img { width: 100%; height: 100%; object-fit: cover; }
.faq-lead { color: var(--color-body); font-size: 16px; }
.faq-list { margin-top: 28px; display: grid; gap: 14px; }
.faq-item {
	background: #fff; border: 1px solid var(--color-line);
	border-radius: 4px; overflow: hidden;
	transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item.is-open { border-color: var(--color-gold); box-shadow: var(--shadow-sm); }
.faq-q { margin: 0; font-size: 17px; }
.faq-toggle {
	width: 100%; display: flex; align-items: center; justify-content: space-between;
	gap: 16px; text-align: start; cursor: pointer;
	background: transparent; border: 0;
	font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--color-ink);
	padding: 20px 24px; line-height: 1.6;
}
.faq-sign {
	flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--color-gold-soft); color: var(--color-gold); font-size: 15px;
	transition: transform var(--transition), background var(--transition), color var(--transition);
}
.faq-item.is-open .faq-sign { transform: rotate(45deg); background: var(--color-gold); color: #fff; }
.faq-a-inner { padding: 0 24px 22px; color: var(--color-body); font-size: 15.5px; }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* =========================================================================
   المدونة
   ========================================================================= */
.section-blog { background: var(--color-bg); }
.blog-card {
	height: 100%; background: #fff;
	border: 1px solid var(--color-line); border-radius: 4px; overflow: hidden;
	transition: transform var(--transition), box-shadow var(--transition);
	display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card-media { position: relative; display: block; overflow: hidden; background: var(--color-bg-soft); }
.blog-card-media img { width: 100%; height: 220px; object-fit: cover; transition: transform .6s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.06); }
.blog-card-placeholder {
	display: flex; align-items: center; justify-content: center;
	height: 220px; font-size: 44px; color: var(--color-muted);
}
.blog-card-date {
	position: absolute; inset-inline-start: 16px; bottom: 16px;
	background: var(--color-gold); color: #fff; border-radius: 4px;
	padding: 8px 14px; text-align: center; line-height: 1.2;
}
.blog-card-date strong { display: block; font-family: var(--font-head); font-size: 20px; }
.blog-card-date small { font-size: 12px; }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta {
	display: flex; gap: 18px; flex-wrap: wrap;
	color: var(--color-muted); font-size: 13px; margin-bottom: 12px;
}
.blog-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-card-title { font-size: 20px; margin-bottom: 10px; line-height: 1.5; }
.blog-card-title a { color: var(--color-ink); }
.blog-card-title a:hover { color: var(--color-gold); }
.blog-card-text { color: var(--color-body); font-size: 15px; flex: 1; }
.read-more {
	display: inline-flex; align-items: center;
	color: var(--color-gold);
	position: relative; padding-bottom: 3px;
}
.read-more::after {
	content: ""; position: absolute; inset-inline: 0; bottom: 0;
	height: 1px; background: currentColor;
	transform: scaleX(0); transform-origin: inline-end;
	transition: transform var(--transition);
}
.read-more:hover::after { transform: scaleX(1); }

/* =========================================================================
   شركاء النجاح
   ========================================================================= */
.section-partners { padding-block: 68px; background: var(--color-bg-soft); overflow: hidden; }
.partners-heading {
	text-align: center; color: var(--color-muted);
	font-family: var(--font-head); font-weight: 700; margin-bottom: 28px;
}
.partners-marquee {
	overflow: hidden;
}
.partners-track {
	display: flex; align-items: center; gap: 72px; list-style: none;
	width: max-content; animation: dl-marquee 34s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
@keyframes dl-marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
	.partners-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}
.partners-item img {
	max-height: 84px;
	max-width: 210px;
	width: auto;
	filter: grayscale(1);
	opacity: .65;
	transition: filter var(--transition), opacity var(--transition), transform var(--transition);
}
.partners-item:hover img { transform: scale(1.05); }
.partners-item:hover img { filter: none; opacity: 1; }
.partners-name { font-family: var(--font-head); font-weight: 700; color: var(--color-muted); font-size: 20px; white-space: nowrap; }

/* =========================================================================
   تواصل معنا + النماذج
   ========================================================================= */
.section-contact { background: var(--color-bg); }
.contact-info { height: 100%; }
.contact-list { list-style: none; display: grid; gap: 22px; margin-bottom: 28px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ico {
	flex: 0 0 48px; width: 48px; height: 48px; border-radius: 4px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--color-gold-soft); color: var(--color-gold); font-size: 20px;
}
.contact-list strong {
	display: block; font-family: var(--font-head);
	color: var(--color-ink); margin-bottom: 2px;
}
.contact-list a, .contact-plain { display: block; color: var(--color-body); }
.contact-list a:hover { color: var(--color-gold); }
.contact-info .btn-wa { display: inline-flex; margin-bottom: 26px; }
.contact-info .social-links { list-style: none; display: flex; gap: 10px; }
.contact-info .social-links a {
	width: 38px; height: 38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--color-bg-soft); color: var(--color-ink); font-size: 16px;
}
.contact-info .social-links a:hover { background: var(--color-gold); color: #fff; }

.contact-form-wrap {
	background: var(--color-bg-soft);
	border-radius: 4px; padding: 36px;
}
.form-label { display: block; font-family: var(--font-head); font-weight: 700; color: var(--color-ink); margin-bottom: 8px; font-size: 15px; }
.form-input, .contact-form-wrap input[type="text"], .contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"], .contact-form-wrap textarea, .contact-form-wrap select {
	width: 100%; padding: 14px 16px;
	border: 1px solid var(--color-line); border-radius: 4px;
	font-family: inherit; font-size: 15px; background: #fff; color: var(--color-ink);
	transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .contact-form-wrap input:focus, .contact-form-wrap textarea:focus, .contact-form-wrap select:focus {
	outline: none; border-color: var(--color-gold);
	box-shadow: 0 0 0 3px rgba(var(--color-gold-rgb), .15);
}
.dl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; font-family: var(--font-head); }
.form-note.is-ok { background: #e8f5ec; color: #166534; }
.form-note.is-error { background: #fdecec; color: #991b1b; }
.contact-map { margin-top: 56px; border-radius: 4px; overflow: hidden; line-height: 0; }
.contact-map iframe { display: block; }

/* =========================================================================
   Footer — panel-driven columns
   ========================================================================= */
.site-footer { position: relative; background-size: cover; background-position: center; }
/* Overlay keeps the footer readable over any photo set in the panel. */
.site-footer.has-bg::before {
	content: "";
	position: absolute; inset: 0;
	background: rgba(var(--color-ink-rgb), .93);
}
.site-footer.has-bg::after {
	content: "";
	position: absolute; inset-inline: 0; top: 0; height: 3px;
	background: var(--color-gold);
}
.site-footer > * { position: relative; z-index: 1; }
.site-footer .footer-main { padding-block: 72px 48px; }
.footer-brand .custom-logo { max-width: 190px; margin-bottom: 22px; }
.footer-about { color: rgba(255,255,255,.65); font-size: 15px; margin-bottom: 22px; }
.footer-title {
	color: #fff; font-size: 19px; margin-bottom: 22px;
	position: relative; padding-bottom: 12px;
}
.footer-title::after {
	content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
	width: 38px; height: 2px; background: var(--color-gold);
}
.footer-links, .footer-contact { list-style: none; display: grid; gap: 12px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.footer-links a::before {
	content: ""; width: 5px; height: 5px; border-radius: 50%;
	background: var(--color-gold); flex: 0 0 5px;
}
.footer-links a:hover { transform: translateX(-3px); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.footer-contact svg { color: var(--color-gold); margin-top: 6px; flex: 0 0 auto; }
.site-footer .social-links { list-style: none; display: flex; gap: 10px; }
.site-footer .social-links a {
	width: 38px; height: 38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.08); font-size: 16px;
}
.site-footer .social-links a:hover { background: var(--color-gold); color: #fff; }
.site-footer .footer-widgets { padding-block: 0 48px; }

/* -------- Back to top -------- */
.to-top {
	position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 800;
	width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
	background: var(--color-gold); color: #fff; font-size: 18px;
	box-shadow: var(--shadow-md);
	transition: background var(--transition), transform var(--transition);
}
.to-top:hover { background: var(--color-ink); transform: translateY(-3px); }

/* =========================================================================
   Inner page hero (CPT archives / single service)
   ========================================================================= */
.page-hero {
	background: var(--color-bg-soft);
	padding-block: 72px;
	text-align: center;
	border-bottom: 1px solid var(--color-line);
}
.page-hero-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.page-hero-lead { color: var(--color-body); max-width: 700px; margin: 0 auto 16px; }
.page-hero .breadcrumbs { justify-content: center; display: flex; margin: 0; }

/* -------- Single service / attorney extras -------- */
.service-points { margin-top: 40px; }
.service-points h2 { font-size: 24px; margin-bottom: 20px; }
.service-cta {
	margin-top: 48px; padding: 32px;
	background: var(--color-bg-soft); border-radius: 4px;
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; flex-wrap: wrap;
}
.service-cta h2 { font-size: 22px; margin: 0; }
.service-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.related-services { margin-top: 64px; }
.related-services h2 { font-size: 24px; margin-bottom: 24px; }
.attorney-media { border-radius: 4px; overflow: hidden; background: var(--color-bg-soft); margin-bottom: 24px; }
.attorney-media img { width: 100%; }
.attorney-meta { list-style: none; display: grid; gap: 14px; margin-bottom: 22px; }
.attorney-meta li { display: flex; align-items: center; gap: 12px; }
.attorney-meta svg { color: var(--color-gold); }
.single-attorney .social-links { list-style: none; display: flex; gap: 10px; }
.single-attorney .social-links a {
	width: 38px; height: 38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--color-bg-soft); color: var(--color-ink);
}
.single-attorney .social-links a:hover { background: var(--color-gold); color: #fff; }
.attorney-role { color: var(--color-gold); font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.attorney-spec { display: inline-flex; align-items: center; gap: 8px; color: var(--color-muted); }

/* =========================================================================
   Responsive — new sections
   ========================================================================= */
@media (max-width: 992px) {
	.cta-inner { flex-direction: column; align-items: flex-start; }
	.about-media-2 { display: none; }
}
@media (max-width: 768px) {
	.hero-nav { display: none; }
	.section-cta { padding-block: 48px; }
	.contact-form-wrap { padding: 24px; }
	.service-cta { flex-direction: column; align-items: flex-start; }
	.page-hero { padding-block: 48px; }
	.testi-nav { margin-top: 28px; }
	.site-footer .footer-main { padding-block: 48px 32px; }
}

/* =========================================================================
   Overflow guard
   WOW's fadeInLeft/fadeInRight translate elements outside the viewport while
   they play, which would otherwise create a horizontal scrollbar. The clipping
   is done per-section on purpose: Lenis breaks if html/body carry an overflow
   value, and the intro cards deliberately overlap the hero so they stay out.
   ========================================================================= */
.site-content section:not(.section-intro-cards),
.site-footer { overflow: hidden; }

/* Mobile top bar: keep the phone only — email and the working-hours note wrap
   into three cramped lines on a 375px screen. */
@media (max-width: 575px) {
	.topbar-inner { justify-content: center; }
	.topbar-contact { gap: 14px; }
	.topbar-contact a[href^="mailto:"],
	.topbar-note { display: none; }
}

/* =========================================================================
   Select fields — the native arrow sat flush against the edge in RTL, and
   Bootstrap's own caret doubled up with it. One custom caret, with room.
   ========================================================================= */
.contact-form-wrap select,
.form-input select,
select.form-input,
.contact-form-wrap .wpcf7-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 15px 15px;
	background-position: left 14px center;
	padding-inline-end: 16px;
	padding-inline-start: 36px;
	text-overflow: ellipsis;
	cursor: pointer;
}
[dir="ltr"] .contact-form-wrap select,
[dir="ltr"] select.form-input { background-position: right 14px center; }

.contact-form-wrap select:focus,
select.form-input:focus {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
/* CF7 wraps its select in a span — keep the wrapper from clipping the field. */
.contact-form-wrap .wpcf7-form-control-wrap { display: block; }

/* =========================================================================
   Motion safety net
   WOW.js hides .wow elements itself and reveals them on scroll. Never add a
   CSS `visibility: hidden` for them — if the script fails the content would be
   invisible with no way back. This block only honours reduced-motion.
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	.wow, .animated {
		visibility: visible !important;
		animation: none !important;
		opacity: 1 !important;
	}
}

/* =========================================================================
   Form field direction
   Arabic fields read right-to-left; phone/email hold Latin characters so they
   stay LTR internally but still start at the right edge of the field.
   ========================================================================= */
.contact-form-wrap input,
.contact-form-wrap textarea,
.contact-form-wrap select,
.form-input {
	direction: rtl;
	text-align: right;
}
.contact-form-wrap input[type="tel"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="url"],
.contact-form-wrap input[type="number"],
input.form-input[type="tel"],
input.form-input[type="email"] {
	direction: ltr;
	text-align: right;
}
.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder,
.form-input::placeholder { text-align: right; opacity: .7; }

.contact-form-wrap input[type="tel"]::placeholder,
.contact-form-wrap input[type="email"]::placeholder { direction: rtl; }

/* CF7 puts its own <p> wrappers and spans around fields — keep them block so
   the grid columns in the form markup line up. */
.contact-form-wrap .wpcf7-form-control-wrap { width: 100%; }
.contact-form-wrap .wpcf7-not-valid-tip { font-size: 13px; margin-top: 6px; }
.contact-form-wrap .wpcf7-response-output {
	margin: 18px 0 0;
	border-radius: 4px;
	border-width: 1px;
	padding: 12px 16px;
	font-size: 14px;
}

/* =========================================================================
   Inner pages — About / Contact / legal
   ========================================================================= */
.content-with-sidebar.no-sidebar { grid-template-columns: 1fr; }

/* Optional editor intro shown above the reused sections. */
.page-intro {
	max-width: 820px;
	margin-inline: auto;
	text-align: center;
	font-size: 17px;
	color: var(--color-body);
}

/* Legal pages read like a document: one narrow column, generous rhythm. */
.legal-page { max-width: 820px; margin-inline: auto; }
.legal-content { font-size: 16.5px; line-height: 2; }
.legal-content h2 {
	font-size: 22px;
	margin-top: 1.9em;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--color-line);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul,
.legal-content ol { padding-inline-start: 22px; margin-bottom: 1.2em; }
.legal-content li { margin-bottom: .5em; list-style: disc; }
.legal-content em { color: var(--color-muted); }
.legal-updated {
	margin-top: 48px;
	padding-top: 20px;
	border-top: 1px solid var(--color-line);
	color: var(--color-muted);
	font-size: 14px;
}

/* On the About page the reused sections already carry their own spacing, so
   the page hero should not double up on it. */
.page-template-template-about .page-intro,
.page-template-template-contact .page-intro { margin-bottom: 8px; }

/* =========================================================================
   قضايا ناجحة
   ========================================================================= */
.section-cases { background: var(--color-bg); }
.case-card {
	height: 100%;
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: 6px;
	overflow: hidden;
	transition: transform var(--transition), box-shadow var(--transition);
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-media { position: relative; display: block; overflow: hidden; background: var(--color-bg-soft); }
.case-media img { width: 100%; height: 220px; object-fit: cover; transition: transform .6s ease; }
.case-card:hover .case-media img { transform: scale(1.06); }
.case-media-placeholder {
	display: flex; align-items: center; justify-content: center;
	height: 220px; font-size: 44px; color: var(--color-muted);
}
.case-media-placeholder svg { width: 1em; height: 1em; }
.case-result {
	position: absolute; inset-inline-start: 14px; bottom: 14px;
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--color-gold); color: #fff;
	padding: 8px 14px; border-radius: 4px;
	font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
}
.case-result svg { width: 1em; height: 1em; }
.case-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.case-area {
	display: inline-block; align-self: flex-start;
	margin-bottom: 12px; padding: 5px 12px;
	border-radius: 999px;
	background: var(--color-gold-soft); color: var(--color-gold);
	font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
}
.case-title { font-size: 20px; line-height: 1.5; margin-bottom: 10px; }
.case-title a { color: var(--color-ink); }
.case-title a:hover { color: var(--color-gold); }
.case-text { color: var(--color-body); font-size: 15px; flex: 1; }

/* Single case */
.single-case { max-width: 880px; margin-inline: auto; }
.case-facts {
	list-style: none;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	background: var(--color-line);
	border: 1px solid var(--color-line);
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 40px;
}
.case-facts li { background: #fff; padding: 22px 24px; }
.case-fact-label { display: block; color: var(--color-muted); font-size: 13.5px; margin-bottom: 6px; }
.case-facts strong { font-family: var(--font-head); font-size: 17px; color: var(--color-ink); }
.case-disclaimer {
	margin-top: 40px; padding: 18px 22px;
	background: var(--color-bg-soft);
	border-inline-start: 3px solid var(--color-gold);
	border-radius: 4px;
	color: var(--color-muted); font-size: 14px; line-height: 1.9;
}

/* =========================================================================
   صفحة الوظائف
   ========================================================================= */
.section-careers-perks { background: var(--color-bg-soft); }
.perk-card {
	height: 100%;
	background: #fff;
	border-radius: 6px;
	padding: 34px 28px;
	text-align: center;
	transition: transform var(--transition), box-shadow var(--transition);
}
.perk-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.perk-icon {
	width: 70px; height: 70px; margin: 0 auto 20px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--color-gold-soft); color: var(--color-gold);
	transition: background var(--transition), color var(--transition);
}
.perk-icon svg { width: 32px; height: 32px; stroke-width: 1.8; }
.perk-card:hover .perk-icon { background: var(--color-gold); color: #fff; }
.perk-title { font-size: 19px; margin-bottom: 10px; }
.perk-text { color: var(--color-body); font-size: 15px; margin: 0; }

.section-jobs { background: var(--color-bg); }
.jobs-list { display: grid; gap: 18px; }
.job-card {
	display: flex; align-items: center; justify-content: space-between;
	gap: 28px; flex-wrap: wrap;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: 6px;
	padding: 28px 30px;
	transition: border-color var(--transition), box-shadow var(--transition);
}
.job-card:hover { border-color: var(--color-gold); box-shadow: var(--shadow-sm); }
.job-main { flex: 1; min-width: 260px; }
.job-title { font-size: 21px; margin-bottom: 12px; }
.job-meta {
	list-style: none; display: flex; flex-wrap: wrap;
	gap: 10px 24px; margin-bottom: 12px;
	color: var(--color-muted); font-size: 14px;
}
.job-meta li { display: inline-flex; align-items: center; gap: 8px; }
.job-meta svg { width: 1em; height: 1em; color: var(--color-gold); }
.job-text { color: var(--color-body); font-size: 15px; margin: 0; }
.jobs-empty {
	text-align: center; color: var(--color-body);
	background: var(--color-bg-soft); border-radius: 6px;
	padding: 34px 24px; margin: 0;
}

.apply-box {
	margin-top: 40px;
	background: var(--color-ink);
	border-radius: 6px;
	padding: 38px 40px;
	display: flex; align-items: center; justify-content: space-between;
	gap: 28px; flex-wrap: wrap;
}
.apply-title { color: #fff; font-size: 23px; margin-bottom: 8px; }
.apply-text { color: rgba(255,255,255,.7); margin: 0; font-size: 15px; }

@media (max-width: 767px) {
	.job-card { padding: 24px 22px; }
	.job-action { width: 100%; }
	.job-action .btn { width: 100%; }
	.apply-box { padding: 28px 24px; }
	.apply-box .btn { width: 100%; }
}
