/* Hamburgueria Demo — página inicial.
   Direção "o lugar é o argumento": fotografias em tela cheia, texto curto entre elas.
   Usa os tokens de home.css (cores, tipos, tempos). */

.hd-inicio {
	--hd-margem: clamp(20px, 2.4vw, 36px);
}


/* =========================================================
   CAPA: a sala em tela cheia, o nome na base
   ========================================================= */

.hd-capa {
	position: relative;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
	color: var(--hd-ink);
}

.hd .hd-capa-foto {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 40%;
	animation: hd-capa-respira 14s var(--ease-soft) both;
}

@keyframes hd-capa-respira {
	from { transform: scale(1.08); }
	to { transform: scale(1); }
}

/* Escurece só a faixa de baixo, onde fica o texto; o resto da fotografia fica intacto. */
.hd-capa::after {
	content: "";
	position: absolute;
	inset: 45% 0 0;
	background: linear-gradient(to bottom, rgba(10, 9, 8, 0), rgba(10, 9, 8, 0.82)); /* taste-skill-ignore: véu neutro sob o texto na fotografia */
	pointer-events: none;
}

.hd-capa-topo {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px var(--hd-margem);
	background: rgba(10, 9, 8, 0.45);
}

.hd .hd-capa-logo img {
	width: 56px;
	height: 56px;
}

.hd-capa-links {
	display: flex;
	gap: clamp(16px, 2.4vw, 36px);
	font-size: var(--hd-small);
}

.hd-capa-links a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
	text-decoration-color: transparent;
	transition: text-decoration-color var(--t-hover) ease;
}

.hd-capa-links a:hover {
	text-decoration-color: var(--hd-accent);
}

.hd-capa-base {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0 var(--hd-margem) 28px;
}

.hd-capa-linha {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 8px;
}

.hd-capa-frase {
	font-size: var(--hd-body);
	line-height: 1.45;
}

.hd-botao-claro {
	background: var(--hd-ink);
	color: var(--hd-accent-ink) !important;
}

.hd-botao-claro:hover {
	background: var(--hd-accent);
}

.hd .hd-capa-nome {
	margin: 0;
	font-size: clamp(3rem, 10.4vw, 15rem);
	font-weight: 600;
	line-height: 0.86;
	letter-spacing: -0.045em !important;
	white-space: nowrap;
	animation: hd-sobe 1100ms var(--ease-out) 150ms both;
}

.hd-capa-linha {
	animation: hd-sobe 900ms var(--ease-out) 450ms both;
}

@keyframes hd-sobe {
	from {
		opacity: 0;
		transform: translateY(32px);
	}
}


/* =========================================================
   ABERTURA
   ========================================================= */

.hd-abertura {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: clamp(120px, 14vw, 220px) var(--hd-margem) clamp(140px, 16vw, 240px) clamp(20px, 22vw, 360px);
}

.hd-abertura-texto {
	max-width: 30ch;
	font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
	line-height: 1.25;
	letter-spacing: -0.015em;
}


/* =========================================================
   COMO FUNCIONA: um verbo por ecrã
   ========================================================= */

.hd-verbo {
	position: relative;
	height: 100svh;
	min-height: 520px;
	overflow: hidden;
}

.hd .hd-verbo-foto {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Véu neutro: a palavra precisa de contraste em qualquer fotografia. */
.hd-verbo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(10, 9, 8, 0.42);
}

.hd-verbo-palavra {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hd-verbo-palavra span {
	display: block;
	color: var(--hd-ink);
	font-size: clamp(6rem, 17vw, 18.75rem);
	font-weight: 600;
	line-height: 0.9;
	letter-spacing: -0.05em;
	text-align: center;
}

.hd-verbo-frase {
	position: absolute;
	z-index: 3;
	left: var(--hd-margem);
	bottom: var(--hd-margem);
	max-width: 36ch;
	padding: 16px 20px;
	background: rgba(10, 9, 8, 0.72);
	font-size: var(--hd-body);
	line-height: 1.45;
}

.hd-verbo-frase strong {
	font-weight: 600;
}


/* =========================================================
   MENU sobre fotografia
   ========================================================= */

.hd-menu-foto {
	position: relative;
	padding: clamp(80px, 10vw, 160px) 12px;
	overflow: hidden;
}

.hd .hd-menu-fundo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.5);
}

.hd-menu-foto .hd-menu {
	position: relative;
	z-index: 1;
	padding: 0 !important;
	background: none !important;
}

/* O recorte das bordas da folha tem de mostrar a fotografia, não o fundo da página. */
.hd-menu-foto .hd-folha::before,
.hd-menu-foto .hd-folha::after {
	display: none;
}


/* =========================================================
   GALERIA que se arrasta
   ========================================================= */

.hd-galeria {
	padding: clamp(120px, 14vw, 200px) 0 clamp(120px, 14vw, 200px);
}

.hd-galeria-topo {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin: 0 var(--hd-margem) 32px 6vw;
}

.hd-galeria-dica {
	color: var(--hd-muted);
	font-size: var(--hd-small);
}

