/*
 * SDO — base design. Every value comes from a --sdot-* variable set in SDO Settings
 * (uploads/sdo/settings.css); the defaults below match the settings defaults.
 * Logical properties throughout: Arabic RTL and English LTR share the same rules.
 */

:root {
	--sdot-color-primary: #64283a;
	--sdot-color-secondary: #3a1420;
	--sdot-color-accent: #b8a07e;
	--sdot-color-text: #3f3a3c;
	--sdot-color-heading: #1d0d12;
	--sdot-color-bg: #ffffff;
	--sdot-color-surface: #f7f4f1;
	--sdot-color-border: #e7e1dc;
	--sdot-font-body: "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif;
	--sdot-font-heading: var(--sdot-font-body);
	--sdot-head-weight: 700;
	--sdot-fs-base: 17px;
	--sdot-fs-h1: 46px;
	--sdot-fs-h2: 36px;
	--sdot-fs-h3: 28px;
	--sdot-fs-h4: 22px;
	--sdot-lh-body: 1.75;
	--sdot-lh-head: 1.3;
	--sdot-container: 1200px;
	--sdot-gutter: 24px;
	--sdot-box: 1320px;
	--sdot-content-space: 64px;
	--sdot-ph-space: 56px;
	--sdot-radius: 14px;
	--sdot-muted: color-mix(in srgb, var(--sdot-color-text) 72%, transparent);
	--sdot-shadow: 0 18px 44px -28px rgba(20, 10, 14, .35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
img, svg, video, iframe, canvas { max-width: 100%; }
img, video { height: auto; }
img { vertical-align: middle; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--sdot-color-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- Elements ---------- */
html { scroll-padding-top: calc(var(--sdot-hd-h, 0px) + 24px); }
body {
	font-family: var(--sdot-font-body);
	font-size: var(--sdot-fs-base);
	line-height: var(--sdot-lh-body);
	color: var(--sdot-color-text);
	background-color: var(--sdot-color-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--sdot-font-heading);
	font-weight: var(--sdot-head-weight);
	line-height: var(--sdot-lh-head);
	color: var(--sdot-color-heading);
	margin: 0 0 .5em;
}
h1 { font-size: var(--sdot-fs-h1); }
h2 { font-size: var(--sdot-fs-h2); }
h3 { font-size: var(--sdot-fs-h3); }
h4 { font-size: var(--sdot-fs-h4); }
h5 { font-size: 1.1em; }
h6 { font-size: 1em; }
p, ul, ol, dl, blockquote, pre, table { margin: 0 0 1.15em; }
a { color: var(--sdot-color-primary); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s; }
a:hover { color: var(--sdot-color-secondary); }
strong, b { font-weight: 700; }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--sdot-color-border); margin: 2em 0; }
::selection { background: var(--sdot-color-primary); color: #fff; }

/* ---------- Buttons & forms ---------- */
.sdot-btn, .wp-block-button__link, input[type="submit"], button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 24px; border: 0; border-radius: 999px;
	background: var(--sdot-color-primary); color: #fff; font-weight: 600; text-decoration: none;
	transition: background .2s, transform .2s;
}
.sdot-btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover, button[type="submit"]:hover { background: var(--sdot-color-secondary); color: #fff; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], textarea, select {
	width: 100%; min-height: 46px; padding: 10px 14px;
	border: 1px solid var(--sdot-color-border); border-radius: calc(var(--sdot-radius) * .7);
	background: var(--sdot-color-bg); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 140px; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--sdot-color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sdot-color-primary) 15%, transparent); }
label { display: inline-block; margin-bottom: 6px; font-weight: 600; color: var(--sdot-color-heading); }
.sdot-search-form { display: flex; gap: 8px; max-width: 540px; }
.sdot-search-form .search-field { flex: 1; border-radius: 999px; padding-inline: 18px; }
.sdot-search-form .search-submit { width: 46px; padding: 0; flex: none; }

/* ---------- Accessibility ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; inset-inline-start: 8px; z-index: 100000; width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--sdot-color-bg); color: var(--sdot-color-heading); border-radius: 8px; box-shadow: var(--sdot-shadow); }

/* ---------- Layout ---------- */
.sdot-site { min-height: 100vh; display: flex; flex-direction: column; background: var(--sdot-color-bg); overflow-x: clip; }
.sdot-site-content { flex: 1; }
body:not(.sdot-site-boxed) { background-color: var(--sdot-color-bg); }
.sdot-site-boxed .sdot-site { max-width: var(--sdot-box); margin-inline: auto; box-shadow: 0 0 60px -20px rgba(0, 0, 0, .25); }
.sdot-container { width: 100%; max-width: calc(var(--sdot-container) + var(--sdot-gutter) * 2); margin-inline: auto; padding-inline: var(--sdot-gutter); }
.sdot-narrow { max-width: calc(780px + var(--sdot-gutter) * 2); }
.sdot-main { padding-block: var(--sdot-content-space); }
.sdot-content-full .sdot-main { padding-block: 0; }
.sdot-content-full .sdot-main > .sdot-entry > .sdot-content > :not(.elementor):not(.alignfull) { max-width: calc(var(--sdot-container) + var(--sdot-gutter) * 2); margin-inline: auto; padding-inline: var(--sdot-gutter); }

