/*
Theme Name: Engaz
Theme URI: https://engazs.com/
Author: Engaz
Description: قالب مستقل لموقع شركة إنجاز — كشف تسريبات المياه وعزل الأسطح بالرياض. بديل كامل لـ Astra + Elementor بنفس الشكل.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: engaz
Tags: rtl-language-support, custom-menu, custom-logo, translation-ready
*/

/* ==========================================================================
   1. Fonts
   ========================================================================== */
@font-face {
	font-family: 'Droid Arabic Kufi';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(assets/fonts/droidarabickufi-droidkufi-regular.woff2) format('woff2');
}
@font-face {
	font-family: 'Droid Arabic Kufi';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(assets/fonts/droidarabickufi-droidkufi-bold.woff2) format('woff2');
}

/* ==========================================================================
   2. Tokens
   ========================================================================== */
:root {
	--c-primary: #3a5fa0;
	--c-primary-hover: #ffd763;
	--c-heading: #3a3a3a;
	--c-text: #4b4f58;
	--c-muted: #777777;
	--c-meta: #adadad;
	--c-page-bg: #f1f1f1;
	--c-white: #ffffff;
	--c-footer: #40154d;
	--c-whatsapp: #2ac935;
	--c-badge: #69727d;

	--f-body: 'Open Sans', sans-serif;
	--f-head: 'Josefin Sans', sans-serif;
	--f-ar: 'Cairo', sans-serif;

	/*
	 * الموقع الأصلي يطلب خط "Droid Arabic Kufi" لكن ملفاته كانت تُحمَّل من نطاق
	 * www.engazs.com فيفشل التحميل ويعود المتصفح للخط الافتراضي — وهذا هو الشكل
	 * الظاهر فعليًا للزوار. لذلك القيمة هنا sans-serif حتى يبقى الشكل مطابقًا.
	 * الخط الحقيقي مرفق داخل القالب: لتفعيله غيّر السطر التالي إلى
	 * --f-kufi: 'Droid Arabic Kufi', sans-serif;
	 */
	--f-kufi: sans-serif;

	--content-width: 1200px;
	--grid-width: 1140px;
	--header-h: 84px;
}

/* ==========================================================================
   3. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background-color: var(--c-page-bg);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.857142857;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 20px;
	color: var(--c-heading);
	font-family: var(--f-head);
	font-weight: 700;
	line-height: 1.1em;
}
h1 { font-size: 50px; line-height: 1.4em; }
h2 { font-size: 35px; line-height: 1.3em; }
h3 { font-size: 30px; line-height: 1.3em; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p { margin: 0 0 1.75em; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-primary); text-decoration: none; transition: color .2s linear; }
a:hover, a:focus { color: var(--c-primary-hover); }

img { max-width: 100%; height: auto; vertical-align: middle; }

ul, ol { margin: 0 0 1.5em; padding-inline-start: 20px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute;
	inset-inline-start: -9999px;
	top: 0;
	z-index: 999;
	padding: 12px 20px;
	background: var(--c-white);
}
.skip-link:focus { inset-inline-start: 0; }

/* ==========================================================================
   4. Layout helpers
   ========================================================================== */
.eg-container {
	width: 100%;
	max-width: var(--content-width);
	margin-inline: auto;
	padding-inline: 10px;
}
.eg-container--grid { max-width: var(--grid-width); padding-inline: 0; }

/*
 * Section geometry mirrors the original: every top-level band is capped at
 * 1200px and its inner content at 1140px (the hero is the one exception —
 * its inner track runs the full 1200px).
 */
.eg-band {
	width: 100%;
	max-width: var(--content-width);
	margin-inline: auto;
}
.eg-band__inner {
	width: 100%;
	max-width: var(--grid-width);
	margin-inline: auto;
}

.eg-site { overflow: hidden; }

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.eg-btn {
	display: inline-block;
	padding: 15px 40px;
	border: 0;
	border-radius: 0;
	background-color: var(--c-primary);
	color: var(--c-white);
	font-family: var(--f-ar);
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .3s, color .3s, border-color .3s;
}
.eg-btn:hover, .eg-btn:focus {
	background-color: var(--c-primary-hover);
	color: var(--c-white);
}
.eg-btn--whatsapp { background-color: var(--c-whatsapp); }
.eg-btn--whatsapp:hover, .eg-btn--whatsapp:focus { background-color: var(--c-primary-hover); }
.eg-btn--sm { padding: 15px 40px; }

