/* ==========================================================================
   Smart Servers design system
   Tokens · light and dark · glass · base typography · buttons · forms
   Logical properties everywhere so Arabic (RTL) and English (LTR) both work.
   ========================================================================== */

:root {
	/* Brand palette (from the store identity) */
	--ss-orange: #FF7518;
	--ss-orange-2: #F6893F;
	--ss-orange-3: #FF8733;
	--ss-orange-4: #F48C44;
	--ss-navy: #2A3547;
	--ss-navy-800: #222C3C;
	--ss-navy-900: #1A2230;
	--ss-graphite: #363539;
	--ss-lavender: #F3F3FD;
	--ss-grey: #838383;
	--ss-grey-2: #D6D6D6;
	--ss-grey-3: #EBEBEB;
	--ss-success: #1E9E5A;
	--ss-danger: #D93B3B;

	/* Typography */
	--ss-font: 'Outfit', 'Noto Kufi Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
	--ss-fs-xs: 12px;
	--ss-fs-sm: 13.5px;
	--ss-fs-base: 15px;
	--ss-fs-md: 17px;
	--ss-fs-lg: 20px;
	--ss-fs-xl: 26px;
	--ss-fs-2xl: 32px;
	--ss-fs-3xl: 44px;
	--ss-fs-4xl: 58px;

	/* Shape */
	--ss-radius-xs: 8px;
	--ss-radius-sm: 12px;
	--ss-radius: 18px;
	--ss-radius-lg: 24px;
	--ss-radius-xl: 32px;
	--ss-pill: 999px;
	--ss-container: 1800px;
	--ss-gutter: clamp(16px, 3vw, 32px);
	--ss-header-h: 0px;

	/* Motion */
	--ss-ease: cubic-bezier(.2, .8, .2, 1);
	--ss-dur: .28s;

	/* ---------- Light mode (default) ---------- */
	--ss-bg: #FFFFFF;
	--ss-bg-soft: #F6F6FA;
	--ss-bg-tint: var(--ss-lavender);
	--ss-surface: #FFFFFF;
	--ss-surface-2: #F4F4F7;
	--ss-surface-3: #ECECF1;
	--ss-ink: #22232A;
	--ss-ink-2: #3D3E46;
	--ss-muted: #66666E;
	--ss-border: #EBEBEB;
	--ss-border-strong: #D6D6D6;
	--ss-accent: var(--ss-orange);
	--ss-accent-ink: #1A2230;          /* text on orange */
	--ss-accent-text: #E8630A;         /* orange used as text on light surfaces */
	--ss-accent-soft: #FFF1E7;
	--ss-strong-bg: #1A2230;           /* dark buttons */
	--ss-strong-ink: #FFFFFF;
	--ss-overlay: rgba(14, 18, 26, .55);
	--ss-shadow-sm: 0 2px 10px rgba(26, 34, 48, .06);
	--ss-shadow: 0 14px 40px rgba(26, 34, 48, .10);
	--ss-shadow-lg: 0 30px 80px rgba(26, 34, 48, .18);

	/* Glass */
	--ss-glass-bg: rgba(255, 255, 255, .62);
	--ss-glass-bg-strong: rgba(255, 255, 255, .82);
	--ss-glass-border: rgba(255, 255, 255, .85);
	--ss-glass-hi: rgba(255, 255, 255, 1);
	--ss-glass-blur: 18px;

	/* Header and footer (navy in both modes) */
	--ss-header-bg: linear-gradient(180deg, #2A3547 0%, #1F2838 100%);
	--ss-header-ink: #FFFFFF;
	--ss-header-muted: rgba(255, 255, 255, .72);
	--ss-topbar-bg: #1A2230;
	--ss-footer-bg: #0E121A;
	--ss-footer-bg-2: #131823;
	--ss-footer-ink: #F3F3FD;
	--ss-footer-muted: #A3A8B5;
	--ss-footer-border: rgba(255, 255, 255, .09);

	color-scheme: light;
}

/* ---------- Dark mode ---------- */
html[data-theme="dark"] {
	--ss-bg: #0F131A;
	--ss-bg-soft: #131821;
	--ss-bg-tint: #151B26;
	--ss-surface: #161B25;
	--ss-surface-2: #1B212D;
	--ss-surface-3: #222938;
	--ss-ink: #F3F3FD;
	--ss-ink-2: #D9DBE4;
	--ss-muted: #A3A8B5;
	--ss-border: rgba(255, 255, 255, .08);
	--ss-border-strong: rgba(255, 255, 255, .16);
	--ss-accent-text: #FF9A52;
	--ss-accent-soft: rgba(255, 117, 24, .14);
	--ss-strong-bg: #F3F3FD;
	--ss-strong-ink: #1A2230;
	--ss-overlay: rgba(4, 6, 10, .7);
	--ss-shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
	--ss-shadow: 0 14px 40px rgba(0, 0, 0, .45);
	--ss-shadow-lg: 0 30px 80px rgba(0, 0, 0, .6);
	--ss-glass-bg: rgba(255, 255, 255, .06);
	--ss-glass-bg-strong: rgba(22, 27, 37, .82);
	--ss-glass-border: rgba(255, 255, 255, .12);
	--ss-glass-hi: rgba(255, 255, 255, .16);
	--ss-header-bg: linear-gradient(180deg, #1C2433 0%, #141A26 100%);
	--ss-topbar-bg: #10151F;
	--ss-footer-bg: #090C12;
	--ss-footer-bg-2: #0E121A;
	color-scheme: dark;
}

/* ==========================================================================
   Minimal reset (replaces the parent theme's reset)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
:where(button, input, optgroup, select, textarea) { font: inherit; color: inherit; margin: 0; }
:where(button, [type="button"], [type="submit"], [type="reset"]) { -webkit-appearance: button; cursor: pointer; }
:where(img, svg, video) { vertical-align: middle; }
:where(img) { border-style: none; }
:where(table) { border-collapse: collapse; border-spacing: 0; width: 100%; }
:where(ul, ol, dl, dd) { margin-block: 0; }
:where(summary) { display: list-item; }
:where(textarea) { resize: vertical; overflow: auto; }
:where(fieldset) { padding: .35em .75em .625em; }
:where(b, strong) { font-weight: 700; }
:where(small) { font-size: 80%; }
:where([hidden], template) { display: none; }

/* ==========================================================================
   Base
   ========================================================================== */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.ss-site {
	margin: 0;
	background: var(--ss-bg);
	color: var(--ss-ink);
	font-family: var(--ss-font);
	font-size: var(--ss-fs-base);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color .35s ease, color .35s ease;
	overflow-x: clip;
}
body.ss-site.ss-ltr { line-height: 1.6; }

:where(.ss-site) :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--ss-font);
	color: var(--ss-ink);
	font-weight: 700;
	line-height: 1.35;
	margin-block: 0 .5em;
}
:where(.ss-site) h1 { font-size: var(--ss-fs-3xl); }
:where(.ss-site) h2 { font-size: var(--ss-fs-2xl); }
:where(.ss-site) h3 { font-size: var(--ss-fs-xl); }
:where(.ss-site) h4 { font-size: var(--ss-fs-lg); }
:where(.ss-site) p { margin-block: 0 1em; }
:where(.ss-site) a { color: inherit; text-decoration: none; transition: color var(--ss-dur) var(--ss-ease); }
:where(.ss-site) a:hover { color: var(--ss-accent-text); }
:where(.ss-site) img { max-width: 100%; height: auto; }
.ss-site ::selection { background: var(--ss-orange); color: var(--ss-accent-ink); }
.ss-site :focus-visible { outline: 2px solid var(--ss-orange); outline-offset: 3px; border-radius: 6px; }
.ss-site hr { border: 0; border-top: 1px solid var(--ss-border); }

