/*
 * About, Contact, Press and 404 pages.
 * Source: design-reference/source/About.dc.html, Contact.dc.html, Press.dc.html, NotFound.dc.html.
 * Tokens only (tokens.css); logical properties only, so Hebrew mirrors.
 * Mobile first: tablet from 768px, desktop from 1024px.
 */

/* ============ Shared ============ */

/* Page eyebrow + H1 at the top of a page. */
.page-intro {
	padding-block: 32px 72px;
}

.page-intro--flush {
	padding-block-end: 0;
}

.page-intro__title {
	margin-block-end: 32px;
}

/* A photo in a fixed shape; the photo fills it (edges cropped). */
.photo-frame {
	margin: 0;
	overflow: hidden;
	background: var(--c-sand);
}

.photo-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.photo-frame--portrait {
	aspect-ratio: 3 / 4;
}

.photo-frame--landscape {
	aspect-ratio: 4 / 3;
}

/* Label on one side, link on the other, hairline between rows (Contact → Follow us). */
.link-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.link-rows li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 11px;
	border-block-end: 1px solid var(--c-line);
	font-size: var(--fs-small);
	line-height: 1.6;
}

.link-rows li:last-child {
	border-block-end: 0;
}

.link-rows__label .icon,
.site-footer__social .icon {
	flex-shrink: 0; /* keep the social icons full size on narrow phones */
}

.link-rows__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--c-muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ============ About ============ */

/* Title, then the section menu: the page bar (projects.css), shared with the
   Projects filters. Its 10px padding is taken off the gaps around it. */
.about-head {
	padding-block: 32px 22px;
}

.about-head .page-intro__title {
	margin: 0;
}

.about-intro {
	padding-block-start: 22px;
}

.about-head + .about-intro {
	padding-block-start: 10px; /* no menu: the title's usual 32px */
}

/* The section a menu link jumps to lands under the header + menu. */
.about [id="studio"],
.about [id="services"],
.about [id="awards"] {
	scroll-margin-block-start: calc(var(--header-h) + var(--page-bar-h, 53px));
}

.about-profile {
	display: grid;
	gap: 32px;
	align-items: start;
}

.about-profile__photo {
	max-width: 380px;
}

.about-profile__text {
	max-width: 620px;
}

.about-profile__name {
	margin-block-end: 6px;
	font-size: 26px;
}

.about-profile__role {
	margin-block-end: 24px;
	color: var(--c-muted);
}

.about-profile__bio p {
	margin-block-end: 20px;
	font-size: 16px;
	line-height: 1.9;
}

.about-profile__bio p:last-child {
	margin-block-end: 0;
}

/* Large, light, tight numbers with thin lines between them (Tamar: B + D's dividers). */
.about-stats {
	display: flex;
	flex-wrap: wrap;
	row-gap: 20px;
	margin: 28px 0 0;
	padding-block-start: 24px;
	border-block-start: 1px solid var(--c-line);
}

.about-stats dd {
	margin: 0;
}

.about-stats {
	--stat-space: min(20px, 4.5vw); /* space on each side of a divider (a bit less on the narrowest phones) */
}

.about-stats > div:not(:last-child) {
	padding-inline-end: var(--stat-space);
}

.about-stats > div + div {
	padding-inline-start: var(--stat-space);
	border-inline-start: 1px solid var(--c-line);
}

.about-stats__value {
	font-size: min(48px, 13vw); /* a little smaller on the narrowest phones, so all three fit one row */
	font-weight: var(--fw-regular);
	letter-spacing: -0.05em;
	line-height: 1.15;
	color: var(--c-text);
	/* Keep "80+" reading the same in Hebrew. */
	text-align: start;
	unicode-bidi: isolate;
}

.about-stats__label {
	margin-block-start: 2px;
	font-size: var(--fs-button);
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--c-muted);
}

/* Services */

.about-services {
	padding-block: var(--section-pad-y);
	background: var(--c-tan);
}

/* On tan, rust text and the grey small print are too faint (accessibility):
   the label and the service descriptions use the body color here. */
.about-services .eyebrow,
.about-services .small {
	color: var(--c-body);
}

.about-services__title {
	max-width: 720px;
	margin-block-end: 20px;
}

