/* أنماط مخصصة لقالب كنزي — تكميل theme.json */

/* تثبيت اتجاهات الخطوط العربية */
html[dir="rtl"] body {
	font-family: 'IBM Plex Sans Arabic', 'Cairo', system-ui, sans-serif;
}

/* أقسام داكنة — فئات مساعدة للأنماط */
.kinzy-dark {
	background-color: #1A0F3D;
	color: #FAF9FC;
}

.kinzy-dark .wp-block-heading,
.kinzy-dark h1,
.kinzy-dark h2,
.kinzy-dark h3 {
	color: #FFFFFF;
}

.kinzy-dark .kinzy-muted {
	color: #C49CB5;
}

/* بطاقات داكنة */
.kinzy-card-dark {
	background: #231453;
	border: 1px solid rgba(201, 162, 75, 0.18);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(10, 5, 30, 0.35);
}

/* حد ذهبي مساند خافت لعناوين الأقسام */
.kinzy-section-eyebrow {
	display: inline-block;
	color: #C9A24B;
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	margin-bottom: 0.5rem;
}

/* أزرار Hero الثانوية (حدودية) */
.kinzy-btn-ghost .wp-block-button__link,
.wp-block-button.is-style-kinzy-ghost .wp-block-button__link {
	background: transparent;
	border: 2px solid #45A1D7;
	color: #FFFFFF;
}

.wp-block-button.is-style-kinzy-ghost .wp-block-button__link:hover {
	background: #45A1D7;
	color: #1A0F3D;
}

/* تركيز واضح لإتاحة الوصول (WCAG 2.2) */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
input:focus-visible {
	outline: 3px solid #45A1D7;
	outline-offset: 2px;
}

/* شريط شركاء النجاح */
.kinzy-partners-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem 3rem;
}

