/* Tahseely – landing page styles. Colours only via --wp--preset--* (theme.json). */

html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-radius: 6px;
}
.th-dark :where(a, button, summary):focus-visible,
.th-hero :where(a, button):focus-visible,
.th-cta :where(a, button):focus-visible,
.th-footer :where(a):focus-visible { outline-color: var(--wp--preset--color--sky); }

/* ---------- Skip link ---------- */
.th-skip {
	position: absolute; inset-inline-start: 12px; top: -100px; z-index: 100;
	background: var(--wp--preset--color--accent); color: var(--wp--preset--color--surface);
	padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.th-skip:focus { top: 12px; }

/* ---------- Generic buttons (HTML links) ---------- */
.th-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border-radius: 12px;
	font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 16px; line-height: 1.2;
	text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.th-btn--sm { min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: 15px; }
.th-btn--block { width: 100%; }
.th-btn--accent { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--surface); }
.th-btn--accent:hover { background: var(--wp--preset--color--accent-ink); color: var(--wp--preset--color--surface); }
.th-btn--ghost { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--border); }
.th-btn--ghost:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent-ink); }

/* Core button block */
.wp-block-button .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--accent-ink);
	border: 1.5px solid var(--wp--preset--color--accent); padding: 13px 22px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ground); }
:is(.th-hero, .th-dark, .th-cta) .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--muted-dark);
}
:is(.th-hero, .th-dark, .th-cta) .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink-2); border-color: var(--wp--preset--color--surface);
}
.th-actions { gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.th-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.admin-bar .th-header { top: var(--wp-admin--admin-bar--height, 32px); }
.th-header__inner {
	max-width: 1200px; margin-inline: auto; padding-inline: 24px;
	min-height: 72px; display: flex; align-items: center; gap: 24px;
}
.th-brand { display: inline-flex; flex-direction: column; line-height: 1.1; text-decoration: none; color: var(--wp--preset--color--ink); flex-shrink: 0; }
.th-brand__name { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 26px; }
.th-brand__y { color: var(--wp--preset--color--accent); }
.th-brand__sub { font-size: 12px; color: var(--wp--preset--color--muted); margin-top: 3px; }
.th-brand__img { max-height: 48px; width: auto; }
.th-nav { margin-inline: auto; }
.th-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.th-nav a { color: var(--wp--preset--color--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 0; }
.th-nav a:hover { color: var(--wp--preset--color--accent-ink); }
.th-header__actions { display: flex; align-items: center; gap: 10px; }
.th-burger {
	display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--wp--preset--color--border); border-radius: 10px;
	color: var(--wp--preset--color--ink); cursor: pointer;
}

@media (max-width: 959px) {
	.th-header__inner { gap: 12px; min-height: 64px; }
	.th-burger { display: inline-flex; }
	.th-header__actions { margin-inline-start: auto; }
	.th-nav {
		display: none; position: absolute; inset-inline: 0; top: 100%;
		background: var(--wp--preset--color--surface); border-bottom: 1px solid var(--wp--preset--color--border);
		padding: 8px 24px 16px;
	}
	.th-nav.is-open { display: block; }
	.th-nav ul { flex-direction: column; gap: 0; }
	.th-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--border); }
	.th-hide-mobile { display: none; }
	.th-brand__name { font-size: 22px; }
}

/* ---------- Sections ---------- */
.wp-site-blocks > * { margin-block: 0; }
.is-layout-constrained > .th-head { margin-inline-start: 0 !important; margin-inline-end: auto !important; }
.th-main > .wp-block-group { margin-block: 0; }
.th-section { padding-block: clamp(56px, 7vw, 96px); }
.th-section--tight { padding-block: clamp(48px, 6vw, 72px); }
.th-section > * + * { margin-block-start: 32px; }
.th-head { max-width: 820px; }
.th-head > * { margin-block: 0; }
.th-head > * + * { margin-block-start: 14px; }
.th-sub { color: var(--wp--preset--color--muted); font-size: 18px; margin: 0; }
.th-dark .th-sub { color: var(--wp--preset--color--muted-dark); }
.th-center { text-align: center; }
.th-center .th-chips { justify-content: center; }
h1, h2, h3 { margin-block: 0; text-wrap: balance; }
.th-eyebrow { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 15px; margin: 0 0 8px; }

/* Grids */
.th-grid.th-grid { display: grid; gap: 20px; }
.th-grid.th-grid > * { margin: 0; }
.th-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.th-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .th-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 781px) { .th-grid--4, .th-grid--3 { grid-template-columns: 1fr; } }