/* Elementor text widgets inherit the design system colors */
.ss-site .elementor-widget-text-editor,
.ss-site .elementor-widget-heading .elementor-heading-title { color: inherit; font-family: var(--ss-font); }
.ss-site .elementor-widget-heading .elementor-heading-title { color: var(--ss-ink); }
.ss-site .elementor-widget-text-editor { color: var(--ss-ink-2); }

/* Layout helpers */
.ss-container { width: 100%; max-width: var(--ss-container); margin-inline: auto; padding-inline: var(--ss-gutter); box-sizing: border-box; }
.ss-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ss-site [hidden] { display: none !important; }

/* ==========================================================================
   Glass
   ========================================================================== */
.ss-glass {
	background: var(--ss-glass-bg);
	border: 1px solid var(--ss-glass-border);
	-webkit-backdrop-filter: blur(var(--ss-glass-blur)) saturate(160%);
	backdrop-filter: blur(var(--ss-glass-blur)) saturate(160%);
	box-shadow: inset 0 1px 0 var(--ss-glass-hi), var(--ss-shadow);
}
.ss-glass--strong { background: var(--ss-glass-bg-strong); }
.ss-glass--dark {
	background: rgba(20, 26, 38, .55);
	border-color: rgba(255, 255, 255, .14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 20px 60px rgba(0, 0, 0, .35);
	color: #fff;
}
@media (max-width: 767px) {
	:root { --ss-glass-blur: 12px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.ss-glass { background: var(--ss-glass-bg-strong); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.ss-btn,
.ss-site .button,
.ss-site button.button,
.ss-site input[type="submit"].button {
	--_bg: var(--ss-strong-bg);
	--_ink: var(--ss-strong-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 24px;
	border-radius: var(--ss-pill);
	border: 1px solid transparent;
	background: var(--_bg);
	color: var(--_ink);
	font-family: var(--ss-font);
	font-size: var(--ss-fs-sm);
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	text-decoration: none;
	transition: transform var(--ss-dur) var(--ss-ease), background-color var(--ss-dur), color var(--ss-dur), box-shadow var(--ss-dur), border-color var(--ss-dur);
	white-space: nowrap;
	box-sizing: border-box;
}
.ss-btn:hover,
.ss-site .button:hover { color: var(--_ink); transform: translateY(-1px); box-shadow: var(--ss-shadow-sm); }
.ss-btn:active { transform: translateY(0); }
.ss-btn--primary,
.ss-site .button.alt,
.ss-site .checkout-button,
.ss-site #place_order { --_bg: var(--ss-orange); --_ink: var(--ss-accent-ink); }
.ss-btn--primary:hover { --_bg: var(--ss-orange-3); }
.ss-btn--light { --_bg: #FFFFFF; --_ink: #1A2230; }
.ss-btn--ghost { --_bg: transparent; --_ink: var(--ss-ink); border-color: var(--ss-border-strong); }
.ss-btn--ghost:hover { border-color: var(--ss-ink); }
.ss-btn--soft { --_bg: var(--ss-surface-2); --_ink: var(--ss-ink); }
.ss-btn--soft:hover { --_bg: var(--ss-surface-3); }
.ss-btn--sm { min-height: 38px; padding: 0 16px; font-size: var(--ss-fs-xs); }
.ss-btn--lg { min-height: 54px; padding: 0 32px; font-size: var(--ss-fs-base); }
.ss-btn--block { display: flex; width: 100%; }
.ss-btn[disabled], .ss-btn.is-disabled { opacity: .45; pointer-events: none; }
.ss-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.ss-btn.is-loading::after {
	content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid var(--_ink); border-inline-end-color: transparent; animation: ss-spin .7s linear infinite;
}
@keyframes ss-spin { to { transform: rotate(360deg); } }

.ss-icon-btn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--ss-surface); color: var(--ss-ink);
	border: 1px solid var(--ss-border);
	cursor: pointer; padding: 0;
	transition: background-color var(--ss-dur), color var(--ss-dur), transform var(--ss-dur) var(--ss-ease), border-color var(--ss-dur);
}
.ss-icon-btn:hover { background: var(--ss-orange); color: var(--ss-accent-ink); border-color: var(--ss-orange); }
.ss-icon-btn svg { width: 20px; height: 20px; }
.ss-icon-btn--sm { width: 36px; height: 36px; }
.ss-icon-btn--sm svg { width: 17px; height: 17px; }

/* ==========================================================================
   Forms
   ========================================================================== */
:where(.ss-site) :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], select, textarea) {
	font-family: var(--ss-font);
	font-size: var(--ss-fs-sm);
	color: var(--ss-ink);
	background: var(--ss-surface);
	border: 1px solid var(--ss-border-strong);
	border-radius: var(--ss-radius-sm);
	padding: 12px 16px;
	min-height: 48px;
	box-sizing: border-box;
	transition: border-color var(--ss-dur), box-shadow var(--ss-dur);
	width: 100%;
}
:where(.ss-site) textarea { min-height: 140px; }
:where(.ss-site) :where(input, select, textarea):focus {
	outline: none; border-color: var(--ss-orange); box-shadow: 0 0 0 3px var(--ss-accent-soft);
}
.ss-site ::placeholder { color: var(--ss-muted); opacity: 1; }
:where(.ss-site) label { color: var(--ss-ink); font-weight: 600; font-size: var(--ss-fs-sm); }
.ss-site input[type="checkbox"], .ss-site input[type="radio"] { accent-color: var(--ss-orange); width: 18px; height: 18px; }

/* Elementor Pro form */
.ss-site .elementor-form .elementor-field-group .elementor-field-textual { background: var(--ss-surface); color: var(--ss-ink); border-color: var(--ss-border-strong); border-radius: var(--ss-radius-sm); }
.ss-site .elementor-form .elementor-button { border-radius: var(--ss-pill); background: var(--ss-strong-bg); color: var(--ss-strong-ink); font-family: var(--ss-font); font-weight: 700; }

/* ==========================================================================
   Typographic helpers used by widgets
   ========================================================================== */
.ss-eyebrow { display: inline-block; color: var(--ss-accent-text); font-size: var(--ss-fs-sm); font-weight: 700; letter-spacing: .02em; }
.ss-section-title {
	display: flex; align-items: center; gap: 14px;
	margin: 0; font-size: var(--ss-fs-2xl); font-weight: 700; color: var(--ss-ink); line-height: 1.3;
}
.ss-section-title__line { display: inline-block; width: 28px; height: 3px; border-radius: 3px; background: var(--ss-ink); flex: none; }
.ss-section-title em { font-style: normal; color: var(--ss-accent-text); }
.ss-link-underline { font-weight: 600; font-size: var(--ss-fs-sm); color: var(--ss-ink); border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.ss-link-underline:hover { color: var(--ss-accent-text); }

@media (max-width: 1024px) {
	:root { --ss-fs-2xl: 28px; --ss-fs-3xl: 36px; --ss-fs-4xl: 46px; }
}
@media (max-width: 767px) {
	:root { --ss-fs-xl: 22px; --ss-fs-2xl: 24px; --ss-fs-3xl: 30px; --ss-fs-4xl: 36px; --ss-fs-base: 14.5px; }
}

/* Elementor page wrapper should not add its own background */
.ss-site .elementor-location-header,
.ss-site .elementor-location-footer { position: relative; z-index: 40; }
.ss-site .site-main, .ss-site .page-content { color: var(--ss-ink); }
.ss-site .page-header .entry-title { display: none; }

/* Scrollbars */
html[data-theme="dark"] .ss-site { scrollbar-color: #2B3343 #0F131A; }
