/**
 * Base — font faces, resets, typography, layout primitives.
 * Uses logical CSS properties throughout so the same stylesheet serves
 * Arabic (RTL) and French/English (LTR) without a separate -rtl.css file.
 */

/* ---- Self-hosted Tajawal (Arabic + Latin subsets, no external requests) ---- */
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../fonts/tajawal-300-arabic.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../fonts/tajawal-300-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC;
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/tajawal-400-arabic.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/tajawal-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC;
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/tajawal-500-arabic.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/tajawal-500-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC;
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/tajawal-700-arabic.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/tajawal-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC;
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('../fonts/tajawal-800-arabic.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: 'Tajawal';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('../fonts/tajawal-800-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
/* The off-canvas mobile nav panel sits off-screen via transform when closed;
   position:fixed elements still expand the layout viewport in most browsers,
   so clip horizontal overflow at the document level rather than on .site. */
html, body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding-inline-start: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
/* Inline icon SVGs (viewBox only, no width/height attrs) get a sane default
   size unless a more specific component rule overrides it. */
svg:not([width]) { width: 20px; height: 20px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---- Body & typography ---- */
body {
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: var(--text-base);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-normal);
	text-align: start;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	color: var(--color-primary);
	text-wrap: balance;
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }

p { line-height: var(--line-height-relaxed); color: var(--color-text); }
small, .text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--color-text-muted); }

/* ---- Focus & accessibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

.skip-link {
	position: absolute;
	inset-inline-start: var(--space-3);
	top: -100px;
	z-index: 1000;
	background: var(--color-primary);
	color: var(--color-text-on-primary);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-sm);
	transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-3); }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

/* ---- Layout primitives ---- */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--container-padding-inline);
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.site-main { flex: 1 0 auto; }

.section {
	padding-block: var(--space-7);
}
.section--surface {
	background: var(--color-surface);
}

/* ---- WordPress core block alignment (kept minimal; no page-builder deps) ---- */
.alignwide { max-width: calc(var(--container-width) + 160px); margin-inline: auto; }
.alignfull { max-width: none; }