/* ---------- Content (posts, pages without Elementor) ---------- */
.sdot-content > :first-child { margin-top: 0; }
.sdot-content > :last-child { margin-bottom: 0; }
.sdot-content h2, .sdot-content h3, .sdot-content h4 { margin-top: 1.7em; }
.sdot-content ul, .sdot-content ol { padding-inline-start: 1.4em; }
.sdot-content li { margin-block: .35em; }
.sdot-content img, .sdot-content video, .sdot-content iframe { border-radius: var(--sdot-radius); }
.sdot-content figcaption, .wp-element-caption { font-size: .85em; text-align: center; color: var(--sdot-muted); margin-top: .6em; }
.sdot-content blockquote, .wp-block-quote { margin-inline: 0; padding: .3em 1.2em; border-inline-start: 3px solid var(--sdot-color-accent); font-size: 1.08em; color: var(--sdot-color-heading); }
blockquote cite { display: block; margin-top: .6em; font-size: .85em; font-style: normal; color: var(--sdot-muted); }
.wp-block-pullquote { border-block: 3px solid var(--sdot-color-accent); padding: 1.5em 0; text-align: center; }
q { quotes: "\201C" "\201D" "\2018" "\2019"; }
:lang(ar) q { quotes: "\00AB" "\00BB" "\201D" "\201C"; }
table { width: 100%; border-collapse: collapse; font-size: .95em; }
.sdot-content table, .wp-block-table { display: block; overflow-x: auto; }
.wp-block-table table { display: table; }
th, td { padding: .65em .85em; border: 1px solid var(--sdot-color-border); text-align: start; vertical-align: top; }
th { background: var(--sdot-color-surface); color: var(--sdot-color-heading); }
code, kbd, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--sdot-color-surface); padding: .1em .35em; border-radius: 5px; }
pre { direction: ltr; text-align: left; unicode-bidi: isolate; overflow-x: auto; padding: 1em 1.2em; border-radius: var(--sdot-radius); background: #1e1b1c; color: #f3efec; font-size: .9em; line-height: 1.6; }
pre code { background: none; padding: 0; color: inherit; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; display: block; }
.alignwide { margin-inline: calc(min(160px, (100vw - 100%) / 2) * -1); max-width: none; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.alignfull img, .alignwide img { width: 100%; }
.alignfull img, .alignfull.wp-block-image img, .wp-block-cover img { border-radius: 0; }
/* A page that starts (or ends) with a full-width block touches the header (or footer). */
.sdot-main:has(.sdot-content > .alignfull:first-child) { padding-top: 0; }
.sdot-main:has(.sdot-content > .alignfull:last-child) { padding-bottom: 0; }
.sdot-content > .alignfull:first-child { margin-top: 0; }
.wp-block-image img { border-radius: var(--sdot-radius); }
.wp-block-separator { border-top-color: var(--sdot-color-border); }
.wp-block-gallery { gap: 12px; }
.sticky, .bypostauthor, .gallery-caption { outline: 0; }

/* ---------- Page header ---------- */
.sdot-ph { position: relative; padding-block: var(--sdot-ph-space); background: var(--sdot-ph-bg, transparent); isolation: isolate; overflow: hidden; }
.sdot-ph + .sdot-main { padding-top: calc(var(--sdot-content-space) * .6); }
.sdot-ph.has-bg + .sdot-main { padding-top: var(--sdot-content-space); }
.sdot-ph.has-bg { background: var(--sdot-ph-bg, var(--sdot-color-surface)); }
.sdot-ph.is-banner:not([style*="--sdot-ph-bg"]) { background: linear-gradient(120deg, var(--sdot-color-primary), var(--sdot-color-secondary)); }
.sdot-ph-media { position: absolute; inset: 0; z-index: -1; }
.sdot-ph-media img { width: 100%; height: 100%; object-fit: cover; }
.sdot-ph.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(15, 8, 11, var(--sdot-ph-overlay, .45)); }
.sdot-ph-inner { position: relative; }
.sdot-page-title { margin: 0; font-size: var(--sdot-fs-h1); }
.sdot-ph-eyebrow { margin: 0 0 6px; font-size: .82em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sdot-color-accent); }
.sdot-ph-desc { max-width: 720px; margin-top: 12px; color: var(--sdot-muted); }
.sdot-ph-desc p:last-child { margin: 0; }
.sdot-ph.is-centered .sdot-ph-inner, .sdot-ph.is-banner .sdot-ph-inner { text-align: center; }
.sdot-ph.is-centered .sdot-ph-desc, .sdot-ph.is-banner .sdot-ph-desc { margin-inline: auto; }
.sdot-ph.is-centered .sdot-crumbs ol, .sdot-ph.is-banner .sdot-crumbs ol { justify-content: center; }
.sdot-ph.is-simple:not(.has-bg) { border-bottom: 1px solid var(--sdot-color-border); }
.sdot-ph.is-banner { padding-block: calc(var(--sdot-ph-space) * 1.5); }
.sdot-ph.text-light, .sdot-ph.text-light .sdot-page-title, .sdot-ph.text-light .sdot-crumbs, .sdot-ph.text-light .sdot-crumbs a, .sdot-ph.text-light .sdot-ph-desc { color: #fff; }
.sdot-ph.text-light .sdot-ph-desc { opacity: .85; }
.sdot-header-over .sdot-ph:first-child, .sdot-header-over .sdot-site-content > .sdot-ph:first-child { padding-top: calc(var(--sdot-ph-space) + var(--sdot-hd-h, 84px)); }

/* ---------- Breadcrumbs ---------- */
.sdot-crumbs { margin-bottom: 12px; font-size: .86em; color: var(--sdot-muted); }
.sdot-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.sdot-crumbs li + li::before { content: "/"; margin-inline: 8px; opacity: .5; }
.sdot-crumbs a { color: inherit; text-decoration: none; }
.sdot-crumbs a:hover { color: var(--sdot-color-primary); }
.sdot-ph.text-light .sdot-crumbs a:hover { color: var(--sdot-color-accent); }

/* ---------- Footer ---------- */
.sdot-footer { background: var(--sdot-color-surface); color: var(--sdot-color-text); border-top: 1px solid var(--sdot-color-border); font-size: .94em; }
.sdot-ft-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 28px; }
.sdot-footer a { color: inherit; text-decoration: none; }
.sdot-footer a:hover { color: var(--sdot-color-primary); }
.sdot-ft-copy { margin: 0; }
.sdot-ft-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.sdot-ft-social, .sdot-social { display: inline-flex; gap: 2px; }
.sdot-social-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: inherit; transition: background .2s; }
.sdot-social-link:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.sdot-ft-logo { font-weight: 700; font-size: 1.3em; color: var(--sdot-color-heading) !important; }
.sdot-ft-logo img { height: 40px; width: auto; }
.sdot-footer.is-centered .sdot-ft-inner { flex-direction: column; justify-content: center; text-align: center; padding-block: 44px; }
.sdot-footer.is-centered .sdot-ft-menu { justify-content: center; }
.sdot-footer.is-columns .sdot-ft-inner { display: block; padding-block: 52px 0; }
.sdot-ft-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.sdot-ft-title { font-size: 1.05em; margin: 0 0 14px; }
.sdot-ft-widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sdot-ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 40px; padding-block: 22px; border-top: 1px solid var(--sdot-color-border); }
.sdot-ft-hint { margin: 0; font-size: .9em; opacity: .7; }

