/* =========================================================
   MONOMOTOR — main.css
   Grid base: 7 colunas iguais no desktop, gutter de 20px.
   Mobile (<= 768px): coluna única contínua.
   ========================================================= */

:root {
	--mono-cols: 7;
	--mono-gap: 20px;
	--mono-preto: #000;
	--mono-branco: #fff;
	--mono-mono-font: "Courier New", Courier, monospace;
	--mono-sans-font: Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--mono-branco);
	color: var(--mono-preto);
	font-family: var(--mono-sans-font);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; }

/* Grid utilitário de 7 colunas */
.mono-grid7 {
	display: grid;
	grid-template-columns: repeat(var(--mono-cols), 1fr);
	gap: var(--mono-gap);
}

/* =========================================================
   HEADER
   ========================================================= */
.mono-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 20px;
	background: transparent;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 500; /* sempre acima do conteúdo e das imagens de fundo */
	pointer-events: none; /* a área vazia do header não bloqueia cliques no slideshow */
}

.mono-header__logo,
.mono-header__menu {
	pointer-events: auto; /* logo e menu continuam clicáveis */
}

.mono-header__logo a {
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: inherit;
}

.mono-menu {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* Na Home, o header fica sobre imagens variadas: usa branco + blend para
   permanecer sempre legível. Nas demais páginas (fundo branco), fica preto. */
body.mono-home .mono-header,
body.mono-home .mono-header a {
	color: var(--mono-branco);
	mix-blend-mode: difference;
}

body:not(.mono-home) .mono-header,
body:not(.mono-home) .mono-header a {
	color: var(--mono-preto);
}

/* =========================================================
   HOME — slideshow fullscreen
   ========================================================= */
body.mono-home { margin: 0; }

.mono-home-stage {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	background: #111;
	cursor: pointer;
}

.mono-home-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.mono-home-slide.is-active { opacity: 1; }

.mono-home-slide--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mono-branco);
	font-family: var(--mono-mono-font);
}

/* =========================================================
   ÍNDICE DE PROJETOS
   ========================================================= */
.mono-projetos { width: 100%; padding-top: 80px; }

.mono-row { position: relative; }

.mono-row__line {
	display: block;
	width: 100%;
	height: 1px;
	background: var(--mono-preto);
}

.mono-row__grid {
	display: grid;
	grid-template-columns: repeat(var(--mono-cols), 1fr);
	gap: var(--mono-gap);
	padding: 20px;
	align-items: start;
}

.mono-row__info {
	grid-column: 1 / 2;
	margin: 0;
	color: var(--mono-preto);
	font-family: var(--mono-mono-font);
	font-size: 16px;
	line-height: 16px;
}

.mono-row__campo { display: inline-block; }

.mono-row__img {
	height: 200px;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

/* =========================================================
   PÁGINA DE PROJETO
   ========================================================= */
.mono-projeto { width: 100%; padding: 100px 20px 60px; }

.mono-projeto__cabecalho {
	display: grid;
	grid-template-columns: repeat(var(--mono-cols), 1fr);
	gap: var(--mono-gap);
	margin-bottom: 40px;
}

.mono-projeto__titulo-col { grid-column: 1 / 2; }

.mono-projeto__titulo {
	font-family: var(--mono-sans-font);
	font-size: 19px;
	line-height: 19px;
	font-weight: 700;
	margin: 0 0 16px;
}

.mono-projeto__meta {
	font-family: var(--mono-mono-font);
	font-size: 14px;
	line-height: 18px;
	margin: 0;
}

.mono-projeto__texto {
	grid-column: 2 / 6;
	column-count: 2;
	column-gap: var(--mono-gap);
	max-height: 300px;
	overflow-y: auto;
	font-size: 14px;
	line-height: 1.5;
}

.mono-projeto__equipe {
	grid-column: 6 / 8;
	font-family: var(--mono-mono-font);
	font-size: 14px;
	line-height: 1.5;
}

.mono-projeto__galeria {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: var(--mono-gap);
	margin-left: calc(100% / 7 + var(--mono-gap));
	width: calc(100% - (100% / 7 + var(--mono-gap)));
}

.mono-projeto__foto {
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
}

.mono-projeto__foto img { width: 100%; height: auto; object-fit: cover; }

.mono-projeto__extra {
	margin-top: 40px;
	margin-left: calc(100% / 7 + var(--mono-gap));
	width: calc(100% - (100% / 7 + var(--mono-gap)));
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--mono-gap);
	font-size: 14px;
	line-height: 1.5;
}

.mono-projeto__extra--unica .mono-projeto__extra-col { grid-column: 1 / -1; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.mono-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.95);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 900; /* acima do header (500) */
}

.mono-lightbox.is-open { display: flex; }

.mono-lightbox__figure {
	max-width: 90vw;
	max-height: 90vh;
	margin: 0;
	text-align: center;
}

.mono-lightbox__figure img {
	max-width: 90vw;
	max-height: 80vh;
	margin: 0 auto;
}

.mono-lightbox__figure figcaption {
	color: var(--mono-branco);
	font-family: var(--mono-mono-font);
	font-size: 13px;
	margin-top: 12px;
}

.mono-lightbox__fechar,
.mono-lightbox__nav {
	position: absolute;
	color: var(--mono-branco);
	font-size: 32px;
	line-height: 1;
	padding: 10px;
}

.mono-lightbox__fechar { top: 20px; right: 20px; }
.mono-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.mono-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   PÁGINA SOBRE
   ========================================================= */
.mono-sobre { width: 100%; padding: 100px 20px 60px; }

.mono-sobre__linha {
	display: grid;
	grid-template-columns: repeat(var(--mono-cols), 1fr);
	gap: var(--mono-gap);
	padding: 30px 0;
	border-top: 1px solid var(--mono-preto);
}

.mono-sobre__col--1 { grid-column: 1 / 2; }
.mono-sobre__col--texto { grid-column: span 3; font-size: 14px; line-height: 1.5; }
.mono-sobre__col--equipe { grid-column: 2 / 8; font-family: var(--mono-mono-font); font-size: 14px; line-height: 1.5; }
.mono-sobre__col--contato { grid-column: 2 / 8; font-size: 16px; line-height: 1.6; }

.mono-sobre__subtitulo {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 10px;
}

/* =========================================================
   Genérico (index.php / page.php)
   ========================================================= */
.mono-generico { max-width: 800px; margin: 0 auto; padding: 100px 20px 60px; }

/* =========================================================
   MOBILE — coluna única contínua
   ========================================================= */
@media (max-width: 768px) {
	.mono-grid7,
	.mono-row__grid,
	.mono-projeto__cabecalho,
	.mono-sobre__linha { grid-template-columns: 1fr; }

	.mono-header { padding: 16px; }

	.mono-row__info,
	.mono-row__img { grid-column: 1 / -1; }

	.mono-row__img { height: 60vw; }

	.mono-projeto { padding-top: 80px; }

	.mono-projeto__titulo-col,
	.mono-projeto__texto,
	.mono-projeto__equipe { grid-column: 1 / -1; }

	.mono-projeto__texto { column-count: 1; max-height: none; overflow: visible; }

	.mono-projeto__galeria,
	.mono-projeto__extra {
		margin-left: 0;
		width: 100%;
		grid-template-columns: 1fr;
	}

	.mono-projeto__foto { grid-column: 1 / -1 !important; }

	.mono-sobre__col--1,
	.mono-sobre__col--texto,
	.mono-sobre__col--equipe,
	.mono-sobre__col--contato { grid-column: 1 / -1; }
}