.kinzy-partners-strip img {
	max-height: 64px;
	width: auto;
	filter: none;
	opacity: 1;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

.kinzy-partners-strip img:hover {
	filter: none;
	opacity: 1;
}

/* أغلفة أحدث الإصدارات */
.kinzy-books-row {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.5rem;
}

@media (max-width: 782px) {
	.kinzy-books-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.kinzy-book-card img {
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(10, 5, 30, 0.45);
	width: 100%;
	height: auto;
}

/* الهيدر الثابت */
.kinzy-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #1A0F3D;
	border-bottom: 1px solid rgba(201, 162, 75, 0.22);
}

/* تذييل */
.kinzy-footer {
	background: #1A0F3D;
	color: #C49CB5;
	border-top: 1px solid rgba(201, 162, 75, 0.22);
}

.kinzy-footer a {
	color: #9CC9EE;
}

.kinzy-footer a:hover {
	color: #FFFFFF;
}

/* ===== اللمسة الفنية: الذهب الملكي + الحركة الناعمة ===== */

/* ظهور ناعم عند فتح الصفحة */
@keyframes kinzy-rise {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}
.kinzy-rise {
	opacity: 0;
	animation: kinzy-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.kinzy-rise-1 { animation-delay: 0.10s; }
.kinzy-rise-2 { animation-delay: 0.22s; }
.kinzy-rise-3 { animation-delay: 0.34s; }
@media (prefers-reduced-motion: reduce) {
	.kinzy-rise { opacity: 1; animation: none; }
}

/* زر واتساب عائم */
.kinzy-wa-float {
	position: fixed;
	bottom: 26px;
	left: 26px;
	z-index: 9999;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25D366;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.kinzy-wa-float:hover {
	transform: scale(1.08);
	box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}
.kinzy-wa-float svg {
	width: 30px;
	height: 30px;
	fill: #FFFFFF;
}

/* إطار ذهبي للصور */
.kinzy-frame img {
	border: 1px solid rgba(201, 162, 75, 0.45);
	border-radius: 6px;
	box-shadow: 0 24px 60px rgba(5, 2, 20, 0.55);
}

/* فاصل ذهبي رفيع */
.kinzy-gold-rule {
	width: 72px;
	height: 2px;
	background: linear-gradient(90deg, #C9A24B, rgba(201, 162, 75, 0.15));
	border: none;
	margin: 1.25rem 0;
}

/* خط إنجليزي صغير أنيق */
.kinzy-eyebrow-en {
	color: #C9A24B;
	font-family: 'Inter', sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.32em;
	text-transform: uppercase;
}

/* الأقسام الفاتحة الكريمية */
.kinzy-light {
	background: #F5F1E8;
	color: #2A2440;
}
.kinzy-light .wp-block-heading,
.kinzy-light h2,
.kinzy-light h3 {
	color: #1A0F3D;
}

/* بطاقات الخدمات الفاتحة */
.kinzy-card-light {
	background: #FFFFFF;
	border: 1px solid rgba(26, 15, 61, 0.08);
	border-top: 3px solid #C9A24B;
	border-radius: 14px;
	box-shadow: 0 14px 40px rgba(26, 15, 61, 0.10);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kinzy-card-light:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 55px rgba(26, 15, 61, 0.16);
}
.kinzy-card-light img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}
.kinzy-card-light .kinzy-card-body {
	padding: 1.75rem 1.75rem 2rem;
}
.kinzy-card-light h3 {
	margin-top: 0;
}
.kinzy-gold-link a {
	color: #A8842F;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgba(201, 162, 75, 0.5);
	padding-bottom: 2px;
	transition: color 0.2s ease;
}
.kinzy-gold-link a:hover {
	color: #1A0F3D;
}

/* شريط الاقتباس */
.kinzy-quote-band {
	background: linear-gradient(135deg, #120A2E 0%, #2D1768 55%, #1A0F3D 100%);
	color: #EDE9F8;
}
.kinzy-quote-band .kinzy-quote-mark {
	color: #C9A24B;
	font-size: 5rem;
	font-family: Georgia, serif;
	line-height: 0.5;
	display: block;
	margin-bottom: 1.5rem;
}
.kinzy-quote-band blockquote {
	border: none;
	margin: 0;
	padding: 0;
	font-size: clamp(1.4rem, 3vw, 2.1rem);
	font-weight: 600;
	line-height: 1.7;
	color: #FFFFFF;
}
.kinzy-quote-band cite {
	color: #C9A24B;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.06em;
}

/* تحسينات الفوتر الكتالوجي */
.kinzy-footer h4 {
	color: #C9A24B;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin-bottom: 1.1rem;
}
.kinzy-footer ul.kinzy-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}
.kinzy-footer ul.kinzy-footer-links li {
	margin-bottom: 0.55rem;
}
.kinzy-footer ul.kinzy-footer-links a {
	color: #B9A8D9;
	text-decoration: none;
	font-size: 0.95rem;
}
.kinzy-footer ul.kinzy-footer-links a:hover {
	color: #C9A24B;
}
.kinzy-footer .kinzy-socials a {
	display: inline-block;
	margin-inline-end: 0.7rem;
	font-size: 0.85rem;
	color: #9CC9EE;
	text-decoration: none;
}
.kinzy-footer .kinzy-socials a:hover {
	color: #C9A24B;
}
.kinzy-footer-bottom {
	border-top: 1px solid rgba(201, 162, 75, 0.18);
	padding-top: 1.25rem;
	font-size: 0.82rem;
	color: #8E7FB3;
}
.kinzy-footer-bottom a {
	color: #B9A8D9;
	text-decoration: none;
}
.kinzy-footer-bottom a:hover {
	color: #C9A24B;
}
.kinzy-footer .kinzy-fineprint {
	font-size: 0.78rem;
	color: #7C6EA6;
	line-height: 1.8;
}

/* إزالة الفجوة البيضاء بين أجزاء القالب (blockGap) */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* Header navigation: readable single desktop row, native mobile menu. */
.kinzy-header > .wp-block-group {
  padding-inline: 1rem !important;
}
.kinzy-header > .wp-block-group > .wp-block-group,
.kinzy-header > .wp-block-group > .wp-block-group > .wp-block-group {
  gap: 0.75rem;
}
.kinzy-header .wp-block-site-logo {
  flex: 0 0 auto;
}
.kinzy-header .custom-logo {
  width: 64px;
  height: auto;
}
.kinzy-header .wp-block-site-title {
  font-size: 1rem !important;
  line-height: 1.4;
  white-space: nowrap;
}
.kinzy-header .wp-block-site-title a {
  color: #FFFFFF;
}
.kinzy-header .wp-block-navigation {
  font-size: 0.875rem;
  font-weight: 700;
}
.kinzy-header .wp-block-navigation-item__content {
  white-space: nowrap;
}
.kinzy-header .wp-block-button__link {
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: nowrap;
}
.kinzy-header a[aria-label="واتساب"] {
  flex: 0 0 40px;
  margin-inline-end: 0 !important;
}
@media (min-width: 900px) {
  .kinzy-header > .wp-block-group > .wp-block-group > .wp-block-group {
    flex: 0 0 auto;
  }
  .kinzy-header .wp-block-navigation__container {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }
}
@media (max-width: 899px) {
  .kinzy-header > .wp-block-group > .wp-block-group {
    flex-wrap: wrap;
  }
  .kinzy-header .custom-logo { width: 48px; }
  .kinzy-header .wp-block-site-title { font-size: 0.875rem !important; }
  .kinzy-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }
  .kinzy-header .wp-block-navigation__responsive-container-open {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .kinzy-header .wp-block-navigation__responsive-container.is-menu-open {
    background: #1A0F3D;
    color: #FFFFFF;
  }
  .kinzy-header .is-menu-open .wp-block-navigation-item__content {
    font-size: 1rem;
    padding-block: 0.5rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
