/* =========================================================================
   INFOMAX THEME - MAIN STYLESHEET (v2 - premium redesign)
   Vanilla CSS, no framework.
   1. Tokens  2. Reset  3. Type  4. Layout/utility  5. Buttons/tags
   6. Navbar  7. Hero   8. Badges/sections  9. Cards  10. Process
   11. FAQ    12. Contact  13. Footer  14. Blocks  15. Responsive
   ========================================================================= */

/* 1. DESIGN TOKENS ------------------------------------------------------ */
:root {
	--ink: #070b17;
	--navy-950: #0a1128;
	--navy-900: #0d1730;
	--navy-800: #12204a;
	--navy-700: #182a5c;
	--blue: #3b6ef6;
	--blue-light: #6fa1ff;
	--violet: #7c5cfa;
	--violet-light: #a78bfa;
	--cyan: #22d3ee;
	--white: #ffffff;
	--fog-50: #f8f9fd;
	--fog-100: #f1f3fa;
	--fog-200: #e4e8f4;
	--fog-300: #cfd6e8;
	--slate-500: #5c6785;
	--slate-600: #414d6b;
	--slate-700: #2a3352;
	--success: #16a34a;
	--error: #dc2626;

	--font-ar: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
	--font-en: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
	--font-base: var(--font-en);

	--r-sm: 10px;
	--r-md: 18px;
	--r-lg: 28px;
	--r-pill: 999px;
	--container: 1240px;
	--gap: 1.75rem;
	--header-h: 84px;

	--shadow-sm: 0 2px 8px rgba(7, 11, 23, 0.06);
	--shadow-md: 0 16px 40px -16px rgba(10, 17, 40, 0.28);
	--shadow-lg: 0 30px 70px -20px rgba(10, 17, 40, 0.4);
	--shadow-glow: 0 0 0 1px rgba(255,255,255,0.06), 0 20px 60px -12px rgba(59,110,246,0.35);

	--ease: cubic-bezier(.16,.84,.32,1);
}
html[lang^="ar"] { --font-base: var(--font-ar); }

/* 2. RESET --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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; scroll-behavior: auto !important; }
}
body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--ink);
	background: var(--white);
	line-height: 1.7;
	font-size: 16.5px;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-inline-start: 1.25rem; }
button { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: fixed; top: -50px; inset-inline-start: 8px; z-index: 9999; background: var(--blue); color: #fff; padding: 10px 18px; border-radius: var(--r-sm); transition: top var(--ease); }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }

/* 3. TYPOGRAPHY ----------------------------------------------------------- */
h1, h2, h3, h4, .wp-block-heading { font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 0.55em; color: var(--navy-950); }
html[lang^="ar"] h1, html[lang^="ar"] h2, html[lang^="ar"] h3, html[lang^="ar"] .wp-block-heading { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.7rem); }
h3 { font-size: 1.28rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--slate-600); }
.lead { font-size: 1.2rem; color: var(--slate-600); max-width: 60ch; line-height: 1.75; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
	text-transform: uppercase; color: var(--blue); margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; }
html[lang^="ar"] .eyebrow { text-transform: none; letter-spacing: 0; }

