/* ==========================================================================
   Rahma · رحمة — theme styles
   Colors, fonts and base typography live in theme.json. This file adds the
   section designs carried over from the original site.
   ========================================================================== */

:root {
	--rahma-ink: var(--wp--preset--color--ink, #7A5C5C);
	--rahma-rose: var(--wp--preset--color--rose, #C97B7B);
	--rahma-blush: var(--wp--preset--color--blush, #E8A0A0);
	--rahma-petal: var(--wp--preset--color--petal, #F0DDD8);
	--rahma-ivory: var(--wp--preset--color--ivory, #FDF6F0);
	--rahma-muted: var(--wp--preset--color--muted, #C4A09A);
	--rahma-body: var(--wp--preset--color--body, #9A7070);
	--rahma-gold: var(--wp--preset--color--gold, #D4A96A);
	--rahma-gold-dark: var(--wp--preset--color--gold-dark, #8A5E2A);
	--rahma-gold-bg: var(--wp--preset--color--gold-bg, #FAF3E8);
	--rahma-dark: var(--wp--preset--color--dark, #2D1F1F);
	--rahma-serif: var(--wp--preset--font-family--cormorant);
	--rahma-arabic: var(--wp--preset--font-family--amiri);
	--rahma-lift: 0 8px 24px rgba(201, 123, 123, 0.12);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1 em, h2 em, h3 em { font-style: italic; }
:where(.wp-site-blocks) > * + * { margin-block-start: 0; }
:where(.wp-site-blocks) :focus-visible { outline: 2px solid var(--rahma-rose); outline-offset: 2px; }

/* Sections placed on a page sit flush against each other */
.rahma-sections > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* ---------- Header ---------- */
.rahma-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
.rahma-header {
	min-height: 64px;
	background: rgba(253, 246, 240, 0.96);
	border-bottom: 1px solid var(--rahma-petal);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	padding-block: 0.5rem;
	gap: 1rem;
}
.rahma-logo { margin: 0; font-family: var(--rahma-serif); font-size: 22px; font-weight: 300; color: var(--rahma-dark); line-height: 1.2; white-space: nowrap; }
.rahma-logo a { color: inherit; text-decoration: none; }
.rahma-logo em, .rahma-footer-logo em { color: var(--rahma-rose); font-style: italic; }
.rahma-nav { font-size: 13px; gap: 2rem; }
.rahma-nav .wp-block-navigation-item__content { color: var(--rahma-body); text-decoration: none; transition: color 0.2s; }
.rahma-nav .wp-block-navigation-item__content:hover,
.rahma-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--rahma-rose); }
.rahma-nav .rahma-nav-accent > .wp-block-navigation-item__content { color: var(--rahma-rose); font-weight: 500; }
.rahma-nav .rahma-nav-cta > .wp-block-navigation-item__content {
	background: var(--rahma-blush);
	color: #fff;
	padding: 8px 20px;
	border-radius: 40px;
	font-weight: 500;
	transition: background 0.2s, transform 0.15s;
}
.rahma-nav .rahma-nav-cta > .wp-block-navigation-item__content:hover { background: var(--rahma-rose); color: #fff; transform: translateY(-1px); }
.rahma-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem 2rem; }
.rahma-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 1.25rem; font-size: 16px; }
.rahma-nav .wp-block-navigation__responsive-container-open svg,
.rahma-nav .wp-block-navigation__responsive-container-close svg { fill: var(--rahma-ink); }

/* ---------- Footer ---------- */
.rahma-footer { background: var(--rahma-dark); padding-block: 2rem; gap: 1rem; }
.rahma-footer-logo { margin: 0; font-family: var(--rahma-serif); font-size: 18px; font-weight: 300; color: rgba(255, 255, 255, 0.6); }
.rahma-footer-logo em { color: var(--rahma-blush); }
.rahma-footer-logo a { color: inherit; text-decoration: none; }
.rahma-footer-links { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 12px; }
.rahma-footer-links a { color: rgba(255, 255, 255, 0.45); text-decoration: none; transition: color 0.2s; }
.rahma-footer-links a:hover { color: rgba(255, 255, 255, 0.8); }

/* ---------- Shared type pieces ---------- */
.is-style-rahma-eyebrow,
.rahma-eyebrow {
	font-size: 10px !important;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--rahma-rose);
	margin-bottom: 0.6rem !important;
}
.rahma-center, .rahma-center .wp-block-heading, .rahma-center p { text-align: center; }
.rahma-section-title { margin-top: 0 !important; margin-bottom: 2.5rem !important; }
.rahma-section-title em { color: var(--rahma-rose); }
.rahma-lead { font-size: 14px; color: var(--rahma-body); max-width: 560px; margin-inline: auto !important; line-height: 1.75; }
.rahma-lead-tight { margin-top: -1.5rem !important; margin-bottom: 2.5rem !important; }
.rahma-footnote { font-size: 13px; color: var(--rahma-body); font-style: italic; margin-top: 2rem !important; }

.is-style-rahma-gold-badge,
.rahma-gold-badge {
	display: table;
	margin-inline: auto !important;
	font-size: 10px !important;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rahma-gold-dark);
	background: rgba(212, 169, 106, 0.15);
	border: 1px solid var(--rahma-gold);
	padding: 5px 14px;
	border-radius: 20px;
}

/* ---------- Section frames ---------- */
.rahma-section { padding-block: clamp(3.5rem, 7vw, 5rem); }
.rahma-section.rahma-tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.rahma-bg-petal { background: var(--rahma-petal); }
.rahma-bg-white { background: #fff; }

/* Rose hero with soft circles (home, about, partner, closing CTA) */
.rahma-hero {
	background: var(--rahma-rose);
	color: #fff;
	text-align: center;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: clamp(4rem, 9vw, 5.5rem) clamp(3.5rem, 8vw, 4.5rem);
}
.rahma-hero::before,
.rahma-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: -1;
}
.rahma-hero::before { top: -80px; right: -80px; width: 320px; height: 320px; background: rgba(255, 255, 255, 0.07); }
.rahma-hero::after { bottom: -100px; left: -60px; width: 380px; height: 380px; background: rgba(255, 255, 255, 0.05); }
.rahma-hero.rahma-hero-tall { min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: center; }
.rahma-hero .wp-block-heading { color: #fff; }
.rahma-hero .wp-block-heading em { opacity: 0.85; }
.rahma-hero p { color: rgba(255, 255, 255, 0.78); }
.rahma-hero .rahma-eyebrow,
.rahma-hero .is-style-rahma-eyebrow { color: rgba(255, 255, 255, 0.7); }

.rahma-arabic {
	font-family: var(--rahma-arabic);
	direction: rtl;
	line-height: 1.4;
	margin-bottom: 0.25rem !important;
}
.rahma-hero .rahma-arabic { font-size: 50px; color: rgba(255, 255, 255, 0.75); }
.rahma-hero-title { font-size: clamp(38px, 6.5vw, 66px) !important; line-height: 1.22 !important; margin-top: 0 !important; margin-bottom: 1.25rem !important; }
.rahma-page-title { font-size: clamp(30px, 4.5vw, 46px) !important; line-height: 1.3 !important; margin-top: 0 !important; margin-bottom: 1rem !important; }
.rahma-hero-sub { font-size: clamp(15px, 2vw, 18px) !important; font-weight: 300; line-height: 1.75; max-width: 500px; margin-inline: auto !important; margin-bottom: 2.5rem !important; }
.rahma-hero-note { font-size: 13px !important; color: rgba(255, 255, 255, 0.7) !important; margin-bottom: 2rem !important; }

@media (prefers-reduced-motion: no-preference) {
	.rahma-hero-tall > * { animation: rahmaFadeIn 0.9s ease both; }
	.rahma-hero-tall > *:nth-child(2) { animation-delay: 0.12s; }
	.rahma-hero-tall > *:nth-child(3) { animation-delay: 0.24s; }
	.rahma-hero-tall > *:nth-child(4) { animation-delay: 0.36s; }
}
@keyframes rahmaFadeIn {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

/* Dark hero (download page) */
.rahma-hero-dark { background: var(--rahma-dark); }
.rahma-hero-dark::before { background: rgba(201, 123, 123, 0.1); }
.rahma-hero-dark::after { background: rgba(201, 123, 123, 0.07); }
.rahma-hero-dark .rahma-arabic { font-size: 36px; color: rgba(255, 255, 255, 0.4); }
.rahma-hero-dark .wp-block-heading em { color: var(--rahma-blush); opacity: 1; }
.rahma-hero-dark p { color: rgba(255, 255, 255, 0.55); }
.rahma-hero-dark .rahma-hero-sub { font-size: 14px !important; max-width: 420px; }
.rahma-outline-badge {
	display: table;
	margin-inline: auto !important;
	font-size: 10px !important;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--rahma-blush) !important;
	border: 1px solid rgba(232, 160, 160, 0.3);
	padding: 5px 16px;
	border-radius: 20px;
}
.rahma-trial-strip { font-size: 12px !important; color: rgba(255, 255, 255, 0.45) !important; word-spacing: 0.1em; margin-top: 1.75rem !important; }

/* ---------- Buttons ---------- */
.rahma-center .wp-block-buttons,
.rahma-hero .wp-block-buttons { justify-content: center; }
.wp-block-button .wp-block-button__link { transition: background 0.2s, transform 0.15s, color 0.2s; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-rahma-store .wp-block-button__link {
	background: var(--rahma-dark);
	color: #fff;
	border-radius: 13px;
	padding: 13px 24px;
	font-size: 14px;
}
.wp-block-button.is-style-rahma-store .wp-block-button__link:hover { background: #000; transform: translateY(-2px); }
.wp-block-button.is-style-rahma-rose .wp-block-button__link { background: var(--rahma-rose); color: #fff; border-radius: 14px; padding: 14px 26px; }
.wp-block-button.is-style-rahma-rose .wp-block-button__link:hover { background: var(--rahma-blush); transform: translateY(-2px); }
.wp-block-button.is-style-rahma-pill-light .wp-block-button__link {
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	padding: 9px 18px;
	font-size: 13px;
}
.wp-block-button.is-style-rahma-pill-light .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- Cards ---------- */
.wp-block-group.is-style-rahma-card {
	background: #fff;
	border: 1px solid var(--rahma-petal);
	border-radius: 16px;
	padding: 1.75rem 1.5rem;
	transition: transform 0.25s, box-shadow 0.25s;
}
.rahma-lift:hover { transform: translateY(-3px); box-shadow: var(--rahma-lift); }
.is-style-rahma-card > * { margin-block: 0; }
.is-style-rahma-card > * + * { margin-block-start: 0.4rem; }
.is-style-rahma-card h3 { font-size: 20px; font-weight: 400; color: var(--rahma-dark); }
.is-style-rahma-card p { font-size: 13px; color: var(--rahma-body); line-height: 1.7; }
.rahma-icon {
	width: 44px;
	height: 44px;
	background: var(--rahma-petal);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px !important;
	color: var(--rahma-rose) !important;
	line-height: 1;
	margin-bottom: 1rem !important;
}
.rahma-grid { gap: 1.25rem; }

/* Stage cards */
.rahma-stage { text-align: center; padding: 1.5rem 1rem !important; }
.rahma-stage .rahma-emoji { font-size: 28px !important; line-height: 1.2; margin-bottom: 0.4rem !important; }
.rahma-stage h3 { font-family: var(--wp--preset--font-family--dm-sans); font-size: 14px !important; font-weight: 500 !important; }
.rahma-stage p { font-size: 12px; line-height: 1.5; }
.rahma-stages-secondary { max-width: 420px; margin-inline: auto !important; margin-top: 1rem !important; }

/* Value cards */
.rahma-value { text-align: center; }
.rahma-value .rahma-emoji { font-size: 26px !important; color: var(--rahma-rose); margin-bottom: 0.5rem !important; }
.rahma-value h3 { font-size: 18px !important; }
.rahma-value p { font-size: 12px; }

/* ---------- Phone screenshots ---------- */
.rahma-phones { gap: 20px !important; margin-top: 1rem !important; overflow-x: auto; scrollbar-width: none; padding-top: 24px; padding-bottom: 0.5rem; }
.rahma-phones::-webkit-scrollbar { display: none; }
.rahma-phone { flex: 0 0 auto; margin: 0 !important; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rahma-phone img {
	width: 170px;
	height: auto;
	background: #1a0f0f;
	border: 2px solid #0f0808;
	padding: 4px;
	border-radius: 36px;
	transition: transform 0.3s;
}
.rahma-phone img:hover { transform: translateY(-4px); }
.rahma-phone.rahma-phone-lg img { width: 200px; }
.rahma-phone.rahma-phone-lg { transform: translateY(-16px); }
.rahma-phone figcaption { margin: 0; font-size: 11px; font-weight: 500; color: var(--rahma-ink); letter-spacing: 0.03em; text-align: center; }
@media (max-width: 600px) {
	.rahma-phones { justify-content: flex-start !important; }
	.rahma-phone img { width: 130px; }
	.rahma-phone.rahma-phone-lg img { width: 150px; }
}

/* ---------- Verse strip ---------- */
.rahma-verse { background: var(--rahma-gold-bg); border-top: 2px solid var(--rahma-gold); border-bottom: 2px solid var(--rahma-gold); text-align: center; }
.rahma-verse .rahma-arabic { font-size: 28px; color: var(--rahma-gold-dark); line-height: 1.9; margin-top: 1.25rem !important; }
.rahma-verse-text { font-family: var(--rahma-serif); font-size: 20px !important; font-style: italic; color: var(--rahma-ink); line-height: 1.65; max-width: 500px; margin-inline: auto !important; }
.rahma-verse-ref { font-size: 12px !important; color: var(--rahma-gold-dark); font-weight: 500; letter-spacing: 0.04em; margin-top: 0.4rem !important; }

/* ---------- Download page ---------- */
.rahma-qr { background: #231515; padding-block: 2.5rem; gap: 2.5rem; }
.rahma-qr-box { background: #fff; border-radius: 16px; padding: 16px !important; margin: 0 !important; text-align: center; }
.rahma-qr-box img { width: 120px; height: 120px; }
.rahma-qr-box figcaption { font-size: 10px; color: var(--rahma-ink); margin: 8px auto 0; max-width: 120px; line-height: 1.4; }
.rahma-qr-text { color: rgba(255, 255, 255, 0.55); font-size: 13px !important; max-width: 240px; line-height: 1.75; margin: 0 !important; }

.rahma-feature-list { border-top: 1px solid var(--rahma-petal); }
.rahma-feature-row { gap: 1.25rem !important; padding-block: 1.5rem; border-bottom: 1px solid var(--rahma-petal); margin: 0 !important; }
.rahma-feature-row .rahma-icon { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; margin: 2px 0 0 !important; }
.rahma-feature-row h3 { font-size: 20px; font-weight: 400; margin: 0 0 4px !important; }
.rahma-feature-row p { font-size: 13px; color: var(--rahma-body); line-height: 1.7; margin: 0; }
.rahma-feature-body { flex: 1; }
.rahma-feature-body > * + * { margin-block-start: 0 !important; }
p.rahma-trial-tag {
	display: inline-block;
	margin-top: 7px !important;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rahma-gold-dark);
	background: var(--rahma-gold-bg);
	border: 1px solid var(--rahma-gold);
	padding: 3px 10px;
	border-radius: 10px;
}

.rahma-pricing { text-align: center; padding: 2.5rem !important; border-radius: 20px !important; }
.rahma-pricing h2 { font-size: 28px; margin-top: 0.5rem !important; }
.rahma-pricing h2 em { color: var(--rahma-rose); }
.rahma-pricing .rahma-pill-badge {
	display: table;
	margin-inline: auto;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rahma-rose);
	background: var(--rahma-petal);
	padding: 5px 14px;
	border-radius: 20px;
}
.rahma-pricing p.rahma-pricing-sub { max-width: 360px; margin-inline: auto; }
.rahma-price { font-size: 16px !important; color: var(--rahma-ink) !important; margin-block: 0.35rem !important; }
.rahma-price strong { font-family: var(--rahma-serif); font-size: 26px; font-weight: 600; color: var(--rahma-rose); margin-right: 6px; }
.rahma-price mark { background: var(--rahma-petal); color: var(--rahma-rose); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-left: 6px; vertical-align: middle; }
.rahma-checklist { list-style: none; padding: 0; margin: 1.5rem auto 2rem !important; max-width: 320px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.rahma-checklist li { font-size: 13px; color: var(--rahma-ink); display: flex; align-items: center; gap: 10px; }
.rahma-checklist li::before {
	content: "✓";
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--rahma-petal);
	color: var(--rahma-rose);
	font-size: 11px;
	display: grid;
	place-items: center;
}
.rahma-compat { background: var(--rahma-ivory); border-top: 1px solid var(--rahma-petal); padding-block: 1.25rem; }
.rahma-compat p { font-size: 12px !important; color: var(--rahma-muted); text-align: center; word-spacing: 0.15em; margin: 0; }

/* ---------- About page ---------- */
.rahma-anchors {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 64px);
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--rahma-petal);
	padding-block: 0 !important;
}
.rahma-anchors p { margin: 0; display: flex; justify-content: center; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 12px; }
.rahma-anchors a { color: var(--rahma-body); text-decoration: none; padding: 14px 18px; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.rahma-anchors a:hover { color: var(--rahma-rose); border-bottom-color: var(--rahma-rose); }
@media (max-width: 600px) { .rahma-anchors p { justify-content: flex-start; } }

.rahma-about-section { padding-block: 3.5rem; border-bottom: 1px solid var(--rahma-petal); scroll-margin-top: 130px; }
.rahma-about-section:last-child { border-bottom: 0; }
.rahma-about-section h2 { font-size: clamp(24px, 3.5vw, 34px); margin-top: 0 !important; margin-bottom: 1.25rem !important; }
.rahma-about-section h2 em { color: var(--rahma-rose); }
.rahma-about-body { font-size: 14px; color: var(--rahma-body); line-height: 1.85; }

.rahma-founder { position: relative; padding: 1.75rem 1.75rem 1.75rem 2rem !important; margin-top: 1.5rem !important; }
.rahma-founder::before { content: ""; position: absolute; left: 0; top: 1.75rem; bottom: 1.75rem; width: 3px; background: var(--rahma-rose); border-radius: 0 3px 3px 0; }
.rahma-founder p.rahma-founder-text { font-family: var(--rahma-serif); font-size: 18px; font-style: italic; color: var(--rahma-ink); line-height: 1.8; }
.rahma-founder > * + * { margin-block-start: 0.9rem !important; }
.rahma-founder p.rahma-founder-name { font-size: 12px; color: var(--rahma-muted); font-weight: 500; }

/* FAQ (Details blocks) */
.rahma-faq-list { border-top: 1px solid var(--rahma-petal); margin-top: 1.5rem !important; }
.rahma-faq-list > * { margin: 0 !important; }
.wp-block-details.rahma-faq { border-bottom: 1px solid var(--rahma-petal); }
.wp-block-details.rahma-faq summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--rahma-dark);
	transition: color 0.2s;
}
.wp-block-details.rahma-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.rahma-faq summary::after { content: "+"; font-size: 20px; font-weight: 300; color: var(--rahma-rose); line-height: 1; transition: transform 0.3s; }
.wp-block-details.rahma-faq[open] summary::after { transform: rotate(45deg); }
.wp-block-details.rahma-faq summary:hover { color: var(--rahma-rose); }
.wp-block-details.rahma-faq p { font-size: 13px; color: var(--rahma-body); line-height: 1.8; padding: 0 2rem 1.1rem 0; margin: 0; }

.rahma-privacy-block { padding: 2rem !important; margin-top: 1.5rem !important; }
.rahma-privacy-block p { font-size: 13px !important; line-height: 1.85 !important; }
.rahma-privacy-block strong { color: var(--rahma-dark); font-weight: 500; }
.rahma-privacy-block .wp-block-buttons { margin-top: 1.25rem !important; }

.rahma-contact-card .rahma-emoji { font-size: 24px !important; color: var(--rahma-rose); margin-bottom: 0.5rem !important; }
.rahma-contact-card h3 { font-size: 18px !important; }
.rahma-contact-card p { font-size: 12px; }
.rahma-contact-card p.rahma-contact-link { font-size: 13px; font-weight: 500; }
.rahma-contact-card p.rahma-contact-link a { color: var(--rahma-rose); text-decoration: none; }
.rahma-contact-card p.rahma-contact-link a:hover { text-decoration: underline; }

/* ---------- Partner page ---------- */
.rahma-step { gap: 18px !important; padding: 22px 24px !important; border-radius: 14px !important; }
.rahma-step .rahma-step-num { font-family: var(--rahma-serif); font-size: 36px !important; font-weight: 300; color: var(--rahma-petal); line-height: 1; margin: -2px 0 0 !important; flex-shrink: 0; }
.rahma-step h3 { font-family: var(--wp--preset--font-family--dm-sans); font-size: 15px !important; font-weight: 500 !important; color: var(--rahma-ink) !important; margin: 0 0 5px !important; }
.rahma-step p { font-size: 13.5px !important; line-height: 1.75; }
.rahma-step > .wp-block-group > * + * { margin-block-start: 0 !important; }
.rahma-facts p { font-size: 13.5px !important; color: var(--rahma-body); line-height: 1.8; margin-block: 0 0.5rem !important; }
.rahma-facts strong { color: var(--rahma-ink); font-weight: 500; }
.rahma-talk { background: var(--rahma-rose); border-radius: 18px; padding: 32px !important; }
.rahma-talk .rahma-talk-title { font-family: var(--rahma-serif); font-size: 28px !important; font-weight: 300; color: #fff; margin: 0 0 6px !important; line-height: 1.3; }
.rahma-talk p { color: rgba(255, 255, 255, 0.85); font-size: 14px; }

/* ---------- Blog ---------- */
.rahma-blog-hero { background: var(--rahma-ivory); text-align: center; position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(3.5rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); }
.rahma-blog-hero::before {
	content: "رحمة";
	font-family: var(--rahma-arabic);
	font-size: clamp(160px, 26vw, 280px);
	color: var(--rahma-petal);
	opacity: 0.55;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	direction: rtl;
	line-height: 1;
	z-index: -1;
	pointer-events: none;
}
.rahma-blog-hero h1 em { color: var(--rahma-rose); }
.rahma-blog-hero .rahma-hero-sub { color: var(--rahma-body); font-family: var(--rahma-serif); font-style: italic; font-size: 18px !important; margin-bottom: 0 !important; }

.rahma-post-grid { padding-block: 1rem clamp(3rem, 6vw, 4.5rem); }
.rahma-post-card { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.rahma-post-card > * { margin: 0 !important; }
.rahma-post-card .wp-block-post-featured-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--rahma-petal); }
.rahma-post-card .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.rahma-post-card-body { padding: 1.25rem 1.4rem 1.5rem !important; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.rahma-post-card-body > * { margin: 0 !important; }
.rahma-post-card .wp-block-post-title { font-size: 22px; line-height: 1.3; }
.rahma-post-card .wp-block-post-title a { color: var(--rahma-dark); text-decoration: none; }
.rahma-post-card .wp-block-post-title a:hover { color: var(--rahma-rose); }
.rahma-post-card .wp-block-post-date { margin-top: auto !important; padding-top: 0.5rem; }
.rahma-post-card .wp-block-post-excerpt__excerpt { margin: 0; }
.rahma-terms { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.rahma-terms a { color: var(--rahma-rose); text-decoration: none; }
.rahma-query-pagination { margin-top: 2.5rem !important; font-size: 13px; gap: 1rem; }
.rahma-query-pagination a { color: var(--rahma-rose); text-decoration: none; }
.rahma-query-pagination .page-numbers.current { color: var(--rahma-dark); font-weight: 600; }

.rahma-single-header { text-align: center; padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
.rahma-single-header .wp-block-post-title { font-size: clamp(32px, 5vw, 50px); line-height: 1.2; margin-block: 0.5rem 0.75rem; }
.rahma-single-header .wp-block-post-terms,
.rahma-single-header .wp-block-post-date { justify-content: center; }
.rahma-single-image { margin-bottom: 2.5rem !important; }
.rahma-single-image img { border-radius: 16px; }
.rahma-post-content { font-size: 17px; line-height: 1.85; padding-bottom: 3rem; }
.rahma-post-content > h2 { font-size: clamp(26px, 3.5vw, 32px); margin-top: 2.5rem; }
.rahma-post-content > h3 { font-size: 22px; margin-top: 2rem; }
.rahma-post-content a { text-decoration: underline; text-decoration-color: var(--rahma-blush); text-underline-offset: 3px; }
.rahma-post-content blockquote p { color: var(--rahma-ink); }
.rahma-post-content img { border-radius: 12px; }
.rahma-post-content .wp-block-pullquote { color: var(--rahma-ink); }

.rahma-post-nav { font-size: 13px; padding-block: 2rem 3.5rem; border-top: 1px solid var(--rahma-petal); }
.rahma-post-nav a { color: var(--rahma-rose); text-decoration: none; }

/* Plain pages (privacy, terms) */
.rahma-plain { padding-block: clamp(3rem, 6vw, 4.5rem); }
.rahma-plain .wp-block-post-title { font-size: clamp(32px, 5vw, 46px); margin-bottom: 1.5rem; }
.rahma-plain .wp-block-post-content { font-size: 15px; }

/* 404 + search */
.rahma-search .wp-block-search__input { border: 1px solid var(--rahma-petal); border-radius: 40px; padding: 10px 18px; background: #fff; font: inherit; }
.rahma-search .wp-block-search__button { margin-left: 8px; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.rahma-header { min-height: 58px; }
	.rahma-logo { font-size: 20px; }
	.rahma-pricing { padding: 2rem 1.25rem !important; }
	.rahma-talk { padding: 26px 22px !important; }
	.rahma-qr { flex-direction: column; text-align: center; }
	.rahma-qr-text { max-width: 280px; }
}

.rahma-404-mark { font-size: 44px !important; color: var(--rahma-rose); margin-bottom: 0 !important; }
.rahma-plain.rahma-center-all, .rahma-plain .rahma-center { text-align: center; }
.rahma-search { max-width: 420px; margin-inline: auto !important; }

/* Partner page spacing */
.rahma-hero > :last-child { margin-bottom: 0 !important; }
.rahma-partner h2 { font-size: clamp(26px, 4vw, 32px); margin-top: 0 !important; }
.rahma-partner h2 em { color: var(--rahma-rose); }
.rahma-spaced { margin-top: 2.5rem !important; }
.rahma-steps { display: flex; flex-direction: column; gap: 12px; }
.rahma-steps > * { margin: 0 !important; }
.rahma-facts-card { margin-top: 2.5rem !important; padding: 26px !important; }
.rahma-facts-card > * + * { margin-block-start: 0.9rem !important; }
.rahma-partner .rahma-talk { margin-top: 2.5rem !important; }
.rahma-talk .wp-block-buttons { margin-top: 1.25rem !important; }
.rahma-talk.rahma-center { margin-block: 1rem 2.5rem; }

/* Full-width bars that aren't constrained groups get the site's side padding */
.rahma-header, .rahma-footer, .rahma-qr, .rahma-anchors {
	padding-left: var(--wp--style--root--padding-left, 1.25rem) !important;
	padding-right: var(--wp--style--root--padding-right, 1.25rem) !important;
}
.rahma-qr-box { width: 156px; flex: 0 0 auto; }

@media (max-width: 600px) {
	.wp-block-group.rahma-grid { grid-template-columns: minmax(0, 1fr) !important; }
	.wp-block-group.rahma-grid.rahma-grid-2m { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.75rem; }
}
@media (min-width: 601px) and (max-width: 900px) {
	.wp-block-group.rahma-grid:not(.rahma-grid-2m) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.wp-block-group.rahma-grid.rahma-grid-2m:not(.rahma-stages-secondary) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
