/* Project page hero + «جزئیات پروژه» card — Figma 334:6108 (687:1359). Photo slider with a black wash from the top,
   then (like the approach hero) a progressive blur and a white fade at the bottom so the card sits on white. */
.wp-block-post-content > .scico-project-hero { margin-block-start: 0; }

.scico-project-hero { --project-hero-overlap: 260px; position: relative; isolation: isolate; box-sizing: border-box; margin-block-start: 0; padding-bottom: 96px; background: #fff; color: var(--project-hero-textColor, #fff); }
.scico-project-hero__top { position: relative; }

.scico-project-hero__visual { position: absolute; top: 0; right: 0; bottom: calc(-1 * var(--project-hero-overlap)); left: 0; z-index: -1; overflow: hidden; background: #2d312b; }
.scico-project-hero__slides { position: absolute; inset: 0; }
.scico-project-hero__slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity 700ms ease; }
.scico-project-hero__slide.is-active { opacity: 1; }
.scico-project-hero__visual > span { position: absolute; right: 0; bottom: 0; left: 0; pointer-events: none; }
.scico-project-hero__shade { top: 0; background: linear-gradient(to bottom, rgb(0 0 0 / var(--project-hero-overlay, .7)), rgb(0 0 0 / 0) 85%); }
.scico-project-hero__blur { height: var(--project-hero-overlap); background: linear-gradient(to top, rgb(255 255 255 / .2), rgb(255 255 255 / 0)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(to bottom, transparent, #000); mask-image: linear-gradient(to bottom, transparent, #000); }
.scico-project-hero__fade { height: calc(var(--project-hero-overlap) * .85); background: linear-gradient(to top, #fff, rgb(255 255 255 / 0)); }
/* backdrop-filter greys its own side edges; letting the blur run past both sides keeps those edges clipped off-screen. */
.scico-project-hero__visual > .scico-project-hero__blur { right: -48px; left: -48px; }

/* Shared header, transparent over the photo; menu keeps the site-wide 16px, Medium like the inner pages. */
.scico-project-hero .scico-site-header--overlay { background: transparent; }
.scico-project-hero .scico-site-header--overlay .scico-header__nav .wp-block-navigation { font-weight: 500; }

/* Title block on the right, slider control under it on the left (Figma 687:1358). */
.scico-project-hero__intro { display: flex; flex-direction: column; gap: 64px; padding: 100px 96px 0; }
.scico-project-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: right; }
.scico-project-hero__text h1 { max-width: 720px; margin: 0; color: inherit; font-size: var(--project-hero-titleSize, 40px); font-weight: var(--project-hero-titleWeight, 800); line-height: 1.35; overflow-wrap: break-word; }
.scico-project-hero__subtitle { margin: 0; color: inherit; font-size: var(--project-hero-subtitleSize, 22px); font-weight: 400; line-height: 1.5; opacity: .92; }
.scico-project-hero__meta { display: flex; align-items: center; gap: 8px; margin: 0; color: inherit; font-size: var(--project-hero-metaSize, 18px); font-weight: 400; line-height: 1.5; }
.scico-project-hero__meta-icon { display: flex; width: 24px; height: 24px; flex: 0 0 auto; align-items: center; justify-content: center; }
/* Figma's location/calendar icons are dark (#232621) on a dark photo; shown white like the text beside them. */
.scico-project-hero__meta-icon img { display: block; max-width: 20px; max-height: 20px; filter: brightness(0) invert(1); }
.scico-project-hero__years { direction: ltr; unicode-bidi: isolate; }

.scico-project-hero__control { display: inline-flex; align-items: center; align-self: flex-end; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 6px; background: color-mix(in srgb, var(--project-hero-controlBackground, #2d312b) 80%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); direction: ltr; }
.scico-project-hero__counter { min-width: 64px; margin-inline-end: 8px; color: #fff; font-size: 16px; font-weight: 500; line-height: 1.5; }
.scico-project-hero__arrow { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; transition: background-color 200ms ease; }
/* Figma arrow-right-02: the 11.5×17.5 SVG turned with rotate(-90) scaleX(-1); «next» points left, as reading goes in Persian. */
.scico-project-hero__arrow img { display: block; transition: transform 200ms ease; }
.scico-project-hero__arrow.is-prev img { transform: rotate(-90deg) scaleX(-1); }
.scico-project-hero__arrow.is-next img { transform: rotate(90deg) scaleX(-1); }
.scico-project-hero__arrow:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* Details card (Figma 334:6280): white, overlapping the faded bottom of the photo. */
.scico-project-hero__details { display: flex; flex-direction: column; gap: 40px; margin: 40px 96px 0; padding: 40px; border-radius: 8px; background: var(--project-hero-cardBackground, #fff); color: var(--project-hero-valueColor, #000); text-align: right; }
.scico-project-hero__details-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.scico-project-hero__details-icon { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; }
.scico-project-hero__details-icon img { display: block; max-width: 32px; max-height: 32px; }
.scico-project-hero__details-head h2 { margin: 0; color: var(--project-hero-detailsHeadingColor, #868686); font-size: var(--project-hero-detailsHeadingSize, 32px); font-weight: var(--project-hero-detailsHeadingWeight, 300); line-height: 1.3; }
.scico-project-hero__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 48px; margin: 0; }
.scico-project-hero__fact { min-width: 0; }
.scico-project-hero__fact dt { display: flex; align-items: center; gap: 8px; color: var(--project-hero-labelColor, #767676); font-size: var(--project-hero-labelSize, 14px); font-weight: 500; line-height: 1.5; }
.scico-project-hero__fact-icon { display: flex; width: 16px; height: 16px; flex: 0 0 auto; align-items: center; justify-content: center; }
.scico-project-hero__fact-icon img { display: block; max-width: 16px; max-height: 16px; }
.scico-project-hero__fact dd { margin: 6px 0 0; color: var(--project-hero-valueColor, #000); font-size: var(--project-hero-valueSize, 22px); font-weight: var(--project-hero-valueWeight, 500); line-height: 1.45; overflow-wrap: anywhere; }
.scico-project-hero__fact dd small { font-size: .68em; font-weight: 500; }
.scico-project-hero img.is-mirrored-y { transform: scaleY(-1); }

@media (hover: hover) {
	.scico-project-hero__arrow:hover { background: rgb(255 255 255 / 14%); }
	.scico-project-hero__arrow.is-prev:hover img { transform: rotate(-90deg) scaleX(-1) translateY(-2px); }
	.scico-project-hero__arrow.is-next:hover img { transform: rotate(90deg) scaleX(-1) translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
	.scico-project-hero__slide,
	.scico-project-hero__arrow img { transition: none; }
}

@media (max-width: 1100px) {
	.scico-project-hero { --project-hero-overlap: 220px; padding-bottom: 80px; }
	.scico-project-hero__intro { gap: 48px; padding: 72px 32px 0; }
	.scico-project-hero__text h1 { font-size: min(var(--project-hero-titleSize, 40px), 34px); }
	.scico-project-hero__details { margin: 32px 32px 0; padding: 32px; }
	.scico-project-hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
}

@media (max-width: 760px) {
	.scico-project-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.scico-project-hero { --project-hero-overlap: 180px; padding-bottom: 64px; }
	.scico-project-hero__intro { gap: 32px; padding: 48px 16px 0; }
	.scico-project-hero__text { gap: 8px; }
	.scico-project-hero__text h1 { font-size: min(var(--project-hero-titleSize, 40px), 28px); }
	.scico-project-hero__subtitle { font-size: min(var(--project-hero-subtitleSize, 22px), 18px); }
	.scico-project-hero__meta { font-size: min(var(--project-hero-metaSize, 18px), 15px); }
	.scico-project-hero__meta-icon { width: 20px; height: 20px; }
	.scico-project-hero__meta-icon img { max-width: 17px; max-height: 17px; }
	/* Phones: no blur/white fade over the photo; the details card is a full-width sheet with rounded top corners rising
	   over the crisp photo, its content on the site's 16px gutter (same as the homepage services card). */
	.scico-project-hero__visual > .scico-project-hero__blur,
	.scico-project-hero__fade { display: none; }
	.scico-project-hero__details { gap: 28px; margin: 24px 0 0; padding: 28px 16px 0; border-radius: 20px 20px 0 0; }
	.scico-project-hero__details-head h2 { font-size: min(var(--project-hero-detailsHeadingSize, 32px), 24px); }
	.scico-project-hero__facts { gap: 20px 16px; }
	.scico-project-hero__fact dt { font-size: min(var(--project-hero-labelSize, 14px), 13px); }
	.scico-project-hero__fact dd { font-size: min(var(--project-hero-valueSize, 22px), 18px); }
}
