/* Source-matched header structure and card media normalization. */
@media (min-width: 783px) {
	:root { --header: 89px; }
	.site-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: auto; min-height: 89px; padding: 30px 44px; }
	.site-header__center { position: static; display: flex; align-items: center; gap: clamp(18px, 3vw, 68px); width: auto; min-width: 0; flex: 0 1 auto; transform: none; }
	.site-nav--desktop { position: static !important; display: block !important; width: auto !important; transform: none !important; }
	.site-nav--desktop > .site-nav__list { display: flex !important; align-items: center; justify-content: center; gap: clamp(13px, 2.2vw, 48px); width: auto; }
	.site-nav--desktop > .site-nav__list > li { display: block !important; grid-column: auto !important; grid-row: auto !important; margin: 0 !important; }
	.site-nav--mobile { display: none !important; }
	.site-brand { position: static !important; display: block; grid-column: auto !important; transform: none !important; flex: none; }
	.site-brand img { height: 29px; max-width: none; }
	.language-switcher { position: static !important; display: flex; align-items: center; min-width: 0; flex: 1 1 0; grid-column: auto !important; transform: none !important; }
	.otmazgin-lang-he .language-switcher { justify-content: flex-end; }
	.otmazgin-lang-en .language-switcher { justify-content: flex-start; }
	.site-tools { position: static !important; display: flex; align-items: center; min-width: 0; flex: 1 1 0; grid-column: auto !important; direction: ltr; transform: none !important; }
	.otmazgin-lang-he .site-tools { justify-content: flex-start; }
	.otmazgin-lang-en .site-tools { justify-content: flex-end; }
}

/* Keep the fixed theme header below WordPress's logged-in admin bar. */
.admin-bar #site-header { z-index: 60; }

@media (max-width: 782px) {
	.site-header__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); line-height: 0; }
	.site-header__center .site-nav--desktop { display: none !important; }
	.site-header__center .site-brand { position: static; transform: none; }
	.site-nav--mobile { display: none; }
	.menu-open .site-nav--mobile { display: block; }
	#site-header .site-nav--mobile {
		padding: 48px 5vw 40px;
		background: var(--paper);
		font-family: 'Heebo', system-ui, sans-serif;
		font-style: normal;
		font-synthesis: none;
	}
	#site-header .site-nav--mobile > .site-nav__list {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 20px;
		width: 100%;
		font-family: 'Heebo', system-ui, sans-serif;
		font-size: 16px;
		font-weight: 500;
		line-height: 1.5;
		letter-spacing: 0;
	}
	#site-header .site-nav--mobile > .site-nav__list > li,
	#site-header .site-nav--mobile a {
		margin: 0 !important;
		font-family: 'Heebo', system-ui, sans-serif !important;
		font-size: 16px !important;
		font-style: normal !important;
		font-weight: 500 !important;
		line-height: 1.5 !important;
		letter-spacing: 0 !important;
	}
	#site-header .site-nav--mobile a { width: auto; padding: 0 0 4px; }
	#site-header .site-nav--mobile .current-menu-item > a,
	#site-header .site-nav--mobile .current-menu-ancestor > a,
	#site-header .site-nav--mobile .current-post-ancestor > a,
	#site-header .site-nav--mobile .current-category-ancestor > a {
		color: var(--ink) !important;
		border-bottom-color: var(--rust);
	}
}

