/* ==========================================================================
   Dobra hero — Black Muito + que Friday | Novolar
   BASE: comum a todas as dobras da campanha. Não editar por empreendimento.

   Cada empreendimento tem a sua pasta (ex.: ../green-life/) com:
     - um CSS próprio, carregado DEPOIS deste, que define as variáveis "por LP"
       e a foto de fundo (.bf-hero__stage { background-image: url('img/bg.webp') });
     - img/bg.webp (foto de fundo) e img/logo.svg (logo em versão branca).
   A foto NÃO vai em variável: url() dentro de var() é resolvido a partir do
   arquivo que usa a variável (este), e a imagem seria procurada em base/img/.

   Variáveis por LP (padrões = Green Life; todas em px, valores de 1440px —
   abaixo disso a base reduz na mesma proporção):
     --bf-brand      cor da LP: filetes da barra, botão e faixa inferior
     --bf-topbar-bg  fundo da barra de status
     --bf-form-band  fundo sólido da faixa do formulário abaixo de 900px
     --bf-bg-pos     enquadramento da foto de fundo (background-position)
     --bf-logo-w     largura do logo
     --bf-prod-w     largura mínima da coluna do produto (= largura dos filetes)
     --bf-prod-gap   espaço vertical entre os blocos do produto
     --bf-tip / --bf-tip-strong            tipologia: texto / 1ª linha
     --bf-desc-sm / -sm-w / -sm-lh          desconto: linha menor (tamanho, peso, entrelinha)
     --bf-desc-big / -big-lh / --bf-desc-sup desconto: linha neon e asterisco
     --bf-of-gap / --bf-of-justify          linha de condições: espaço e alinhamento
     --bf-of-sm / -sm-w / --bf-of-big / -big-lh / --bf-of-nudge
                                            condição empilhada (.bf-hero__oferta)

   Fixos da campanha: selo, brilhos neon, verde-limão dos números, filetes
   magenta e a fonte Noir Pro.
   Breakpoints iguais aos das LPs Novolar: 1239 / 899 / 599px (+699px só
   para o selo empilhar).
   ========================================================================== */

