/**
 * עמוד "צור קשר" (page-16.php).
 *
 * הבסיס הוא העיצוב של בית המדרש הדיגיטלי (page-7601.css, נטען לפניו): הפתיח
 * הכחול. כאן רק מה שמיוחד לעמוד: ארבעה כרטיסי "למי לפנות?" שעולים על קצה
 * הפתיח, והטופס ולצידו פרטי הקשר.
 * העיצוב של הטופס עצמו בתוסף (questions.css, משותף עם "שאל את הרב").
 * רשימת פרטי הקשר (.ov-contact) מגיעה מהפוטר (site-chrome.css), שם היא לבנה על
 * כחול, ולכן הצבעים שלה מוחלפים כאן.
 *
 * גדלים בפיקסלים ולא ב-rem: OceanWP קובע לשורש 10px.
 */

/* הפתיח: בלי חיפוש מתחת לשורת המשנה, ועם מקום בתחתית לכרטיסים שעולים עליו. */
.ov-cnt__hero-inner {
	padding-bottom: clamp(96px, 13vh, 128px);
}

/* שבירת שורות מאוזנת: בלי מילה אחת לבד בשורה האחרונה. */
.ov-cnt .ov-bm-hero__lede {
	text-wrap: balance;
}

/* ==========================================================================
   למי לפנות? ארבעה כרטיסים שווים
   ========================================================================== */

.ov-cnt__routes {
	position: relative;
	z-index: 1;
	margin-top: calc(-1 * clamp(56px, 8vh, 72px));
}

.ov-cnt__route-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ov-cnt__route-list li {
	margin: 0;
}

.ov-cnt__route {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 24px 24px 22px;
	color: var(--ink);
	text-decoration: none;
	background: #ffffff;
	border: 1px solid var(--line);
	border-top: 3px solid var(--gold);
	border-radius: 18px;
	box-shadow: var(--shadow-md);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ov-cnt__route:hover,
.ov-cnt__route:focus-visible {
	color: var(--ink);
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}

.ov-cnt__route:focus-visible {
	outline: 3px solid var(--navy);
	outline-offset: 3px;
}

.ov-cnt__route-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 8px;
	color: var(--gold-deep);
	background: var(--sand);
	border-radius: 50%;
}

.ov-cnt__route-icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ov-cnt__route-title {
	font-family: var(--display);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--navy);
}

.ov-cnt__route-text {
	flex: 1;
	font-size: 16px;
	line-height: 1.55;
	color: var(--muted);
	text-wrap: pretty;
}

.ov-cnt__route-go {
	margin-top: 10px;
	font-size: 16px;
	font-weight: 700;
	color: var(--navy);
	text-decoration: underline;
	text-decoration-color: var(--gold);
	text-underline-offset: 4px;
}

.ov-cnt__route-go::after {
	content: " ←";
	text-decoration: none;
}

.ov-cnt__route:hover .ov-cnt__route-go {
	color: var(--gold-deep);
}

/* ==========================================================================
   הטופס ופרטי הקשר: שני כרטיסים שמתחילים באותו גובה
   ========================================================================== */

.ov-cnt__body {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 40px);
	align-items: start;
	padding-top: clamp(40px, 6vh, 64px);
	padding-bottom: clamp(56px, 8vh, 96px);
}

/* אחרי השליחה העמוד קופץ להודעת התודה: שלא תוסתר מתחת להדר הדביק. */
.ov-cnt .ov-contact-form {
	scroll-margin-top: 110px;
}

.ov-cnt .ov-contact-form__title,
.ov-cnt__side-title {
	margin: 0 0 22px;
	font-family: var(--display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--navy);
}

.ov-cnt__side {
	padding: clamp(24px, 4vw, 36px);
	background: var(--sand);
	border: 1px solid var(--line);
	border-top: 3px solid var(--gold);
	border-radius: 18px;
}

.ov-cnt__side .ov-contact {
	gap: 18px;
	font-size: 17px;
	line-height: 1.55;
}

.ov-cnt__side .ov-contact__label {
	margin-bottom: 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--muted);
}

.ov-cnt__side .ov-contact__value {
	color: var(--ink);
}

.ov-cnt__side .ov-contact__value a {
	font-weight: 700;
	color: var(--navy);
	text-decoration: none;
}

.ov-cnt__side .ov-contact__value a:hover,
.ov-cnt__side .ov-contact__value a:focus-visible {
	color: var(--gold-deep);
	text-decoration: underline;
}

.ov-cnt__wa {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 22px;
	min-height: 50px;
	padding: 12px 22px;
	font-size: 17px;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
	background: #1f8f4e;
	border-radius: 100px;
	transition: background-color 0.25s ease, transform 0.3s var(--ease);
}

.ov-cnt__wa:hover,
.ov-cnt__wa:focus-visible {
	color: #ffffff;
	background: #18773f;
	transform: translateY(-2px);
}

.ov-cnt__wa .ov-icon {
	width: 20px;
	height: 20px;
}

.ov-cnt__block {
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.ov-cnt__block-title {
	margin: 0 0 6px;
	font-family: var(--body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--muted);
}

.ov-cnt__address {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
}

.ov-cnt__more {
	font-size: 16px;
	font-weight: 700;
	color: var(--navy);
	text-decoration: underline;
	text-decoration-color: var(--gold);
	text-underline-offset: 4px;
}

.ov-cnt__more:hover,
.ov-cnt__more:focus-visible {
	color: var(--gold-deep);
}

.ov-cnt__social {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ov-cnt__social li {
	margin: 0;
}

.ov-cnt__social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--navy);
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 50%;
	transition: color 0.25s ease, border-color 0.25s ease;
}

.ov-cnt__social a:hover,
.ov-cnt__social a:focus-visible {
	color: var(--gold-deep);
	border-color: var(--gold);
}

@media (max-width: 1080px) {
	.ov-cnt__route-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.ov-cnt__body {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* בטלפון: כרטיס בשורה, האיקון בצד והטקסט לידו, כדי שארבעתם לא יתפסו מסך שלם. */
@media (max-width: 600px) {
	.ov-cnt__hero-inner {
		padding-bottom: 84px;
	}

	.ov-cnt__routes {
		margin-top: -56px;
	}

	.ov-cnt__body {
		padding-top: 28px;
	}

	.ov-cnt__route-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.ov-cnt__route {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr);
		column-gap: 14px;
		row-gap: 2px;
		padding: 16px 18px;
	}

	.ov-cnt__route-icon {
		grid-row: span 3;
		width: 44px;
		height: 44px;
		margin: 0;
	}

	.ov-cnt__route-title {
		font-size: 19px;
	}

	.ov-cnt__route-text {
		font-size: 15px;
	}

	.ov-cnt__route-go {
		margin-top: 4px;
		font-size: 15px;
	}

	.ov-cnt .ov-contact-form__title,
	.ov-cnt__side-title {
		font-size: 23px;
	}
}
