/*
Theme Name: أبو مازان | سداد القروض
Theme URI: https://lovable.app
Author: Abu Mazan
Author URI: https://lovable.app
Description: قالب عربي (RTL) احترافي لخدمات تسديد القروض البنكية وسداد المتعثرات ورفع إيقاف الخدمات في الرياض. ألوان كحلي وذهبي، أزرار اتصال وواتساب ثابتة على يمين الشاشة، وكل النصوص وأرقام التواصل قابلة للتعديل من لوحة التحكم.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abu-mazan
Tags: right-to-left, one-column, custom-colors, custom-menu, custom-logo, featured-images, translation-ready
*/

*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	--am-bg: #fcfaf6;
	--am-fg: #0d1b2d;
	--am-card: #ffffff;
	--am-primary: #0e294a;
	--am-primary-fg: #fbf8f1;
	--am-secondary: #f5eee0;
	--am-muted: #525f6f;
	--am-accent: #f4e6ca;
	--am-gold: #dca744;
	--am-gold-fg: #091628;
	--am-wa: #2eb45c;
	--am-border: #e4ddcf;
	--am-hero: radial-gradient(ellipse at top left, #1d4371 0%, #0e294a 62%, #0e294a 100%);
	--am-shadow-gold: 0 12px 30px -10px rgba(220, 167, 68, 0.55);
	--am-shadow-card: 0 10px 30px -15px rgba(14, 41, 74, 0.35);
	--am-font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
	--am-display: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
}

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

body {
	margin: 0;
	background: var(--am-bg);
	color: var(--am-fg);
	font-family: var(--am-font);
	font-size: 16px;
}

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

h1, h2, h3, h4 {
	font-family: var(--am-display);
	line-height: 1.3;
}

a {
	color: var(--am-primary);
}

.am-wrap {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- header ---------- */

.am-head {
	background: var(--am-primary);
	color: var(--am-primary-fg);
}

.am-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
}

.am-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--am-display);
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
}

.am-mark {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--am-gold);
	color: var(--am-gold-fg);
	font-weight: 700;
}

.am-brand .custom-logo {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	object-fit: cover;
}

.am-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.am-menu a {
	color: var(--am-primary-fg);
	text-decoration: none;
	opacity: 0.85;
}

.am-menu a:hover {
	opacity: 1;
	color: var(--am-gold);
}

.am-nav-phone {
	font-weight: 700;
	color: var(--am-gold);
	text-decoration: none;
	direction: ltr;
}

/* ---------- hero ---------- */

.am-hero {
	background: var(--am-hero);
	color: var(--am-primary-fg);
}

.am-hero-in {
	padding: 54px 0 100px;
}

.am-badge {
	display: inline-block;
	border: 1px solid rgba(220, 167, 68, 0.45);
	color: var(--am-gold);
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 14px;
}

.am-h1 {
	font-size: clamp(30px, 5vw, 58px);
	font-weight: 700;
	line-height: 1.18;
	max-width: 820px;
	margin: 22px 0 0;
}

.am-hl {
	color: var(--am-gold);
}

.am-lead {
	max-width: 640px;
	font-size: 18px;
	line-height: 1.9;
	opacity: 0.82;
	margin: 22px 0 0;
}

.am-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 38px;
}

.am-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 12px;
	padding: 14px 24px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.am-btn:hover {
	transform: translateY(-2px) scale(1.02);
}

.am-btn-gold {
	background: var(--am-gold);
	color: var(--am-gold-fg);
	box-shadow: var(--am-shadow-gold);
}

.am-btn-wa {
	background: var(--am-wa);
	color: #fff;
}

.am-btn .am-ico {
	width: 20px;
	height: 20px;
}

/* ---------- services ---------- */

.am-services {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-top: -52px;
}

.am-card {
	background: var(--am-card);
	border: 1px solid var(--am-border);
	border-radius: 18px;
	padding: 24px;
	box-shadow: var(--am-shadow-card);
	transition: transform 0.18s ease;
}

.am-card:hover {
	transform: translateY(-4px);
}

.am-ico-box {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--am-accent);
	color: var(--am-primary);
}

.am-ico-box .am-ico {
	width: 24px;
	height: 24px;
}

.am-card h3 {
	font-size: 18px;
	margin: 16px 0 0;
}

.am-card p {
	font-size: 14px;
	line-height: 1.9;
	color: var(--am-muted);
	margin: 8px 0 0;
}

/* ---------- sections ---------- */

.am-section {
	padding: 72px 0;
}

.am-h2 {
	font-size: clamp(24px, 3.4vw, 32px);
	text-align: center;
	margin: 0;
}

