/*
Theme Name: ريم باجبع للمحاماة
Theme URI: https://example.com
Description: ثيم فرعي لـ Hello Elementor لموقع ريم بنت محمد باجبع للمحاماة والاستشارات القانونية. عند التفعيل ينشئ الصفحات بإليمنتور تلقائياً.
Author: Reem Bajabaa
Template: hello-elementor
Version: 1.0.2
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: reem-bajabaa
*/

:root {
	--reem-noir: #0D0D0D;
	--reem-alabaster: #F7F4F0;
	--reem-ochre: #B59E7B;
	--reem-shale: #2A2D2E;
	--reem-display: "Amiri", "Playfair Display", serif;
	--reem-body: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--reem-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Arabic-only site: stay right-to-left even if WordPress renders with an LTR locale. */
html { direction: rtl; scroll-behavior: smooth; }
body {
	background: var(--reem-alabaster);
	color: var(--reem-noir);
	font-family: var(--reem-body);
	font-size: 18px;
	line-height: 1.65;
}
[id] { scroll-margin-top: 80px; }
.reem-accent { color: var(--reem-ochre); }
.reem-accent-dark { color: rgba(13, 13, 13, 0.8); }

/* ---------- Header ---------- */
.reem-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	transition: background-color 0.5s, box-shadow 0.5s;
}
.admin-bar .reem-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .reem-header { top: 46px; } }
.reem-header.is-scrolled {
	background: rgba(247, 244, 240, 0.9);
	backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 0 rgba(13, 13, 13, 0.08);
}
.reem-header__inner,
.reem-footer__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
}
.reem-header__inner {
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.reem-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.reem-brand img { width: 52px; height: 52px; object-fit: contain; }
.reem-brand__logo--dark,
.reem-header.is-scrolled .reem-brand__logo--light { display: none; }
.reem-header.is-scrolled .reem-brand__logo--dark { display: block; }
.reem-brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.reem-brand__name { font-family: var(--reem-display); font-size: 18px; color: var(--reem-alabaster); }
.reem-brand__tag { font-size: 11px; color: rgba(247, 244, 240, 0.7); }
.reem-header.is-scrolled .reem-brand__name { color: var(--reem-noir); }
.reem-header.is-scrolled .reem-brand__tag { color: rgba(13, 13, 13, 0.6); }

.reem-menu-toggle,
.reem-menu-close {
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	padding: 8px;
	color: var(--reem-alabaster);
	font: 500 14px/1 var(--reem-body);
	letter-spacing: 0.1em;
	cursor: pointer;
}
.reem-menu-toggle:hover, .reem-menu-toggle:focus,
.reem-menu-close:hover, .reem-menu-close:focus { background: none; color: var(--reem-ochre); }
.reem-header.is-scrolled .reem-menu-toggle { color: var(--reem-noir); }
.reem-menu-toggle svg, .reem-menu-close svg { width: 26px; height: 26px; }

.reem-menu {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: var(--reem-noir);
	color: var(--reem-alabaster);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s, visibility 0.5s;
}
.reem-menu.is-open { opacity: 1; visibility: visible; }
.reem-menu__top {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--reem-display);
	font-size: 18px;
}
.reem-menu__nav {
	height: calc(100% - 80px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
}
.reem-menu__nav a {
	font-family: var(--reem-display);
	font-size: clamp(36px, 6vw, 60px);
	color: rgba(247, 244, 240, 0.8);
	text-decoration: none;
	transition: color 0.3s;
}
.reem-menu__nav a:hover { color: var(--reem-ochre); }
.reem-menu__nav a.reem-menu__phone {
	margin-top: 32px;
	font: 500 14px/1 var(--reem-body);
	letter-spacing: 0.1em;
	color: var(--reem-ochre);
	border-bottom: 1px solid var(--reem-ochre);
	padding-bottom: 4px;
}

/* ---------- Footer ---------- */
.reem-footer { background: var(--reem-shale); color: rgba(247, 244, 240, 0.7); padding: 64px 0 112px; }
.reem-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(247, 244, 240, 0.1);
}
.reem-footer .reem-brand img { width: 64px; height: 64px; }
.reem-footer .reem-brand__name { font-size: 20px; }
.reem-footer .reem-brand__tag { font-size: 12px; color: rgba(247, 244, 240, 0.5); }
.reem-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.reem-footer__nav a { color: inherit; font-size: 14px; letter-spacing: 0.1em; text-decoration: none; }
.reem-footer__nav a:hover { color: var(--reem-ochre); }
.reem-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	padding-top: 32px;
	font-size: 12px;
	color: rgba(247, 244, 240, 0.4);
}
.reem-footer__bottom a { color: inherit; text-decoration: none; }