/* ==========================================================================
   6. Header
   ========================================================================== */
.eg-header {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 99;
	height: var(--header-h);
	background: transparent;
}
/* Inner pages: the header is part of the flow and sits on white. */
.eg-header:not(.is-transparent) {
	position: relative;
	height: auto;
	background: var(--c-white);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.eg-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	max-width: var(--content-width);
	height: var(--header-h);
	margin-inline: auto;
	padding-inline: 20px;
}
.eg-header__left { display: flex; align-items: center; gap: 0; min-width: 0; }
.eg-header__right { display: flex; align-items: center; }

.eg-logo { display: inline-flex; align-items: center; line-height: 0; }
.eg-logo img { width: 194px; max-width: 194px; height: auto; transition: all .2s linear; }
.eg-logo .eg-site-title {
	margin: 0;
	color: var(--c-primary);
	font-family: var(--f-ar);
	font-size: 22px;
	font-weight: 700;
}

/* Desktop navigation */
.eg-nav { margin-inline-start: 10px; }
.eg-nav ul {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.eg-nav li { position: relative; }
.eg-nav a {
	display: block;
	padding: 0 15px;
	color: var(--c-primary);
	font-family: var(--f-ar);
	font-size: 15px;
	font-weight: 600;
	line-height: 70px;
	text-transform: uppercase;
	transition: background .2s linear, color .2s linear;
}
.eg-nav > ul > li > a:hover,
.eg-nav > ul > li:hover > a,
.eg-nav > ul > li:focus-within > a {
	color: var(--c-primary);
	background: rgba(51, 75, 196, .24);
}
.eg-nav > ul > li.current-menu-item > a,
.eg-nav > ul > li.current_page_item > a,
.eg-nav > ul > li.current-menu-ancestor > a {
	color: var(--c-primary);
	background: rgba(69, 146, 209, .87);
}

/* Sub menus */
.eg-nav .sub-menu {
	position: absolute;
	inset-inline-start: 0;
	top: 100%;
	z-index: 20;
	display: block;
	min-width: 240px;
	margin: 0;
	padding: 0;
	border-top: 2px solid #84a7e8;
	background: var(--c-white);
	box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.eg-nav li:hover > .sub-menu,
.eg-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.eg-nav .sub-menu a { line-height: 1.6; padding: 12px 20px; }
.eg-nav .sub-menu .sub-menu { top: -2px; inset-inline-start: 100%; }

/* Mobile toggle */
.eg-menu-toggle {
	display: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-primary);
	line-height: 0;
	cursor: pointer;
}
.eg-menu-toggle svg { width: 24px; height: 28px; fill: currentColor; }
.eg-menu-toggle .eg-icon-close { display: none; }
.eg-menu-toggle[aria-expanded="true"] .eg-icon-open { display: none; }
.eg-menu-toggle[aria-expanded="true"] .eg-icon-close { display: block; }

.eg-mobile-panel {
	display: none;
	background: var(--c-white);
	box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}
.eg-mobile-panel.is-open { display: block; }
.eg-mobile-panel ul { margin: 0; padding: 0; list-style: none; }
.eg-mobile-panel a {
	display: block;
	padding: 14px 20px;
	border-bottom: 1px solid rgba(0, 0, 0, .06);
	color: var(--c-primary);
	font-family: var(--f-ar);
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
}
.eg-mobile-panel .eg-mobile-cta { padding: 15px 20px; }
.eg-mobile-panel .eg-mobile-cta .eg-btn { display: block; }

/* ==========================================================================
   7. Home — hero
   ========================================================================== */
.eg-hero {
	position: relative;
	width: 100%;
	max-width: var(--content-width);
	margin-inline: auto;
	padding: 100px 0;
	overflow: hidden;
}
.eg-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.eg-hero__slide {
	position: absolute;
	inset: 0;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	animation: eg-slideshow 10s infinite;
}
.eg-hero__slide:nth-child(2) { animation-delay: 5s; }
@keyframes eg-slideshow {
	0%   { opacity: 1; }
	45%  { opacity: 1; }
	50%  { opacity: 0; }
	95%  { opacity: 0; }
	100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.eg-hero__slide { animation: none; opacity: 1; }
	.eg-hero__slide:nth-child(2) { display: none; }
}
.eg-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: var(--c-white);
	opacity: .7;
}
.eg-hero__inner { position: relative; z-index: 2; }

