/* ==========================================================================
   KIRUR NISIM THEME - css/nisim/pages/about.css                (owner: about)
   About page (view/pages/about.tpl) and its dynamic block
   (view/dblocks/about_media.tpl). Design source: the about design file.

   From base.css (not repeated here): .nis-pagehero*, breadcrumbs, .nis-kicker*,
   .nis-rule*, .nis-stat*, .nis-cta*, .nis-btn*, .nis-rich, .nis-b, .nis-ltr,
   [data-nis-reveal] / .is-in.

   The block is served as ONE article (CMS text untouched, the design rows in a
   hidden container). js/nisim/about.js puts the design rows into the CMS text
   and moves every CMS section into its row, without changing a text or a tag.
   States of .nis-about-media
     (none)     the article: no JS, or about.js has not run yet
     .is-rows   about.js built the rows of the design
     .is-plain  about.js ran but found no heading to group by: stays the article
   Classes added by about.js: nis-about-row--seo (strip after the band),
   --text (row without media), --last; nis-about-row__title / __p (CMS heading /
   paragraph that took a design slot); nis-seo, nis-seo__title (appendix with
   the rest of the CMS section, decision R3); nis-about-empty.

   Minifier-safe (platform spec, chapter 5); url() relative to this file.
   ========================================================================== */

/* ---------- 1. Hero: the h1 and the design's "— מאז 1973" on one line; CTA band values of this design ---------- */
.nis-about-title {
	letter-spacing: normal;
}
.nis-about-title__name {
	display: inline;
}
.nis-about-title__since {
	white-space: nowrap;
}
.nis-about-title__sep {
	color: rgba(26, 48, 82, .32);
}
.nis-about .nis-pagehero__in > .nis-kicker,
.nis-about-cta .nis-kicker {
	line-height: 1.4;
}
.nis-about-cta {
	padding-top: clamp(56px, 6vw, 96px);
	padding-bottom: clamp(56px, 6vw, 96px);
}
.nis-about-cta .nis-cta__title {
	font-size: clamp(28px, 3.2vw, 46px);
	letter-spacing: normal;
}

/* ---------- 2. Article mode (default, and the page without JavaScript): photo, label, rich text ---------- */
.nis-about-media {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--nis-sec-y-sm) var(--nis-gutter) var(--nis-sec-y);
	background: var(--nis-cream);
}
.nis-about-media__text,
.nis-about-media__photo {
	width: 100%;
	max-width: 880px;
}
.nis-about-media__photo {
	order: -1;
	margin-bottom: clamp(28px, 3.4vw, 48px);
	border-radius: var(--nis-r-card);
	overflow: hidden;
	background: var(--nis-mist);
}
.nis-about-media__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 794 / 400;
	object-fit: cover;
}
.nis-about-media__design {
	display: none !important;
}
/* block title (title_tag = div today; the admin may turn it into h2-h6): its wrapper carries the shared kicker
   look, Hebrew labels get the label tracking */
.nis-about-media__title {
	display: block;
}
.nis-about-media__title .tag {
	margin: 0;
	color: inherit;
	font: inherit;
	letter-spacing: var(--nis-ls-label);
}
.nis-about-media__title + .nis-about-media__body > :first-child > :first-child {
	margin-top: 16px;
}
/* optional CMS link of the block (field "קישור", not set today). about.js adds .nis-btn .nis-btn--navy to it */
.nis-about-media__link {
	margin-top: 32px;
}
.nis-about-media__link > a:not(.nis-btn) {
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- 3. No flash of the article before about.js builds the rows (shown anyway after 3s) ---------- */
html.nis-js .nis-about-media:not(.is-rows):not(.is-plain) {
	visibility: hidden;
	animation: nisAboutFailsafe 0s linear 3s forwards;
	animation-delay: 3s !important;
}
@keyframes nisAboutFailsafe {
	to {
		visibility: visible;
	}
}

/* ---------- 4. Rows mode: the split rows of the design ---------- */
.nis-about-media.is-rows {
	display: block;
	padding: 0;
	background: none;
}
.is-rows .nis-about-media__text,
.is-rows .nis-about-media__body {
	max-width: none;
	margin: 0;
	padding: 0;
}
.is-rows .nis-about-media__body hr,
.is-rows .nis-about-empty {
	display: none;
}
.is-rows .nis-about-row {
	position: relative;
	padding: clamp(48px, 5.4vw, 86px) var(--nis-gutter);
	background: var(--nis-cream);
	color: var(--nis-text);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.95;
}
.is-rows .nis-about-row--white {
	background: var(--nis-white);
}
.is-rows .nis-about-row--last {
	padding-bottom: clamp(56px, 6vw, 92px);
}
.is-rows .nis-about-row__in {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--nis-gap-cols);
	align-items: center;
}
.is-rows .nis-about-row--text .nis-about-row__in {
	grid-template-columns: minmax(0, 1fr);
}
.is-rows .nis-about-row__text {
	min-width: 0;
}
/* kickers are blocks here: an inline-block would sit on a line of the row's line-height (1.95) */
.is-rows .nis-about-row__text > .nis-kicker {
	display: block;
	line-height: 1.36;
}
/* row title: the design's div, or the CMS heading that took the slot (class added by about.js; headings are never
   styled by tag name). The dot between the light and the bold part is drawn here */