.am-why {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-top: 36px;
}

.am-why-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	background: var(--am-secondary);
	border-radius: 16px;
	padding: 24px;
	text-align: center;
	font-weight: 700;
}

.am-why-item .am-ico {
	width: 30px;
	height: 30px;
	color: var(--am-gold);
}

.am-band {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	background: var(--am-hero);
	color: var(--am-primary-fg);
	border-radius: 26px;
	padding: 40px;
}

.am-band h2 {
	font-size: 28px;
	margin: 0;
}

.am-band p {
	opacity: 0.82;
	margin: 8px 0 0;
}

/* ---------- footer + floating buttons ---------- */

.am-foot {
	border-top: 1px solid var(--am-border);
	padding: 26px 0;
	text-align: center;
	font-size: 14px;
	color: var(--am-muted);
}

.am-dock {
	position: fixed;
	bottom: 24px;
	right: 20px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.am-fab {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
	box-shadow: var(--am-shadow-card);
	transition: transform 0.18s ease;
}

.am-fab:hover {
	transform: scale(1.08);
}

.am-fab .am-ico {
	width: 26px;
	height: 26px;
}

.am-fab-gold {
	background: var(--am-gold);
	color: var(--am-gold-fg);
	box-shadow: var(--am-shadow-gold);
}

.am-fab-wa {
	background: var(--am-wa);
}

/* ---------- inner pages + blog ---------- */

.am-page-head {
	background: var(--am-primary);
	color: var(--am-primary-fg);
	padding: 34px 0;
}

.am-page-head h1 {
	font-size: 30px;
	margin: 0;
}

.am-archive {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 36px 0;
}

.am-post {
	background: var(--am-card);
	border: 1px solid var(--am-border);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--am-shadow-card);
}

.am-post a {
	color: inherit;
	text-decoration: none;
}

.am-post img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.am-post-in {
	padding: 20px;
}

.am-post h2 {
	font-size: 20px;
	margin: 0;
}

.am-meta {
	font-size: 13px;
	color: var(--am-muted);
	margin: 0 0 8px;
}

.am-prose {
	max-width: 760px;
	margin: 0 auto;
	line-height: 2;
	padding: 40px 0;
}

.am-prose h2, .am-prose h3 {
	margin: 28px 0 10px;
}

.am-prose p {
	margin: 0 0 16px;
}

.am-prose img {
	border-radius: 12px;
}

.am-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 32px 0;
}

.am-pager a, .am-pager .current {
	display: inline-block;
	border: 1px solid var(--am-border);
	border-radius: 10px;
	padding: 8px 14px;
	text-decoration: none;
	background: var(--am-card);
}

.am-pager .current {
	background: var(--am-primary);
	color: var(--am-primary-fg);
	border-color: var(--am-primary);
}

.am-prose input[type="text"],
.am-prose input[type="email"],
.am-prose input[type="url"],
.am-prose textarea {
	width: 100%;
	border: 1px solid var(--am-border);
	border-radius: 10px;
	padding: 10px 12px;
	font: inherit;
	background: #fff;
}

.am-prose input[type="submit"] {
	background: var(--am-primary);
	color: var(--am-primary-fg);
	border: 0;
	border-radius: 10px;
	padding: 12px 22px;
	font-weight: 700;
	cursor: pointer;
}

/* ---------- helpers ---------- */

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

.skip-link {
	position: absolute;
	top: -100px;
	right: 10px;
	z-index: 1000;
	background: var(--am-primary);
	color: var(--am-primary-fg);
	padding: 10px 16px;
	border-radius: 0 0 10px 10px;
	text-decoration: none;
}

.skip-link:focus {
	top: 0;
}

.am-empty {
	text-align: center;
	padding: 60px 0;
	color: var(--am-muted);
}

/* ---------- responsive ---------- */

@media (min-width: 640px) {
	.am-services {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	.am-why {
		grid-template-columns: repeat(4, 1fr);
	}

	.am-archive {
		grid-template-columns: repeat(2, 1fr);
	}

	.am-band {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

@media (min-width: 1024px) {
	.am-services {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 600px) {
	.am-hero-in {
		padding: 40px 0 80px;
	}

	.am-lead {
		font-size: 16px;
	}

	.am-band {
		padding: 26px;
	}

	.am-dock {
		bottom: 16px;
		right: 14px;
		gap: 10px;
	}

	.am-fab {
		width: 46px;
		height: 46px;
	}

	.am-fab .am-ico {
		width: 22px;
		height: 22px;
	}
}