.eg-hero__box {
	padding: 25px 0 30px;
	background-color: rgba(255, 255, 255, .8);
	text-align: center;
}
.eg-hero__title {
	margin: 0 0 17px;
	color: var(--c-heading);
	font-family: var(--f-ar);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4933em;
}
.eg-hero__desc {
	margin: 0;
	color: var(--c-text);
	font-family: var(--f-ar);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.857142857;
}
.eg-hero__actions { text-align: center; }
.eg-hero__actions .eg-btn { display: inline-block; margin-top: 20px; }
.eg-hero__actions .eg-btn-row { display: block; }

/* ==========================================================================
   8. Home — features
   ========================================================================== */
.eg-features-head {
	width: 100%;
	max-width: var(--content-width);
	margin-inline: auto;
	padding: 0 10px 20px;
	background-color: var(--c-white);
}
.eg-features-head h2 {
	margin: 0;
	color: var(--c-heading);
	font-family: var(--f-ar);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3em;
	text-align: center;
}

.eg-features {
	width: 100%;
	max-width: var(--content-width);
	margin-inline: auto;
	padding: 10px 0 30px;
	background-color: var(--c-white);
}
.eg-features__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	width: 100%;
	max-width: var(--grid-width);
	margin-inline: auto;
}
.eg-feature {
	flex: 0 0 33.33%;
	max-width: 33.33%;
	padding: 10px;
}
.eg-feature__inner {
	height: 100%;
	padding: 10px;
	border-bottom: 4px solid transparent;
	background-color: var(--c-white);
	box-shadow: 0 0 45px 0 rgba(225, 225, 225, .5);
	transition: border-color .3s;
}
.eg-feature__inner:hover { border-bottom-color: var(--c-primary); }
.eg-feature__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	padding: 50px;
	text-align: center;
	transition: transform .3s;
}
.eg-feature__inner:hover .eg-feature__body { transform: scale(1.2); }
.eg-feature__icon { color: var(--c-primary); line-height: 0; }
.eg-feature__icon svg { width: 35px; height: 35px; fill: currentColor; }
.eg-feature h3 {
	margin: 0 0 5px;
	color: var(--c-heading);
	font-family: var(--f-ar);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2em;
}
.eg-feature p {
	margin: 0;
	color: var(--c-text);
	font-family: var(--f-ar);
	font-size: 15px;
	line-height: 1.857142857;
}

/* ==========================================================================
   9. Home — quote banner
   ========================================================================== */
.eg-quote {
	position: relative;
	width: 100%;
	max-width: var(--content-width);
	margin-inline: auto;
	padding: 150px 0;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}
.eg-quote::before {
	content: '';
	position: absolute;
	inset: 0;
	background-color: var(--c-heading);
	opacity: .5;
}
.eg-quote__inner { position: relative; padding-top: 50px; }
.eg-quote h2 {
	margin: 0;
	color: var(--c-white);
	font-family: var(--f-kufi);
	font-size: 60px;
	font-weight: 700;
	line-height: 1.3em;
	text-align: center;
}
@media (min-width: 1025px) {
	.eg-quote { background-attachment: fixed; }
}

/* ==========================================================================
   10. Home — intro (text + image)
   ========================================================================== */
.eg-intro {
	width: 100%;
	max-width: var(--content-width);
	margin-inline: auto;
	padding: 10px;
}
.eg-intro__row {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	max-width: var(--grid-width);
	margin-inline: auto;
}
.eg-intro__col { flex: 0 0 50%; max-width: 50%; padding: 10px; }
.eg-intro__spacer { height: 60px; }
.eg-intro__text {
	margin: 0 0 21px;
	color: var(--c-heading);
	font-family: var(--f-kufi);
	font-size: 21px;
	font-weight: 700;
	line-height: 2em;
	text-align: center;
}
.eg-intro__media { display: flex; align-items: flex-start; }
.eg-intro__media img { width: 550px; max-width: 100%; height: auto; }

/* ==========================================================================
   11. Post cards grid
   ========================================================================== */
.eg-posts-head {
	width: 100%;
	max-width: var(--content-width);
	margin-inline: auto;
	padding: 0 10px 20px;
}
.eg-posts-head h2 {
	margin: 0;
	color: var(--c-heading);
	font-family: var(--f-ar);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.3em;
	text-align: center;
}

