/**
 * Grupo Empório — Escolha uma Marca
 * Site estático. Valores derivados do design original (375 × 674).
 */

:root {
	--bg: #161412;
	--card: #221e1c;
	--accent: #f2800d;
	--accent-light: #e8b12f;
	--accent-deep: #d44211;
	--line: #37322f;
	--text: #ffffff;

	--radius-card: 13px;
	--radius-btn: 6px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	display: block;
	max-width: 100%;
}

/* ---------------------------------------------------------------
   Tela
   --------------------------------------------------------------- */

.home {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 19px 48px;
	overflow: hidden;
}

/* Brilho quente ao fundo, atrás do conteúdo. */
.home__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient( 620px 420px at 50% 42%, rgba(242, 128, 13, 0.13), transparent 72% ),
		radial-gradient( 900px 520px at 50% 108%, rgba(242, 128, 13, 0.08), transparent 70% );
}

.home__inner {
	position: relative;
	width: 100%;
	max-width: 420px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Logo -------------------------------------------------------- */

.home__logo {
	width: 145px;
	height: auto;
	margin-bottom: 14px;
}

/* Divisor sob o logo ------------------------------------------ */

.divider {
	position: relative;
	width: 133px;
	height: 1px;
	background: linear-gradient( 90deg, transparent, rgba(241, 126, 14, 0.85) 22%, rgba(241, 126, 14, 0.85) 78%, transparent );
	margin-bottom: 20px;
}

.divider__diamond {
	position: absolute;
	top: 50%;
	left: 51.9%;
	width: 5px;
	height: 5px;
	background: #f17e0e;
	transform: translate(-50%, -50%) rotate(45deg);
	box-shadow: 0 0 12px rgba(242, 128, 13, 0.7);
}

/* Título ------------------------------------------------------ */

.home__title {
	margin: 0 0 24px;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	letter-spacing: 0.01em;
}

.home__title em {
	font-style: italic;
	color: var(--accent-light);
}

/* Cards das marcas -------------------------------------------- */

.brands {
	display: flex;
	gap: 9px;
	width: 100%;
	justify-content: center;
}

.brand {
	flex: 1 1 0;
	max-width: 163px;
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid rgba(242, 128, 13, 0.4);
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(242, 128, 13, 0.15);
	padding-bottom: 14px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand:hover,
.brand:focus-visible {
	transform: translateY(-3px);
	border-color: rgba(242, 128, 13, 0.7);
	box-shadow: 0 16px 48px rgba(242, 128, 13, 0.26);
}

.brand:focus-visible {
	outline: 2px solid var(--accent-light);
	outline-offset: 3px;
}

.brand:active {
	transform: translateY(-1px);
}

/* O botão inteiro do card acende junto no hover. */
.brand:hover .btn,
.brand:focus-visible .btn {
	filter: brightness(1.08);
	box-shadow: 0 8px 30px -6px rgba(242, 128, 13, 0.75);
}

.brand__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 163 / 310;
	overflow: hidden;
}

/* A foto de fundo do card (dentro de <picture>). */
.brand__media > picture:first-child {
	display: block;
	width: 100%;
	height: 100%;
}

.brand__media > picture:first-child img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Escurece o rodapé da foto para o logo da marca ficar legível. */
.brand__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 58%;
	background: linear-gradient( to bottom, rgba(34, 30, 28, 0) 0%, rgba(34, 30, 28, 0.88) 42%, #221e1c 92% );
}

.brand__logo {
	position: absolute;
	z-index: 1;
	left: 50%;
	bottom: 17%;
	transform: translateX(-50%);
	display: block;
	width: 61%;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.brand__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.brand__logo--brasa {
	width: 47%;
}

/* Botão ------------------------------------------------------- */

.btn {
	display: block;
	margin: 14px 15px 0;
	padding: 8px 12px;
	border-radius: var(--radius-btn);
	background: linear-gradient( 135deg, var(--accent) 0%, var(--accent-deep) 100% );
	color: var(--text);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	letter-spacing: 0.01em;
	box-shadow: 0 6px 26px -6px rgba(242, 128, 13, 0.55);
	transition: filter 0.2s ease, box-shadow 0.2s ease;
}

/* Estados vêm do card (.brand), que é o link clicável. */

/* Botão isolado (página 404). */
.btn--standalone {
	margin: 26px 0 0;
	padding: 11px 30px;
	font-size: 13px;
	transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.btn--standalone:hover,
.btn--standalone:focus-visible {
	filter: brightness(1.08);
	box-shadow: 0 8px 30px -6px rgba(242, 128, 13, 0.75);
}

.btn--standalone:focus-visible {
	outline: 2px solid var(--accent-light);
	outline-offset: 3px;
}

/* Separador com ícone de loja --------------------------------- */

.separator {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 100%;
	max-width: 300px;
	margin-top: 26px;
	color: #f17e0e;
}

.separator__line {
	flex: 0 1 55px;
	height: 1px;
	background: rgba(241, 126, 14, 0.75);
	margin: 0 3px;
}

.separator__diamond {
	width: 3px;
	height: 3px;
	background: #f17e0e;
	transform: rotate(45deg);
	flex-shrink: 0;
}

.separator__diamond--sm {
	width: 1.8px;
	height: 1.8px;
}

.separator__icon {
	display: grid;
	place-items: center;
	width: 35px;
	height: 35px;
	margin: 0 5px;
	border: 1px solid #f17e0e;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Texto de apoio ---------------------------------------------- */

.home__note {
	max-width: 260px;
	margin: 16px 0 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.55;
	text-align: center;
}

.home__note-em {
	color: var(--accent);
}

/* Seletor de idioma ------------------------------------------- */

.lang {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
	padding: 6px 16px 6px 8px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 5px;
	color: var(--text);
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.lang:hover,
.lang:focus-visible {
	border-color: rgba(242, 128, 13, 0.6);
	background: rgba(242, 128, 13, 0.07);
	color: var(--text);
}

.lang:focus-visible {
	outline: 2px solid var(--accent-light);
	outline-offset: 3px;
}

.lang img {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
}

/* ---------------------------------------------------------------
   Telas maiores — o layout cresce proporcionalmente
   --------------------------------------------------------------- */

/* Cresce um pouco em telas médias, sem estourar a altura da janela. */
@media (min-width: 600px) and (min-height: 720px) {
	.home {
		padding: 48px 24px 56px;
	}

	.home__inner {
		max-width: 460px;
	}

	.home__logo {
		width: 165px;
		margin-bottom: 16px;
	}

	.divider {
		width: 152px;
		margin-bottom: 22px;
	}

	.home__title {
		font-size: 23px;
		margin-bottom: 26px;
	}

	.brands {
		gap: 12px;
	}

	.brand {
		max-width: 186px;
		padding-bottom: 16px;
	}

	.btn {
		margin: 15px 16px 0;
		font-size: 12.5px;
		padding: 9px 13px;
	}

	.separator {
		max-width: 330px;
		margin-top: 30px;
	}

	.separator__line {
		flex-basis: 64px;
	}

	.home__note {
		max-width: 300px;
		font-size: 13px;
		margin-top: 17px;
	}

	.lang {
		margin-top: 28px;
		padding: 7px 17px;
		font-size: 12.5px;
	}
}

@media (min-width: 900px) and (min-height: 860px) {
	.home__inner {
		max-width: 500px;
	}

	.home__logo {
		width: 180px;
	}

	.home__title {
		font-size: 26px;
	}

	.brands {
		gap: 14px;
	}

	.brand {
		max-width: 204px;
	}
}

/* Telas largas mas baixas (notebooks): compacta o vertical para tudo
   caber sem rolagem. */
@media (min-width: 600px) and (max-height: 860px) {
	.home {
		padding: 30px 24px 34px;
	}

	.home__logo {
		width: 132px;
		margin-bottom: 11px;
	}

	.divider {
		margin-bottom: 16px;
	}

	.home__title {
		font-size: 21px;
		margin-bottom: 20px;
	}

	.brand {
		max-width: 158px;
	}

	.separator {
		margin-top: 22px;
	}

	.home__note {
		margin-top: 14px;
	}

	.lang {
		margin-top: 20px;
	}
}

/* Respeita quem prefere menos movimento. */
@media (prefers-reduced-motion: reduce) {
	.brand,
	.btn,
	.lang {
		transition: none;
	}

	.brand:hover {
		transform: none;
	}
}
