/* Meshek 89 - the "צור קשר" page template (page-templates/contact-page.php). RTL; loaded on that page only. */

body.page-template-page-templates-contact-page-php,
body.page-template-page-templates-contact-page-php #main {
	background: #fbf8f2;
}

.m89-contact-page {
	--m89-contact-bg: #fbf8f2;
	--m89-contact-ink: #2a2723;
	--m89-contact-green: #22412e;
	--m89-contact-terracotta: #d6785f;
	--m89-contact-sage: #cfdcc8;
	--m89-contact-chip: #f3efe6;
	--m89-contact-font: Heebo, sans-serif;

	display: block;
	background: var(--m89-contact-bg);
	color: var(--m89-contact-ink);
	font-family: var(--m89-contact-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	letter-spacing: 0.2px;
	direction: rtl;
	text-align: right;
}

.m89-contact-page *,
.m89-contact-page *::before,
.m89-contact-page *::after {
	box-sizing: border-box;
}

.m89-contact-wrap {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 40px);
}

/* ---------- Breadcrumb ---------- */

.m89-contact-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 20px 0 0;
	list-style: none;
	color: var(--m89-contact-ink);
}

.m89-contact-crumbs li {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* U+203A is mirrored in right-to-left text, so it points to the next (left) item. */
.m89-contact-crumbs li + li::before {
	content: "\203A";
	margin-inline-end: 8px;
	color: rgba(42, 39, 35, 0.6);
}

.m89-contact-page .m89-contact-crumbs a {
	color: rgba(42, 39, 35, 0.6);
	text-decoration: none;
}

.m89-contact-page .m89-contact-crumbs a:hover,
.m89-contact-page .m89-contact-crumbs a:focus-visible {
	color: var(--m89-contact-terracotta);
}

/* ---------- Hero ---------- */

.m89-contact-hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	padding: 24px 0 40px;
}

.m89-contact-page .m89-contact-eyebrow {
	margin: 0 0 8px;
	font-family: var(--m89-contact-font);
	font-size: clamp(17px, calc(15.64px + 0.364vw), 20px);
	font-weight: 500;
	line-height: clamp(22px, calc(20.18px + 0.485vw), 26px);
	color: var(--m89-contact-terracotta);
}

.m89-contact-page .m89-contact-h1 {
	margin: 0 0 14px;
	font-family: var(--m89-contact-font);
	font-size: clamp(30px, calc(25.45px + 1.212vw), 40px);
	font-weight: 500;
	line-height: clamp(42px, calc(35.64px + 1.697vw), 56px);
	letter-spacing: 0.2px;
	text-transform: none;
	color: var(--m89-contact-ink);
}

.m89-contact-page .m89-contact-lead {
	max-width: 460px;
	margin: 0;
	font-size: clamp(15px, calc(14.09px + 0.242vw), 17px);
	line-height: clamp(22px, calc(20.18px + 0.485vw), 26px);
	color: rgba(42, 39, 35, 0.78);
	text-wrap: pretty;
}

.m89-contact-hero-art {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
}

/* The illustration has a white background; multiply blends it into the page. */
.m89-contact-hero-art img {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
}

/* ---------- Cards ---------- */

.m89-contact-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 16px;
	padding-bottom: 64px;
}

.m89-contact-page .m89-contact-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 26px 26px 24px;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 2px 14px rgba(42, 39, 35, 0.06);
	color: var(--m89-contact-ink);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.m89-contact-page .m89-contact-card:hover,
.m89-contact-page .m89-contact-card:focus-visible {
	color: var(--m89-contact-ink);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(42, 39, 35, 0.1);
}

.m89-contact-page .m89-contact-card:focus-visible {
	outline: 2px solid var(--m89-contact-terracotta);
	outline-offset: 3px;
}

.m89-contact-page .m89-contact-card-dark,
.m89-contact-page .m89-contact-card-dark:hover,
.m89-contact-page .m89-contact-card-dark:focus-visible {
	background: var(--m89-contact-green);
	color: var(--m89-contact-bg);
}

.m89-contact-page .m89-contact-card-dark {
	box-shadow: none;
}

.m89-contact-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.m89-contact-icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--m89-contact-chip);
	color: var(--m89-contact-green);
}

.m89-contact-card-dark .m89-contact-icon {
	background: var(--m89-contact-sage);
}

.m89-contact-icon svg {
	display: block;
}

.m89-contact-badge {
	flex: none;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--m89-contact-terracotta);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	white-space: nowrap;
}

.m89-contact-card-body,
.m89-contact-label,
.m89-contact-value,
.m89-contact-note {
	display: block;
}

.m89-contact-label {
	margin-bottom: 2px;
	color: rgba(42, 39, 35, 0.62);
}

.m89-contact-card-dark .m89-contact-label {
	color: inherit;
	opacity: 0.78;
}

/* dir="ltr" keeps the number in order; text-align keeps it on the right edge with the label. */
.m89-contact-value {
	font-size: clamp(22px, calc(20.64px + 0.364vw), 25px);
	font-weight: 500;
	line-height: clamp(28px, calc(26.18px + 0.485vw), 32px);
	text-align: right;
}

.m89-contact-value-email {
	font-size: clamp(17px, calc(15.64px + 0.364vw), 20px);
	line-height: clamp(22px, calc(20.18px + 0.485vw), 26px);
	overflow-wrap: anywhere;
}

.m89-contact-note {
	opacity: 0.8;
}

.m89-contact-btn {
	display: block;
	margin-top: auto;
	padding: 10px 0;
	border: 1.5px solid var(--m89-contact-green);
	border-radius: 12px;
	color: var(--m89-contact-green);
	font-size: clamp(15px, calc(14.55px + 0.121vw), 16px);
	font-weight: 500;
	line-height: clamp(18px, calc(15.27px + 0.727vw), 24px);
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.m89-contact-card:hover .m89-contact-btn,
.m89-contact-card:focus-visible .m89-contact-btn {
	background: var(--m89-contact-green);
	color: var(--m89-contact-bg);
}

/* Filled cream button on the dark card; 11px padding matches the outlined buttons' height. */
.m89-contact-card-dark .m89-contact-btn {
	padding: 11px 0;
	border: 0;
	background: var(--m89-contact-bg);
	color: var(--m89-contact-green);
}

.m89-contact-card-dark:hover .m89-contact-btn,
.m89-contact-card-dark:focus-visible .m89-contact-btn {
	background: var(--m89-contact-sage);
	color: var(--m89-contact-green);
}

/* The page's own content, if any, after the cards. */
.m89-contact-content {
	padding-bottom: 64px;
}

@media (prefers-reduced-motion: reduce) {
	.m89-contact-page .m89-contact-card,
	.m89-contact-btn {
		transition: none;
	}

	.m89-contact-page .m89-contact-card:hover,
	.m89-contact-page .m89-contact-card:focus-visible {
		transform: none;
	}
}