.hd-galeria-fila {
	--alt: 68svh;
	display: flex;
	gap: 12px;
	height: var(--alt);
	padding: 0 6vw;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding-left: 6vw;
	scrollbar-width: none;
	cursor: grab;
}

.hd-galeria-fila::-webkit-scrollbar {
	display: none;
}

.hd-mod {
	flex: 0 0 auto;
	height: 100%;
	scroll-snap-align: start;
}

.hd-mod-alto {
	aspect-ratio: 3 / 4;
}

.hd-mod-largo {
	aspect-ratio: 16 / 10;
}

.hd-mod-par {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: calc((var(--alt) - 12px) / 2 * 4 / 3);
}

.hd .hd-mod img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hd .hd-mod-par img {
	height: calc(50% - 6px);
}


/* =========================================================
   VISITA: cartão sobre a fotografia
   ========================================================= */

.hd-visita {
	position: relative;
	min-height: 100svh;
	overflow: hidden;
}

.hd .hd-visita-foto {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 30% 50%;
}

.hd-visita-cartao {
	position: absolute;
	top: 60px;
	right: 60px;
	width: 380px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 32px 32px 0;
	background: var(--hd-paper);
	color: var(--hd-paper-ink);
}

.hd .hd-visita-cartao h2 {
	font-size: 1.75rem;
	line-height: 1.1;
}

.hd-visita-cartao a:not(.hd-botao) {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hd-visita-horas {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	font-size: var(--hd-small);
}

.hd .hd-visita-horas tr,
.hd .hd-visita-horas th,
.hd .hd-visita-horas td {
	padding: 6px 0;
	border: 0;
	background: transparent !important;
	color: var(--hd-paper-ink);
	font-weight: 400;
	text-align: left;
}

.hd-visita-horas td {
	text-align: right;
}

.hd-visita-cartao .hd-botao {
	margin: 8px -32px 0;
	min-height: 56px;
}


/* =========================================================
   FIM: o email é o título
   ========================================================= */

.hd-fim {
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 40px;
	min-height: 76svh;
	padding: 40px var(--hd-margem) 28px;
	background: var(--hd-accent);
	color: var(--hd-accent-ink);
}

.hd-fim a {
	color: var(--hd-accent-ink);
}

.hd-fim-topo {
	display: flex;
	gap: clamp(24px, 6vw, 96px);
	font-size: var(--hd-small);
}

.hd-fim-subir {
	margin-left: auto;
	text-decoration: underline;
	text-underline-offset: 5px;
}

.hd .hd-fim-email {
	align-self: end;
	font-size: clamp(2.5rem, 7.2vw, 9rem);
	line-height: 0.95;
	letter-spacing: -0.045em;
	text-decoration: none;
	transition: color var(--t-hover) ease;
}

.hd .hd-fim-email:hover {
	color: #fff;
}

.hd-fim-meta {
	display: grid;
	grid-template-columns: 1fr 1.4fr auto;
	gap: 24px;
	font-size: var(--hd-small);
}

.hd-fim-meta nav {
	display: flex;
	gap: 20px;
}

.hd-fim-meta a {
	text-decoration: underline;
	text-underline-offset: 4px;
}


/* =========================================================
   TELEMÓVEL
   ========================================================= */

@media (max-width: 760px) {
	.hd .hd-capa-nome {
		font-size: 15vw;
		white-space: normal;
		line-height: 0.88;
	}

	.hd-capa-linha {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 16px;
	}

	.hd-capa-links {
		gap: 16px;
	}

	.hd-capa-links a:not(:last-child) {
		display: none;
	}

	.hd .hd-capa-logo img {
		width: 44px;
		height: 44px;
	}

	.hd-abertura {
		padding-left: var(--hd-margem);
	}

	.hd-verbo-palavra span {
		font-size: 24vw;
	}

	.hd-verbo-frase {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: none;
	}

	.hd-galeria-fila {
		--alt: 62svh;
		gap: 8px;
		padding: 0 20px;
		scroll-padding-left: 20px;
	}

	.hd-galeria-topo {
		margin-left: 20px;
	}

	.hd-mod-alto { aspect-ratio: auto; width: 72vw; }
	.hd-mod-largo { aspect-ratio: auto; width: 88vw; }
	.hd-mod-par { width: 64vw; gap: 8px; }
	.hd .hd-mod-par img { height: calc(50% - 4px); }

	.hd-visita {
		min-height: 0;
		padding-bottom: 16px;
	}

	.hd .hd-visita-foto {
		position: relative;
		height: 70svh;
	}

	.hd-visita-cartao {
		position: relative;
		top: auto;
		right: auto;
		width: auto;
		margin: -80px 16px 0;
		padding: 24px 24px 0;
	}

	.hd-visita-cartao .hd-botao {
		margin: 8px -24px 0;
	}

	.hd-fim-topo {
		flex-direction: column;
		gap: 16px;
	}

	.hd-fim-subir {
		margin-left: 0;
	}

	.hd .hd-fim-email {
		font-size: 11.4vw;
	}

	.hd-fim-meta {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hd .hd-capa-foto,
	.hd .hd-capa-nome,
	.hd-capa-linha {
		animation: none;
	}
}
