/* Overrides to wire Figma assets/headers into the ported app.css.
   Loaded AFTER app.css so it wins by source order. */

/* ---------- Brand logo SVG (replaces inline 'א' + text) ---------- */
.nav .logo .logo-svg {
	display: block;
	height: 40px;
	width: auto;
	max-width: 280px;
}
/* The old .logo flex layout still expects mark + name — collapse it to just the SVG */
.nav .logo { display: inline-flex; align-items: center; }

/* ---------- Hero photo (replaces VIDEO SLOT placeholder) ---------- */
/* Kill the striped background + dashed inner border that came with the placeholder. */
.hero .hero-img,
body[data-palette="cream"] .hero-img,
body[data-palette="paper"] .hero-img {
	background: #1a1a1a !important;
	border: 0 !important;
}
.hero .hero-img::before { display: none !important; }
.hero .hero-img .ph-label { display: none !important; }

/* Photo fills the slot. position:absolute beats grid-item sizing. */
.hero .hero-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
	display: block;
	border: 0;
}

/* ---------- Partners (1:142) — real logos, Figma layout ---------- */

/* Section spacing matches Figma partners-inner box (1905×539). */
.partners {
	padding: 70px 40px;
	background: var(--paper, #F4F1EA);
	border-top: 0;
	border-bottom: 0;
}
.partners-inner { max-width: 1400px; margin: 0 auto; }

/* Main headline: 2-color, 42px, centered, no horizontal lines. */
.partners-headline {
	margin: 0 0 40px;
	text-align: center;
	font-family: 'Heebo', sans-serif;
	font-weight: 800;
	font-size: 42px;
	line-height: 1.15;
	color: #1A1A1A;
	letter-spacing: -0.01em;
}
.partners-headline .accent { color: #C8102E; }

/* Sub-block title (e.g. "קבלני בנייה ויזמי נדל״ן") */
.partners-block { margin-bottom: 56px; }
.partners-block:last-child { margin-bottom: 0; }
.partners-title {
	margin: 0 0 24px;
	text-align: center;
	font-family: 'Heebo', sans-serif;
	font-weight: 700;
	font-size: 18.72px;
	line-height: 1.5;
	color: #1A1A1A;
}

/* 4-column grid of white logo cards. Forced specificity to beat app.css. */
.partners .partners-grid {
	display: grid !important;
	grid-template-columns: repeat(4, 214px);
	justify-content: center;
	gap: 25px;
}
.partners .partner-logo {
	width: 214px;
	height: 101px;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.05);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: transform .2s ease, box-shadow .2s ease;
}
.partners .partner-logo:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.partners .partner-logo img {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
	display: block;
}

/* Responsive */
@media (max-width: 980px) {
	.partners .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.partners .partner-logo { width: 100%; height: 90px; }
	.partners-headline { font-size: 32px; }
}
@media (max-width: 520px) {
	.partners .partners-grid { grid-template-columns: 1fr; }
	.partners-headline { font-size: 26px; }
}

/* ---------- Testimonial (1:433/1:805): roof photo BG + ALL white text ---------- */
.testimonial {
	background:
		linear-gradient(rgba(11,11,11,0.45), rgba(11,11,11,0.45)),
		url('../images/testimonial-bg.jpg') center/cover no-repeat !important;
	color: #fff !important;
}
.testimonial, .testimonial *,
.testimonial blockquote,
.testimonial .sec-num, .testimonial .sec-title,
.testimonial .testimonial-meta, .testimonial .testimonial-meta b, .testimonial .testimonial-meta span,
.testimonial .q-mark { color: #fff !important; }
/* Tab buttons: outlined white, active = filled white with accent text (Figma 1:812-817) */
.testimonial .audience-tabs .aud-tab {
	background: transparent !important;
	border: 2px solid #fff !important;
	color: #fff !important;
}
.testimonial .audience-tabs .aud-tab.active {
	background: #fff !important;
	color: var(--accent, #C8102E) !important;
}
/* Avatar (avi): filled white circle with red letter — matches Figma 1:821-822 */
.testimonial .avi {
	background: #fff !important;
	color: var(--accent, #C8102E) !important;
	border: 2px solid #fff !important;
}

/* ---------- Final CTA (1:576) "contact": photo BG + dark overlay + white text ---------- */
.cta {
	background:
		linear-gradient(rgba(33,33,33,0.5), rgba(33,33,33,0.5)),
		url('../images/cta-bg.jpg') center/cover no-repeat !important;
	color: #fff !important;
}
.cta h2, .cta p, .cta .cta-eyebrow, .cta .cta-phone { color: #fff !important; }
.cta .cta-phone .num { color: #fff !important; }
.cta .btn-ghost { color: #fff !important; border-color: rgba(255,255,255,0.7) !important; }

/* ---------- About section: H2 moved into about-text column so it aligns row-wise
              with the cert-headline H3 on the left column. ---------- */
.about .about-text .sec-num { margin-bottom: 8px; }
.about .about-text .about-h2 { margin: 0 0 24px; }
/* Make both columns start their headings at the same vertical line. */
.about { align-items: start; }

/* ---------- Cert headline (moved here from .about-text per client request) ---------- */
.cert .cert-headline {
	margin: 8px 0 18px;
	font-family: 'Heebo', sans-serif;
	font-weight: 800;
	font-size: 36px;
	line-height: 1.15;
	color: #0B0B0B;
	letter-spacing: -0.01em;
}
.cert .cert-headline em {
	font-style: normal;
	color: var(--accent, #C8102E);
}
@media (max-width: 640px) {
	.cert .cert-headline { font-size: 28px; }
}

/* ---------- Project slider (replaces .cert-doc placeholder) ---------- */
.proj-slider {
	position: relative;
	width: 100%;
	aspect-ratio: 3/4;
	min-height: 520px;
	overflow: hidden;
	background: #0B0B0B;
	margin-top: 16px;
}
.proj-track {
	position: absolute;
	inset: 0;
}
.proj-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .55s ease;
	pointer-events: none;
}
.proj-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}
.proj-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Prev / next arrows */
.proj-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border: 0;
	background: rgba(11,11,11,0.55);
	color: #fff;
	font-size: 28px;
	line-height: 44px;
	cursor: pointer;
	transition: background .15s ease;
	font-family: Arial, sans-serif;
}
.proj-arrow:hover { background: var(--accent, #C8102E); }
.proj-prev { left: 12px; }
.proj-next { right: 12px; }

/* Dots */
.proj-dots {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 6px;
	background: rgba(11,11,11,0.42);
	padding: 6px 10px;
	border-radius: 999px;
}
.proj-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 0;
	background: rgba(255,255,255,0.45);
	cursor: pointer;
	padding: 0;
	transition: background .15s ease, transform .15s ease;
}
.proj-dot:hover { background: rgba(255,255,255,0.85); }
.proj-dot.is-active {
	background: #fff;
	transform: scale(1.25);
}

/* Counter */
.proj-counter {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	font-size: 11px;
	color: #fff;
	background: rgba(11,11,11,0.55);
	padding: 4px 8px;
	letter-spacing: 0.06em;
}

@media (max-width: 640px) {
	.proj-arrow { width: 36px; height: 36px; font-size: 22px; line-height: 36px; }
	.proj-prev { left: 8px; } .proj-next { right: 8px; }
	.proj-slider { min-height: 380px; }
}

/* Zoom (magnifying-glass) button — top-right, opens lightbox */
.proj-zoom {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	width: 40px;
	height: 40px;
	border: 0;
	background: rgba(11,11,11,0.55);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .15s ease;
	padding: 0;
}
.proj-zoom:hover { background: var(--accent, #C8102E); }

/* ---------- Lightbox popup (full-screen) ---------- */
.proj-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(0,0,0,0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 80px;
}
.proj-lightbox[hidden] { display: none !important; }
.lb-stage {
	position: relative;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lb-stage img {
	max-width: 100%;
	max-height: 90vh;
	display: block;
	object-fit: contain;
	box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lb-close {
	position: absolute;
	top: 18px;
	left: 18px;
	width: 44px;
	height: 44px;
	border: 0;
	background: rgba(255,255,255,0.1);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
	transition: background .15s ease;
}
.lb-close:hover { background: var(--accent, #C8102E); }
.lb-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 60px;
	height: 60px;
	border: 0;
	background: rgba(255,255,255,0.1);
	color: #fff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	font-family: Arial, sans-serif;
	z-index: 3;
	transition: background .15s ease;
}
.lb-arrow:hover { background: var(--accent, #C8102E); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-counter {
	position: absolute;
	bottom: -32px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 13px;
	color: rgba(255,255,255,0.75);
	letter-spacing: 0.08em;
}

@media (max-width: 640px) {
	.proj-lightbox { padding: 20px 12px; }
	.lb-arrow { width: 44px; height: 44px; font-size: 28px; }
	.lb-prev { left: 6px; } .lb-next { right: 6px; }
	.lb-close { top: 8px; left: 8px; width: 36px; height: 36px; font-size: 22px; }
}