/* ---------- Comments ---------- */
.sdot-comments { margin-top: clamp(40px, 6vw, 64px); }
.sdot-comments-title { font-size: var(--sdot-fs-h3); }
.comment-list, .comment-list .children { list-style: none; padding: 0; }
.comment-list .children { padding-inline-start: clamp(14px, 4vw, 40px); }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--sdot-color-border); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .9em; }
.comment-author .avatar { border-radius: 50%; margin-inline-end: 10px; vertical-align: middle; }
.comment-metadata a { color: var(--sdot-muted); text-decoration: none; }
.comment-reply-link { font-size: .85em; font-weight: 600; text-decoration: none; }
.comment-respond { margin-top: 32px; }
.comment-form > p { margin-bottom: 16px; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ---------- 404 ---------- */
.sdot-404 { text-align: center; }
.sdot-404 .sdot-search-form { margin: 24px auto; }
.sdot-404-text { color: var(--sdot-muted); }

/* ---------- Pagination ---------- */
.sdot-pagination { margin-top: clamp(28px, 4vw, 48px); }
.sdot-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sdot-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--sdot-color-border); color: var(--sdot-color-text); text-decoration: none; }
.sdot-pagination .page-numbers.current, .sdot-pagination a.page-numbers:hover { background: var(--sdot-color-primary); border-color: var(--sdot-color-primary); color: #fff; }
.sdot-empty { padding: 24px 0; }
