/* ============ Etlaq Company Base — stylesheet (RTL) ============ */
/* Palette comes from inline :root vars printed by functions.php:
   --co-primary, --co-dark, --co-soft, --co-accent */

:root {
	--ink: #1b1c20;
	--paper: #ffffff;
	--line: #e9e6df;
	--text: #34373f;
	--muted: #7b7e88;
	--radius: 14px;
	--shadow: 0 18px 45px rgba(20, 22, 28, 0.1);
	--container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
	color: var(--text);
	background: var(--paper);
	line-height: 1.8;
	direction: rtl;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.35; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.12rem; }

.section { padding-block: 84px; }

.eyebrow {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--co-primary);
	background: color-mix(in srgb, var(--co-primary) 10%, white);
	border: 1px solid color-mix(in srgb, var(--co-primary) 30%, white);
	border-radius: 999px;
	padding: 4px 16px;
	margin-bottom: 16px;
}
.eyebrow-light {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	padding: 4px 16px;
	margin-bottom: 18px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); margin-top: 10px; }
.lead { font-size: 1.08rem; color: var(--text); }

/* ============ Buttons ============ */

.btn {
	display: inline-block;
	padding: 13px 32px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
	border: 0;
	font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--co-dark); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.btn-outline:hover { border-color: #fff; }
.btn-primary {
	background: linear-gradient(135deg, var(--co-primary), var(--co-dark));
	color: #fff;
	box-shadow: 0 10px 25px color-mix(in srgb, var(--co-primary) 35%, transparent);
}
.btn-block { width: 100%; }

/* ============ Top strip + header ============ */

.top-strip { background: var(--co-dark); color: rgba(255, 255, 255, 0.8); font-size: 0.82rem; }
.top-strip-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.top-strip a { color: #fff; font-weight: 700; }
.top-strip a:hover { text-decoration: underline; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.93);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { color: var(--ink); font-size: 0.98rem; font-weight: 800; }
.brand-text em { font-style: normal; font-size: 0.66rem; letter-spacing: 0.3em; color: var(--co-primary); }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a { display: block; padding: 10px 14px; font-weight: 700; font-size: 0.93rem; color: var(--ink); border-radius: 8px; transition: color 0.2s; }
.nav-list a:hover { color: var(--co-primary); }
.nav-list .nav-cta {
	background: linear-gradient(135deg, var(--co-primary), var(--co-dark));
	color: #fff;
	border-radius: 999px;
	padding: 9px 22px;
	margin-inline-start: 8px;
}
.nav-list .nav-cta:hover { color: #fff; opacity: 0.92; }

.nav-toggle, .nav-toggle-input { display: none; }

/* ============ Hero ============ */

.hero {
	position: relative;
	background:
		radial-gradient(900px 500px at 88% -10%, rgba(255, 255, 255, 0.14), transparent 60%),
		radial-gradient(700px 400px at 5% 110%, rgba(0, 0, 0, 0.25), transparent 55%),
		linear-gradient(135deg, var(--co-dark), var(--co-primary));
	color: #fff;
	overflow: hidden;
}
.hero-inner {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	align-items: center;
	gap: 48px;
	padding-block: 88px 72px;
}
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero-tagline { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; margin-bottom: 30px; max-width: 30em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-logo { display: flex; justify-content: center; }
.hero-logo img {
	max-height: 300px;
	width: auto;
	background: #fff;
	border-radius: 22px;
	padding: 24px 30px;
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
	animation: co-float 7s ease-in-out infinite;
}
@keyframes co-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

.hero-stats { background: rgba(0, 0, 0, 0.22); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding-block: 24px; gap: 12px; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 900; color: #fff; line-height: 1.25; }
.stat span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); font-weight: 600; }

/* ============ About ============ */

.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }

/* ============ Services ============ */

.services { background: var(--co-soft); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
	background: #fff;
	border: 1px solid var(--line);
	border-top: 4px solid var(--co-primary);
	border-radius: var(--radius);
	padding: 28px 24px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-num {
	display: inline-block;
	font-weight: 800;
	font-size: 0.8rem;
	color: var(--co-primary);
	background: color-mix(in srgb, var(--co-primary) 10%, white);
	border-radius: 8px;
	padding: 2px 10px;
	margin-bottom: 12px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.92rem; }

/* ============ Why us ============ */

.why-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.check-list { margin-top: 10px; }
.check-list li { display: flex; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-icon {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--co-primary) 12%, white);
	color: var(--co-primary);
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 4px;
}
.check-list strong { color: var(--ink); }
.check-list p { color: var(--muted); font-size: 0.9rem; }

.why-panel { display: flex; justify-content: center; }
.why-panel-card {
	background:
		radial-gradient(400px 260px at 80% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
		linear-gradient(160deg, var(--co-dark), var(--co-primary));
	border-radius: 20px;
	padding: 42px 36px;
	text-align: center;
	color: #fff;
	box-shadow: var(--shadow);
	max-width: 340px;
}
.why-panel-card img {
	max-height: 150px;
	width: auto;
	margin: 0 auto 22px;
	background: #fff;
	border-radius: 14px;
	padding: 14px 18px;
}
.why-panel-card p { font-size: 1.05rem; font-weight: 700; color: rgba(255, 255, 255, 0.92); }

/* ============ CTA ============ */

.cta-strip {
	background:
		radial-gradient(700px 300px at 85% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
		linear-gradient(135deg, var(--co-dark), var(--co-primary));
	color: #fff;
	padding-block: 66px;
	text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 10px; }
.cta-strip p { color: rgba(255, 255, 255, 0.7); margin-bottom: 26px; }

/* ============ Contact ============ */

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.contact-list li { display: flex; flex-direction: column; padding-block: 14px; border-bottom: 1px solid var(--line); }
.contact-list strong { color: var(--ink); font-size: 0.9rem; }
.contact-list span { color: var(--muted); }

.contact-form-wrap {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 32px;
}
.contact-form label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--ink); margin-bottom: 16px; }
.contact-form input, .contact-form textarea {
	width: 100%;
	margin-top: 6px;
	padding: 12px 16px;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	font-family: inherit;
	font-size: 0.95rem;
	background: var(--co-soft);
	transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--co-primary); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-notice { border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; font-weight: 700; }
.form-success { background: #eef7ee; color: #2f6b33; border: 1px solid #bfe0c1; }
.form-error { background: #fdf0f0; color: #a33; border: 1px solid #efc7c7; }

/* ============ Generic page ============ */

.page-hero {
	background: linear-gradient(135deg, var(--co-dark), var(--co-primary));
	color: #fff;
	padding-block: 56px;
	text-align: center;
}
.page-hero h1 { color: #fff; }
.content-narrow { max-width: 780px; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2, .entry-content h3 { margin: 28px 0 12px; }
.post-item { padding-block: 20px; border-bottom: 1px solid var(--line); }

/* ============ Footer ============ */

.site-footer { background: var(--co-dark); color: rgba(255, 255, 255, 0.72); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.9fr 1fr 0.9fr; gap: 40px; padding-block: 60px 42px; }
.footer-logo { height: 70px; width: auto; background: #fff; border-radius: 12px; padding: 8px 14px; margin-bottom: 18px; }
.footer-about p { font-size: 0.9rem; line-height: 1.9; }
.footer-col h4 {
	color: #fff;
	font-size: 1rem;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.35);
	display: inline-block;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 0.75; }
.footer-contact li { font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 18px; font-size: 0.84rem; text-align: center; }

/* ============ Responsive ============ */

@media (max-width: 960px) {
	.hero-inner { grid-template-columns: 1fr; text-align: center; padding-block: 60px; }
	.hero-actions { justify-content: center; }
	.hero-logo img { max-height: 220px; }
	.about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }

	.nav-toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
	.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }
	.site-nav {
		position: absolute;
		top: 100%;
		inset-inline: 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		display: none;
		padding: 12px 20px 20px;
	}
	.nav-toggle-input:checked ~ .site-nav { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav-list .nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 600px) {
	.services-grid, .form-row { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.section { padding-block: 56px; }
	.top-strip-inner { flex-direction: column; padding-block: 8px; min-height: 0; }
	.brand-text em { display: none; }
}

/* ============ Dropdown sub-menu (shared by child themes) ============ */

.nav-list .has-sub { position: relative; }
.nav-list .sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 260px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: var(--shadow);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.22s ease;
	z-index: 60;
	display: block;
}
.nav-list .has-sub:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-list .sub-menu li { width: 100%; }
.nav-list .sub-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--ink);
	background: none;
	margin: 0;
}
.nav-list .sub-menu a:hover { background: var(--co-soft); color: var(--co-primary); }

@media (max-width: 960px) {
	.nav-list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		border-right: 2px solid var(--line);
		border-radius: 0;
		margin-right: 14px;
		min-width: 0;
	}
}