/* ---------- Social icons ---------- */
.reem-social { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.reem-social a {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(247, 244, 240, 0.2);
	color: rgba(247, 244, 240, 0.7);
	transition: color 0.3s, border-color 0.3s;
}
.reem-social a:hover { color: var(--reem-ochre); border-color: var(--reem-ochre); }
.reem-social svg { width: 16px; height: 16px; fill: currentColor; }
.reem-social--menu { margin-top: 24px; }
.reem-social--menu a { width: 48px; height: 48px; }
.reem-social--menu svg { width: 20px; height: 20px; }

/* ---------- WhatsApp float ---------- */
.reem-whatsapp {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 40;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25D366;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s;
}
.reem-whatsapp:hover { transform: scale(1.1); }
.reem-whatsapp svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Eyebrow (small label with line) ---------- */
.reem-eyebrow .elementor-heading-title::before,
.reem-eyebrow--center .elementor-heading-title::after {
	content: "";
	display: inline-block;
	width: 48px;
	height: 1px;
	background: currentColor;
	vertical-align: middle;
	margin-inline-end: 16px;
}
.reem-eyebrow--center .elementor-heading-title::after { margin-inline: 16px 0; }

/* ---------- Service cards ---------- */
.reem-card { background: var(--reem-alabaster); transition: background-color 0.5s; text-decoration: none; }
.reem-card:hover { background: var(--reem-noir); }
.reem-card .elementor-heading-title,
.reem-card p { transition: color 0.5s; }
.reem-card .reem-card-num .elementor-heading-title { color: var(--reem-ochre); }
.reem-card .reem-card-title .elementor-heading-title { color: var(--reem-noir); }
.reem-card .reem-card-text { color: rgba(13, 13, 13, 0.6); }
.reem-card .reem-card-more .elementor-heading-title { color: var(--reem-ochre); }
.reem-card:hover .reem-card-title .elementor-heading-title { color: var(--reem-alabaster); }
.reem-card:hover .reem-card-text { color: rgba(247, 244, 240, 0.7); }

/* ---------- Testimonials ---------- */
.reem-quote-name { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(13, 13, 13, 0.1); }

/* ---------- FAQ (nested accordion) ---------- */
.elementor-widget-n-accordion.reem-faq {
	--n-accordion-border-width: 0;
	--n-accordion-padding: 24px 0;
	--n-accordion-title-font-size: 24px;
	--n-accordion-title-justify-content: space-between;
	--n-accordion-title-icon-order: 1;
	--n-accordion-title-normal-color: var(--reem-noir);
	--n-accordion-title-hover-color: var(--reem-ochre);
	--n-accordion-title-active-color: var(--reem-ochre);
	--n-accordion-icon-normal-color: rgba(13, 13, 13, 0.6);
	--n-accordion-icon-hover-color: var(--reem-ochre);
	--n-accordion-icon-active-color: var(--reem-ochre);
	--n-accordion-icon-size: 12px;
}
.reem-faq .e-n-accordion-item { border-bottom: 1px solid rgba(13, 13, 13, 0.1); }
.reem-faq .e-n-accordion-item:first-child { border-top: 1px solid rgba(13, 13, 13, 0.1); }
.reem-faq .e-n-accordion-item-title { background: none; }
.elementor-widget-n-accordion.reem-faq .e-n-accordion-item-title-text { font-family: var(--reem-display); font-size: var(--n-accordion-title-font-size); transition: color 0.3s; }
.elementor-widget-n-accordion.reem-faq .e-n-accordion-item-title-icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(13, 13, 13, 0.2);
	justify-content: center;
}
.reem-faq .e-n-accordion-item > .e-con { padding: 0 0 28px; }
@media (max-width: 767px) { .elementor-widget-n-accordion.reem-faq { --n-accordion-title-font-size: 20px; } }

/* ---------- Map ---------- */
.reem-map iframe { filter: grayscale(1) invert(0.92) contrast(0.9); }

/* ---------- Booking form ---------- */
.reem-booking { background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(13, 13, 13, 0.1); padding: 40px; }
.reem-booking__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.reem-booking__field--full { grid-column: 1 / -1; }
.reem-booking label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	letter-spacing: 0.1em;
	color: rgba(13, 13, 13, 0.5);
}
.reem-booking label span { color: var(--reem-ochre); }
.reem-booking input,
.reem-booking select,
.reem-booking textarea {
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(13, 13, 13, 0.2);
	border-radius: 0;
	padding: 8px 0;
	font: 400 17px/1.5 var(--reem-body);
	color: var(--reem-noir);
	outline: none;
	box-shadow: none;
}
.reem-booking input:focus,
.reem-booking select:focus,
.reem-booking textarea:focus { border-bottom-color: var(--reem-ochre); }
.reem-booking textarea { resize: none; }
.reem-booking button,
.reem-booking__again {
	margin-top: 24px;
	background: var(--reem-noir);
	color: var(--reem-alabaster);
	border: 0;
	border-radius: 0;
	padding: 16px 48px;
	font: 500 14px/1 var(--reem-body);
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}
.reem-booking button:hover { background: var(--reem-ochre); color: var(--reem-noir); }
.reem-booking__done {
	background: var(--reem-noir);
	color: var(--reem-alabaster);
	text-align: center;
	padding: 56px 32px;
}
.reem-booking__done h3 { font-family: var(--reem-display); font-size: 36px; color: var(--reem-alabaster); margin: 0 0 16px; }
.reem-booking__done p { color: rgba(247, 244, 240, 0.6); max-width: 440px; margin: 0 auto; }
.reem-booking__done .reem-booking__again { background: none; color: var(--reem-ochre); border-bottom: 1px solid var(--reem-ochre); padding: 0 0 4px; }
.reem-booking.is-done { padding: 0; border: 0; }

@media (max-width: 767px) {
	.reem-header__inner, .reem-footer__inner, .reem-menu__top { padding: 0 24px; }
	.reem-brand__text { display: none; }
	.reem-footer .reem-brand__text { display: flex; }
	.reem-booking { padding: 28px 20px; }
	.reem-booking__grid { grid-template-columns: 1fr; }
}
