/* Estilos das páginas do redesign (index.html e galeria.html). cadastro.html e gravador.html têm CSS próprio. */
:root {
	--black: #000000;
	--steel: #1d2024;
	--paper: #efece6;
	--muted: #a6a49d;
	--line: rgba(239, 236, 230, 0.16);
	--laser: #ed1b2f; /* vermelho do logo e do feixe */

	/* Cor de destaque: troque só esta linha para ajustar todo o site. Texto preto sobre ela (6,3:1). */
	--cor-destaque: #ff4655;
	--cor-destaque-escura: color-mix(in srgb, var(--cor-destaque) 70%, #000);
	--cor-destaque-clara: color-mix(in srgb, var(--cor-destaque) 74%, #fff);
	--cor-destaque-suave: color-mix(in srgb, var(--cor-destaque) 45%, transparent);
	--texto-sobre-destaque: #000000;
	--whatsapp: #25d366;

	--display: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--body: "Barlow", system-ui, sans-serif;

	--escovado: repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px);
	--metal-destaque:
		var(--escovado),
		linear-gradient(100deg, var(--cor-destaque-escura) 0%, var(--cor-destaque-clara) 20%, var(--cor-destaque) 38%, var(--cor-destaque-clara) 56%, var(--cor-destaque-escura) 76%, var(--cor-destaque) 100%);

	--header-h: 84px;
	--gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
	margin: 0;
	background: var(--black);
	color: var(--paper);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.55;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cor-destaque); outline-offset: 4px; }
.shell { width: min(1240px, 100% - 2 * var(--gutter)); margin: 0 auto; }

/* Fundo: fotos em P&B passando devagar, com camada escura por cima.
   As imagens -pb já vêm em preto e branco: sem filter ao vivo, a animação roda só na GPU. */
.backdrop { inset: 0; overflow: hidden; pointer-events: none; position: fixed; z-index: 0; }
.backdrop img {
	animation: backdrop-cycle 32s linear infinite;
	height: 100%;
	inset: 0;
	object-fit: cover;
	opacity: 0;
	position: absolute;
	width: 100%;
	will-change: opacity, transform;
}
.backdrop img:nth-child(1) { animation-delay: -2s; }
.backdrop img:nth-child(2) { animation-delay: 6s; }
.backdrop img:nth-child(3) { animation-delay: 14s; }
.backdrop img:nth-child(4) { animation-delay: 22s; }
.backdrop::after {
	background:
		linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .78) 45%, rgba(0, 0, 0, .9) 100%),
		radial-gradient(120% 80% at 70% 20%, transparent 0%, rgba(0, 0, 0, .5) 100%);
	content: "";
	inset: 0;
	position: absolute;
}
@keyframes backdrop-cycle {
	0% { opacity: 0; transform: scale(1.08); }
	6% { opacity: 1; }
	25% { opacity: 1; }
	33% { opacity: 0; transform: scale(1); }
	100% { opacity: 0; transform: scale(1); }
}
.page { position: relative; z-index: 1; }

