/*
Theme Name: Foly Brand
Theme URI: https://blog.mfouly.tech
Description: هوية "محمد الفولي للخبرة المالية" — كحلي وذهبي، خط IBM Plex Sans Arabic، عربي RTL أولًا. ثيم خفيف مبني على Block Theme.
Author: Mohamed Foly
Version: 1.1
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
License: Proprietary
Text Domain: foly-brand
*/

/* ============ أساسيات ============ */
html { scroll-behavior: smooth; }

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection { background: #C9A24A; color: #0B2A4A; }

/* ============ الهيدر ============ */
.foly-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(247, 243, 236, 0.94);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(11, 42, 74, 0.08);
	padding-top: 14px;
	padding-bottom: 14px;
}

.foly-monogram {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(135deg, #C9A24A, #E6C776);
	color: #0B2A4A;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: 0.5px;
	direction: ltr;
	box-shadow: 0 2px 10px rgba(201, 162, 74, 0.35);
}

.foly-header .wp-block-navigation a:hover {
	color: #C9A24A;
}

.foly-header-cta a {
	display: inline-block;
	background: linear-gradient(135deg, #C9A24A, #E6C776);
	color: #0B2A4A !important;
	padding: 10px 22px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.foly-header-cta a:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(201, 162, 74, 0.4);
}

/* ============ الهيرو ============ */
.foly-hero {
	padding-top: 76px !important;
	padding-bottom: 76px !important;
	position: relative;
	overflow: hidden;
}

.foly-eyebrow {
	color: #E6C776 !important;
	font-weight: 600;
	font-size: 17px !important;
	letter-spacing: 0.5px;
	margin-bottom: 10px !important;
}

.foly-gold {
	color: #E6C776;
	font-style: normal;
}

.foly-lead {
	color: rgba(247, 243, 236, 0.88) !important;
	font-size: 21px !important;
	line-height: 2 !important;
	max-width: 640px;
}

.foly-chip {
	display: inline-block;
	border: 1px solid rgba(230, 199, 118, 0.45);
	color: #E6C776 !important;
	border-radius: 999px;
	padding: 7px 18px;
	font-size: 15px !important;
	font-weight: 500;
	background: rgba(230, 199, 118, 0.07);
}

/* ============ كروت ============ */
.foly-card {
	background: #FFFFFF;
	border: 1px solid rgba(11, 42, 74, 0.07);
	border-radius: 18px;
	padding: 30px 28px !important;
	box-shadow: 0 3px 18px rgba(11, 42, 74, 0.05);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.foly-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(11, 42, 74, 0.1);
}

.foly-num {
	color: #C9A24A;
	font-weight: 700;
	font-size: 30px !important;
	line-height: 1 !important;
	margin-bottom: 6px !important;
}

.foly-band {
	padding-top: 68px !important;
	padding-bottom: 68px !important;
}

/* ============ شريط CTA والهاتف ============ */
.foly-phone-big a {
	color: #E6C776 !important;
	font-weight: 700;
	font-size: clamp(27px, 4vw, 38px) !important;
	white-space: nowrap;
	text-decoration: none !important;
	letter-spacing: 0.5px;
}

.foly-phone-big a:hover { color: #ffffff !important; }

.foly-cta-box {
	border: 1px solid rgba(230, 199, 118, 0.35) !important;
}

/* ============ الفوتر ============ */
.foly-footer {
	padding-top: 60px !important;
	padding-bottom: 36px !important;
	margin-top: 0;
}

.foly-footer a {
	color: #E6C776 !important;
	text-decoration: none !important;
}

.foly-footer a:hover { color: #ffffff !important; }

.foly-footer .wp-block-heading,
.foly-footer h4 {
	color: #E6C776 !important;
	font-size: 19px !important;
	margin-bottom: 12px !important;
}

.foly-footer .foly-muted {
	color: rgba(247, 243, 236, 0.55) !important;
	font-size: 14px !important;
}

.foly-footer .foly-brand-name {
	color: #F7F3EC !important;
	font-size: 20px !important;
	font-weight: 700;
}

/* ============ المدونة ============ */
/* توسيع شبكة المقالات لعرض واسع (post-template لا يستجيب لـ alignwide) */
.wp-block-query .wp-block-post-template {
	max-width: min(1140px, 100%);
	margin-inline: auto;
}

.foly-post-date {
	color: #6B7A8C;
	font-size: 15px !important;
}

.foly-card .wp-block-post-title a { text-decoration: none !important; }

.foly-card .wp-block-post-excerpt__more-text a { font-weight: 600; }

/* الموبايل */
@media (max-width: 600px) {
	.foly-hero { padding-top: 52px !important; padding-bottom: 52px !important; }
	.foly-lead { font-size: 18px !important; }
	.foly-card { padding: 24px 20px !important; }
}