.about-services__intro {
	max-width: 760px;
	margin-block-end: 48px;
}

.service-group + .service-group {
	margin-block-start: 64px;
}

.service-group__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-block-end: 20px;
	padding-block-end: 12px;
	/* Darker than the usual hairline so it shows on the tan background. */
	border-block-end: 1px solid var(--c-footer-muted);
}

.service-group__title .service-icon {
	flex: none;
	color: var(--c-accent);
}

.service-group__items {
	display: grid;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.service__title {
	margin-block-end: 6px;
	font-size: var(--fs-body);
	font-weight: var(--fw-semibold);
	line-height: 1.5;
}

.service-group__items .small {
	margin: 0;
}

/* Awards & exhibitions */

.about-awards {
	padding-block: var(--section-pad-y);
	background: var(--c-sand);
}

.about-awards__grid {
	display: grid;
	gap: 40px;
	align-items: start;
}

.about-awards__photo {
	max-width: 380px;
}

.about-awards .eyebrow--section {
	margin-block-end: 22px;
}

.awards {
	margin: 0;
	padding: 0;
	list-style: none;
}

.award {
	display: grid;
	gap: 6px;
	align-items: baseline;
	padding-block: 14px;
	border-block-end: 1px solid var(--c-line-strong);
}

.award__meta {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.award__year {
	flex: 0 0 40px;
	font-size: var(--fs-eyebrow);
	font-weight: var(--fw-bold);
	color: var(--c-accent-text);
}

.award__type {
	font-size: var(--fs-tiny);
	font-weight: var(--fw-semibold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-text); /* one color for every type (Tamar's QA, 2026-09-24) */
}

.award__text {
	font-size: var(--fs-small);
	line-height: 1.6;
	color: var(--c-body);
	text-wrap: pretty;
}

/* ============ Contact ============ */

.contact-info {
	display: grid;
	gap: 32px;
	padding-block-end: 48px;
}

.contact-info__block + .contact-info__block {
	margin-block-start: 32px;
}

.contact-info__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.8;
	color: var(--c-text);
}

/* Message form */

.contact-form {
	padding-block: var(--section-pad-y);
	background: var(--c-sand);
}

.contact-form__grid {
	display: grid;
	gap: 32px;
}

.contact-form__title {
	margin-block-end: 14px;
	font-size: 26px;
}

.contact-form__intro {
	max-width: 340px;
	margin: 0;
	line-height: 1.8;
}

.form {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 520px;
}

.label--field {
	margin-block-end: 8px;
	font-size: var(--fs-tiny);
	font-weight: var(--fw-regular);
	color: var(--c-muted);
}

/* Fields: underline only, darkening on focus. */
.form-field {
	display: block;
	width: 100%;
	padding: 10px 2px;
	border: 0;
	border-block-end: 1px solid var(--c-line-strong);
	border-radius: 0;
	background: transparent;
	font-family: inherit;
	font-size: var(--fs-body);
	line-height: 1.5;
	color: var(--c-text);
	transition: border-color var(--dur-fast);
}

.form-field:focus {
	border-block-end-color: var(--c-text);
}

.form-field::placeholder {
	color: var(--c-footer-muted);
	opacity: 1;
}

textarea.form-field {
	resize: vertical;
}

/* Email addresses are typed left to right, also on the Hebrew page;
   the placeholder stays on the side of the other fields' placeholders. */
.form-field[type="email"] {
	direction: ltr;
}

[dir="rtl"] .form-field[type="email"]:placeholder-shown {
	direction: rtl;
}

.form__submit {
	align-self: start;
	margin-block-start: 8px;
	padding-inline: 32px;
}

/*
 * Contact Form 7 (inc/contact-form.php). The plugin's own stylesheet isn't loaded.
 * States come from the class it puts on the form: submitting / invalid / failed / sent.
 */

.wpcf7 .hidden-fields-container,
.wpcf7-spinner {
	display: none;
}

/* Read out by screen readers, not shown. */
.wpcf7 .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.wpcf7-form-control-wrap {
	display: block;
}

/* A field that needs fixing: rust underline and a short note below it. */
.form-field.wpcf7-not-valid {
	border-block-end-color: var(--c-accent);
}

.wpcf7-not-valid-tip {
	display: block;
	margin-block-start: 8px;
	font-size: var(--fs-eyebrow);
	color: var(--c-body);
}

/* Error: the notice above the button, the visitor's text stays. */
.form-notice,
.wpcf7-response-output {
	padding: 16px 18px;
	border-inline-start: 2px solid var(--c-accent);
	background: var(--c-notice);
	font-size: var(--fs-small);
	line-height: 1.7;
}

.form-notice {
	display: none;
}

.form-notice p {
	margin: 0;
}

.form-notice .form-notice__title {
	margin-block-end: 4px;
	font-weight: var(--fw-semibold);
	color: var(--c-text);
}

.form-notice a {
	color: var(--c-accent-text);
	text-decoration: underline;
}

.wpcf7-form.failed .form-notice {
	display: block;
}

/* The plugin's own short notes (e.g. "please check the fields") — only when there's no designed state for it. */
.wpcf7-response-output:empty,
.wpcf7-form.init .wpcf7-response-output,
.wpcf7-form.submitting .wpcf7-response-output,
.wpcf7-form.resetting .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.sent .wpcf7-response-output {
	display: none;
}

/* Success: the form is replaced by the thank-you. */
.form-thanks {
	display: none;
	padding-block: 40px;
}

.wpcf7-form.sent > :not(.form-thanks),
.wpcf7-form.form--done > :not(.form-thanks) {
	display: none;
}

.wpcf7-form.sent .form-thanks,
.wpcf7-form.form--done .form-thanks {
	display: block;
}

.form-thanks p {
	margin: 0;
}

.form-thanks .form-thanks__title {
	margin-block-end: 8px;
	font-size: 24px;
	color: var(--c-text);
}

.form-thanks__title:focus {
	outline: none;
}

/* ============ 404 ============ */

.not-found {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: 48px 64px;
}

.not-found .eyebrow {
	margin-block-end: 6px;
}

.not-found__number {
	margin-block-end: 18px;
	font-size: 72px;
	letter-spacing: -2px;
	line-height: 0.85;
}

.not-found__title {
	margin-block-end: 14px;
	font-size: 26px;
	font-weight: var(--fw-semibold);
	line-height: 1.15;
}

.not-found__text {
	max-width: 420px;
	margin-block-end: 32px;
}

.not-found__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.not-found__links {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-block-start: 40px;
	padding-block-start: 22px;
	border-block-start: 1px solid var(--c-line);
	font-size: var(--fs-small);
}

.not-found__links a {
	color: var(--c-muted);
}

.not-found__links a:hover {
	color: var(--c-accent);
}

/* ============ Tablet (768px and up) ============ */

@media (min-width: 768px) {
	.page-intro {
		padding-block: 44px 88px;
	}

	.page-intro--flush {
		padding-block-end: 0;
	}

	.page-intro__title {
		margin-block-end: 40px;
	}

	.about-head {
		padding-block: 44px 10px;
	}

	.about-intro,
	.about-head + .about-intro {
		padding-block-start: 30px;
	}

	.about-profile {
		gap: 40px;
	}

	.about-profile__name {
		font-size: 28px;
	}

	.about-profile__bio p {
		font-size: var(--fs-body);
	}

	.about-stats {
		--stat-space: 32px;
	}

	.service-group__items {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px;
	}

	.about-awards__grid {
		gap: 48px;
	}

	.award {
		grid-template-columns: 160px 1fr;
		gap: 16px;
	}

	.contact-info {
		grid-template-columns: 1fr 1fr;
		gap: 48px;
		padding-block-end: 60px;
	}

	.contact-form__grid {
		grid-template-columns: 1fr 1.4fr;
		gap: 48px;
	}

	.contact-form__title {
		font-size: 30px;
	}

	.not-found {
		padding-block: 64px 80px;
	}

	.not-found__number {
		font-size: 88px;
	}

	.not-found__title {
		font-size: 30px;
	}

	.not-found__links {
		gap: 24px;
	}
}

/* ============ Desktop (1024px and up) ============ */

@media (min-width: 1024px) {
	.page-intro {
		padding-block: 56px 88px;
	}

	.page-intro--flush {
		padding-block-end: 0;
	}

	.page-intro__title {
		margin-block-end: 48px;
	}

	.about-head {
		padding-block: 56px 10px;
	}

	.about-intro,
	.about-head + .about-intro {
		padding-block-start: 38px;
	}

	/* Photo | text side by side. Without a photo the text keeps its reading width. */
	.about-profile,
	.about-awards__grid {
		grid-template-columns: 1fr 1.3fr;
		gap: 64px;
	}

	.about-profile--no-photo,
	.about-awards__grid--no-photo {
		grid-template-columns: 1fr;
	}

	.about-profile__photo,
	.about-awards__photo {
		max-width: none;
	}

	.about-profile:not(.about-profile--no-photo) .about-profile__text {
		max-width: none;
	}

	.about-profile__name {
		font-size: 30px;
	}

	.about-stats {
		--stat-space: 40px;
	}

	.service-group__items {
		gap: 32px;
	}

	.award {
		grid-template-columns: 170px 1fr;
		gap: 20px;
	}

	.contact-info {
		gap: 64px;
		padding-block-end: 72px;
	}

	.contact-form__grid {
		gap: 64px;
	}

	.contact-form__title {
		font-size: 32px;
	}

	.not-found {
		padding-block: 88px 104px;
	}

	.not-found__number {
		font-size: 104px;
	}

	.not-found__title {
		font-size: 34px;
	}

	.not-found__links {
		gap: 28px;
	}
}

/* ============ Press ============
   One markup, two views: .press-list--list (rows: photo | text) and
   .press-list--grid (cards: photo on top). Switched by assets/js/press-view.js. */

.press-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding-block: 32px 24px;
}

