/* Projects section (archive-project.php, single-project.php). Loaded only on project pages. */

.projects-banner .projects-intro {
	max-width: 680px;
	margin: 24px auto 0;
	font-size: 18px;
	line-height: 1.6;
	color: #294860;
}
.projects-banner .projects-intro a { color: #ff2d86; white-space: nowrap; }

.projects-loop { margin: 40px 0 80px; }
@media (min-width: 992px) { .projects-loop { margin: 70px 0 100px; } }

.project-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin-bottom: 30px;
	background: #ffffff;
	border: 1px solid #e3e8ee;
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.project-card:hover { box-shadow: 0 12px 30px rgba(4, 34, 57, .08); transform: translateY(-2px); }
.project-card-image { display: block; background: linear-gradient(180deg, #001c32 0%, #042239 55%, #143854 100%); }
.project-card-image img { display: block; width: 100%; height: auto; }
.project-card-body { display: flex; flex-direction: column; flex-grow: 1; padding: 26px 26px 24px; }
.project-card-title { margin: 14px 0 10px; }
.project-card-title a { color: #042239; text-decoration: none; }
.project-card-title a:hover { color: #1e5bfb; }
.project-card-excerpt { flex-grow: 1; color: #294860; }
.project-card-excerpt p { margin: 0 0 18px; }
.project-card-more {
	align-self: flex-start;
	font-weight: 600;
	font-size: 15px;
	color: #1e5bfb;
	text-decoration: none;
}
.project-card-more:hover { color: #ff2d86; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.project-status, .project-type {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.project-type { background: #f1f4f7; color: #3f5d94; }
.project-status { background: #e8efff; color: #1e5bfb; }
.project-status.status-live, .project-status.status-published { background: #e9f6e1; color: #3d6b16; }
.project-status.status-beta { background: #fff1e6; color: #b4510c; }
.project-status.status-review, .project-status.status-building { background: #f0e9fe; color: #5e20ef; }

/* Hero: dark brand background so the theme's white header and title stay readable */
.projects-banner,
.project-hero {
	background: linear-gradient(180deg, #001c32 0%, #042239 55%, #143854 100%);
	color: #ffffff;
}
.projects-banner .title-1, .project-hero .title-1 { color: #ffffff; }
.projects-banner .projects-intro { color: #c9d6e3; }
.projects-banner .projects-intro a { color: #ffffff; text-decoration: underline; }

.project-hero {
	position: relative;
	padding: 150px 0 0;
	text-align: center;
	margin-bottom: 40px;
}
@media (min-width: 992px) { .project-hero { padding-top: 190px; margin-bottom: 70px; } }
.project-hero .project-back {
	display: inline-block;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #8fb3ff;
	text-decoration: none;
}
.project-hero .project-back:hover { color: #ffffff; }
.project-hero .title-1 { margin: 0; }
.project-hero .project-tags { margin-top: 18px; justify-content: center; }
.project-hero .project-type { background: rgba(255, 255, 255, .12); color: #dbe6f2; }
.project-hero .project-lede {
	max-width: 680px;
	margin: 20px auto 0;
	font-size: 19px;
	line-height: 1.6;
	color: #c9d6e3;
}
.project-hero .project-cta { margin-top: 26px; }
.project-hero-shot {
	margin: 20px auto -80px;
	position: relative;
	z-index: 2;
}
/* The hero images carry their own rounded corners and shadow on a transparent canvas */
.project-hero-shot img {
	display: block;
	width: 100%;
	height: auto;
}
.project-hero:not(:has(.project-hero-shot)) { padding-bottom: 70px; }
.project-content { padding-top: 60px; }
@media (min-width: 992px) { .project-content { padding-top: 90px; } }

/* Body copy headings: the theme's editor H2 is sized for long posts */
.project-content .editor h2 { font-size: 30px; line-height: 1.25; margin: 40px 0 14px; }
.project-content .editor h2:first-child { margin-top: 0; }
.project-content .editor ul { margin-bottom: 24px; }

/* Images dropped into the body copy: phone screenshots stay phone-sized */
.project-content .editor .wp-block-image { margin: 28px 0 32px; }
.project-content .editor .wp-block-image img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 620px;
	border-radius: 10px;
}
.project-content .editor .wp-block-image figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: #747f88; }

/* Screens gallery */
.project-gallery { margin-top: 50px; }
.project-gallery-title { font-size: 30px; line-height: 1.25; margin: 0 0 20px; color: #042239; }
.project-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 20px;
}
.project-shot { grid-column: 1 / -1; margin: 0; }
.project-shot.is-portrait { grid-column: auto; }
.project-shot a { display: block; }
.project-shot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	border: 1px solid #e3e8ee;
	background: #ffffff;
}
.project-shot figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: #747f88; }

.project-facts {
	margin-top: 10px;
	padding: 26px;
	background: #ffffff;
	border: 1px solid #e3e8ee;
	border-radius: 10px;
}
@media (min-width: 992px) { .project-facts { position: sticky; top: 120px; } }
.project-facts-title { margin: 0 0 14px; font-size: 18px; font-weight: 600; color: #042239; }
.project-facts dl { margin: 0; }
.project-facts dt {
	margin-top: 14px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #747f88;
}
.project-facts dd { margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: #042239; }
.project-facts-link { display: inline-block; margin-top: 20px; font-weight: 600; color: #1e5bfb; text-decoration: none; }
.project-facts-link:hover { color: #ff2d86; }

.project-more { margin: 70px 0 40px; padding-top: 40px; border-top: 1px solid #e3e8ee; }
.project-more > .title-9 { margin-bottom: 24px; }