/* 4. LAYOUT ---------------------------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: clamp(4.5rem, 8vw, 7.5rem); scroll-margin-top: var(--header-h); position: relative; }
.section-alt { background: var(--fog-50); }
.grid { display: grid; gap: var(--gap); }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.projects-grid { grid-template-columns: repeat(3, 1fr); }
.testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.section-head { max-width: 680px; margin: 0 auto 3.5rem; text-align: center; }
.section-title { margin-bottom: 0.4em; }
.section-sub { color: var(--slate-500); font-size: 1.08rem; margin: 0; }
.entry-content-narrow { max-width: 74ch; margin-inline: auto; }
.empty-state { text-align: center; color: var(--slate-500); padding: 2.2rem; border: 1.5px dashed var(--fog-300); border-radius: var(--r-md); }

/* 5. BUTTONS & TAGS ---------------------------------------------------------- */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 0.55em; justify-content: center;
	padding: 0.95em 1.75em; border-radius: var(--r-pill); font-weight: 700; font-size: 0.98rem;
	border: 1.5px solid transparent; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
	white-space: nowrap; position: relative;
}
.btn-primary, .is-style-fill .wp-block-button__link, button[type="submit"] {
	background: linear-gradient(135deg, var(--blue), var(--navy-700));
	color: #fff; box-shadow: var(--shadow-glow);
}
.btn-primary:hover, .is-style-fill .wp-block-button__link:hover, button[type="submit"]:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -10px rgba(59,110,246,0.5); }
.is-style-outline .wp-block-button__link { background: rgba(255,255,255,0.06); color: var(--white); border-color: rgba(255,255,255,0.35); backdrop-filter: blur(6px); }
.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,0.14); border-color: #fff; transform: translateY(-3px); }
.btn-sm { padding: 0.6em 1.3em; font-size: 0.86rem; }
.btn-lg { padding: 1.05em 2.2em; font-size: 1.04rem; }
.btn-whatsapp { background: #20b858; color: #fff; }
.btn-whatsapp:hover { background: #1a9c4a; transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(32,184,88,0.5); }
.btn-ghost { background: var(--fog-100); color: var(--navy-950); }
.btn-ghost:hover { background: var(--fog-200); transform: translateY(-2px); }
.header-cta { color: #fff !important; }

.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.35em 0.85em; border-radius: var(--r-pill); letter-spacing: 0.02em; }
.tag-demo { background: #fff4d6; color: #8a6100; }

/* 6. NAVBAR ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,0.78); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(20,30,60,0.06); transition: box-shadow 0.3s var(--ease); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; min-height: var(--header-h); }
.site-branding .custom-logo { max-height: 42px; width: auto; }
.site-branding .site-title { font-weight: 800; font-size: 1.35rem; color: var(--navy-950); letter-spacing: -0.01em; }
.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; align-items: center; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { font-weight: 600; font-size: 0.95rem; color: var(--slate-700); transition: color 0.2s var(--ease); position: relative; padding-block: 0.4rem; }
.nav-menu a::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 0; height: 2px; background: var(--blue); transition: width 0.25s var(--ease); border-radius: 2px; }
.nav-menu a:hover { color: var(--navy-950); }
.nav-menu a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.lang-switcher { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.85rem; }
.lang-switcher a { color: var(--slate-500); padding: 0.35em 0.7em; border-radius: var(--r-pill); transition: all 0.2s var(--ease); }
.lang-switcher a.is-active, .lang-switcher a[aria-current="page"] { color: var(--white); background: linear-gradient(135deg, var(--blue), var(--navy-700)); }
.lang-switcher a:not(.is-active):hover { color: var(--navy-950); background: var(--fog-100); }
.lang-sep { display: none; }
.menu-toggle { display: none; background: none; border: none; padding: 0.5rem; border-radius: var(--r-sm); }
.menu-toggle .icon { width: 24px; height: 24px; color: var(--navy-950); }
.menu-toggle .menu-close-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close-icon { display: block; }

/* 7. HERO -------------------------------------------------------------------- */
.section-hero {
	background: var(--navy-950);
	color: #fff; text-align: center; padding-block: clamp(6rem, 12vw, 10rem) clamp(5rem, 9vw, 8rem);
	position: relative; overflow: hidden; isolation: isolate;
}
.section-hero::before {
	content: ""; position: absolute; inset: -20%; z-index: -2; pointer-events: none;
	background:
		radial-gradient(680px 480px at 12% 8%, rgba(124,92,250,0.28), transparent 60%),
		radial-gradient(760px 560px at 88% 0%, rgba(59,110,246,0.55), transparent 55%),
		linear-gradient(180deg, var(--navy-950), var(--navy-900) 55%, var(--ink));
	animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-1.5%, 1%, 0) scale(1.04); } }
.section-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
	background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(ellipse 65% 55% at 50% 40%, black, transparent 75%);
}
.hero-eyebrow {
	display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.85rem; font-weight: 700;
	color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
	padding: 0.5em 1.1em; border-radius: var(--r-pill); margin-bottom: 1.75rem; backdrop-filter: blur(8px);
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px 2px rgba(34,211,238,0.8); }
.section-hero > * { max-width: 900px; padding-inline: 1.5rem; margin-inline: auto; position: relative; }
.hero-heading { max-width: 780px; color: #fff; background: linear-gradient(180deg, #ffffff, #cfd8f5); -webkit-background-clip: text; background-clip: text; }
.hero-eyebrow, .badge-strip { position: relative; }
.hero-text { max-width: 58ch; margin-inline: auto; color: rgba(255,255,255,0.72); font-size: 1.18rem; position: relative; line-height: 1.75; }
.hero-buttons { justify-content: center; margin-top: 2.4rem; position: relative; }
.hero-buttons.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* 8. BADGE STRIP / SECTION HEAD ------------------------------------------------ */
.badge-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.1rem; margin-top: 3rem; position: relative; }
.badge-strip span { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); padding: 0.55em 1.1em; border-radius: var(--r-pill); }

