/* Project Single Styles */

/* Hero */
.hp-project-hero {
	padding: 80px 0 60px;
	background: var(--h-color-surface);
	border-bottom: 1px solid var(--h-color-border-subtle);
}

.hp-project-hero__inner {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.hp-project-hero__title {
	font-size: 48px;
	font-weight: 700;
	color: var(--h-color-heading);
	margin-bottom: 24px;
	line-height: 1.1;
}

.hp-project-hero__desc {
	font-size: 20px;
	color: var(--h-color-text-secondary);
	line-height: 1.6;
	margin-bottom: 32px;
}

/* Tech Badges */
.hp-project-tech-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.hp-badge--tech {
	background: rgba(var(--h-color-primary-rgb), 0.1);
	color: var(--h-color-primary);
	border: 1px solid rgba(var(--h-color-primary-rgb), 0.2);
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
}

/* Body Layout */
.hp-project-body-section {
	padding: 80px 0;
}

.hp-project-body-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 60px;
}

@media (min-width: 992px) {
	.hp-project-body-grid {
		grid-template-columns: 320px 1fr;
		align-items: start;
	}
}

/* Sidebar Meta */
.hp-project-meta-card {
	background: var(--h-color-surface);
	border: 1px solid var(--h-color-border-subtle);
	border-radius: 16px;
	padding: 32px;
	position: sticky;
	top: 100px;
}

.hp-project-meta-item {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--h-color-border-subtle);
}

.hp-project-meta-item:last-of-type {
	border-bottom: none;
	margin-bottom: 32px;
	padding-bottom: 0;
}

.hp-project-meta-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--h-color-text-tertiary);
	margin-bottom: 8px;
}

.hp-project-meta-value {
	display: block;
	font-size: 16px;
	color: var(--h-color-heading);
	font-weight: 500;
}

.hp-project-meta-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Content Narrative */
.hp-project-section {
	margin-bottom: 60px;
}

.hp-project-section h2 {
	font-size: 32px;
	font-weight: 700;
	color: var(--h-color-heading);
	margin-bottom: 24px;
	position: relative;
	padding-bottom: 16px;
}

.hp-project-section h2::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 3px;
	background: var(--h-color-primary);
	border-radius: 2px;
}

.hp-project-section-content {
	font-size: 18px;
	line-height: 1.8;
	color: var(--h-color-text);
}

.hp-project-section-content p {
	margin-bottom: 24px;
}

/* CTA */
.hp-project-cta-section {
	padding: 80px 0;
	background: var(--h-color-surface);
	border-top: 1px solid var(--h-color-border-subtle);
}

.hp-project-cta-box {
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

.hp-project-cta-title {
	font-size: 36px;
	font-weight: 700;
	color: var(--h-color-heading);
	margin-bottom: 16px;
}

.hp-project-cta-desc {
	font-size: 18px;
	color: var(--h-color-text-secondary);
	margin-bottom: 32px;
}

/* ---- v1.5: breadcrumb, hero media, gallery, FAQ ---- */
.hp-project-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	font-size: 14px;
	color: var(--h-color-text-muted);
	margin-bottom: 28px;
}
.hp-project-breadcrumb a { color: var(--h-color-text-muted); text-decoration: none; }
.hp-project-breadcrumb a:hover { color: var(--h-color-primary); }

.hp-project-hero__eyebrow {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--h-color-primary);
	margin-bottom: 16px;
}
.hp-project-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 32px;
}
.hp-project-hero__media {
	margin: 56px auto 0;
	max-width: 1160px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 80px -30px rgba(15, 23, 42, .35);
	border: 1px solid var(--h-color-border);
}
.hp-project-hero__image { display: block; width: 100%; height: auto; }

.hp-project-gallery__grid { display: grid; gap: 24px; }
.hp-project-gallery__item { margin: 0; }
.hp-project-gallery__item a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--h-color-border); box-shadow: 0 12px 30px -18px rgba(15, 23, 42, .3); }
.hp-project-gallery__item img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.hp-project-gallery__item a:hover img { transform: scale(1.015); }
.hp-project-gallery__item figcaption { font-size: 14px; color: var(--h-color-text-muted); margin-top: 10px; }

.hp-project-faq__list { display: grid; gap: 12px; }
.hp-project-faq__item { border: 1px solid var(--h-color-border); border-radius: 12px; background: var(--h-color-surface); padding: 0 20px; }
.hp-project-faq__item summary { cursor: pointer; font-weight: 600; color: var(--h-color-text); padding: 18px 0; list-style: none; }
.hp-project-faq__item summary::-webkit-details-marker { display: none; }
.hp-project-faq__item summary::after { content: "+"; float: right; color: var(--h-color-primary); font-weight: 700; }
.hp-project-faq__item[open] summary::after { content: "–"; }
.hp-project-faq__answer { color: var(--h-color-text-secondary); padding-bottom: 18px; line-height: 1.7; }

@media (max-width: 767px) {
	.hp-project-hero { padding: 48px 0 40px; }
	.hp-project-hero__title { font-size: 34px; }
	.hp-project-hero__desc { font-size: 17px; }
	.hp-project-hero__media { margin-top: 36px; border-radius: 12px; }
}

/* Badge colours: --h-color-primary-rgb is not defined in the design system, so use explicit values */
.hp-project-hero .hp-badge--tech {
	background: rgba(21, 111, 247, 0.08);
	border: 1px solid rgba(21, 111, 247, 0.22);
	color: var(--h-color-primary);
}
.hp-project-tech-badges { gap: 10px; }

/* More projects like this */
.hp-project-related {
	padding: 72px 0 24px;
	border-top: 1px solid var(--h-color-border-subtle);
}
.hp-project-related__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}
.hp-project-related__title {
	font-size: 32px;
	font-weight: 700;
	color: var(--h-color-heading, var(--h-color-text));
	margin: 0;
}
.hp-project-related__all {
	font-weight: 600;
	color: var(--h-color-primary);
	text-decoration: none;
}
.hp-project-related__all:hover { text-decoration: underline; }
@media (max-width: 767px) {
	.hp-project-related { padding-top: 48px; }
	.hp-project-related__title { font-size: 26px; }
}
.hp-project-related .hp-project-related__title { width: auto; flex: 1 1 auto; }
.hp-project-related a.hp-project-related__all { color: var(--h-color-primary); white-space: nowrap; }

/* Lists inside case study text: the global reset removes list padding, which pushed bullets to the screen edge on phones */
.hp-project-section-content ul,
.hp-project-section-content ol {
	padding-left: 1.4em;
	margin: 0 0 1.25em;
}
.hp-project-section-content li { margin-bottom: 0.6em; }
.hp-project-section-content li::marker { color: var(--h-color-primary); }
@media (max-width: 480px) {
	.hp-project-body-section .hp-container,
	.hp-project-hero .hp-container,
	.hp-project-related .hp-container,
	.hp-project-cta-section .hp-container { padding-left: 20px; padding-right: 20px; }
}
