/* El-Badr brand: tokens, base type, header, footer, phone action bar.
   Elementor widget overrides live in elementor.css. */

:root {
	--eb-ice: #f2f7fb;
	--eb-mist: #e3eef7;
	--eb-ink: #0a1f3c;
	--eb-ink-soft: #4a5d78;
	--eb-brand: #0b5fd3;
	--eb-brand-deep: #0846a0;
	--eb-frost: #8fd8f7;
	--eb-heat: #ff6b3d;
	--eb-wa: #1fae5b;

	--eb-font-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--eb-font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;

	--eb-radius-card: 1.25rem;
	--eb-header-h: 72px;
}

/* ---------- Base ---------- */

:where(body.eb-theme) {
	background: var(--eb-ice);
	color: var(--eb-ink-soft);
	font-family: var(--eb-font-body);
	-webkit-font-smoothing: antialiased;
}

:where(body.eb-theme) :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--eb-font-display);
	color: var(--eb-ink);
	letter-spacing: -0.01em;
	text-wrap: balance;
}

:where(body.eb-theme) :where(a) {
	color: var(--eb-brand);
}

body.eb-theme :focus-visible {
	outline: 3px solid var(--eb-brand);
	outline-offset: 3px;
	border-radius: 6px;
}

/* Phone numbers stay left-to-right inside RTL text. */
.eb-ltr {
	direction: ltr;
	unicode-bidi: isolate;
	font-variant-numeric: tabular-nums;
}

.eb-container {
	width: 100%;
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: 1rem;
}

@media (min-width: 640px) {
	.eb-container {
		padding-inline: 1.5rem;
	}
}

.eb-icon {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

/* ---------- Buttons ---------- */

.eb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 2.75rem;
	padding-inline: 1.25rem;
	border-radius: 999px;
	font-family: var(--eb-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s, filter 0.15s;
	white-space: nowrap;
}

body.eb-theme .eb-btn--ink {
	background: var(--eb-ink);
	color: #fff;
}

body.eb-theme .eb-btn--ink:hover {
	background: var(--eb-brand-deep);
	color: #fff;
}

body.eb-theme .eb-btn--wa {
	background: var(--eb-wa);
	color: #fff;
}

body.eb-theme .eb-btn--wa:hover {
	filter: brightness(1.1);
	color: #fff;
}

/* ---------- Logo ---------- */

.eb-logo {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	text-decoration: none;
	flex-shrink: 0;
}

.eb-logo__img {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	object-fit: cover;
}

.eb-logo__text {
	line-height: 1.25;
}

.eb-logo__name {
	display: block;
	font-family: var(--eb-font-display);
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--eb-ink);
}

.eb-logo__sub {
	display: block;
	font-size: 11px;
	font-weight: 500;
	color: var(--eb-ink-soft);
}

.eb-logo--inverted .eb-logo__name {
	color: #fff;
}

.eb-logo--inverted .eb-logo__sub {
	color: var(--eb-frost);
}

/* ---------- Header ---------- */

.eb-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgb(242 247 251 / 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-block-end: 1px solid rgb(227 238 247 / 0.7);
}

body.admin-bar .eb-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .eb-header {
		top: 46px;
	}
}

.eb-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--eb-header-h);
}

.eb-nav {
	display: none;
}

.eb-nav__list {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.eb-theme .eb-nav__list a {
	display: block;
	padding: 0.5rem 0.875rem;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	color: var(--eb-ink-soft);
	text-decoration: none;
	transition: color 0.15s;
}

body.eb-theme .eb-nav__list a:hover {
	color: var(--eb-ink);
}

body.eb-theme .eb-nav__list .current-menu-item > a {
	background: #fff;
	color: var(--eb-brand);
	box-shadow: 0 1px 2px rgb(10 31 60 / 0.06), 0 0 0 1px var(--eb-mist);
}

.eb-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.eb-header__call {
	display: none;
}

.eb-menu-toggle {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--eb-ink);
	box-shadow: 0 0 0 1px var(--eb-mist);
	cursor: pointer;
}

/* Astra styles every <button> as a brand button; this one stays a quiet icon button. */
body.eb-theme .eb-menu-toggle,
body.eb-theme .eb-menu-toggle:hover,
body.eb-theme .eb-menu-toggle:focus {
	background: #fff;
	color: var(--eb-ink);
}

.eb-menu-toggle__close,
.eb-menu-toggle[aria-expanded="true"] .eb-menu-toggle__open {
	display: none;
}

.eb-menu-toggle[aria-expanded="true"] .eb-menu-toggle__close {
	display: grid;
}

.eb-menu-toggle__open {
	display: grid;
}

.eb-mobile-menu {
	border-block-start: 1px solid var(--eb-mist);
	background: var(--eb-ice);
	padding-block: 1rem;
}