/* 9. CARDS / GRIDS ------------------------------------------------------------ */
.card { background: var(--white); border: 1px solid var(--fog-200); border-radius: var(--r-lg); padding: 2.1rem; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
	width: 58px; height: 58px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--blue), var(--navy-700)); color: #fff; margin-bottom: 1.3rem;
	box-shadow: 0 12px 24px -10px rgba(59,110,246,0.55);
}
.card-icon .icon { width: 26px; height: 26px; }
.card-title { margin-bottom: 0.5em; font-size: 1.2rem; }
.card-title a { color: inherit; }
.card-excerpt { font-size: 0.97rem; margin-bottom: 1rem; }
.card-link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; color: var(--blue); font-size: 0.92rem; }
.card-link .icon-sm { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.card-link:hover .icon-sm { transform: translateX(4px); }
html[lang^="ar"] .card-link:hover .icon-sm { transform: translateX(-4px) scaleX(-1); }
.card-meta { font-size: 0.86rem; color: var(--slate-500); margin: 0; }

.project-card { padding: 0; overflow: hidden; }
.project-thumb { display: block; position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy-950), var(--navy-700)); overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-thumb-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.28); }
.project-thumb .tag-demo { position: absolute; top: 14px; inset-inline-start: 14px; }
.card-body { padding: 1.7rem 1.8rem 1.9rem; }

.testimonial-card { position: relative; background: var(--fog-50); border-color: var(--fog-100); }
.quote-mark { font-size: 3.4rem; line-height: 1; color: var(--fog-300); font-family: Georgia, serif; margin-bottom: -0.6rem; background: linear-gradient(135deg, var(--blue), var(--navy-700)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0.5; }
.testimonial-text { margin: 0 0 1.3rem; font-style: normal; color: var(--navy-950); font-size: 1.02rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { display: block; font-size: 0.96rem; }
.testimonial-role { display: block; font-size: 0.82rem; color: var(--slate-500); }

.service-header-icon { width: 68px; height: 68px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--blue), var(--navy-700)); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 1.3rem; box-shadow: 0 14px 30px -10px rgba(59,110,246,0.5); }
.project-meta-line { color: var(--slate-500); font-size: 0.95rem; display: flex; gap: 0.5rem; justify-content: center; }
.project-hero-image { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 2.2rem; }

/* 10. WHY-US / PROCESS ------------------------------------------------------- */
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 900px; margin-inline: auto; }

.process-steps.wp-block-columns { flex-wrap: wrap; gap: 1.5rem !important; position: relative; }
.process-step {
	background: var(--white); border: 1px solid var(--fog-200); border-radius: var(--r-md); padding: 1.9rem 1.7rem;
	flex: 1 1 220px; position: relative; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.process-number {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
	font-size: 1rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy-700));
	margin-bottom: 0.9rem;
}

