/*
 * Webnaa Readability layer
 * Loads after the theme styles. Keeps the palette and typefaces; only adjusts
 * size, weight, contrast, spacing and touch targets where the audit found
 * text that was hard to read on phones. Deactivate the plugin to undo.
 */

:root {
	--wnr-ink-strong: rgba(11, 18, 21, .86);
	--wnr-ink-soft: rgba(11, 18, 21, .76);
	--wnr-ink-label: rgba(11, 18, 21, .68);
	--wnr-white-strong: rgba(255, 255, 255, .92);
	--wnr-white-soft: rgba(255, 255, 255, .84);
}

/* 1. Arabic letters must stay joined: no tracking on RTL pages. */
html[dir="rtl"] body,
html[dir="rtl"] body *:not(code):not(pre):not(kbd) {
	letter-spacing: normal !important;
}

/* 2. Contrast: faint secondary text gets stronger (all screen sizes). */
.wn-lead,
.wn-feat__text,
.wn-principle p,
.wn-muted,
.wn-contact-addr,
.wn-footer__about,
.wn-footer__addr,
.wn-drop__title,
.wn-review__text,
.wn-rv-done__text {
	color: var(--wnr-ink-soft) !important;
}
.wn-diff__text,
.wn-faq .wp-block-details p,
.wn-policy__body p {
	color: var(--wnr-ink-strong) !important;
}
.wn-note,
.wn-mini-title,
.wn-footer__title,
.wn-mnav__title,
.wn-form .wn-hint,
.wn-cp__hint,
.wn-file__meta,
.wn-review__meta time,
.wn-reviews__empty,
.wn-diff-title {
	color: var(--wnr-ink-label) !important;
}
.wn-citem__label {
	opacity: .78 !important;
}
.wn-footer__bottom {
	color: var(--wnr-ink-soft) !important;
}
.wn-ink .wn-lead,
.wn-dark .wn-lead,
.wn-page-hero .wn-lead,
.wn-page-hero .wn-eyebrow,
.wn-dark .wn-muted,
.wn-step__text,
.wn-stat__label,
.wn-pricing__more a,
.wn-mpage__desc,
.wn-mpage__sub,
.wn-build__label {
	color: var(--wnr-white-soft) !important;
}
.wn-mcard__tag {
	color: rgba(255, 255, 255, .82) !important;
}
.wn-mcard__sub {
	color: var(--wnr-white-strong) !important;
}
.wn-pbl__label {
	color: rgba(255, 255, 255, .72) !important;
}
.wn-hero__eyebrow {
	color: var(--wnr-white-strong) !important;
}
.wn-hero__lead {
	color: rgba(255, 255, 255, .95) !important;
}
.wn-ins-meta,
.wn-ins-lead,
.wn-kit .wk-cover figcaption,
.wn-kit .wk-figure figcaption,
.wp-element-caption {
	color: var(--wnr-ink-soft);
}
.wnb-time,
.wnb-text span {
	color: #45545a !important;
}
.wpc .wpc-screen__note {
	color: rgba(255, 255, 255, .85) !important;
}

/* Hero: the light fog image left white text with little contrast. A deeper,
   cinematic veil behind the text keeps the mood and makes it legible. */
.wn-hero::after {
	background:
		linear-gradient(to top, rgba(11, 18, 21, .66), rgba(11, 18, 21, .38) 50%, rgba(11, 18, 21, .3)),
		linear-gradient(to left, rgba(11, 18, 21, .28), transparent 70%) !important;
}
html[dir="ltr"] .wn-hero::after {
	background:
		linear-gradient(to top, rgba(11, 18, 21, .66), rgba(11, 18, 21, .38) 50%, rgba(11, 18, 21, .3)),
		linear-gradient(to right, rgba(11, 18, 21, .28), transparent 70%) !important;
}
.wn-hero__eyebrow,
.wn-hero__tagline,
.wn-hero__lead {
	text-shadow: 0 1px 10px rgba(11, 18, 21, .45);
}