.is-rows .nis-about-row__title {
	margin: 16px 0 0;
	padding: 0;
	border: 0;
	color: var(--nis-navy);
	font-size: clamp(27px, 2.8vw, 40px);
	font-weight: 300;
	line-height: 1.22;
	letter-spacing: 0;
}
.is-rows .nis-about-row__title .nis-b::before {
	content: "\00B7\00A0";
	color: rgba(26, 48, 82, .28);
	font-weight: 300;
}
.is-rows .nis-about-row__p {
	max-width: 56ch;
	margin: 22px 0 0;
	color: var(--nis-text);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.95;
}
.is-rows .nis-about-stat {
	margin-top: 32px;
}
.is-rows .nis-about-stat .nis-stat__cap {
	color: var(--nis-text-muted);
}
/* media cell. DOM order = text, media; the media takes the first column (right in RTL) unless the row is --flip */
.is-rows .nis-about-row__media {
	position: relative;
	order: -1;
	display: block;
	width: auto;
	max-width: none;
	min-width: 0;
	height: clamp(280px, 30vw, 440px);
	margin: 0;
	border-radius: var(--nis-r-card);
	overflow: hidden;
	background: var(--nis-mist);
}
.is-rows .nis-about-row--flip .nis-about-row__media {
	order: 0;
}
/* !important: the rows live inside .nis-rich, whose img rules (height: auto, and on phones width: auto + auto
   margins, all !important) would win otherwise */
.is-rows .nis-about-row__media img {
	display: block;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	margin: 0 !important;
	aspect-ratio: auto;
	border-radius: 0;
	object-fit: cover;
	transition: transform 1.2s var(--nis-ease);
}
/* in rows mode the optional link sits inside .nis-rich: keep the pill free of the rich-text link look */
.is-rows .nis-about-media__link > .nis-btn {
	font-weight: 500;
	text-decoration: none;
}

/* ---------- 5. Secondary text: the CMS section of a row (decision R3, always visible) ---------- */
.is-rows .nis-seo {
	max-width: 62ch;
	margin-top: 34px;
	padding-top: 22px;
	border-top: 1px solid var(--nis-line-3);
	color: #5F697C;
	font-size: 15.5px;
	font-weight: 300;
	line-height: 1.85;
}
/* a design paragraph whose words the row's CMS text already shows (R3: no visible duplicates; set by about.js) */
.is-rows .nis-about-dup {
	display: none;
}
.is-rows .nis-seo__title {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	color: var(--nis-navy);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0;
}
.is-rows .nis-seo p {
	margin: 0 0 .8em;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}
.is-rows .nis-seo > :last-child {
	margin-bottom: 0;
}
.is-rows .nis-seo strong,
.is-rows .nis-seo b {
	color: var(--nis-text-strong);
	font-weight: 500;
}
/* the block title ("קצת עלינו") opens the first appendix as a small gold label */
.is-rows .nis-seo .nis-about-media__title {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.6;
}
/* strip after the band: the CMS sections of the band and the ones without a row of their own, side by side */
.is-rows .nis-about-row--seo {
	padding-top: clamp(40px, 4.4vw, 64px);
	padding-bottom: clamp(40px, 4.4vw, 64px);
	background: var(--nis-white);
}
.is-rows .nis-about-row--seo .nis-about-row__in {
	align-items: start;
}
.is-rows .nis-about-row--seo .nis-seo {
	margin-top: 0;
}