.eb-mobile-menu__list {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.eb-theme .eb-mobile-menu__list a {
	display: block;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	font-size: 1.125rem;
	font-weight: 500;
	color: var(--eb-ink);
	text-decoration: none;
}

body.eb-theme .eb-mobile-menu__list .current-menu-item > a {
	background: #fff;
	color: var(--eb-brand);
}

@media (min-width: 1024px) {
	.eb-nav,
	.eb-header__call {
		display: flex;
	}

	.eb-menu-toggle,
	.eb-mobile-menu {
		display: none !important;
	}
}

/* ---------- Footer ---------- */

.eb-footer {
	background: var(--eb-ink);
	color: rgb(255 255 255 / 0.7);
	padding-block: 4rem 7rem;
	font-size: 0.875rem;
}

@media (min-width: 1024px) {
	.eb-footer {
		padding-block-end: 2.5rem;
	}
}

.eb-footer__grid {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 640px) {
	.eb-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.eb-footer__grid {
		grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
	}
}

.eb-footer__about p {
	margin-block-start: 1rem;
	line-height: 1.7;
}

body.eb-theme .eb-footer__title {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}

.eb-footer__links,
.eb-footer__contact {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eb-footer__contact {
	gap: 0.75rem;
}

.eb-footer__contact li,
body.eb-theme .eb-footer__contact a {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.eb-footer__contact .eb-icon {
	width: 1rem;
	height: 1rem;
	margin-block-start: 0.2rem;
	color: var(--eb-frost);
}

body.eb-theme .eb-footer a {
	color: rgb(255 255 255 / 0.7);
	text-decoration: none;
}

body.eb-theme .eb-footer a:hover {
	color: #fff;
}

.eb-footer__copy {
	margin-block-start: 3rem;
	padding-block-start: 1.5rem;
	border-block-start: 1px solid rgb(255 255 255 / 0.1);
	font-size: 0.75rem;
	color: rgb(255 255 255 / 0.4);
}

/* ---------- Phone action bar ---------- */

.eb-action-bar {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 40;
	display: flex;
	gap: 0.5rem;
	padding: 0.75rem;
	padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
	background: rgb(255 255 255 / 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-block-start: 1px solid var(--eb-mist);
}

.eb-action-bar .eb-btn {
	flex: 1;
}

@media (min-width: 1024px) {
	.eb-action-bar {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ---------- Content type scale ----------
   Most page copy was pasted into text blocks with bare h2/h3 tags, which pick up
   Astra's oversized defaults. One scale keeps every page in proportion. */

body.eb-theme :is(.elementor-widget-text-editor, .entry-content > *) :is(h2, h3, h4) {
	margin-block: 2rem 0.75rem;
	line-height: 1.35;
}

body.eb-theme :is(.elementor-widget-text-editor, .entry-content > *) h2 {
	font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem);
	font-weight: 800;
}

body.eb-theme :is(.elementor-widget-text-editor, .entry-content > *) h3 {
	font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
	font-weight: 700;
}

body.eb-theme :is(.elementor-widget-text-editor, .entry-content > *) h4 {
	font-size: 1.125rem;
	font-weight: 700;
}

body.eb-theme .elementor-widget-text-editor :is(p, li) {
	font-size: 1rem;
	line-height: 1.85;
}

body.eb-theme .elementor-widget-text-editor hr {
	margin-block: 2rem;
	border: 0;
	border-block-start: 1px solid var(--eb-mist);
}

/* Lists inside centered copy: keep bullets beside the text, not at the far edge. */
body.eb-theme .elementor-widget-text-editor ul {
	list-style-position: inside;
	padding-inline-start: 0;
}

/* ---------- Page content inside the redesigned shell ----------
   The page's own H1 sits under the branded header's H1, so it reads as a section title. */

.eb-prose :is(h1, .elementor-heading-title.elementor-size-default:is(h1)) {
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem) !important;
	line-height: 1.3 !important;
	margin-block-end: 0.75rem;
}

.eb-prose h1.elementor-heading-title,
.eb-prose .elementor-widget-heading h1 {
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem) !important;
}

/* Astra shrinks the root to 15px; the redesign is sized for a 16px rem. */
:root {
	font-size: 100%;
}

/* ---------- Cart link (header) ---------- */

.eb-cart-link {
	position: relative;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: #fff;
	color: var(--eb-ink);
	box-shadow: 0 0 0 1px var(--eb-mist);
	transition: box-shadow 0.15s;
}

body.eb-theme .eb-cart-link,
body.eb-theme .eb-cart-link:hover {
	color: var(--eb-ink);
}

.eb-cart-link:hover {
	box-shadow: 0 0 0 1px rgb(11 95 211 / 0.4);
}

.eb-cart-link[hidden],
.eb-cart-link__count[hidden] {
	display: none;
}

.eb-cart-link__count {
	position: absolute;
	inset-inline-end: -0.25rem;
	top: -0.25rem;
	display: grid;
	place-items: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding-inline: 0.25rem;
	border-radius: 999px;
	background: var(--eb-heat);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

/* The cart link takes ~52px from the bar; tighten the desktop links so they stay on one line. */
@media (min-width: 1024px) {
	body.eb-theme .eb-header__bar:has(.eb-cart-link:not([hidden])) .eb-nav__list a {
		padding-inline: 0.625rem;
	}
}

@media (min-width: 1280px) {
	body.eb-theme .eb-header__bar:has(.eb-cart-link:not([hidden])) .eb-nav__list a {
		white-space: nowrap;
	}
}