.eg-posts {
	width: 100%;
	max-width: var(--content-width);
	margin-inline: auto;
	padding-inline: 10px;
}
.eg-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 35px 30px;
	width: 100%;
	max-width: var(--grid-width);
	margin-inline: auto;
}

.eg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 3px;
	background-color: var(--c-white);
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15);
}
.eg-card__thumb {
	position: relative;
	display: block;
	overflow: hidden;
	margin-bottom: 25px;
	padding-bottom: 66%;
	background: #eee;
}
.eg-card__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
	transition: transform .3s;
}
.eg-card:hover .eg-card__thumb img { transform: scale(1.05); }
.eg-card__badge {
	position: absolute;
	top: 0;
	inset-inline-end: 0;
	z-index: 2;
	margin: 20px;
	padding: 7.2px 14.4px;
	border-radius: 999px;
	background-color: var(--c-badge);
	color: var(--c-white);
	font-family: var(--f-body);
	font-size: 12px;
	line-height: 1;
}
.eg-card__avatar {
	position: relative;
	bottom: 25px;
	height: 0;
	padding: 0 30px;
	text-align: start;
}
.eg-card__avatar img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
}
.eg-card__body { flex: 1 1 auto; margin-top: 20px; padding: 0 30px; }
.eg-card__title {
	margin: 0 0 25px;
	font-family: var(--f-head);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3em;
}
.eg-card__title a { color: var(--c-heading); }
.eg-card__title a:hover { color: var(--c-primary); }
.eg-card__excerpt {
	margin: 0 0 25px;
	color: var(--c-muted);
	font-family: var(--f-body);
	font-size: 14px;
	line-height: 1.5;
}
.eg-card__more {
	display: inline-block;
	margin-bottom: 20px;
	color: var(--c-heading);
	font-family: var(--f-body);
	font-size: 12px;
	font-weight: 700;
}
.eg-card__more:hover { color: var(--c-primary); }
.eg-card__meta {
	padding: 15px 30px;
	border-top: 1px solid #eaeaea;
	color: var(--c-meta);
	font-family: var(--f-body);
	font-size: 12px;
	line-height: 1.3;
}
.eg-card__meta span + span::before { content: '\2022'; margin: 0 6px; }

.eg-loadmore-wrap { padding: 40px 0 10px; text-align: center; }
.eg-loadmore {
	background-color: var(--c-badge);
	font-family: var(--f-body);
	text-transform: none;
}
.eg-loadmore:hover, .eg-loadmore:focus { background-color: var(--c-primary-hover); }
.eg-loadmore[hidden] { display: none; }
.eg-loadmore.is-loading { opacity: .7; pointer-events: none; }

/* ==========================================================================
   12. Inner pages
   ========================================================================== */
.eg-page-hero {
	padding: 60px 0;
	background-color: var(--c-primary);
	color: var(--c-white);
	text-align: center;
}
.eg-page-hero h1 {
	margin: 0;
	color: var(--c-white);
	font-family: var(--f-ar);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.4em;
}
.eg-page-hero__meta { margin-top: 10px; font-family: var(--f-body); font-size: 13px; opacity: .8; }

.eg-main { padding: 50px 0 70px; }
.eg-article {
	max-width: var(--grid-width);
	margin-inline: auto;
	padding: 40px;
	background: var(--c-white);
	box-shadow: 0 0 45px 0 rgba(225, 225, 225, .5);
}
.eg-article__thumb { margin: 0 0 30px; }
.eg-entry { font-family: var(--f-ar); font-size: 16px; line-height: 2; color: var(--c-text); }
.eg-entry h1, .eg-entry h2, .eg-entry h3, .eg-entry h4, .eg-entry h5, .eg-entry h6 {
	font-family: var(--f-ar);
	margin: 1.4em 0 .6em;
}
.eg-entry h2 { font-size: 26px; }
.eg-entry h3 { font-size: 21px; }
.eg-entry h4 { font-size: 18px; }
.eg-entry img { height: auto; }
.eg-entry table { width: 100%; border-collapse: collapse; }
.eg-entry table th, .eg-entry table td { padding: 10px; border: 1px solid #e5e5e5; }
.eg-entry blockquote {
	margin: 1.5em 0;
	padding: 20px 25px;
	border-inline-start: 4px solid var(--c-primary);
	background: #fafafa;
}

/*
 * محتوى قديم منقول من إليمنتور: الأيقونات محفوظة كـ <svg> بدون أبعاد،
 * فتظهر بحجم ضخم لو لم تُقيَّد. هذه القواعد تعيدها لشكل بطاقات الرئيسية.
 */
.eg-entry svg {
	display: block;
	width: 35px;
	height: 35px;
	margin: 45px auto 15px;
	fill: var(--c-primary);
	color: var(--c-primary);
}
.eg-entry svg + h2,
.eg-entry svg + h3,
.eg-entry svg + h4,
.eg-entry svg + h5,
.eg-entry svg + h6 {
	margin-top: 0;
	text-align: center;
}
.eg-entry svg + h2 + p,
.eg-entry svg + h3 + p,
.eg-entry svg + h4 + p,
.eg-entry svg + h5 + p,
.eg-entry svg + h6 + p {
	max-width: 640px;
	margin-inline: auto;
	text-align: center;
}
.eg-entry > h1:first-child,
.eg-entry > h2:first-child { margin-top: 0; }

.eg-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 35px 30px;
	max-width: var(--grid-width);
	margin-inline: auto;
}