.press-head__title {
	margin: 0;
	line-height: 0.95;
}

/* Grid / List buttons: two joined buttons, the current one filled dark.
   Tablet and up only — on phones both views look alike, so it's always the list. */
.view-switch {
	display: none;
	border: 1px solid var(--c-line-strong);
	border-radius: 4px;
	overflow: hidden;
}

.view-switch[hidden] {
	display: none;
}

.view-switch button {
	padding: 9px 18px;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: var(--fs-button);
	letter-spacing: 0.06em;
	line-height: 1.2;
	color: var(--c-text);
	cursor: pointer;
	transition: background var(--dur-fast), color var(--dur-fast);
}

.view-switch button:hover {
	color: var(--c-accent);
}

.view-switch button[aria-pressed="true"] {
	background: var(--c-text);
	color: var(--c-white);
}

/* The focus ring would be cut off by overflow: hidden — draw it inside instead. */
.view-switch button:focus-visible {
	outline-offset: -4px;
}

.press-list-wrap {
	padding-block-end: 56px;
}

.press-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.press-row {
	display: grid;
	color: var(--c-text);
}

.press-row:hover {
	color: var(--c-text);
}

.press-row:focus-visible .thumb > img {
	transform: scale(1.06);
}

@media (hover: hover) { /* mouse only — on phones a tap "sticks" as hover */
	.press-row:hover .thumb > img {
		transform: scale(1.06);
	}
}

