/*
Theme Name: B7 Inteligência no Varejo
Theme URI: https://b7inteligencianovarejo.com.br
Author: Grupo Boa Ideia
Author URI: https://grupoboaideia.com.br
Description: Tema institucional da B7 Inteligência no Varejo. Landing page fixa com seção de notícias VarejoHoje gerenciável (posts) e formulário de diagnóstico que grava leads no admin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: b7-tema
*/

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

:root {
  --orange: #FF6B00;
  --dark: #0D0D0D;
  --dark2: #1a0e00;
  --text: #FFFFFF;
  --muted: #AAAAAA;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

/* ── HEADER ── */
header {
  padding: 18px 40px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img { height: auto; width: 301px; display: block; }

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 60px 40px 50px;
  background: var(--dark);
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(52px, 9vw, 100px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--orange); }

.hero p {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--muted);
}

/* ── GRANDE CARD (passos + consultoria) ── */
.grande-card {
  margin: 40px 40px 0;
  border-radius: 16px;
  border: 1.5px solid var(--orange);
  background: var(--dark2);
  overflow: hidden;
}

/* ── PASSOS ── */
.passos {
  padding: 36px 48px 48px;
}

.passos h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 18px;
  text-align: center;
}

.passos h2 span { color: var(--orange); }

.passos-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 4px;
}

.passos-sub em { color: var(--orange); font-style: normal; }

.passos-h2-wrap {
  text-align: center;
  width: 100%;
  margin-bottom: 16px;
}

.passos h2 {
  display: block;
  margin-bottom: 12px;
}

.passos h2 .linha-sob-vendas {
  display: inline;
  white-space: nowrap;
  color: var(--text);
}

.passos-linha {
  display: block;
  height: 3px;
  border: none;
  background: linear-gradient(to right, transparent 0%, #ff2200 15%, #ff6b00 50%, #ffe000 80%, transparent 100%);
  margin: 0 0 16px 0;
}

.cta-linha {
  display: block;
  width: 100%;
  height: 3px;
  margin-bottom: 24px;
  background: linear-gradient(to right, transparent, #ff3a6e 15%, #ff4e3a 45%, #ffd000 85%, transparent);
  border: none;
}

.passos-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.passos-icons {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
  flex-wrap: wrap;
}

.passo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.passo-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: background 0.2s, border 0.2s;
}

.passo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.2s;
}

.passo-item:hover .passo-icon {
  background: var(--orange);
  border: 2px solid var(--orange);
}

.passo-item:hover .passo-icon img {
  filter: brightness(0) invert(1);
}

.passo-nome {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-align: center;
  max-width: 80px;
}

.passo-item .passo-nome-ativo {
  color: var(--orange);
  border-top: 2px solid var(--orange);
  padding-top: 4px;
}

/* ── CONSULTORIA ── */
.consultoria {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.consultoria-texto {
  padding: 48px 40px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.consultoria-texto h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  margin-bottom: 20px;
}

.consultoria-texto p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.7;
}

.consultoria-texto ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consultoria-texto li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.consultoria-texto li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.consultoria-imagem {
  overflow: hidden;
}

.consultoria-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── VAREJO HOJE ── */
.varejo-hoje {
  padding: 48px 40px;
  background: var(--dark);
}

.varejo-logo {
  margin-bottom: 32px;
}

.varejo-logo img {
  height: 56px;
  width: auto;
}

.noticias-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Carrossel: viewport recorta, track desliza horizontalmente */
.noticias-viewport {
  flex: 1;
  overflow: hidden;
}

.noticias-track {
  display: flex;
  transition: transform 0.4s ease;
}

/* Cada "página" ocupa 100% da viewport e mostra 4 cards em grid 2x2 */
.noticias-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: min-content;
  gap: 32px;
}

.noticia-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: center;
}

.noticia-img {
  width: 160px;
  height: 110px;
  background: #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.noticia-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 12px;
}

.btn-materia {
  display: inline-block;
  padding: 7px 18px;
  background: var(--orange);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.btn-materia:hover { opacity: 0.85; }

.noticias-empty {
  color: var(--muted);
  font-size: 13px;
  flex: 1;
}

.slider-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: none;
  color: var(--orange);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.slider-btn:hover { background: var(--orange); color: #fff; }

/* ── CTA + FORM ── */
.cta {
  padding: 60px 40px;
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.cta-left h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 32px;
  text-align: center;
}

.cta-left h2 span { color: var(--orange); }

.cta-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-step {
  background: var(--dark2);
  border-radius: 12px;
  box-shadow: 0 0 0 1.5px var(--orange);
  padding: 20px 24px;
}

.cta-step h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 6px;
}

.cta-step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Formulário */
.form-wrapper {
  border-radius: 12px;
  box-shadow: 0 0 0 1.5px var(--orange);
  overflow: hidden;
  background: #111;
  display: flex;
  flex-direction: column;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 16px;
  flex: 1;
}

.form-container label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

.form-container input {
  width: 100%;
  padding: 13px 16px;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  color: #ccc;
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.form-container input::placeholder { color: #666; }
.form-container input:focus { border-color: var(--orange); color: #fff; }

.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--orange);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 4px;
}

.btn-submit:hover { opacity: 0.9; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-msg {
  padding: 0 20px 16px;
  font-size: 13px;
}
.form-msg.ok { color: #4ade80; }
.form-msg.err { color: #f87171; }

/* ── FOOTER ── */
footer {
  background: #080808;
  border-top: 1px solid #222;
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer p { font-size: 12px; color: var(--muted); }
footer a { color: var(--orange); text-decoration: none; }

/* ── RESPONSIVO ── */
@media (max-width: 900px) {
  .grande-card { margin: 24px 16px 0; }
  .passos { padding: 28px 24px 32px; }
  .consultoria { grid-template-columns: 1fr; }
  .consultoria-imagem { min-height: 260px; }
  .cta { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px; }
  .noticias-page { grid-template-columns: 1fr; }
  .varejo-hoje { padding: 36px 24px; }
}

@media (max-width: 600px) {
  header { padding: 14px 24px; }
  .hero { padding: 48px 24px 40px; }
  .passos-icons { gap: 16px; }
  .passo-icon { width: 50px; height: 50px; padding: 10px; }
  .noticia-card { grid-template-columns: 1fr; }
  .noticia-img { width: 100%; height: 140px; }
  footer { flex-direction: column; text-align: center; padding: 20px 24px; }
}