.eg-pagination { margin-top: 40px; text-align: center; }
.eg-pagination .page-numbers {
	display: inline-block;
	min-width: 42px;
	margin: 0 3px;
	padding: 10px 12px;
	background: var(--c-white);
	color: var(--c-heading);
	font-family: var(--f-ar);
	font-size: 14px;
}
.eg-pagination .page-numbers.current,
.eg-pagination .page-numbers:hover { background: var(--c-primary); color: var(--c-white); }

.eg-not-found { max-width: 700px; margin-inline: auto; text-align: center; }
.eg-search-form { display: flex; max-width: 460px; margin: 25px auto 0; }
.eg-search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid #ddd;
	border-inline-end: 0;
	font-family: var(--f-ar);
	font-size: 15px;
}
.eg-search-form button { flex: 0 0 auto; }

/* ==========================================================================
   12b. Inner page sections (about / services / contact)
   ========================================================================== */
.eg-section { padding: 60px 0; }
.eg-section--white { background-color: var(--c-white); }
.eg-section--tight { padding: 40px 0; }

.eg-section__head {
	max-width: var(--grid-width);
	margin: 0 auto 40px;
	padding-inline: 10px;
	text-align: center;
}
.eg-section__head h2 {
	margin: 0;
	color: var(--c-heading);
	font-family: var(--f-ar);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3em;
}
.eg-section__head p {
	max-width: 820px;
	margin: 18px auto 0;
	color: var(--c-text);
	font-family: var(--f-ar);
	font-size: 15px;
	line-height: 1.857142857;
}

/* Intro block under the page hero */
.eg-lead {
	max-width: 900px;
	margin-inline: auto;
	padding-inline: 10px;
	color: var(--c-text);
	font-family: var(--f-ar);
	font-size: 16px;
	font-weight: 600;
	line-height: 2;
	text-align: center;
}

/* Call-to-action row (blue + WhatsApp, stacked like the homepage hero) */
.eg-actions { margin-top: 30px; text-align: center; }
.eg-actions .eg-btn { display: inline-block; margin: 10px 5px 0; }

/* --- Service cards --- */
.eg-service-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	max-width: var(--grid-width);
	margin-inline: auto;
	padding-inline: 10px;
}
.eg-service-card {
	display: flex;
	flex-direction: column;
	padding: 40px 35px;
	border-bottom: 4px solid transparent;
	background: var(--c-white);
	box-shadow: 0 0 45px 0 rgba(225, 225, 225, .5);
	transition: border-color .3s, transform .3s;
}
.eg-service-card:hover {
	border-bottom-color: var(--c-primary);
	transform: translateY(-4px);
}
.eg-service-card__icon { margin-bottom: 18px; color: var(--c-primary); line-height: 0; }
.eg-service-card__icon svg { width: 38px; height: 38px; fill: currentColor; }
.eg-service-card h3 {
	margin: 0 0 14px;
	font-family: var(--f-ar);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}
.eg-service-card h3 a { color: var(--c-heading); }
.eg-service-card h3 a:hover { color: var(--c-primary); }
.eg-service-card p {
	flex: 1 1 auto;
	margin: 0 0 20px;
	color: var(--c-text);
	font-family: var(--f-ar);
	font-size: 15px;
	line-height: 1.857142857;
}
.eg-service-card__more {
	align-self: flex-start;
	color: var(--c-primary);
	font-family: var(--f-ar);
	font-size: 14px;
	font-weight: 600;
}
.eg-service-card__more::after { content: ' \2190'; }