.press-row__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

.press-row__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.press-row .outlet-logo {
	width: auto;
	max-width: 330px;
	object-fit: contain;
	filter: grayscale(1);
	transition: filter var(--dur) ease;
}

.press-row:hover .outlet-logo {
	filter: none;
}

/* Outlet without a logo: its name as a small wordmark. */
.outlet-logo--name {
	display: inline-block;
	font-size: 16px;
	font-weight: var(--fw-bold);
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--c-text);
}

.press-row__date {
	font-size: var(--fs-button);
	letter-spacing: 0.04em;
	line-height: 1.4;
	color: var(--c-muted);
}

.press-row__title {
	margin: 0 0 10px;
	font-weight: var(--fw-bold);
	line-height: 1.3;
	color: var(--c-text);
}

.press-row__excerpt {
	max-width: 520px;
	margin: 0 0 16px;
	font-size: var(--fs-small);
	line-height: 1.75;
	color: var(--c-body);
}

.press-row__more {
	font-size: var(--fs-button);
	font-weight: var(--fw-semibold);
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--c-text);
	transition: color var(--dur) ease, letter-spacing var(--dur) ease;
}

.press-row:hover .press-row__more {
	color: var(--c-accent);
	letter-spacing: 0.13em;
}

/* ---- List view: rows. The hover tint reaches past the text (negative margin). ---- */

