/* YACI frontend component styles — logical properties throughout so RTL
   Arabic mirrors correctly without a duplicate spacing stylesheet. */

.lang-ar, .lang-ar .wp-block-heading, .lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar h4 {
	font-family: var(--wp--preset--font-family--arabic);
}

/* Trilingual content baked directly into patterns: each language's copy is
   wrapped in .yaci-i18n-ar / .yaci-i18n-en / .yaci-i18n-de and only the one
   matching the active Polylang language (via the body class set in
   inc/rtl-language-support.php) is shown. No JS needed, no dependency on a
   translated Page existing — content switches the instant Polylang's
   language switcher changes the body class. */
.yaci-i18n-ar, .yaci-i18n-en, .yaci-i18n-de { display: none !important; }
body.lang-ar .yaci-i18n-ar,
body.lang-en .yaci-i18n-en,
body.lang-de .yaci-i18n-de { display: block !important; }
body.lang-ar .yaci-i18n-inline.yaci-i18n-ar,
body.lang-en .yaci-i18n-inline.yaci-i18n-en,
body.lang-de .yaci-i18n-inline.yaci-i18n-de { display: inline-flex !important; }
/* Modifier for blocks whose own internal layout requires flex, not block —
   the Navigation block in particular renders horizontally via display:flex;
   forcing plain "block" on it (like every other section) breaks that and
   stacks the menu items vertically. */
body.lang-ar .yaci-i18n-flex.yaci-i18n-ar,
body.lang-en .yaci-i18n-flex.yaci-i18n-en,
body.lang-de .yaci-i18n-flex.yaci-i18n-de { display: flex !important; }
body:not(.lang-ar):not(.lang-en):not(.lang-de) .yaci-i18n-flex.yaci-i18n-en { display: flex !important; }
/* Fallback: if Polylang isn't active yet, default to English so the site
   never shows a fully blank section. */
body:not(.lang-ar):not(.lang-en):not(.lang-de) .yaci-i18n-en { display: block !important; }
body:not(.lang-ar):not(.lang-en):not(.lang-de) .yaci-i18n-inline.yaci-i18n-en { display: inline-flex !important; }

/* Sticky header, per spec: stays pinned, gains a shadow once the page scrolls
   (shadow added via .is-scrolled from frontend.js, no layout shift). */
.yaci-sticky-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--white);
	transition: box-shadow 0.2s ease;
}
.yaci-sticky-header.is-scrolled {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.yaci-header-actions {
	gap: 1rem;
	position: relative;
}

.yaci-donate-button .wp-block-button__link {
	padding-inline: 1.25rem;
}
.yaci-contact-button .wp-block-button__link {
	border-radius: 999px;
}

.yaci-program-card,
.yaci-testimonial-card {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.yaci-program-card:hover,
.yaci-testimonial-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.yaci-stat .yaci-counter-value {
	font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
	.yaci-program-card,
	.yaci-testimonial-card {
		transition: none;
	}
}

.yaci-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
	text-underline-offset: 2px;
}