/* Topo */
.topbar-wrap {
	/* Sem backdrop-filter: o desfoque sobre o fundo animado era recalculado a cada quadro */
	background: rgba(0, 0, 0, .8);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 10;
}
.topbar { align-items: center; display: flex; gap: 24px; justify-content: space-between; min-height: var(--header-h); }
.brand { align-items: center; display: flex; flex: 0 0 auto; }
.brand-name {
	color: var(--laser);
	display: block;
	font-family: var(--body);
	font-size: 28px;
	font-style: italic;
	font-weight: 700;
	letter-spacing: -.05em;
	line-height: .8;
	position: relative;
	transform: scaleX(1.32);
	transform-origin: left center;
}
.brand-name::after { background: var(--cor-destaque); bottom: -8px; content: ""; height: 2px; left: 0; position: absolute; width: 30px; }
.nav { align-items: center; display: flex; gap: clamp(16px, 3vw, 36px); }
.nav a:not(.nav-cta) {
	color: var(--paper);
	font-family: var(--display);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: .03em;
	line-height: 1;
	padding: 6px 0;
	position: relative;
	text-transform: uppercase;
	transition: color .2s ease;
}
/* Traço de laser sob o link: corre no hover e fica fixo na página atual */
.nav a:not(.nav-cta)::after {
	background: var(--cor-destaque);
	bottom: 0;
	box-shadow: 0 0 10px 1px var(--cor-destaque-suave);
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .3s cubic-bezier(.65, 0, .25, 1);
	width: 100%;
}
.nav a:not(.nav-cta):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--cor-destaque); }
.nav .nav-cta {
	align-items: center;
	background: var(--whatsapp);
	color: #04170a;
	display: inline-flex;
	font-size: 15px;
	font-weight: 600;
	gap: 10px;
	padding: 11px 16px;
	transition: background .2s ease;
	white-space: nowrap;
}
.nav .nav-cta:hover { background: #5ee88c; color: #04170a; }
.nav .nav-cta svg { flex: 0 0 auto; height: 22px; width: 22px; }

/* Hero */
.hero {
	align-content: end;
	display: grid;
	gap: 48px clamp(32px, 6vw, 96px);
	grid-template-columns: minmax(0, 1fr) auto;
	min-height: calc(100svh - var(--header-h));
	padding: clamp(56px, 10vh, 120px) 0 clamp(56px, 9vh, 104px);
}
.etch {
	font-family: var(--display);
	font-size: clamp(56px, 21vw, 220px);
	font-weight: 900;
	letter-spacing: -.01em;
	line-height: .84;
	margin: 0;
	position: relative;
	text-transform: uppercase;
	width: fit-content;
}
.etch-base, .etch-fill { padding-bottom: .12em; }
.etch-base { -webkit-text-stroke: 1px rgba(239, 236, 230, .38); color: transparent; display: block; }
.etch-fill {
	animation: etch 1.9s .35s cubic-bezier(.65, 0, .25, 1) both;
	background: var(--metal-destaque);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	inset: 0;
	position: absolute;
}
.etch-beam {
	animation: beam 1.9s .35s cubic-bezier(.65, 0, .25, 1) both;
	background: var(--laser);
	bottom: -3%;
	box-shadow: 0 0 14px 2px rgba(237, 27, 47, .85), 0 0 48px 8px rgba(237, 27, 47, .35);
	left: 0;
	position: absolute;
	top: -3%;
	width: 2px;
}
@keyframes etch { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes beam {
	0% { left: 0; opacity: 0; }
	6% { opacity: 1; }
	92% { opacity: 1; }
	100% { left: 100%; opacity: 0; }
}
.hero-text { grid-column: 1; max-width: 46ch; }
.hero-copy { color: #cfccc5; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; margin: 0; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 32px; }
.button {
	background: var(--escovado), var(--cor-destaque);
	color: var(--texto-sobre-destaque);
	display: inline-flex;
	font-size: 16px;
	font-weight: 600;
	padding: 15px 22px;
	transition: filter .2s ease;
}
.button:hover { filter: brightness(1.12); }
.text-link {
	border-bottom: 1px solid var(--cor-destaque-suave);
	color: var(--paper);
	font-size: 16px;
	font-weight: 500;
	padding-bottom: 2px;
	transition: border-color .2s ease;
}
.text-link:hover { border-color: var(--cor-destaque); }

/* Placa: exemplo do que vai gravado na medalha */
.plate {
	align-self: end;
	background: linear-gradient(160deg, color-mix(in srgb, var(--cor-destaque) 14%, transparent), color-mix(in srgb, var(--cor-destaque) 3%, transparent));
	border: 1px solid var(--cor-destaque-suave);
	grid-column: 2;
	grid-row: 1 / span 2;
	margin: 0;
	min-width: 230px;
	padding: 22px 26px 24px;
}
.plate figcaption { color: var(--cor-destaque); font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.plate dl { display: grid; gap: 10px; margin: 0; }
.plate div { align-items: baseline; border-top: 1px solid color-mix(in srgb, var(--cor-destaque) 22%, transparent); display: flex; justify-content: space-between; gap: 24px; padding-top: 10px; }
.plate dt { color: var(--muted); font-size: 14px; }
.plate dd {
	font-family: var(--display);
	font-size: 30px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1;
	margin: 0;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 -1px 0 rgba(0, 0, 0, .7);
}

/* Faixa */
.ticker {
	background: rgba(0, 0, 0, .55);
	border-bottom: 1px solid var(--line);
	border-top: 1px solid var(--line);
	color: var(--paper);
	display: flex;
	flex-wrap: wrap;
	font-family: var(--display);
	font-size: clamp(20px, 2.4vw, 30px);
	font-weight: 700;
	gap: 6px 28px;
	justify-content: center;
	padding: 18px var(--gutter);
	text-transform: uppercase;
}
.ticker b { color: var(--laser); font-weight: 400; }

/* Clientes */
.partners { background: rgba(0, 0, 0, .7); border-bottom: 1px solid var(--line); isolation: isolate; padding: 40px 0 36px; }
.partners-label { color: var(--muted); font-size: 15px; margin: 0 0 22px; text-align: center; }
.partner-list { display: flex; overflow-x: auto; padding: 0 0 8px; scrollbar-width: none; }
.partner-list.is-moving { overflow: hidden; }
/* Duas faixas iguais lado a lado andando -100%: a volta é emendada, sem salto */
.partner-strip { align-items: center; display: flex; flex: 0 0 auto; gap: 48px; padding: 0 24px; }
.partner-list.is-moving .partner-strip { animation: partners-marquee var(--partners-duration, 60s) linear infinite; will-change: transform; }
.partner-list.is-moving:hover .partner-strip { animation-play-state: paused; }
@keyframes partners-marquee { to { transform: translateX(-100%); } }
.partner-list::-webkit-scrollbar { display: none; }
.partner-list img { flex: 0 0 auto; height: 70px; max-width: 210px; mix-blend-mode: screen; object-fit: contain; opacity: .9; width: auto; }
.partner-list img:first-child,
.partner-list img:nth-child(3) { height: 96px; }
.partner-list img:nth-child(5) { height: 30px; }
.partner-list img:nth-child(6) { height: 88px; }
.partner-list img:nth-child(7) { height: 56px; }
.partner-list img:nth-child(9) { height: 46px; }
.partner-list img:nth-child(10) { height: 44px; }

/* Títulos de seção */
h2 {
	font-family: var(--display);
	font-size: clamp(44px, 6vw, 84px);
	font-weight: 800;
	letter-spacing: -.005em;
	line-height: .92;
	margin: 0;
	text-transform: uppercase;
}

/* Sobre */
.intro { display: grid; gap: 40px 80px; grid-template-columns: 1fr 1fr; padding: clamp(80px, 12vw, 150px) 0; }
.intro h2 { max-width: 9ch; }
.intro-text { color: #c9c6bf; max-width: 46ch; }
.intro-text p { margin: 0 0 22px; }
.specs { border-top: 1px solid var(--line); display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 36px; padding-top: 20px; }
.specs strong { color: var(--cor-destaque); display: block; font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; }
.specs span { color: var(--muted); display: block; font-size: 14px; margin-top: 6px; }

/* Galeria */
.gallery { border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 120px) 0; }
.gallery-heading { align-items: end; display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; margin-bottom: 40px; }
.gallery-heading p { color: var(--muted); margin: 0; max-width: 40ch; }
.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(12, 1fr); list-style: none; margin: 0; padding: 0; }
.gallery-item { margin: 0; }
.gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-column: span 7; }
.gallery-item:nth-child(2), .gallery-item:nth-child(3) { grid-column: span 5; }
.gallery-item .frame { aspect-ratio: 3 / 2; background: var(--steel); overflow: hidden; }
.gallery-item:nth-child(2) .frame, .gallery-item:nth-child(3) .frame { aspect-ratio: auto; height: 100%; }
.gallery-item figure { display: grid; grid-template-rows: 1fr auto; height: 100%; margin: 0; }
.gallery-item img { height: 100%; object-fit: cover; width: 100%; }
.gallery-item figcaption { border-top: 2px solid var(--cor-destaque); color: #c9c6bf; font-size: 15px; margin-top: 10px; padding-top: 8px; }
.gallery-more { display: flex; justify-content: flex-start; margin-top: 40px; }

/* Página galeria.html */
.gallery-page { border-top: 0; min-height: calc(100svh - var(--header-h)); }
.gallery-page h1 {
	font-family: var(--display);
	font-size: clamp(64px, 11vw, 160px);
	font-weight: 900;
	line-height: .86;
	margin: 0;
	text-transform: uppercase;
}
.photo-grid { display: grid; gap: 40px 20px; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
.photo-grid figure { margin: 0; }
.photo-link { background: var(--steel); cursor: zoom-in; display: block; overflow: hidden; }
.photo-link img { aspect-ratio: 3 / 2; height: auto; object-fit: cover; transition: transform .5s ease; width: 100%; }
.photo-link:hover img { transform: scale(1.03); }
.photo-grid figcaption { border-top: 2px solid var(--cor-destaque); color: #c9c6bf; font-size: 15px; margin-top: 10px; padding-top: 8px; }

/* Lightbox (criado por assets/js/galeria.js) */
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
	background: transparent;
	border: 0;
	color: var(--paper);
	height: 100%;
	max-height: none;
	max-width: none;
	padding: 72px clamp(16px, 7vw, 96px) 24px;
	width: 100%;
}
.lightbox[open] { align-items: center; display: flex; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .96); }
.lightbox-figure { margin: 0; max-width: 100%; }
.lightbox-img { height: auto; max-height: calc(100svh - 160px); max-width: 100%; object-fit: contain; width: auto; }
.lightbox-caption { color: #c9c6bf; display: flex; font-size: 15px; gap: 24px; justify-content: space-between; margin-top: 12px; }
.lightbox-count { color: var(--muted); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.lightbox-btn {
	background: rgba(0, 0, 0, .55);
	border: 1px solid var(--line);
	color: var(--paper);
	cursor: pointer;
	font: 500 15px/1 var(--body);
	position: fixed;
	transition: border-color .2s ease;
}
.lightbox-btn:hover { border-color: var(--paper); }
.lightbox-close { padding: 12px 16px; right: var(--gutter); top: 16px; }
.lightbox-prev, .lightbox-next { font-size: 34px; height: 56px; line-height: 0; top: 50%; translate: 0 -50%; width: 44px; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* Valores */
.values { border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 120px) 0; }
.values-heading { align-items: end; display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; margin-bottom: 48px; }
.values-heading p { color: var(--muted); margin: 0; max-width: 32ch; }
.values-grid { display: grid; gap: 40px 56px; grid-template-columns: repeat(2, 1fr); }
.value-item { border-left: 2px solid var(--cor-destaque-escura); padding-left: 22px; }
.value-item h3 { color: var(--cor-destaque); font-family: var(--display); font-size: 32px; font-weight: 800; line-height: 1; margin: 0 0 10px; text-transform: uppercase; }
.value-item p { color: #c9c6bf; margin: 0; max-width: 44ch; }

/* Fale com a gente */
.contact { background: rgba(0, 0, 0, .78); border-top: 1px solid var(--line); padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.contact::before {
	background: var(--laser);
	box-shadow: 0 0 18px 2px rgba(237, 27, 47, .6);
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	top: -1px;
	width: min(420px, 40%);
}
.contact-inner { align-items: start; display: grid; gap: 40px clamp(40px, 7vw, 112px); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.contact h2 { font-size: clamp(56px, 8.5vw, 128px); font-weight: 900; line-height: .86; max-width: 9ch; }
.contact-lead { color: var(--paper); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; margin: 0 0 28px; max-width: 34ch; }
.contact-steps { counter-reset: passo; display: grid; gap: 14px; list-style: none; margin: 0 0 36px; padding: 0; }
.contact-steps li { align-items: center; color: #c9c6bf; counter-increment: passo; display: flex; gap: 16px; }
.contact-steps li::before {
	color: var(--cor-destaque);
	content: counter(passo);
	flex: 0 0 1.2em;
	font-family: var(--display);
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
}
.wa-button {
	align-items: center;
	background: var(--whatsapp);
	color: #04170a;
	display: inline-flex;
	font-size: 19px;
	font-weight: 600;
	gap: 14px;
	padding: 18px 28px 18px 22px;
	transition: background .2s ease, transform .2s ease;
}
.wa-button svg { flex: 0 0 auto; height: 28px; width: 28px; }
.wa-button:hover { background: #5ee88c; transform: translateY(-2px); }
.contact-phone { color: var(--muted); font-size: 15px; margin: 16px 0 0; }
.contact-phone a { border-bottom: 1px solid var(--line); color: var(--paper); font-variant-numeric: tabular-nums; }
.contact-phone a:hover { border-color: var(--paper); }

/* Botão flutuante do WhatsApp */
.wa-float {
	align-items: center;
	background: var(--whatsapp);
	border-radius: 50%;
	bottom: calc(20px + env(safe-area-inset-bottom));
	box-shadow: 0 6px 22px rgba(0, 0, 0, .5);
	color: #04170a;
	display: flex;
	height: 56px;
	justify-content: center;
	position: fixed;
	right: calc(20px + env(safe-area-inset-right));
	transition: background .2s ease, transform .2s ease;
	width: 56px;
	z-index: 20;
}
.wa-float svg { height: 30px; width: 30px; }
.wa-float:hover { background: #5ee88c; transform: scale(1.06); }

/* Rodapé */
footer { background: rgba(0, 0, 0, .82); border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; padding: 28px 0 96px; }
footer .shell { align-items: center; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.footer-main { align-items: center; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: var(--paper); transition: color .2s ease; }
.footer-nav a:hover { color: var(--cor-destaque); }

/* Tablet */
@media (max-width: 960px) {
	.hero { grid-template-columns: 1fr; }
	.plate { grid-column: 1; grid-row: auto; justify-self: start; }
	.gallery-item:nth-child(n) { grid-column: span 6; }
	.gallery-item:nth-child(n) .frame { aspect-ratio: 4 / 5; height: auto; }
}

/* Celular */
@media (max-width: 720px) {
	:root { --header-h: 68px; }
	body { font-size: 16px; }
	.brand-name { font-size: 22px; transform: scaleX(1.28); }
	.brand-name::after { bottom: -6px; width: 24px; }
	.nav { gap: 14px; }
	.nav a:not(.nav-cta) { font-size: 18px; }
	.nav .nav-cta { font-size: 14px; gap: 8px; padding: 9px 12px; }
	.nav .nav-cta svg { height: 20px; width: 20px; }
	.nav .nav-cta-extra { display: none; }
	.hero { align-content: center; gap: 36px; }
	.plate { min-width: 0; width: 100%; }
	.ticker { flex-wrap: nowrap; gap: 18px; justify-content: flex-start; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); overflow: hidden; white-space: nowrap; }
	.partner-list { padding: 0 0 6px; }
	.partner-strip { gap: 28px; padding: 0 14px; }
	.partner-list img { height: 64px; max-width: 170px; }
	.partner-list img:first-child,
	.partner-list img:nth-child(3) { height: 86px; }
	.partner-list img:nth-child(5) { height: 24px; }
	.partner-list img:nth-child(6) { height: 76px; }
	.partner-list img:nth-child(7) { height: 48px; }
	.partner-list img:nth-child(9) { height: 38px; }
	.partner-list img:nth-child(10) { height: 34px; }
	.intro { grid-template-columns: 1fr; }
	.gallery-grid { gap: 28px; }
	.gallery-item:nth-child(n) { grid-column: 1 / -1; }
	.gallery-item:nth-child(n) .frame { aspect-ratio: 3 / 2; }
	.photo-grid { grid-template-columns: 1fr; gap: 28px; }
	.lightbox { padding: 64px 0 16px; }
	.lightbox-prev, .lightbox-next { bottom: 16px; top: auto; translate: none; }
	.lightbox-caption { padding: 0 64px 0 16px; }
	.values-grid { grid-template-columns: 1fr; gap: 32px; }
	.contact-inner { grid-template-columns: 1fr; }
	.contact::before { width: 45%; }
	.wa-button { justify-content: center; width: 100%; }
	.wa-float { bottom: calc(16px + env(safe-area-inset-bottom)); height: 52px; right: calc(16px + env(safe-area-inset-right)); width: 52px; }
	.wa-float svg { height: 28px; width: 28px; }
	footer .shell, .footer-main { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 379px) {
	.nav .nav-sobre { display: none; }
}

/* Movimento reduzido: sem passagem de fotos e sem a animação do laser */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.backdrop img { animation: none; opacity: 0; transform: none; }
	.backdrop img:first-child { opacity: 1; }
	.etch-fill { animation: none; }
	.etch-beam { animation: none; display: none; }
	.photo-link img { transition: none; }
	.photo-link:hover img { transform: none; }
	.wa-button:hover, .wa-float:hover { transform: none; }
	.nav a:not(.nav-cta)::after { transition: none; }
}