/* Cards */
.th-card {
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px; padding: 24px;
}
.th-card > * { margin-block: 0; }
.th-card > * + * { margin-block-start: 10px; }
.th-card p { color: var(--wp--preset--color--muted); font-size: 16px; line-height: 1.7; }
.th-card--dark { border-color: var(--wp--preset--color--ink-2); }
.th-card--dark p { color: var(--wp--preset--color--muted-dark); }
.th-icon {
	display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center;
	border-radius: 12px; background: var(--wp--preset--color--ground); color: var(--wp--preset--color--accent-ink);
}
.th-card > .th-icon + * { margin-block-start: 16px; }

/* Split rows (columns) */
.th-split { gap: clamp(32px, 5vw, 64px); align-items: center; }
.th-split > .wp-block-column > * { margin-block: 0; }
.th-split > .wp-block-column > * + * { margin-block-start: 20px; }
@media (max-width: 781px) {
	.th-split--media-first { flex-direction: column-reverse; }
}

/* ---------- Hero ---------- */
.th-hero { padding-block: clamp(48px, 7vw, 88px) 112px; }
.th-kicker { font-size: 15px; font-weight: 500; margin: 0; }
.th-hero h1 { margin-block-start: 14px; }
.th-lead { font-size: 18px; line-height: 1.8; max-width: 640px; }
.th-trust { margin-top: 24px; }

/* Phone frames */
.th-phone.wp-block-image { margin-inline: auto; max-width: 300px; width: 100%; }
.th-phone img {
	display: block; width: 100%; aspect-ratio: 9 / 18; object-fit: cover;
	border-radius: 36px; border: 10px solid var(--wp--preset--color--ink-2);
	background: var(--wp--preset--color--ink-2);
}
.th-phone--light img { border-color: var(--wp--preset--color--ink); background: var(--wp--preset--color--ink); }
@media (max-width: 781px) { .th-phone.wp-block-image { max-width: 240px; } }

/* ---------- Stats ---------- */
.th-stats-wrap { position: relative; z-index: 2; }
.th-stats.th-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
	margin-top: -48px; background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border); border-radius: 16px; padding: 8px 0;
}
.th-stat { padding: 20px 28px; text-align: center; }
.th-stat + .th-stat { border-inline-start: 1px solid var(--wp--preset--color--border); }
.th-stat > * { margin: 0; }
.th-stat__num {
	font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(26px, 3vw, 34px);
	line-height: 1.2; color: var(--wp--preset--color--accent-ink); direction: ltr; unicode-bidi: isolate;
}
.th-stat__num--text { direction: rtl; font-size: clamp(22px, 2.4vw, 28px); }
.th-stat__label { color: var(--wp--preset--color--muted); font-size: 15px; margin-top: 6px !important; }
@media (max-width: 781px) {
	.th-stats.th-grid { grid-template-columns: 1fr; }
	.th-stat + .th-stat { border-inline-start: 0; border-top: 1px solid var(--wp--preset--color--border); }
	.th-stat { padding: 16px 20px; }
}

/* ---------- Check list ---------- */
.th-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.th-checks li { position: relative; padding-inline-start: 34px; line-height: 1.7; }
.th-checks li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 6.8-6.8 1.8 1.8-8.6 8.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 6.8-6.8 1.8 1.8-8.6 8.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.th-checks strong { color: var(--wp--preset--color--ink); }
@media (max-width: 781px) { .th-checks { grid-template-columns: 1fr; } }

.th-stores { gap: 12px; margin-top: 28px !important; }
.th-store .wp-block-button__link { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--surface); font-size: 15px; }
.th-store .wp-block-button__link:hover { background: var(--wp--preset--color--ink-2); color: var(--wp--preset--color--surface); }

/* ---------- Chips ---------- */
.th-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.th-chips li {
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px; padding: 10px 22px; font-weight: 500; color: var(--wp--preset--color--ink);
}