@font-face { font-family: 'NoirPro'; src: url('fonts/NoirPro-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'NoirPro'; src: url('fonts/NoirPro-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'NoirPro'; src: url('fonts/NoirPro-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'NoirPro'; src: url('fonts/NoirPro-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

.bf-hero {
	/* --- por LP (sobrescritas no CSS do empreendimento) --- */
	--bf-brand: #666;
	--bf-topbar-bg: #333;
	--bf-form-band: #333;
	--bf-bg-pos: center;
	--bf-logo-w: 155px;
	--bf-prod-w: 428px;
	--bf-prod-gap: 25px;
	--bf-tip: 20px;
	--bf-tip-strong: 32px;
	--bf-desc-sm: 24px;
	--bf-desc-sm-w: 700;
	--bf-desc-sm-lh: 28px;
	--bf-desc-big: 54px;
	--bf-desc-big-lh: 54px;
	--bf-desc-sup: 34.83px;
	--bf-of-gap: 35px;
	--bf-of-justify: flex-start;
	--bf-of-sm: 20px;
	--bf-of-sm-w: 400;
	--bf-of-big: 32px;
	--bf-of-big-lh: 38.4px;
	--bf-of-nudge: 4px;
	/* --- campanha --- */
	--bf-neon: #c3ff00;
	--bf-rule: #ff00ea;
	--bf-overlay: rgba(0, 0, 0, .8);
	--bf-form-bg: rgba(51, 51, 51, .65);
	--bf-font: 'NoirPro', 'Poppins', Arial, sans-serif;
	--bf-wrap: 1200px;
	--bf-gutter: 20px;

	font-family: var(--bf-font);
	color: #fff;
	line-height: 1.2;
	-webkit-font-smoothing: antialiased;
}
.bf-hero *, .bf-hero *::before, .bf-hero *::after { box-sizing: border-box; margin: 0; padding: 0; }
.bf-hero img { display: block; max-width: 100%; height: auto; border: 0; }
.bf-hero a { color: inherit; }
/* dentro da LP: o CSS dela define fonte/estilo em h1, h2, p, input... — aqui tudo herda da dobra */
.bf-hero :where(h1, h2, h3, p, span, strong, small, sup, label, abbr, a, input, button) { font-family: inherit; letter-spacing: inherit; text-shadow: none; }
.bf-hero__wrap { width: 100%; max-width: calc(var(--bf-wrap) + 2 * var(--bf-gutter)); margin: 0 auto; padding: 0 var(--bf-gutter); }

/* ---------- barra de status ---------- */
.bf-hero__topbar { background: var(--bf-topbar-bg); padding: 27px 0; }
.bf-hero__topbar .bf-hero__wrap { display: flex; align-items: center; justify-content: space-between; gap: 0; min-height: 50px; }
.bf-hero__status { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 25px; font-weight: 500; letter-spacing: 4.5px; text-transform: uppercase; text-align: center; }
.bf-hero__status span { display: block; text-wrap: balance; text-box: trim-both cap alphabetic; }
.bf-hero__status::before, .bf-hero__status::after { content: ''; flex: 0 0 84px; height: 1px; background: var(--bf-brand); }
.bf-hero__marca { flex: 0 0 auto; display: block; }
.bf-hero__marca img { width: 43px; height: 50px; }

/* ---------- palco ---------- */
.bf-hero__stage { position: relative; isolation: isolate; overflow: hidden; padding: 100px 0; background: #000 var(--bf-bg-pos) / cover no-repeat; }
.bf-hero__stage::before { content: ''; position: absolute; inset: 0; background: var(--bf-overlay); z-index: 0; }

/* brilhos neon: coordenadas do layout de 1440px, presas ao centro da seção */
.bf-hero__neon { position: absolute; top: 0; left: 50%; width: 1440px; height: 100%; margin-left: -720px; pointer-events: none; z-index: 1; }
.bf-hero__neon span { position: absolute; display: block; background: center / 100% 100% no-repeat; }
.bf-hero__neon .n-verde { left: -254px; top: -4.56px; width: 929px; height: 1003.6px; background-image: url('img/brilho-verde.webp'); }
.bf-hero__neon .n-mais-verde { left: -74px; top: 320px; width: 310.7px; height: 272.9px; aspect-ratio: 304 / 267; background-image: url('img/mais-verde.webp'); }
.bf-hero__neon .n-azul { left: 565.9px; top: -428.8px; width: 1193.7px; height: 1344px; opacity: .65; transform: rotate(76.77deg); background-image: url('img/brilho-azul.webp'); }
.bf-hero__neon .n-mais-azul { left: 1259px; top: -.56px; width: 180px; height: 194px; aspect-ratio: 180 / 194; background-image: url('img/mais-azul.webp'); }

.bf-hero__grid { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }

/* selo da campanha */
.bf-hero__selo { flex: 0 0 auto; width: 329px; }
.bf-hero__selo img { width: 329px; height: 410px; object-fit: contain; }

/* produto + ofertas */
.bf-hero__produto { flex: 0 1 auto; min-width: var(--bf-prod-w); display: flex; flex-direction: column; align-items: center; gap: var(--bf-prod-gap); text-align: center; text-transform: uppercase; }
.bf-hero__id { display: flex; align-items: center; justify-content: center; gap: 25px; }
.bf-hero__logo { flex-shrink: 0; }
.bf-hero__logo img { width: var(--bf-logo-w); height: auto; }
/* tipologia longa quebra linha só quando não cabe, para o produto não invadir o selo nem o formulário */
.bf-hero__tipologia { position: relative; padding-left: 26px; font-size: var(--bf-tip); font-weight: 500; white-space: normal; text-wrap: balance; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.bf-hero__tipologia::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .35); }
.bf-hero__tipologia strong { display: block; font-size: var(--bf-tip-strong); font-weight: 700; }
.bf-hero__rule { align-self: stretch; height: 1px; margin: -1px 0 0; border: 0; background: var(--bf-rule); overflow: visible; }
.bf-hero__desconto { font-size: var(--bf-desc-sm); font-weight: var(--bf-desc-sm-w); line-height: var(--bf-desc-sm-lh); white-space: nowrap; }
.bf-hero__desconto strong { display: block; font-size: var(--bf-desc-big); font-weight: 700; line-height: var(--bf-desc-big-lh); color: var(--bf-neon); }
.bf-hero__desconto sup { font-size: var(--bf-desc-sup); line-height: 1; vertical-align: top; }
.bf-hero__ofertas { align-self: stretch; display: flex; align-items: center; justify-content: var(--bf-of-justify); gap: var(--bf-of-gap); white-space: nowrap; }
.bf-hero__entrada { display: flex; align-items: center; gap: 8px; }
.bf-hero__entrada span { font-size: 20px; font-weight: 400; text-align: right; }
.bf-hero__entrada strong { font-size: 64px; font-weight: 700; line-height: 1.2; color: var(--bf-neon); }
.bf-hero__oferta { position: relative; top: var(--bf-of-nudge); font-size: var(--bf-of-sm); font-weight: var(--bf-of-sm-w); }
.bf-hero__oferta strong { display: block; font-size: var(--bf-of-big); font-weight: 700; line-height: var(--bf-of-big-lh); color: var(--bf-neon); }

/* formulário */
.bf-hero__form { flex: 0 0 320px; width: 320px; min-height: 425px; padding: 22px 25px 30px; background: var(--bf-form-bg); }
.bf-hero__form h2 { max-width: 270px; min-height: 57.6px; margin: 0 auto; font-size: 16px; font-weight: 700; text-transform: uppercase; text-align: center; text-wrap: balance; }
.bf-hero .field-wrap { margin-top: 12px; }
.bf-hero__form h2 + .field-wrap { margin-top: 0; }
.bf-hero .field-wrap > label { display: block; padding-left: 25px; margin-bottom: 3px; font-size: 12px; font-weight: 400; }
.bf-hero .field-wrap abbr { text-decoration: none; border: 0; }
.bf-hero .field-wrap input.text { display: block; width: 100%; height: 44px; padding: 0 25px; font: 400 12px/1 var(--bf-font); color: #fff; background: transparent; border: 1px solid #fff; border-radius: 70px; outline: 0; -webkit-appearance: none; appearance: none; }
.bf-hero .field-wrap input.text::placeholder { color: #a4a4a4; opacity: 1; }
.bf-hero .field-wrap input.text:focus-visible { border-color: var(--bf-neon); box-shadow: 0 0 0 1px var(--bf-neon); }
.bf-hero .field-pp { margin-top: 17px; }
.bf-hero .field-pp label { display: flex; align-items: flex-start; gap: 10px; padding-left: 9px; font-size: 10px; line-height: 19px; cursor: pointer; }
.bf-hero .field-pp input { flex: 0 0 14px; width: 14px; height: 13px; margin-top: 2px; border: 1px solid #fff; border-radius: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.bf-hero .field-pp input:checked { background: var(--bf-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 13'%3E%3Cpath d='M3 6.5l3 3 5-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
.bf-hero .field-pp input:focus-visible { outline: 2px solid var(--bf-neon); outline-offset: 2px; }
.bf-hero .field-pp span { max-width: 204px; }
.bf-hero .field-pp a { text-decoration: none; }
.bf-hero .field-pp a:hover { text-decoration: underline; }
.bf-hero .field-submit { margin-top: 13px; }
.bf-hero .submit-btn { display: block; width: calc(100% - 4px); height: 38px; margin: 0 0 0 4px; font: 700 14px/1 var(--bf-font); text-transform: uppercase; color: #fff; background: var(--bf-brand); border: 0; border-radius: 0; cursor: pointer; transition: filter .2s; }
.bf-hero .submit-btn:hover { filter: brightness(1.1); }
.bf-hero .submit-btn:focus-visible { outline: 2px solid var(--bf-neon); outline-offset: 2px; }
/* na LP, o komuh.form.js do hub desabilita o botão até aceitar a política e insere .form-output no topo do formulário */
.bf-hero .submit-btn[disabled] { opacity: .5; filter: none; cursor: not-allowed; }
.bf-hero .form-output { margin: 0 0 10px; padding: 0; background: none; border: 0; }
.bf-hero .form-output p { font-size: 12px; line-height: 1.4; text-align: center; }
.bf-hero .form-output.is-success p { color: var(--bf-neon); }
.bf-hero .form-output.is-error p { color: #ff8a8a; }

/* ---------- blindagem: dentro da LP, o CSS dela tem regras globais para header, label, input, .btn...
   Aqui, com especificidade de id, declara-se tudo o que a dobra NÃO define acima e que a LP costuma mexer. ---------- */
#bf-hero.bf-hero { position: relative; top: auto; left: auto; float: none; width: auto; height: auto; min-height: 0; max-width: none; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; transform: none; }
#bf-hero .bf-hero__logo { display: block; float: none; position: static; width: auto; height: auto; padding: 0; background: none; border: 0; text-indent: 0; }
#bf-hero .bf-hero__form h2 { color: #fff; line-height: 1.2; letter-spacing: normal; background: none; border: 0; }
#bf-hero .field-wrap { position: static; float: none; width: auto; padding: 0; border: 0; background: none; }
#bf-hero .field-wrap:not(.field-pp) > label { color: #fff; line-height: 1.2; position: static; float: none; width: auto; padding-top: 0; padding-right: 0; padding-bottom: 0; background: none; text-transform: none; letter-spacing: normal; }
#bf-hero .field-pp label { color: #fff; position: static; float: none; width: auto; margin: 0; padding-top: 0; padding-right: 0; padding-bottom: 0; background: none; text-transform: none; letter-spacing: normal; }
#bf-hero .field-wrap abbr, #bf-hero .field-pp span, #bf-hero .field-pp a { color: inherit; line-height: inherit; position: static; float: none; margin: 0; padding: 0; background: none; }
#bf-hero .field-wrap input.text { margin: 0; position: static; float: none; opacity: 1; text-transform: none; letter-spacing: normal; }
#bf-hero .field-pp input { display: block; position: static; float: none; opacity: 1; visibility: visible; margin: 2px 0 0; }
#bf-hero .submit-btn { height: 38px; min-height: 0; max-height: none; transform: none; padding: 0; position: static; float: none; box-shadow: none; text-shadow: none; letter-spacing: normal; min-width: 0; max-width: none; line-height: 1; }
#bf-hero .bf-hero__form *::before, #bf-hero .bf-hero__form *::after { content: none; }
.bf-hero__msg { margin-top: 10px; font-size: 11px; line-height: 1.4; text-align: center; color: var(--bf-neon); }
.bf-hero__msg[hidden] { display: none; }

/* ---------- faixa inferior ---------- */
.bf-hero__faixa { background: var(--bf-brand); min-height: 72px; padding: 12px 0; display: flex; align-items: center; text-align: center; }
.bf-hero__faixa .bf-hero__wrap { display: flex; align-items: center; justify-content: center; }
.bf-hero__faixa p { font-size: 25px; font-weight: 300; line-height: 1.5; letter-spacing: 7.5px; text-transform: uppercase; text-wrap: balance; text-box: trim-both cap alphabetic; }
.bf-hero__faixa strong { font-weight: 700; }

/* ==========================================================================
   Responsivo — mesmos breakpoints das LPs Novolar: 1239 / 899 / 599px
   (o Figma traz só 1440px; abaixo disso é proposta)
   ========================================================================== */
@media (max-width: 1239px) {
	.bf-hero__produto { min-width: 0; }
	.bf-hero__ofertas { align-self: center; justify-content: center; }
	.bf-hero__oferta { top: calc(var(--bf-of-nudge) * .75); }
	.bf-hero__status { font-size: 20px; letter-spacing: 3px; }
	.bf-hero__status::before, .bf-hero__status::after { flex-basis: 50px; }
	.bf-hero__grid { gap: 20px; }
	.bf-hero__selo, .bf-hero__selo img { width: 260px; }
	.bf-hero__selo img { height: 324px; }
	.bf-hero__logo img { width: calc(var(--bf-logo-w) * 130 / 155); }
	.bf-hero__id { gap: 18px; }
	.bf-hero__tipologia { padding-left: 19px; font-size: calc(var(--bf-tip) * .8); }
	.bf-hero__tipologia strong { font-size: calc(var(--bf-tip-strong) * 26 / 32); }
	.bf-hero__desconto { font-size: calc(var(--bf-desc-sm) * 20 / 24); }
	.bf-hero__desconto strong { font-size: calc(var(--bf-desc-big) * 46 / 54); line-height: calc(var(--bf-desc-big-lh) * 48 / 54); }
	.bf-hero__desconto sup { font-size: calc(var(--bf-desc-sup) * 30 / 34.83); }
	.bf-hero__ofertas { gap: calc(var(--bf-of-gap) * 24 / 35); }
	.bf-hero__entrada span { font-size: 16px; }
	.bf-hero__oferta { font-size: calc(var(--bf-of-sm) * .8); }
	.bf-hero__entrada strong { font-size: 52px; }
	.bf-hero__oferta strong { font-size: calc(var(--bf-of-big) * 26 / 32); line-height: calc(var(--bf-of-big-lh) * 26 / 32); }
	.bf-hero__form { flex-basis: 300px; width: 300px; padding-left: 20px; padding-right: 20px; }
	.bf-hero__faixa p { font-size: 20px; letter-spacing: 5px; }
}

/* 900-980px: as três colunas não cabem com o selo em 260px; o selo encolhe até 180px */
@media (min-width: 900px) and (max-width: 1239px) {
	.bf-hero__selo, .bf-hero__selo img { width: clamp(180px, calc(100vw - 720px), 260px); }
	.bf-hero__selo img { height: auto; aspect-ratio: 260 / 324; }
}

@media (max-width: 899px) {
	.bf-hero__topbar { padding: 18px 0; }
	.bf-hero__status { font-size: 16px; letter-spacing: 2.5px; }
	.bf-hero__marca img { width: 34px; height: 40px; }
	.bf-hero__stage { padding: 56px 0 0; }
	.bf-hero__grid { flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 40px; }
	/* formulario como faixa inteira, com fundo solido; a foto fica atras do selo e do produto */
	.bf-hero__form { flex: 0 0 calc(100% + 2 * var(--bf-gutter)); width: calc(100% + 2 * var(--bf-gutter)); max-width: none; min-height: 0; margin: 26px calc(-1 * var(--bf-gutter)) 0; padding: 40px var(--bf-gutter) 48px; background: var(--bf-form-band); }
	.bf-hero__form form { max-width: 370px; margin: 0 auto; }
	.bf-hero__form h2 { min-height: 0; padding-top: 0; margin-bottom: 8px; }
	.bf-hero__neon .n-azul { opacity: .4; }
	.bf-hero__faixa p { font-size: 17px; letter-spacing: 4px; }
}

/* abaixo de 700px o selo nao cabe ao lado do produto: empilha e ja usa o tamanho de celular */
@media (max-width: 699px) {
	.bf-hero__grid { flex-direction: column; flex-wrap: nowrap; gap: 24px; }
	.bf-hero__form { flex: 0 0 auto; }
	.bf-hero__selo, .bf-hero__selo img { width: 210px; }
	.bf-hero__selo img { height: 262px; }
}

@media (max-width: 599px) {
	.bf-hero__topbar { padding: 14px 0; }
	.bf-hero__topbar .bf-hero__wrap { min-height: 0; gap: 12px; }
	.bf-hero .field-pp span { max-width: none; }
	.bf-hero__status { justify-content: flex-start; text-align: left; font-size: 12px; letter-spacing: 1.5px; line-height: 1.35; }
	.bf-hero__status::before, .bf-hero__status::after { content: none; }
	.bf-hero__marca img { width: 26px; height: 30px; }
	.bf-hero__stage { padding: 40px 0 0; }
	.bf-hero__produto { width: 100%; gap: 20px; }
	.bf-hero__logo img { width: calc(var(--bf-logo-w) * 118 / 155); max-width: 37vw; }
	.bf-hero__id { gap: 16px; }
	.bf-hero__tipologia { padding-left: 17px; font-size: calc(var(--bf-tip) * .7); }
	.bf-hero__tipologia strong { font-size: calc(var(--bf-tip-strong) * 22 / 32); }
	.bf-hero__rule { align-self: center; width: 100%; max-width: 335px; }
	.bf-hero__desconto { font-size: calc(var(--bf-desc-sm) * .75); line-height: calc(var(--bf-desc-sm-lh) * 24 / 28); }
	.bf-hero__desconto strong { font-size: calc(var(--bf-desc-big) * 44 / 54); line-height: calc(var(--bf-desc-big-lh) * 46 / 54); }
	.bf-hero__desconto sup { font-size: calc(var(--bf-desc-sup) * 28 / 34.83); }
	.bf-hero__ofertas { align-self: center; justify-content: center; gap: calc(var(--bf-of-gap) * 18 / 35); }
	.bf-hero__entrada { gap: 6px; }
	.bf-hero__entrada span { font-size: 14px; }
	.bf-hero__oferta { font-size: calc(var(--bf-of-sm) * .7); }
	.bf-hero__entrada strong { font-size: 46px; }
	.bf-hero__oferta strong { font-size: calc(var(--bf-of-big) * 24 / 32); line-height: calc(var(--bf-of-big-lh) * 24 / 32); }
	.bf-hero__form { margin-top: 24px; padding: 32px var(--bf-gutter) 40px; }
	.bf-hero__form form { max-width: 360px; }
	/* no celular os brilhos grandes saem; ficam só os dois "+" nos cantos */
	.bf-hero__neon { left: 0; width: 100%; margin-left: 0; }
	.bf-hero__neon .n-verde, .bf-hero__neon .n-azul { display: none; }
	.bf-hero__neon .n-mais-verde { left: -70px; top: 250px; width: 190px; height: auto; }
	.bf-hero__neon .n-mais-azul { left: auto; right: -40px; top: -20px; width: 130px; height: auto; }
	.bf-hero__faixa { min-height: 0; padding: 14px 0; }
	.bf-hero__faixa p { font-size: 13px; letter-spacing: 2.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.bf-hero .submit-btn { transition: none; }
}
