/*
Theme Name: ProCare
Theme URI: https://procare.al-modather.com/
Author: ProCare
Description: ثيم بلوك مخصص لبرو كير للتمريض المنزلي — مبني على تصميم Figma، يدعم العربية (RTL) وقابل للتعديل بالكامل من محرر الموقع.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: procare
*/

/* ---------- Base ---------- */
:root {
	--pc-primary: var(--wp--preset--color--primary, #8e1728);
	--pc-primary-dark: var(--wp--preset--color--primary-dark, #741222);
	--pc-navy: var(--wp--preset--color--navy, #25283c);
	--pc-beige: var(--wp--preset--color--beige, #f8f4f1);
	--pc-muted: var(--wp--preset--color--muted, #5b5e6d);
	--pc-border: var(--wp--preset--color--border, #ece6e2);
	--pc-rose: var(--wp--preset--color--rose, #f6e8ea);
	--pc-radius: 20px;
	--pc-shadow: 0 18px 40px -18px rgba(37, 40, 60, .22);
	--pc-shadow-sm: 0 6px 18px -8px rgba(37, 40, 60, .18);
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
.pc-main { overflow-x: clip; }
.wp-site-blocks > *, .pc-main > * { margin-block-start: 0 !important; }
.pc-main :where(h1, h2, h3, p) { margin-block: 0; }
img { max-width: 100%; height: auto; }
:target { scroll-margin-top: 90px; }

.pc-container { max-width: 1240px; margin-inline: auto !important; width: 100%; box-sizing: border-box; }
.pc-section { padding: 96px 24px; box-sizing: border-box; }

/* Eyebrow: "—— text" in maroon */
.pc-eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	color: var(--pc-primary); font-size: 14px; font-weight: 700; line-height: 1.5;
}
.pc-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.pc-lead { color: var(--pc-muted); font-size: 16px; line-height: 1.9; }

.pc-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 48px; }
.pc-head__title { max-width: 560px; }
.pc-head.is-center { align-items: center; text-align: center; }
.pc-head.is-center .pc-eyebrow::before { display: none; }

.pc-num { color: var(--pc-primary); font-family: var(--wp--preset--font-family--heading); font-size: 13px; font-weight: 600; }

.pc-icon-circle {
	display: inline-grid; place-items: center; flex: none;
	width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid var(--pc-border); background: #fff; color: var(--pc-primary);
	font-size: 18px;
}

/* ---------- Buttons ---------- */
.wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s; box-shadow: 0 10px 22px -10px rgba(142, 23, 40, .55); }
.wp-block-button__link:hover { transform: translateY(-1px); }
.pc-btn-arrow .wp-block-button__link::before,
.pc-btn-phone .wp-block-button__link::before {
	content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
	-webkit-mask: var(--pc-i) center/contain no-repeat; mask: var(--pc-i) center/contain no-repeat;
}
.pc-btn-arrow .wp-block-button__link::before { --pc-i: var(--pc-i-arrow); }
.pc-btn-phone .wp-block-button__link::before { --pc-i: var(--pc-i-phone); }

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: #fff; color: var(--pc-navy); border: 1px solid var(--pc-border);
	box-shadow: none; padding: 12px 22px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--pc-primary); color: var(--pc-primary); }
.pc-btn-light > .wp-block-button__link { background: #fff; color: var(--pc-navy); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .35); }
.pc-btn-light > .wp-block-button__link:hover { background: var(--pc-beige); color: var(--pc-primary); }
.pc-btn-link > .wp-block-button__link {
	background: transparent; color: #fff; box-shadow: none; padding-inline: 4px; border-radius: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .6);
}
.pc-btn-link > .wp-block-button__link:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Header ---------- */
.pc-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .pc-header-wrap { top: 32px; }
.pc-header { background: #fff; padding-inline: 24px; border-bottom: 1px solid var(--pc-border); }
.pc-header__inner { min-height: 84px; gap: 24px; }
.pc-brand { gap: 12px; }
.pc-brand__logo { margin: 0; }
.pc-brand__logo img { border-radius: 50%; display: block; }
.pc-brand__tag { font-size: 14px; font-weight: 700; color: var(--pc-navy); white-space: nowrap; margin: 0; }
.pc-nav { gap: 38px; font-size: 15px; font-weight: 500; }
.pc-nav .wp-block-navigation-item__content { color: var(--pc-navy); position: relative; padding-block: 30px; }
.pc-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; inset-inline: 0; bottom: 18px; height: 2px;
	background: var(--pc-primary); transform: scaleX(0); transition: transform .2s; border-radius: 2px;
}
.pc-nav .wp-block-navigation-item:first-child .wp-block-navigation-item__content,
.pc-nav .wp-block-navigation-item__content:hover { color: var(--pc-primary); }
.pc-nav .wp-block-navigation-item:first-child .wp-block-navigation-item__content::after,
.pc-nav .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
.pc-header__cta .wp-block-button__link { padding: 11px 20px; }

/* ---------- Hero ---------- */
.pc-hero { background: var(--pc-beige); padding-block: 64px; }
.pc-hero__grid { gap: 56px !important; margin-bottom: 0; }
.pc-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.pc-hero__title { font-size: var(--wp--preset--font-size--xx-large); line-height: 1.5; max-width: 560px; }
.pc-hero__title mark { background: none !important; color: var(--pc-primary); }
.pc-hero__text .pc-lead { max-width: 560px; }
.pc-hero__actions { gap: 12px; margin-top: 6px; }
.pc-hero__meta {
	list-style: none; margin: 8px 0 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px;
	border-top: 1px solid var(--pc-border); width: 100%; max-width: 560px;
	font-size: 13px; color: var(--pc-muted);
}
.pc-hero__meta li, .pc-footer__contact li { display: inline-flex; align-items: center; gap: 8px; }
.pc-hero__meta li::before, .pc-footer__contact li::before, .pc-badge::before, .pc-chips li::before {
	content: ""; width: 15px; height: 15px; flex: none; background: var(--pc-primary);
	-webkit-mask: var(--pc-i) center/contain no-repeat; mask: var(--pc-i) center/contain no-repeat;
}
.is-users { --pc-i: var(--pc-i-users); }
.is-pin, .pc-chips li { --pc-i: var(--pc-i-pin); }
.is-clock { --pc-i: var(--pc-i-clock); }
.is-phone { --pc-i: var(--pc-i-phone); }
.is-heart { --pc-i: var(--pc-i-heart); }

.pc-hero__media { position: relative; }
.pc-hero__media::before { /* dotted decoration */
	content: ""; position: absolute; top: 6%; inset-inline-end: -26px; width: 48px; height: 48px;
	background-image: radial-gradient(var(--pc-primary) 1.6px, transparent 1.8px); background-size: 12px 12px; opacity: .45;
}
.pc-hero__img { margin: 0; }
.pc-hero__img img { width: 100%; aspect-ratio: 1 / .97; object-fit: cover; border-radius: 64px; display: block; box-shadow: var(--pc-shadow); }

.pc-badge {
	position: absolute; display: inline-flex; align-items: center; gap: 8px;
	background: #fff; color: var(--pc-navy); font-size: 13px; font-weight: 700;
	padding: 10px 16px; border-radius: 10px; box-shadow: var(--pc-shadow-sm); margin: 0 !important;
}
.pc-hero__media .pc-badge { bottom: 52px; right: -12px; }

/* ---------- Features strip ---------- */
.pc-features { background: #fff; padding: 0 24px; border-bottom: 1px solid var(--pc-border); }
.pc-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.pc-feature { gap: 16px; padding: 34px 28px; align-items: flex-start; }
.pc-feature + .pc-feature { border-inline-start: 1px solid var(--pc-border); }
.pc-feature h3 { font-size: 17px; margin-bottom: 4px; }
.pc-feature p { font-size: 13px; color: var(--pc-muted); line-height: 1.7; }
.pc-feature > .wp-block-group { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Services ---------- */
.pc-services { background: #fff; padding-block: 72px 80px; }
.pc-services__grid { display: grid; grid-template-columns: 1fr 1fr 1.72fr; gap: 20px; }
.pc-card {
	display: flex; flex-direction: column; gap: 10px; padding: 26px;
	background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius);
	transition: background-color .25s, box-shadow .25s, transform .25s; margin: 0 !important;
}
.pc-card:hover { background: var(--pc-beige); box-shadow: var(--pc-shadow-sm); }
.pc-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.pc-card h3 { font-size: 18px; }
.pc-card p { color: var(--pc-muted); font-size: 13px; line-height: 1.8; }
.pc-card--dark { background: var(--pc-navy); border-color: var(--pc-navy); color: #fff; padding: 34px; }
.pc-card--dark:hover { background: var(--pc-navy); }
.pc-card--dark h3 { color: #fff; font-size: 20px; }
.pc-card--dark p { color: rgba(255, 255, 255, .7); }
.pc-card--dark .pc-icon-circle { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; }
.pc-card--dark .pc-card__top { margin-bottom: 18px; }
.pc-card--dark .pc-num { display: none; }
.pc-card__link a, .pc-more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.pc-card__link a { color: #fff; margin-top: 8px; }
.pc-card__link a::after, .pc-more a::after {
	content: ""; width: 14px; height: 14px; background: currentColor;
	-webkit-mask: var(--pc-i-arrow) center/contain no-repeat; mask: var(--pc-i-arrow) center/contain no-repeat;
}
.pc-services__img { margin: 0 !important; border-radius: var(--pc-radius); overflow: hidden; position: relative; min-height: 260px; }
.pc-services__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-more { text-align: center; margin-top: 44px !important; }
.pc-more a { color: var(--pc-primary); padding-bottom: 6px; border-bottom: 1px solid var(--pc-rose); }

/* ---------- Elderly care ---------- */
.pc-elderly { background: var(--pc-beige); position: relative; overflow: hidden; padding-block: 56px; }
.pc-elderly::before { /* large decorative ring on the left */
	content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%;
	border: 1px solid var(--pc-border); inset-inline-end: -320px; top: 70px; pointer-events: none;
}
.pc-elderly__grid { gap: 72px !important; margin-bottom: 0; position: relative; }
.pc-elderly__media { position: relative; }
.pc-elderly__img { margin: 0; }
.pc-elderly__img img { width: 100%; aspect-ratio: 572 / 610; object-fit: cover; border-radius: 26px; display: block; box-shadow: var(--pc-shadow); }
.pc-elderly__media .pc-badge { bottom: 22px; right: 16px; }
.pc-elderly__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.pc-elderly__text .pc-lead { font-size: 14px; }
.pc-checklist { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; font-weight: 500; }
.pc-checklist li { display: flex; align-items: center; gap: 10px; }
.pc-checklist li::before {
	content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none;
	background: var(--pc-primary) var(--pc-check) center/12px no-repeat;
	--pc-check: 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' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Why ProCare ---------- */
.pc-why { background: #fff; padding-block: 72px 56px; }
.pc-why__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.pc-why__head > .wp-block-group { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 560px; }
.pc-why__head .pc-lead { max-width: 440px; font-size: 13px; }
.pc-why__grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--pc-border); }
.pc-why__item { padding: 34px 36px 44px; display: grid; grid-template-columns: 30px 1fr 24px; column-gap: 8px; row-gap: 8px; align-items: baseline; transition: background-color .25s; margin: 0 !important; }
.pc-why__item:nth-child(odd) { border-inline-end: 1px solid var(--pc-border); }
.pc-why__item:nth-child(-n+2) { border-bottom: 1px solid var(--pc-border); }
.pc-why__item:first-child, .pc-why__item:hover { background: var(--pc-beige); }
.pc-why__top { display: contents; }
.pc-why__top .pc-num { grid-column: 1; grid-row: 1; }
.pc-why__top .pc-ico { grid-column: 3; grid-row: 1; color: var(--pc-primary); opacity: .55; font-size: 17px; align-self: start; }
.pc-why__item h3 { grid-column: 2; grid-row: 1; font-size: 18px; margin: 0 !important; }
.pc-why__item p { grid-column: 2; grid-row: 2; color: var(--pc-muted); font-size: 13px; margin: 0 !important; }

/* ---------- Steps ---------- */
.pc-steps { background: #fff; padding-block: 56px 64px; }
.pc-steps .pc-head { margin-bottom: 40px; }
.pc-steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.pc-steps__grid::before { /* connecting line with a heartbeat in the middle */
	content: ""; position: absolute; top: 46px; inset-inline: 16.6%; height: 40px; transform: translateY(-50%);
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40' fill='none' stroke='%23e5c9cd' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M0 20h22l8-14 10 28 8-14h32'/%3E%3C/svg%3E") center/80px 40px no-repeat,
		linear-gradient(#efdfe1, #efdfe1) center/100% 2px no-repeat;
}
.pc-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; position: relative; margin: 0 !important; }
.pc-step__num {
	width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
	background: #fff; border: 1px solid var(--pc-border); box-shadow: var(--pc-shadow-sm);
	color: var(--pc-primary); font-family: var(--wp--preset--font-family--heading); font-size: 22px; font-weight: 600;
	margin-bottom: 16px !important;
}
.pc-step h3 { font-size: 18px; }
.pc-step p { color: var(--pc-muted); font-size: 13px; max-width: 320px; }

/* ---------- Coverage ---------- */
.pc-coverage { background: var(--pc-beige); padding-block: 96px; }
.pc-coverage__inner { display: flex; align-items: center; gap: 56px; }
.pc-coverage__pin {
	flex: none; width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--pc-border); position: relative; color: var(--pc-primary); font-size: 30px;
}
.pc-coverage__pin::before { content: ""; position: absolute; inset: 26px; border-radius: 50%; border: 1px solid var(--pc-border); background: #fff0; }
.pc-coverage__text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pc-coverage__text h2 { font-size: clamp(26px, 2.6vw, 38px); }
.pc-coverage__text .pc-lead { font-size: 13px; max-width: 520px; }
.pc-chips { list-style: none; padding: 0; margin: 4px 0 0; display: flex; gap: 10px; }
.pc-chips li { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--pc-border); border-radius: 999px; padding: 6px 16px; font-size: 12px; font-weight: 700; }
.pc-chips li::before { width: 12px; height: 12px; }
.pc-coverage__cta { flex: none; }

/* ---------- FAQ ---------- */
.pc-faq { background: #fff; padding-block: 96px 56px; }
.pc-faq__grid { gap: 72px !important; margin-bottom: 0; }
.pc-faq__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.pc-faq__intro .pc-lead { font-size: 13px; }
.pc-faq__item { border-bottom: 1px solid var(--pc-border); padding: 18px 0; margin: 0 !important; }
.pc-faq__item summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
	font-weight: 700; font-size: 15px; color: var(--pc-navy);
}
.pc-faq__item summary::-webkit-details-marker { display: none; }
.pc-faq__item summary::after {
	content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
	border: 1px solid var(--pc-border); color: var(--pc-primary);
	background: var(--pc-primary); -webkit-mask: none; mask: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e1728' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat;
}
.pc-faq__item[open] summary::after {
	background: var(--pc-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat;
	border-color: var(--pc-primary);
}
.pc-faq__item p { color: var(--pc-muted); font-size: 13px; padding-top: 14px; padding-inline-end: 46px; }
.pc-faq__item summary + * { margin-top: 0 !important; }

/* ---------- CTA ---------- */
.pc-cta { background: var(--pc-primary); color: #fff; position: relative; overflow: hidden; padding-block: 56px 72px; }
.pc-cta::after { /* faint heartbeat watermark */
	content: ""; position: absolute; left: -10px; bottom: -40px; width: 320px; height: 160px; opacity: .07;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40' fill='none' stroke='white' stroke-width='6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M2 22h18l8-16 10 30 8-14h32'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pc-cta__grid { gap: 72px !important; margin-bottom: 0; position: relative; z-index: 1; }
.pc-cta__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.pc-cta .pc-eyebrow { color: #fff; font-weight: 500; font-size: 12px; }
.pc-cta h2 { color: #fff; max-width: 520px; }
.pc-cta .pc-lead { color: rgba(255, 255, 255, .8); font-size: 13px; max-width: 520px; }
.pc-cta__actions { gap: 22px; margin-top: 8px; }
.pc-cta__img { margin: 0; }
.pc-cta__img img { width: 100%; aspect-ratio: 464 / 380; object-fit: cover; display: block; border-radius: 24px 220px 24px 24px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); }

/* ---------- Footer ---------- */
.pc-footer { background: var(--pc-navy); color: rgba(255, 255, 255, .62); padding: 56px 24px 0; font-size: 13px; }
.pc-footer a { color: rgba(255, 255, 255, .62); }
.pc-footer a:hover { color: #fff; }
.pc-footer h3 { color: #fff; font-size: 16px; margin: 0 0 22px; }
.pc-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.pc-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pc-footer__brand p { max-width: 300px; line-height: 1.9; margin: 0; }
.pc-footer__logo { margin: 0 0 6px; }
.pc-footer__logo img { border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
.pc-footer__name { margin: 0 !important; font-size: 15px !important; }
.pc-footer__links, .pc-footer__contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pc-footer__contact a { direction: ltr; }
.pc-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; text-align: center; font-size: 12px; }
.pc-footer__bottom p { margin: 0; }

/* ---------- Generic pages ---------- */
.pc-page { min-height: 50vh; }
.pc-page .wp-block-post-title { margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.pc-nav { gap: 22px; }
	.pc-services__grid { grid-template-columns: 1fr 1fr; }
	.pc-services__img { grid-column: 1 / -1; order: -1; max-height: 340px; }
	.pc-card--dark { grid-column: 1 / -1; }
	.pc-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.pc-section { padding-block: 64px; }
	.pc-header__cta .wp-block-button__link { padding: 9px 14px; font-size: 13px; }
	.pc-features__grid { grid-template-columns: 1fr; }
	.pc-feature + .pc-feature { border-inline-start: 0; border-top: 1px solid var(--pc-border); }
	.pc-why__head { flex-direction: column; align-items: flex-start; }
	.pc-coverage__inner { flex-direction: column; text-align: center; }
	.pc-coverage__text { align-items: center; }
	.pc-steps__grid { grid-template-columns: 1fr; }
	.pc-steps__grid::before { display: none; }
}
@media (max-width: 781px) {
	.pc-hero__grid, .pc-elderly__grid, .pc-cta__grid, .pc-faq__grid { gap: 40px !important; }
	.pc-hero__media { order: -1; }
	.pc-hero__img img { border-radius: 40px; }
	.pc-hero__media::before { display: none; }
	.pc-hero__media .pc-badge { right: 12px; bottom: 20px; }
	.pc-why__grid { grid-template-columns: 1fr; }
	.pc-why__item:nth-child(odd) { border-inline-end: 0; }
	.pc-why__item:not(:last-child) { border-bottom: 1px solid var(--pc-border); }
	.pc-cta__media { order: -1; }
}
@media (max-width: 600px) {
	.pc-services__grid, .pc-footer__grid { grid-template-columns: 1fr; }
	.pc-brand__tag { display: none; }
	.admin-bar .pc-header-wrap { top: 0; }
}