/* ---------- Quotes ---------- */
.th-quote {
	margin: 0; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.th-quote blockquote { margin: 0; padding: 0; border: 0; }
.th-quote blockquote p { margin: 0; font-size: 17px; line-height: 1.8; }
.th-quote figcaption { color: var(--wp--preset--color--muted); font-size: 15px; margin-top: auto; }

/* ---------- Steps ---------- */
.th-steps {
	list-style: none; padding: 0; margin: 0; counter-reset: th-step;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
}
.th-steps li { counter-increment: th-step; border-top: 3px solid var(--wp--preset--color--ink); padding-top: 18px; color: var(--wp--preset--color--muted); line-height: 1.75; }
.th-steps li:last-child { border-top-color: var(--wp--preset--color--accent); }
.th-steps li::before {
	content: counter(th-step, decimal-leading-zero); display: block; margin-bottom: 8px;
	font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 30px; line-height: 1;
	color: var(--wp--preset--color--accent);
}
.th-steps strong { display: inline-block; color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 20px; margin-bottom: 6px; }
@media (max-width: 781px) { .th-steps { grid-template-columns: 1fr; } }

/* ---------- Trial form ---------- */
.th-trial { align-items: flex-start; }
.th-contact { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.th-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--wp--preset--color--ink); text-decoration: none; font-weight: 500; min-height: 44px; }
.th-contact a:hover { color: var(--wp--preset--color--accent-ink); }
.th-contact svg { color: var(--wp--preset--color--accent-ink); flex-shrink: 0; }
.th-form {
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px;
}
.th-field { display: grid; gap: 6px; }
.th-field label { font-weight: 600; font-size: 15px; color: var(--wp--preset--color--ink); }
.th-field small { color: var(--wp--preset--color--muted); font-size: 13px; }
.th-field input, .th-field select {
	box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 14px; font: inherit; font-size: 16px;
	color: var(--wp--preset--color--ink); background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border); border-radius: 10px;
}
.th-field input[dir="ltr"] { text-align: right; }
.th-field input:focus, .th-field select:focus { border-color: var(--wp--preset--color--accent); }
.th-form__error { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--wp--preset--color--ground); color: var(--wp--preset--color--accent-ink); border: 1px solid var(--wp--preset--color--accent); font-weight: 500; }
.th-form__title { font-size: 22px; }
.th-form--done p { margin: 0; color: var(--wp--preset--color--muted); }
.th-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.th-form button[disabled] { opacity: .7; cursor: progress; }

/* ---------- FAQ ---------- */
.th-faq { border-top: 1px solid var(--wp--preset--color--border); }
.th-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--border); padding: 0; margin: 0; }
.th-faq summary {
	list-style: none; cursor: pointer; padding: 20px 0; padding-inline-end: 40px; position: relative;
	font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 18px; color: var(--wp--preset--color--ink);
}
.th-faq summary::-webkit-details-marker { display: none; }
.th-faq summary::after {
	content: "+"; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	background: var(--wp--preset--color--ground); color: var(--wp--preset--color--accent-ink); font-size: 20px; line-height: 1;
}
.th-faq details[open] summary::after { content: "−"; }
.th-faq details > :not(summary) { margin: 0 0 20px; color: var(--wp--preset--color--muted); }

/* ---------- Final CTA ---------- */
.th-section--cta { padding-block-start: 0; }
.th-cta.th-cta { border-radius: 24px; padding: clamp(36px, 6vw, 64px) 24px; }
.th-cta .th-actions { justify-content: center; }

/* ---------- Footer ---------- */
.th-footer { padding-block: 40px; }
.th-footer > * { margin-block: 0; }
.th-footer > * + * { margin-block-start: 10px; }
.th-footer a { color: var(--wp--preset--color--surface); }
.th-footer a:hover { color: var(--wp--preset--color--sky); }
.th-footer__brand { color: var(--wp--preset--color--surface); }

/* ---------- Floating WhatsApp + mobile bar ---------- */
.th-float {
	position: fixed; left: 20px; bottom: 20px; z-index: 60;
	width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	background: var(--wp--preset--color--accent); color: var(--wp--preset--color--surface);
	border: 2px solid var(--wp--preset--color--surface);
}
.th-float:hover { background: var(--wp--preset--color--accent-ink); }
.th-mbar { display: none; }
@media (max-width: 781px) {
	.th-mbar {
		display: grid; grid-template-columns: 2fr 1fr; gap: 10px;
		position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--wp--preset--color--surface); border-top: 1px solid var(--wp--preset--color--border);
	}
	.th-float { bottom: 84px; left: 16px; width: 52px; height: 52px; }
	.th-footer { padding-bottom: 104px; }
}

/* Inner pages */
.th-page { padding-block: 48px 72px; }

/* Editor canvas: keep the RTL layout even when the admin language is English */
.editor-styles-wrapper { direction: rtl; }