/* 11. FAQ ----------------------------------------------------------------------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 0.85rem; }
.faq-item { background: var(--white); border: 1px solid var(--fog-200); border-radius: var(--r-md); padding: 1.3rem 1.6rem; transition: border-color 0.2s var(--ease); }
.faq-item[open] { border-color: var(--blue-light); }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+"; font-size: 1.3rem; color: #fff; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
	background: linear-gradient(135deg, var(--blue), var(--navy-700)); display: flex; align-items: center; justify-content: center; transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { content: "-"; font-size: 1.6rem; }
.faq-answer { padding-top: 1rem; color: var(--slate-600); }

/* 12. CONTACT ------------------------------------------------------------------- */
.contact-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0; max-width: 1080px; margin-inline: auto; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-info-panel { background: var(--navy-950); color: #fff; padding: 3rem 2.6rem; position: relative; overflow: hidden; }
.contact-info-panel::before { content:""; position:absolute; inset:-30%; background: radial-gradient(500px 400px at 20% 0%, rgba(59,110,246,0.35), transparent 60%); pointer-events:none; }
.contact-info-panel h3 { color: #fff; position: relative; }
.contact-info-panel p { color: rgba(255,255,255,0.68); position: relative; }
.contact-info-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.1rem; position: relative; }
.contact-info-list li { display: flex; align-items: center; gap: 0.8rem; font-size: 0.96rem; }
.contact-info-list a { color: rgba(255,255,255,0.88); }
.contact-info-list .icon { color: var(--cyan); flex-shrink: 0; width: 20px; height: 20px; }
.contact-info-panel .btn-whatsapp { margin-top: 1.8rem; position: relative; }
.contact-form-panel { background: var(--white); padding: 3rem 2.6rem; }
.contact-form-wrap { max-width: none; }
.form-notice { padding: 1rem 1.2rem; border-radius: var(--r-sm); margin-bottom: 1.5rem; font-weight: 600; }
.form-notice-success { background: #e7f8ee; color: var(--success); }
.form-notice-error { background: #fdeceb; color: var(--error); }
.contact-form { display: grid; gap: 1.15rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-weight: 700; font-size: 0.88rem; color: var(--navy-950); }
.form-field .req { color: var(--error); }
.form-field input, .form-field select, .form-field textarea {
	border: 1.5px solid var(--fog-300); border-radius: var(--r-sm); padding: 0.8em 1em;
	font: inherit; background: var(--fog-50); color: var(--navy-950); width: 100%;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
	border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,110,246,0.14); outline: none; background: var(--white);
}
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.contact-form button[type="submit"] { justify-self: start; margin-top: 0.3rem; }

/* 13. FOOTER ------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); margin-top: 0; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-block: 4.5rem; }
.footer-col p { color: rgba(255,255,255,0.55); }
.footer-logo .custom-logo { max-height: 38px; filter: brightness(0) invert(1); margin-bottom: 1.1rem; }
.footer-col .site-title { color: #fff; font-size: 1.25rem; font-weight: 800; display: block; margin-bottom: 0.9rem; }
.footer-heading { color: #fff; font-size: 0.98rem; margin-bottom: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; }
html[lang^="ar"] .footer-heading { text-transform: none; letter-spacing: 0; }
.footer-menu, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.footer-menu a, .footer-contact a, .footer-contact span { color: rgba(255,255,255,0.6); font-size: 0.94rem; transition: color 0.2s var(--ease); }
.footer-menu a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 0.6rem; }
.footer-contact .icon { color: var(--blue-light); flex-shrink: 0; }
.footer-hours { color: rgba(255,255,255,0.42); font-size: 0.85rem; }
.social-links { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; color: #fff; transition: all 0.2s var(--ease); }
.social-links a:hover { background: linear-gradient(135deg, var(--blue), var(--navy-700)); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom-inner { padding-block: 1.4rem; font-size: 0.85rem; text-align: center; color: rgba(255,255,255,0.45); }

.whatsapp-float {
	position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 600;
	width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 40px -10px rgba(37,211,102,0.6);
	transition: transform 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float .icon-lg { width: 28px; height: 28px; }

/* 14. GUTENBERG CORE BLOCK COMPAT -------------------------------------------- */
/* Defensive layout rules for core blocks - the theme does NOT rely on
   wp-block-library's own CSS for these, so columns/buttons still lay
   out correctly even if a caching/minifier plugin strips or reorders
   core block styles. */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 2em; margin-bottom: 1.75em; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75em; list-style: none; padding: 0; }
.wp-block-button { display: inline-flex; }
.wp-block-button__link { display: inline-flex; }
.wp-block-list { margin: 0 0 1.5em; }

.entry-content, .front-page-content .entry-content { padding-block: 0; }
.entry-content > * { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.entry-content .section, .entry-content .cta-band, .entry-content .section-hero { max-width: none; padding-inline: 0; }
.entry-content .section > *, .entry-content .cta-band > * { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.entry-content .section-hero > * { max-width: 900px; padding-inline: 1.5rem; }
.cta-band {
	background: var(--navy-950); position: relative; overflow: hidden; isolation: isolate;
	color: #fff; text-align: center; border-radius: var(--r-lg); padding-block: 4rem !important; margin-block: 1rem;
}
.cta-band::before { content:""; position:absolute; inset:-40%; z-index:-1; background: radial-gradient(600px 400px at 15% 20%, rgba(124,92,250,0.22), transparent 60%), radial-gradient(650px 450px at 85% 100%, rgba(59,110,246,0.5), transparent 60%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.78); }
.check-list { list-style: none; padding: 0; display: grid; gap: 0.9rem; max-width: 640px; margin-inline: auto; text-align: start; }
.check-list li { position: relative; padding-inline-start: 2.1rem; color: var(--slate-600); }
html[lang^="ar"] .check-list li { padding-inline-start: 0; padding-inline-end: 2.1rem; }
.check-list li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%;
	background-color: var(--blue);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E");
	background-size: 12px; background-repeat: no-repeat; background-position: center;
}
html[lang^="ar"] .check-list li::before { inset-inline-start: auto; inset-inline-end: 0; }

/* PAGE / POST GENERIC -------------------------------------------------------- */
.page-header { padding-block: 3rem 1.8rem; text-align: center; }
.page-header .page-title { margin-bottom: 0.2em; }
.breadcrumb { display: flex; gap: 0.5rem; justify-content: center; font-size: 0.85rem; color: var(--slate-500); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--slate-500); }
.breadcrumb a:hover { color: var(--blue); }
.content-grid { display: grid; grid-template-columns: 2.3fr 1fr; gap: 3rem; align-items: start; }
.post-card { border-bottom: 1px solid var(--fog-200); padding-block: 1.8rem; }
.post-thumb { display: block; border-radius: var(--r-md); overflow: hidden; margin-bottom: 1rem; aspect-ratio: 16/9; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.error-404 { text-align: center; padding-block: 7rem; }
.error-404 .btn { margin-top: 1.5rem; }

/* 15. RESPONSIVE -------------------------------------------------------------- */
@media (max-width: 1024px) {
	.services-grid, .projects-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-col:first-child { grid-column: 1 / -1; }
	.contact-split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.content-grid { grid-template-columns: 1fr; }
	.check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.primary-nav {
		position: fixed; inset: var(--header-h) 0 0 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); padding: 1.5rem;
		transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
		overflow-y: auto; border-top: 1px solid var(--fog-200);
	}
	.primary-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
	.nav-menu { flex-direction: column; align-items: flex-start; gap: 0.2rem; width: 100%; }
	.nav-menu a { display: block; padding: 1rem 0.2rem; width: 100%; border-bottom: 1px solid var(--fog-200); }
	.nav-menu a::after { display: none; }
	.menu-toggle { display: inline-flex; }
	.header-cta { display: none; }
	.services-grid, .projects-grid, .testimonials-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 2.6rem; text-align: center; }
	.footer-col p { margin-inline: auto; }
	.social-links { justify-content: center; }
	.footer-contact li { justify-content: center; }
	.form-row-2 { grid-template-columns: 1fr; }
	.contact-info-panel, .contact-form-panel { padding: 2.2rem 1.6rem; }
}
@media (max-width: 480px) {
	.section { padding-block: 3rem; }
	.whatsapp-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
	.card { padding: 1.5rem; }
	.badge-strip span { font-size: 0.78rem; padding: 0.5em 0.9em; }
}