/* The supplied design uses Heebo throughout; prevent parent/Elementor button rules from changing header typography or control colors. */
body.otmazgin-wp,
#site-header,
#site-header button,
#site-header input { font-family: 'Heebo', system-ui, sans-serif; }
#site-header .menu-toggle,
#site-header .menu-toggle:hover,
#site-header .menu-toggle:active,
#site-header .menu-toggle:focus { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; transform: none !important; }
#site-header .menu-toggle { color: inherit !important; }
#site-header .menu-toggle:hover { color: #b5674e !important; }
#site-header .menu-toggle > span:not(.screen-reader-text) { background: currentColor !important; }
.project-card { margin: 0; padding: 0; }
.project-card__link { display: block; margin: 0; padding: 0; }
.otmazgin-wp .project-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; margin: 0 !important; padding: 0 !important; font-size: 0; line-height: 0; background: #e8e4dd; }
.otmazgin-wp .project-card__image > img,
.otmazgin-wp .project-card__image > picture,
.otmazgin-wp .project-card__image > picture > img,
.otmazgin-wp .project-card__image .wp-post-image { position: absolute !important; inset: 0 !important; display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; object-fit: cover !important; object-position: center !important; vertical-align: top !important; }
.project-card__meta { display: block; padding-top: 16px; }
.project-card__title { display: block; margin: 0 0 5px; color: var(--rust); font-size: 28px; font-weight: 400; line-height: 1.25; }
.project-card__category { display: block; margin: 0; color: #8a8580; font-size: 15px; font-weight: 600; letter-spacing: .12em; line-height: 1.7; }

.media-card__image { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--rust); line-height: 0; }
.media-card__image img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform .65s ease; }
.media-card:hover .media-card__image img { transform: scale(1.035); }
.media-card__image--placeholder { display: flex; align-items: flex-end; padding: 26px; line-height: 1.2; color: #fff; }
.media-card__image--placeholder span { font-size: clamp(22px, 2.2vw, 32px); font-weight: 300; }

.project-hero__slide { position: absolute; inset: -2%; background-size: cover; background-position: center; filter: saturate(.6); opacity: 0; transform: scale(1); transition: opacity 1.6s ease; animation: heroZoom 16s ease-in-out infinite alternate; will-change: opacity, transform; }
.project-hero__slide.is-active { opacity: 1; }
.project-hero__category { margin: 0 0 20px; color: rgba(255,255,255,.72); font-size: 17px; font-weight: 600; letter-spacing: .2em; }
.project-hero__arrow { position: absolute; z-index: 5; top: 50%; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; transform: translateY(-50%); }
.project-hero__arrow span { font-size: 48px; font-weight: 200; line-height: 1; }
.project-hero__arrow--prev { right: 44px; }
.project-hero__arrow--next { left: 44px; }
.project-intro { padding: 70px 60px 40px; }
.project-back { display: block; max-width: 1160px; margin: 0 auto 34px; color: #8a8580; font-size: 14px; font-weight: 600; letter-spacing: .14em; }
.project-body { grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 70px; max-width: 1160px; margin: auto; padding: 0; align-items: start; }
.project-copy h2 { margin: 0 0 22px; font-size: clamp(22px, 2.3vw, 32px); font-weight: 400; line-height: 1.3; }
.project-copy .prose { font-size: 18px; }
.project-specs { display: flex; flex-direction: column; gap: 1px; background: rgba(35,32,25,.12); }
.project-specs dl { margin: 0; padding: 20px 2px; background: #fff; }
.project-specs dt { color: #8a8580; font-size: 12px; font-weight: 600; letter-spacing: .16em; }
.project-specs dd { margin: 2px 0 0; font-size: 18px; }
.related-projects { padding: 60px 60px 130px; }
.related-projects > h2 { margin: 0 0 34px; text-align: center; font-size: clamp(24px, 2.4vw, 34px); font-weight: 300; }

/* Keep the fixed theme header below WordPress's logged-in admin bar. */
.admin-bar #site-header { z-index: 60; }

@media (max-width: 782px) {
	.project-card__title { font-size: 22px; }
	.project-hero__arrow--prev { right: 3vw; }
	.project-hero__arrow--next { left: 3vw; }
	.project-intro { padding: 55px 5vw 30px; }
	.project-body { grid-template-columns: 1fr; gap: 30px; }
	.project-specs { order: -1; }
	.related-projects { padding: 45px 5vw 80px; }
}

@media (prefers-reduced-motion: reduce) {
	.project-hero__slide { animation: none; transition: none; }
}

/* Match the source footer: keep phone glyph order LTR while aligning from the language start edge. */
.otmazgin-lang-he .footer-contact > p[dir="ltr"] { text-align: right; }
.otmazgin-lang-en .footer-contact > p[dir="ltr"] { text-align: left; }