.press-list--list {
	max-width: 1120px;
}

.press-list--list .press-row {
	grid-template-columns: 1fr;
	gap: 20px;
	margin-inline: -20px;
	padding: 28px 20px;
	border-block-end: 1px solid var(--c-line);
	transition: background-color var(--dur) ease;
}

.press-list--list .press-row:hover {
	background-color: var(--c-sand);
}

.press-list--list .press-row__image {
	aspect-ratio: 16 / 10;
}

.press-list--list .press-row__meta {
	gap: 8px;
	margin-block-end: 12px;
}

.press-list--list .press-row__title {
	font-size: 20px;
}

/* Sizes chosen per outlet in the admin (Outlets → Logo size). */
.press-list--list .outlet-logo--small { height: 38px; }
.press-list--list .outlet-logo--medium,
.press-list--list .outlet-logo--large { height: 53px; }

/* ---- Grid view: cards ---- */

.press-list--grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}

.press-list--grid > li {
	display: flex;
}

.press-list--grid .press-row {
	grid-template-rows: auto 1fr;
	width: 100%;
	border: 1px solid var(--c-line);
	background: var(--c-white);
	transition: border-color var(--dur) ease, box-shadow 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.press-list--grid .press-row--no-image {
	grid-template-rows: 1fr;
}

.press-list--grid .press-row:hover {
	border-color: var(--c-footer-muted);
	box-shadow: 0 14px 34px color-mix(in srgb, var(--c-text) 10%, transparent);
	transform: translateY(-3px);
}

.press-list--grid .press-row__image {
	aspect-ratio: 16 / 10;
}

.press-list--grid .press-row__text {
	justify-content: flex-start;
	padding: 26px 28px 30px;
}

.press-list--grid .press-row__meta {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	align-self: stretch;
	margin-block-end: 16px;
}

.press-list--grid .press-row__title {
	font-size: 21px;
}

.press-list--grid .press-row__excerpt {
	line-height: 1.7;
}

/* Read More sits in the card's bottom corner: left in Hebrew, right in English. */
.press-list--grid .press-row__more {
	align-self: flex-end;
	margin-block-start: auto;
}

.press-list--grid .outlet-logo--small { height: 35px; }
.press-list--grid .outlet-logo--medium,
.press-list--grid .outlet-logo--large { height: 48px; }

@media (prefers-reduced-motion: reduce) {
	.press-row:hover .thumb > img,
	.press-row:focus-visible .thumb > img {
		transform: none;
	}

	.press-list--grid .press-row:hover {
		transform: none;
	}
}

@media (min-width: 768px) {
	.view-switch:not([hidden]) {
		display: flex;
	}

	.press-head {
		padding-block: 44px 32px;
	}

	.press-list-wrap {
		padding-block-end: 72px;
	}

	.press-list--list .press-row {
		grid-template-columns: 280px 1fr;
		gap: 28px;
	}

	.press-list--list .press-row--no-image {
		grid-template-columns: 1fr;
	}

	.press-list--list .press-row__image {
		aspect-ratio: 4 / 3;
	}

	.press-list--list .press-row__title {
		font-size: 22px;
	}

	.press-list--grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px;
	}
}

@media (min-width: 1024px) {
	.press-head {
		padding-block: 56px 40px;
	}

	.press-list-wrap {
		padding-block-end: 96px;
	}

	.press-list--list .press-row {
		gap: 36px;
	}

	.press-list--list .press-row__title {
		font-size: 24px;
	}

	.press-list--grid {
		gap: 40px;
	}
}

/* ============ Text pages (page.php: accessibility statement, privacy policy) ============ */

.text-page__body {
	max-width: 760px;
}

.text-page__body h2 {
	margin-block: 40px 12px;
	font-size: var(--fs-h3);
}

.text-page__body ul {
	margin: 0 0 1em;
	padding-inline-start: 1.2em;
	color: var(--c-body);
	line-height: 1.75;
}

.text-page__body li + li {
	margin-block-start: 6px;
}

/* Privacy line under the contact form. */
.contact-form__privacy {
	margin-block: 20px 0;
}

.contact-form__privacy a {
	display: block; /* on its own line under the sentence */
	width: fit-content;
	margin-block-start: 2px;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}