/* --- Category chips --- */
.eg-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	max-width: var(--grid-width);
	margin-inline: auto;
	padding-inline: 10px;
}
.eg-chip {
	padding: 10px 22px;
	border-radius: 999px;
	background: var(--c-white);
	box-shadow: 0 0 20px 0 rgba(0, 0, 0, .06);
	color: var(--c-heading);
	font-family: var(--f-ar);
	font-size: 14px;
	font-weight: 600;
	transition: background .25s, color .25s;
}
.eg-chip:hover { background: var(--c-primary); color: var(--c-white); }
.eg-chip span { color: var(--c-meta); font-size: 12px; }
.eg-chip:hover span { color: rgba(255, 255, 255, .75); }

/* --- Contact cards --- */
.eg-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	max-width: var(--grid-width);
	margin-inline: auto;
	padding-inline: 10px;
}
.eg-contact-card {
	padding: 40px 30px;
	background: var(--c-white);
	box-shadow: 0 0 45px 0 rgba(225, 225, 225, .5);
	text-align: center;
}
.eg-contact-card__icon { margin-bottom: 15px; color: var(--c-primary); line-height: 0; }
.eg-contact-card__icon svg { width: 34px; height: 34px; margin-inline: auto; fill: currentColor; }
.eg-contact-card h3 {
	margin: 0 0 10px;
	font-family: var(--f-ar);
	font-size: 18px;
	font-weight: 700;
}
.eg-contact-card p, .eg-contact-card a {
	margin: 0;
	color: var(--c-text);
	font-family: var(--f-ar);
	font-size: 15px;
	line-height: 1.8;
	word-break: break-word;
}
.eg-contact-card a:hover { color: var(--c-primary); }

/* --- Contact form --- */
.eg-form {
	max-width: 760px;
	margin-inline: auto;
	padding: 40px;
	background: var(--c-white);
	box-shadow: 0 0 45px 0 rgba(225, 225, 225, .5);
}
.eg-form__row { margin-bottom: 20px; }
.eg-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eg-form label {
	display: block;
	margin-bottom: 8px;
	color: var(--c-heading);
	font-family: var(--f-ar);
	font-size: 14px;
	font-weight: 600;
}
.eg-form input[type="text"],
.eg-form input[type="email"],
.eg-form input[type="tel"],
.eg-form textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid #ddd;
	border-radius: 0;
	background: #fbfbfb;
	color: var(--c-text);
	font-family: var(--f-ar);
	font-size: 15px;
	transition: border-color .2s, background .2s;
}
.eg-form input:focus, .eg-form textarea:focus {
	border-color: var(--c-primary);
	background: var(--c-white);
	outline: none;
}
.eg-form textarea { min-height: 150px; resize: vertical; }
/*
 * Honeypot: hidden without pushing anything off-canvas. In an RTL document a
 * `left:-9999px` element extends the layout past the origin, which breaks
 * painting/scroll geometry — use the clip pattern instead.
 */
.eg-form__hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.eg-form .eg-btn { width: 100%; }