/* ---------- 6. Image band (design: photo under a navy wash, copy at the bottom) ---------- */
.is-rows .nis-about-row--band {
	--nis-focus: var(--nis-gold-sand);
	display: flex;
	align-items: flex-end;
	min-height: clamp(400px, 44vw, 620px);
	padding: 0;
	overflow: hidden;
	background: var(--nis-navy-ink);
}
.is-rows .nis-about-row--band .nis-about-row__in {
	display: block;
	width: 100%;
	padding: clamp(40px, 5vw, 86px) var(--nis-gutter);
}
.is-rows .nis-about-row--band .nis-about-row__media {
	position: absolute;
	inset: 0;
	order: 0;
	height: auto;
	border-radius: 0;
	background: transparent;
}
.is-rows .nis-about-row--band .nis-about-row__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(14, 27, 46, .34) 0%, rgba(14, 27, 46, .5) 42%, rgba(14, 27, 46, .82) 100%);
	pointer-events: none;
}
.is-rows .nis-about-row--band .nis-about-row__media img {
	transition-duration: 1.6s;
}
.is-rows .nis-about-row--band .nis-about-row__text {
	position: relative;
	z-index: 1;
}
.is-rows .nis-about-row--band .nis-about-row__title {
	margin-top: 18px;
	color: var(--nis-on-navy);
	font-size: clamp(28px, 3.2vw, 46px);
	line-height: 1.2;
}
.is-rows .nis-about-row--band .nis-about-row__title .nis-b::before {
	color: rgba(247, 242, 234, .45);
}
.is-rows .nis-about-row--band .nis-rule {
	margin-top: 24px;
}
.is-rows .nis-about-row--band .nis-about-row__p {
	max-width: 62ch;
	margin-top: 24px;
	color: #F2EDE4;
	font-size: 17.5px;
}

/* ---------- 7. Slow zoom on hover (design: row photo 1.03 / 1.2s, band 1.04 / 1.6s) ---------- */
@media (hover: hover) {
	.is-rows .nis-about-row__media:hover img {
		transform: scale(1.03);
	}
	.is-rows .nis-about-row--band:hover .nis-about-row__media img {
		transform: scale(1.04);
	}
}

/* ---------- 8. Responsive ---------- */
/* narrow desktops: the text column (design copy + the CMS text) is taller than the photo, so the photo stays in
   view next to it while the text scrolls */
@media (max-width: 1249.98px) and (min-width: 900px) {
	.is-rows .nis-about-row__in {
		align-items: start;
	}
	.is-rows .nis-about-row__media {
		position: sticky;
		top: calc(var(--nis-hdr-h) + 24px);
	}
	.is-rows .nis-about-row--band .nis-about-row__media {
		position: absolute;
		top: 0;
	}
}
@media (max-width: 899.98px) {
	/* rows stack, the photo always first (the mock alternates the order) */
	.is-rows .nis-about-row__in {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
	.is-rows .nis-about-row__media,
	.is-rows .nis-about-row--flip .nis-about-row__media {
		order: -1;
		height: clamp(220px, 56vw, 420px);
	}
	.is-rows .nis-about-row--band .nis-about-row__media {
		order: 0;
		height: auto;
	}
	.is-rows .nis-about-row--seo .nis-about-row__in {
		gap: 0;
	}
	.is-rows .nis-about-row--seo .nis-seo + .nis-seo {
		margin-top: 30px;
	}
}
@media (max-width: 599.98px) {
	.nis-about-media {
		padding-top: 36px;
	}
	.is-rows .nis-about-row {
		padding-top: 40px;
		padding-bottom: 48px;
		font-size: var(--nis-fs-body);
	}
	.is-rows .nis-about-row__in {
		gap: 24px;
	}
	.is-rows .nis-about-row__title {
		font-size: 26px;
	}
	.is-rows .nis-about-row__p {
		max-width: none;
		font-size: var(--nis-fs-body);
		line-height: 1.85;
	}
	.is-rows .nis-seo {
		max-width: none;
		margin-top: 28px;
		font-size: 15px;
	}
	.is-rows .nis-seo__title {
		font-size: 19px;
	}
	.is-rows .nis-about-row--seo {
		padding-top: 36px;
		padding-bottom: 40px;
	}
	/* band on phones: the photo on top, fading into the navy ground that carries the copy */
	.is-rows .nis-about-row--band {
		display: block;
		min-height: 0;
		padding: 0;
	}
	.is-rows .nis-about-row--band .nis-about-row__in {
		display: flex;
		flex-direction: column;
		padding: 0 0 48px;
	}
	.is-rows .nis-about-row--band .nis-about-row__media {
		position: relative;
		inset: auto;
		order: -1;
		height: 260px;
	}
	.is-rows .nis-about-row--band .nis-about-row__media::after {
		background: linear-gradient(180deg, rgba(14, 27, 46, .12) 0%, rgba(14, 27, 46, .34) 55%, #0E1B2E 100%);
	}
	.is-rows .nis-about-row--band .nis-about-row__text {
		margin-top: -36px;
		padding: 0 var(--nis-gutter);
	}
	.is-rows .nis-about-row--band .nis-about-row__title {
		font-size: 28px;
	}
	.is-rows .nis-about-row--band .nis-about-row__p {
		max-width: none;
		font-size: var(--nis-fs-body);
	}
	.is-rows .nis-about-stat {
		margin-top: 26px;
	}
}