/* Desktop and tablet: secondary text was 14px; lift it slightly. */
@media (min-width: 768px) {
	.wn-feat__text,
	.wn-step__text,
	.wn-diff__text,
	.wn-principle p,
	.wn-muted,
	.wn-faq .wp-block-details p,
	.wn-footer__about,
	.wn-footer__addr,
	.wn-mcard__sub {
		font-size: 15px !important;
		line-height: 1.75 !important;
	}
	.wn-faq .wp-block-details summary {
		font-size: 16px !important;
		line-height: 1.5 !important;
	}
	.wn-footer__title,
	.wn-mini-title,
	.wn-footer__bottom,
	.wn-eyebrow,
	.wn-hero__eyebrow,
	.wnb-text span {
		font-size: 13px !important;
		line-height: 1.5 !important;
	}
	.wn-topbar__inner,
	.wnb-time {
		font-size: 13px !important;
	}
	.wnb-text strong {
		font-size: 15px !important;
	}
	.wn-ins-meta,
	.wn-ins-meta * {
		font-size: 14px !important;
	}
	.wn-ins-excerpt {
		font-size: 16px !important;
		line-height: 1.8 !important;
	}
}

/* 3. Phones: a calm type scale for Arabic and English. */
@media (max-width: 767.98px) {
	body {
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
	}

	/* Top offer bar and the audio bar */
	.wn-topbar__inner {
		font-size: 13px !important;
		line-height: 1.6 !important;
	}
	.wnb-text strong {
		font-size: 14px !important;
	}
	.wnb-time {
		font-size: 12.5px !important;
	}
	.wnb-toggle {
		width: 40px !important;
		height: 40px !important;
	}

	/* Small labels above headings */
	.wn-eyebrow,
	.wn-hero__eyebrow,
	.wn-feat__num,
	.wn-mcard__tag,
	.wn-ins-kicker {
		font-size: 13.5px !important;
		line-height: 1.5 !important;
	}
	.wn-footer__title,
	.wn-mnav__title,
	.wn-mini-title,
	.wn-citem__label,
	.wn-build__label,
	.wn-pbl__label {
		font-size: 13px !important;
		line-height: 1.5 !important;
	}

	/* Hero */
	.wn-hero__tagline {
		font-size: 22px !important;
		line-height: 1.55 !important;
	}
	.wn-hero__lead {
		font-size: 17px !important;
		line-height: 1.85 !important;
	}

	/* Section intros and body copy that was 14px */
	.wn-lead {
		font-size: 17px !important;
		line-height: 1.85 !important;
	}
	.wn-feat__text,
	.wn-step__text,
	.wn-diff__text,
	.wn-principle p,
	.wn-muted,
	.wn-note,
	.wn-faq .wp-block-details p,
	.wn-mcard__sub,
	.wn-mpage__sub,
	.wn-mpage__desc,
	.wn-spec__text,
	.wn-contact-addr,
	.wn-consent,
	.wn-review__text,
	ul.wn-checklist li {
		font-size: 16px !important;
		line-height: 1.8 !important;
	}
	.wn-feat__title,
	.wn-step__title,
	.wn-block-title,
	.wn-principles-title,
	.wn-h3 {
		font-size: 20px !important;
		line-height: 1.45 !important;
	}
	.wn-diff__title,
	.wn-principle h3 {
		font-size: 17px !important;
		line-height: 1.5 !important;
	}
	.wn-step__num,
	.wn-num {
		font-size: 15px !important;
	}
	.wn-stat__label {
		font-size: 15px !important;
	}

	/* Buttons and text links: larger text and comfortable touch areas */
	.wn-btn {
		font-size: 16px !important;
		line-height: 1.4 !important;
		height: auto !important;
		min-height: 50px;
		padding-block: 13px !important;
	}
	.wn-textlink,
	.wn-ins-more,
	.wn-pricing__more a {
		font-size: 16px !important;
		line-height: 1.5 !important;
		display: inline-flex !important;
		align-items: center;
		min-height: 44px;
	}
	.wn-lang,
	.wn-lang--mobile {
		font-size: 15px !important;
		min-height: 44px;
		display: inline-flex !important;
		align-items: center;
	}

	/* FAQ */
	.wn-faq .wp-block-details summary,
	.wpc details summary,
	.wn-kit .wk-faq summary {
		font-size: 17px !important;
		line-height: 1.55 !important;
		padding-block: 12px !important;
	}

	/* Mobile menu */
	.wn-mnav__link {
		font-size: 18px !important;
		line-height: 1.5 !important;
		padding-block: 6px;
	}
	.wn-mnav__link--sm,
	.wn-mnav__addr,
	.wn-mnav__val {
		font-size: 16px !important;
		line-height: 1.6 !important;
	}

	/* Contact items and forms (16px inputs also stop iOS from zooming) */
	.wn-citem__value {
		font-size: 16px !important;
		line-height: 1.5 !important;
	}
	.wn-form label,
	.wn-cp__label,
	.wn-drop__title,
	.wn-drop__btn {
		font-size: 15.5px !important;
		line-height: 1.5 !important;
	}
	.wn-form input[type="text"],
	.wn-form input[type="tel"],
	.wn-form input[type="email"],
	.wn-form textarea,
	.wn-form select,
	.wn-cp input.wn-cp__input,
	.wn-cf input.wn-cp__input,
	.wn-phone input.wn-phone__input,
	.wn-rv input.wn-cp__input,
	.wn-rv textarea.wn-cp__input {
		font-size: 16px !important;
	}
	.wn-form .wn-hint,
	.wn-cp__hint,
	.wn-file__meta {
		font-size: 13.5px !important;
		line-height: 1.5 !important;
	}

	/* Footer */
	.wn-footer__about,
	.wn-footer__addr {
		font-size: 15.5px !important;
		line-height: 1.8 !important;
	}
	.wn-footer__links {
		font-size: 15.5px !important;
	}
	.wn-footer__links a {
		display: inline-flex !important;
		align-items: center;
		min-height: 40px;
	}
	.wn-footer__bottom {
		font-size: 13px !important;
		line-height: 1.6 !important;
	}
	.wn-wa-mini {
		min-width: 40px;
		min-height: 40px;
	}

	/* Insights list */
	.wn-ins-lead {
		font-size: 17px !important;
		line-height: 1.85 !important;
	}
	.wn-ins-meta,
	.wn-ins-meta * {
		font-size: 14px !important;
	}
	.wn-ins-excerpt {
		font-size: 16px !important;
		line-height: 1.85 !important;
	}

	/* Articles */
	.wn-kit .wk-meta span,
	.wn-kit .wk-cover figcaption,
	.wn-kit .wk-figure figcaption,
	.wp-element-caption {
		font-size: 14px !important;
		line-height: 1.7 !important;
	}
	.wn-kit .wk-stat__s,
	.wn-kit .wk-scen__fit,
	.wn-kit .wk-phone__screen {
		font-size: 13px !important;
	}
	.wn-kit .wk-meter,
	.wn-kit .wk-ba__ctx,
	.wn-kit .wk-phase__tab,
	.wn-kit .wk-serp__url {
		font-size: 14px !important;
	}
	.wn-kit .wk-stat__s {
		color: rgba(255, 255, 255, .78) !important;
	}

	/* Price calculator */
	.wpc-promo .wpc-promo__text,
	.wpc-promo .wpc-promo__cta,
	.wpc-screen__tag,
	.wpc .wpc-screen__note,
	.wpc-stepper__unit,
	.wpc-lang__meta,
	.wpc .wpc-included__fine {
		font-size: 14px !important;
		line-height: 1.6 !important;
	}
	.wpc .wpc-note,
	.wpc .wpc-order__line,
	.wpc-bill__row,
	.wpc .wpc-bill__title,
	.wpc-feat__text {
		font-size: 15px !important;
		line-height: 1.65 !important;
	}

	/* Floating call / WhatsApp buttons: smaller, so they cover less text */
	.wn-float__btn {
		width: 50px !important;
		height: 50px !important;
		bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px)) !important;
		box-shadow: 0 4px 14px rgba(11, 18, 21, .22) !important;
	}
	.wn-float__btn--wa {
		left: max(12px, env(safe-area-inset-left)) !important;
	}
	.wn-float__btn--call {
		right: max(12px, env(safe-area-inset-right)) !important;
	}
	.wn-float__btn svg {
		width: 26px !important;
		height: 26px !important;
	}
	/* Room under the footer so the floating buttons (bottom 14px, 50px tall) clear the badge row;
	   the copyright line sits between them (webnaa.css pads it sideways). */
	.wn-footer {
		padding-bottom: 24px !important;
	}
}

/* Very small phones (320–359px): keep long Arabic headings from crowding. */
@media (max-width: 359.98px) {
	.wn-hero__title {
		font-size: 42px !important;
	}
	.wn-h1,
	.wn-page-hero h1 {
		font-size: 32px !important;
		line-height: 1.25 !important;
	}
	.wn-h2 {
		font-size: 27px !important;
		line-height: 1.3 !important;
	}
}

/* Design-sample pages: keep each sample's palette, darken only the accents
   that fell below readable contrast on their light backgrounds. */
.rs-contact__grid small,
.rs-firm__main .rs-pull footer {
	color: #7d6034 !important;
}
.rw-hero__copy .rw-tag,
.rw-items__row strong {
	color: #a8431f !important;
}
.rw-hero__lead,
.rw-lead,
.rw-small,
.rw-bean__meta,
.rw-roast span,
.rw-bean__foot small,
.rw-items p {
	color: rgba(42, 27, 18, .8) !important;
}