.eg-notice {
	max-width: 760px;
	margin: 0 auto 25px;
	padding: 16px 20px;
	border-inline-start: 4px solid;
	font-family: var(--f-ar);
	font-size: 15px;
}
.eg-notice--ok { border-color: var(--c-whatsapp); background: #eefbf0; color: #1b6b26; }
.eg-notice--err { border-color: #d63638; background: #fdeeee; color: #a3282a; }

@media (max-width: 900px) {
	.eg-service-grid { grid-template-columns: 1fr; }
	.eg-contact-grid { grid-template-columns: 1fr; }
	.eg-form { padding: 25px 20px; }
	.eg-form__grid { grid-template-columns: 1fr; }
	.eg-section { padding: 40px 0; }
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.eg-footer {
	background-color: var(--c-footer);
	color: var(--c-white);
}
.eg-footer__inner {
	width: 100%;
	max-width: 1400px;
	min-height: 335px;
	margin-inline: auto;
	padding: 50px 0 0;
}
.eg-footer__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	width: 100%;
}
.eg-footer__col { flex: 0 0 33.333%; max-width: 33.333%; }
/* Physical paddings, matching the source layout exactly. */
.eg-footer__col--about { padding: 0 50px 0 0; }
.eg-footer__col--contact { padding: 0 50px 0 65px; }
.eg-footer__col--posts { padding: 0 0 0 50px; }

.eg-footer__title {
	margin: 0 0 20px;
	color: rgba(255, 255, 255, .5);
	font-family: var(--f-kufi);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.4;
	text-transform: uppercase;
	text-align: center;
}
.eg-footer__col--about .eg-footer__title { font-size: 19px; text-align: start; }

.eg-footer__about {
	margin: 0;
	color: var(--c-white);
	font-family: var(--f-kufi);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.8em;
	text-align: end;
}

.eg-footer__contact { margin: 0; padding: 0; list-style: none; text-align: center; }
.eg-footer__contact li {
	padding-block-end: 10px;
	color: var(--c-white);
	font-family: var(--f-kufi);
	font-size: 16px;
	font-weight: 300;
}
.eg-footer__contact li + li { margin-block-start: 10px; }
.eg-footer__contact a { color: var(--c-white); }

.eg-footer__posts { display: flex; flex-direction: column; gap: 35px; }
.eg-footer-post { display: flex; align-items: flex-start; }
.eg-footer-post__thumb {
	position: relative;
	flex: 0 0 22%;
	max-width: 22%;
	margin-left: 20px;
	padding-bottom: calc(.78 * 22%);
	overflow: hidden;
}
.eg-footer-post__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
	display: block;
}
.eg-footer-post__text { flex: 1 1 auto; padding-top: 20px; }
.eg-footer-post__title {
	margin: 0 0 6px;
	font-family: var(--f-kufi);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.3;
	text-transform: capitalize;
}
.eg-footer-post__title a { color: var(--c-white); }
.eg-footer-post__more {
	color: var(--c-white);
	font-family: var(--f-kufi);
	font-size: 14px;
	font-weight: 200;
	text-transform: capitalize;
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.eg-hero { padding: 120px 10px; }
	.eg-features { padding: 60px 20px 50px; }
	.eg-feature__body { padding: 20px; }
	.eg-quote { padding: 120px; }
	.eg-quote h2 { font-size: 44px; }
	.eg-posts__grid,
	.eg-archive-grid { grid-template-columns: repeat(2, 1fr); }
	.eg-footer__inner { min-height: 750px; padding: 0 5%; }
	.eg-footer__row { padding: 24% 0 16%; align-items: center; }
	.eg-footer__col--about,
	.eg-footer__col--contact { flex: 0 0 50%; max-width: 50%; padding: 0; }
	.eg-footer__col--posts { flex: 0 0 100%; max-width: 100%; padding: 10% 0 5%; }
	.eg-footer-post__thumb { flex-basis: 30%; max-width: 30%; }
	.eg-footer-post__title { font-size: 15px; }
}

@media (max-width: 921px) {
	.eg-nav,
	.eg-header__right .eg-btn { display: none; }
	.eg-menu-toggle { display: block; }
	.eg-header { background: var(--c-white); }
	.eg-header.is-transparent { background: transparent; }
	.eg-header.is-open { background: var(--c-white); }
}

@media (max-width: 767px) {
	.eg-hero { padding: 170px 20px 100px; }
	.eg-hero__box { padding: 0; }
	.eg-features-head { padding-inline: 20px; }
	.eg-features { padding: 0 0 50px; }
	.eg-features__grid { padding: 50px 25px 0; }
	.eg-feature { flex: 0 0 100%; max-width: 100%; }
	.eg-feature__body { padding: 30px; }
	.eg-feature h3 { font-size: 24px; }
	.eg-quote { padding: 80px; }
	.eg-quote h2 { font-size: 30px; }
	.eg-intro__col { flex: 0 0 100%; max-width: 100%; }
	.eg-intro__text { font-size: 17px; }
	.eg-posts-head h2 { font-size: 21px; }
	.eg-posts__grid,
	.eg-archive-grid { grid-template-columns: 1fr; }
	.eg-card__thumb { padding-bottom: 50%; }
	.eg-article { padding: 25px 20px; }
	.eg-footer__inner { padding: 25% 5% 0; min-height: 0; }
	.eg-footer__row { padding: 0; }
	.eg-footer__col { flex: 0 0 100%; max-width: 100%; padding: 10%; }
	.eg-footer__col--about .eg-footer__title,
	.eg-footer__about { text-align: center; }
	.eg-footer-post__thumb { flex-basis: 35%; max-width: 35%; }
}
