
/* ========================================
   SINGLE PROJETO
======================================== */

.single-project {
	overflow: hidden;
}

/* CONTAINER */
.project-hero__container,
.project-meta__container,
.project-content__container,
.project-gallery__container {
	width: min(100% - var(--container-gutter), var(--container-wide));
	margin-inline: auto;
}

/* ========================================
   HERO
======================================== */

.project-hero {
	padding: 35px 0 25px;
}

.project-hero__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}

.project-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.project-back {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 35px;
	color: var(--color-text);
	font-size: 11px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 5px;
	transition: color .2s ease;
}

.project-back:hover {
	color: var(--color-primary);
}

.project-back span {
	font-size: 17px;
	text-decoration: none;
}

.project-hero .eyebrow {
	margin-bottom: 12px;
}

.project-hero h1 {
	margin: 0;
	font-size: clamp(30px, 7vw, 48px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -2px;
	overflow-wrap: anywhere;
}

.project-hero h1 span,
.project-about h2 span,
.project-features h2 span,
.project-gallery h2 span {
	color: var(--color-primary);
}

/* TEXTO DO HERO */
.project-hero__summary {
	max-width: 520px;
	margin: 18px 0 0;
	color: var(--color-text);
	font-size: 13px;
	line-height: 1.7;
}

.project-hero__summary p {
	margin: 0;
}

.project-hero__summary strong,
.project-hero__summary b {
	font-weight: 700;
}

.project-hero__summary em,
.project-hero__summary i {
	font-style: italic;
}

.project-hero__summary a {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.project-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.project-button {
	min-height: 44px;
	padding: 0 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	transition:
		background .25s ease,
		color .25s ease,
		border-color .25s ease,
		transform .25s ease;
}

.project-button:hover {
	transform: translateY(-2px);
}

.project-button--primary {
	border-color: var(--color-primary-dark);
	background: var(--color-primary-dark);
	color: #fff;
}

.project-button--primary:hover {
	border-color: var(--color-primary);
	background: var(--color-primary);
	color: #fff;
}

.project-button--secondary {
	background: var(--color-surface);
	color: var(--color-text);
}

.project-button--secondary:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.project-button span {
	font-size: 15px;
}

.project-hero__image {
	width: 100%;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: #edf0ef;
}

.project-hero__image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 210px;
	max-height: 430px;
	object-fit: contain;
	object-position: center;
}

/* ========================================
   INFORMAÇÕES DO PROJETO
======================================== */

.project-meta {
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

.project-meta__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.project-meta__item {
	min-width: 0;
	padding: 17px 10px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.project-meta__item:nth-child(odd) {
	border-right: 1px solid var(--color-border);
}

.project-meta__item:nth-child(n+3) {
	border-top: 1px solid var(--color-border);
}

.project-meta__item > img {
	display: block;
	width: 50px;
	height: 38px;
	object-fit: contain;
	flex-shrink: 0;
}

.project-meta__item strong {
	display: block;
	margin-bottom: 5px;
	font-size: 11px;
	font-weight: 700;
}

.project-meta__item p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 10px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.project-meta__item .project-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 3px 8px;
	border-radius: 4px;
	background: #d8fbe5;
	color: var(--color-text);
	white-space: normal;
}

.project-status > span {
	width: 7px;
	height: 7px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #16a34a;
}

/* ========================================
   CONTEÚDO PRINCIPAL
======================================== */

.project-content {
	padding: var(--section-padding-y) 0;
}

.project-content__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.project-content__main {
	min-width: 0;
}

.project-content__sidebar {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.project-about h2,
.project-features h2,
.project-gallery h2 {
	margin: 0;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -1px;
}

.project-about .eyebrow,
.project-features .eyebrow,
.project-links .eyebrow,
.project-technologies .eyebrow,
.project-details .eyebrow,
.project-gallery .eyebrow {
	margin-bottom: 5px;
}

/* CONTEÚDO FORMATADO DO EDITOR WORDPRESS */
.project-about__text {
	margin-top: 14px;
	color: var(--color-text);
	font-size: var(--section-text-size-desktop);
	line-height: 1.8;
	text-align: justify;
	overflow-wrap: anywhere;
}

.project-about__text > *:first-child {
	margin-top: 0;
}

.project-about__text > *:last-child {
	margin-bottom: 0;
}

.project-about__text p {
	margin: 0 0 14px;
}

.project-about__text h1,
.project-about__text h2,
.project-about__text h3,
.project-about__text h4,
.project-about__text h5,
.project-about__text h6 {
	margin: 22px 0 10px;
	color: var(--color-text);
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	letter-spacing: normal;
}

.project-about__text h3 {
	font-size: 16px;
}

.project-about__text h4 {
	font-size: 14px;
}

.project-about__text h5,
.project-about__text h6 {
	font-size: 12px;
}

.project-about__text ul,
.project-about__text ol {
	margin: 12px 0 16px;
	padding-left: 22px;
}

.project-about__text li {
	margin-bottom: 6px;
	padding-left: 3px;
}

.project-about__text li:last-child {
	margin-bottom: 0;
}

.project-about__text strong,
.project-about__text b {
	font-weight: 700;
}

.project-about__text em,
.project-about__text i {
	font-style: italic;
}

.project-about__text a {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.project-about__text blockquote {
	margin: 18px 0;
	padding: 12px 16px;
	border-left: 3px solid var(--color-primary);
	background: var(--color-surface);
	color: var(--color-text-muted);
}

.project-about__text img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md);
}

.project-about__text figure {
	max-width: 100%;
	margin: 18px 0;
}

.project-about__text figcaption {
	margin-top: 7px;
	color: var(--color-text-muted);
	font-size: 10px;
	text-align: center;
}

.project-about__text hr {
	margin: 20px 0;
	border: 0;
	border-top: 1px solid var(--color-border);
}

/* ========================================
   FUNCIONALIDADES
======================================== */

.project-features {
	margin-top: 30px;
}

.project-features__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-top: 16px;
}

.project-feature {
	min-width: 0;
	padding: 13px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	transition:
		border-color .25s ease,
		transform .25s ease,
		box-shadow .25s ease;
}

.project-feature:hover {
	transform: translateY(-2px);
	border-color: var(--color-primary);
	box-shadow: 0 5px 15px rgba(16, 26, 29, .04);
}

.project-feature__icon {
	flex-shrink: 0;
	width: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-feature__icon img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.project-feature__content {
	min-width: 0;
}

.project-feature__content h3 {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
}

.project-feature__content p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 10px;
	line-height: 1.5;
}

/* ========================================
   SIDEBAR
======================================== */

.project-content__sidebar > div {
	min-width: 0;
}

/* LINKS */

.project-links {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.project-link {
	min-height: 54px;
	padding: 9px 12px;
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	transition:
		border-color .25s ease,
		transform .25s ease,
		box-shadow .25s ease;
}

.project-link:hover {
	transform: translateY(-2px);
	border-color: var(--color-primary);
	box-shadow: 0 5px 15px rgba(16, 26, 29, .04);
}

.project-link__icon {
	display: block;
	flex-shrink: 0;
	width: 33px;
	height: 33px;
	object-fit: contain;
}

.project-link__content {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.project-link__content strong {
	font-size: 11px;
	font-weight: 700;
}

.project-link__content small {
	color: var(--color-text-muted);
	font-size: 9px;
}

.project-link__arrow {
	font-size: 17px;
	font-weight: 700;
}

/* TECNOLOGIAS */

.project-technologies__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.project-technologies__list span {
	padding: 8px 11px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	font-size: 10px;
	transition:
		border-color .2s ease,
		color .2s ease;
}

.project-technologies__list span:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

/* DETALHES */

.project-details__list {
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
}

.project-detail {
	min-width: 0;
	padding: 12px;
	display: grid;
	grid-template-columns: 24px minmax(75px, .8fr) minmax(0, 1.5fr);
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid var(--color-border);
}

.project-detail:last-child {
	border-bottom: 0;
}

.project-detail__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-detail__icon img {
	display: block;
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.project-detail strong {
	font-size: 10px;
	font-weight: 700;
}

.project-detail > span {
	color: var(--color-text-muted);
	font-size: 10px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

/* ========================================
   GALERIA
======================================== */

.project-gallery {
	padding: 0 0 var(--section-padding-y);
}

.project-gallery__heading {
	margin-bottom: 18px;
}

.project-gallery__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.project-gallery__item {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
}

.project-gallery__item img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.project-gallery__item video {
	display: block;
	width: 100%;
	height: auto;
	background: #000;
}

/* ========================================
   DESKTOP
======================================== */

@media (min-width: 768px) {

	.project-hero {
		padding: 35px 0 25px;
	}

	.project-hero__container {
		grid-template-columns: .9fr 1.1fr;
		align-items: center;
		gap: 45px;
	}

	.project-back {
		margin-bottom: 35px;
	}

	.project-hero h1 {
		font-size: clamp(38px, 4vw, 48px);
	}

	.project-hero__summary {
		font-size: 13px;
	}

	.project-hero__image img {
		height: 305px;
		min-height: 305px;
	}

	.project-meta__container {
		grid-template-columns: repeat(4, 1fr);
	}

	.project-meta__item {
		padding: 18px 15px;
		gap: 12px;
		border-top: 0 !important;
		border-right: 1px solid var(--color-border);
	}

	.project-meta__item:last-child {
		border-right: 0;
	}

	.project-content {
		padding: var(--section-padding-y-desktop) 0;
	}

	.project-content__container {
		grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
		gap: 35px;
	}

	.project-content__sidebar {
		padding-left: 35px;
		border-left: 1px solid var(--color-border);
		gap: 28px;
	}

	.project-about h2,
	.project-features h2,
	.project-gallery h2 {
		font-size: 25px;
	}

	.project-features__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.project-feature {
		padding: 13px;
	}

	.project-gallery {
		padding-bottom: var(--section-padding-y-desktop);
	}

	.project-gallery__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 14px;
	}

	.project-gallery__item img {
		height: 130px;
		object-fit: contain;
	}
}

/* ========================================
   DESKTOP LARGO
======================================== */

@media (min-width: 1100px) {

	.project-hero__container {
		gap: 55px;
	}

	.project-hero__image img {
		height: 305px;
	}

	.project-content__container {
		gap: 40px;
	}

	.project-content__sidebar {
		padding-left: 40px;
	}

	.project-gallery__grid {
		gap: 16px;
	}

	.project-gallery__item img {
		height: 150px;
	}
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

	.project-hero {
		padding: 22px 0;
	}

	.project-hero__container,
	.project-meta__container,
	.project-content__container,
	.project-gallery__container {
		width: min(100% - 40px, var(--container));
	}

	.project-back {
		margin-bottom: 28px;
		font-size: 10px;
	}

	.project-hero h1 {
		font-size: clamp(29px, 9vw, 38px);
		letter-spacing: -1.5px;
	}

	.project-hero__summary {
		margin-top: 12px;
		font-size: 12px;
	}

	.project-hero__actions {
		width: 100%;
		gap: 8px;
		margin-top: 18px;
	}

	.project-button {
		min-height: 43px;
		padding-inline: 12px;
		font-size: 10px;
	}

	.project-hero__image img {
		min-height: 190px;
		max-height: 260px;
	}

	.project-meta__item {
		padding: 13px 7px;
		gap: 8px;
	}

	.project-meta__item > img {
		width: 32px;
		height: 28px;
	}

	.project-meta__item strong {
		font-size: 10px;
	}

	.project-meta__item p {
		font-size: 9px;
	}

	.project-content {
		padding: 28px 0;
	}

	.project-content__container {
		gap: 32px;
	}

	.project-content__sidebar {
		padding-top: 25px;
		border-top: 1px solid var(--color-border);
		gap: 25px;
	}

	.project-about h2,
	.project-features h2,
	.project-gallery h2 {
		font-size: 23px;
	}

	.project-about__text {
		font-size: var(--section-text-size);
		line-height: 1.75;
	}

	.project-about__text h3 {
		font-size: 14px;
	}

	.project-about__text h4 {
		font-size: 12px;
	}

	.project-features {
		margin-top: 25px;
	}

	.project-features__grid {
		gap: 9px;
	}

	.project-feature {
		padding: 12px;
	}

	.project-feature__icon img {
		width: 25px;
		height: 25px;
	}

	.project-gallery {
		padding-bottom: 30px;
	}

	.project-gallery__grid {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		padding-bottom: 10px;
		scroll-snap-type: x mandatory;
		scrollbar-width: thin;
		scrollbar-color: var(--color-primary) var(--color-border);
	}

	.project-gallery__item {
		flex: 0 0 82%;
		scroll-snap-align: start;
	}

	.project-gallery__item img {
		height: 190px;
		object-fit: contain;
	}

	.project-gallery__item video {
		max-height: 220px;
	}

	.project-detail {
		grid-template-columns: 22px minmax(65px, .8fr) minmax(0, 1.5fr);
		gap: 8px;
		padding: 11px 9px;
	}

	.project-detail__icon img {
		width: 20px;
		height: 20px;
	}

	.project-detail strong,
	.project-detail > span {
		font-size: 9px;
	}
}

/* ========================================
   ACESSIBILIDADE
======================================== */

@media (prefers-reduced-motion: reduce) {
	.project-back,
	.project-button,
	.project-feature,
	.project-link,
	.project-technologies__list span {
		transition: none;
	}

	.project-button:hover,
	.project-feature:hover,
	.project-link:hover {
		transform: none;
	}
}

/* ========================================
   LIGHTBOX DA GALERIA
======================================== */

.project-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 50px 70px;
	background: rgba(10, 18, 20, .94);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity .25s ease,
		visibility .25s ease;
}

.project-lightbox.is-active {
	display: flex;
	opacity: 1;
	visibility: visible;
}

.project-lightbox__content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.project-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
}

.project-lightbox__close,
.project-lightbox__prev,
.project-lightbox__next {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-family: inherit;
	font-size: 24px;
	cursor: pointer;
	transition:
		background .2s ease,
		border-color .2s ease;
}

.project-lightbox__close:hover,
.project-lightbox__prev:hover,
.project-lightbox__next:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, .2);
}

.project-lightbox__close {
	top: 20px;
	right: 20px;
	font-size: 30px;
}

.project-lightbox__prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.project-lightbox__next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.project-lightbox__counter {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 11px;
}

.project-lightbox-open {
	overflow: hidden;
}

.project-gallery__item[role="button"] {
	cursor: zoom-in;
}

.project-lightbox button:focus-visible,
.project-gallery__item:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 4px;
}

@media (max-width: 767px) {
	.project-lightbox {
		padding: 45px 15px;
	}

	.project-lightbox__close {
		top: 12px;
		right: 12px;
	}

	.project-lightbox__prev {
		left: 8px;
	}

	.project-lightbox__next {
		right: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.project-lightbox,
	.project-lightbox__close,
	.project-lightbox__prev,
	.project-lightbox__next {
		transition: none;
	}
}
