/* =========================================================
   FASE 35 / ETAPA 35D
   CSS high-tech complementar para Home compacta BrumaTech.org
   Arquivo de proposta. Não aplicado ainda na Home pública.
   ========================================================= */

:root {
  --bt-dark: #07111f;
  --bt-graphite: #0f172a;
  --bt-blue: #2563eb;
  --bt-cyan: #06b6d4;
  --bt-green: #22c55e;
  --bt-soft: #f8fafc;
  --bt-line: rgba(15, 23, 42, 0.10);
  --bt-glow: rgba(37, 99, 235, 0.22);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 46%, #f8fafc 100%);
}

/* Hero compacto */

.compact-hero {
  position: relative;
  min-height: auto;
  padding: 72px 0 44px;
  overflow: hidden;
}

.compact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(15,23,42,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
  pointer-events: none;
}

.compact-hero .hero-grid {
  align-items: center;
}

.compact-hero h1 {
  max-width: 780px;
  letter-spacing: -0.05em;
}

.compact-hero .lead {
  max-width: 640px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 10px 26px rgba(15,23,42,0.06);
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

.tech-float-card {
  position: relative;
  transform: rotate(1.5deg);
  border-radius: 32px;
  padding: 30px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.72), transparent 32%),
    linear-gradient(135deg, rgba(15,23,42,0.96), rgba(37,99,235,0.78), rgba(34,197,94,0.48));
  color: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  animation: btFloat 5.8s ease-in-out infinite;
}

.tech-float-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  filter: blur(2px);
}

.tech-float-card .badge {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-color: rgba(255,255,255,0.20);
}

.tech-float-card h2 {
  color: #fff;
  margin-top: 18px;
}

.tech-float-card p {
  color: rgba(255,255,255,0.84);
}

/* Navegação rápida compacta */

.quick-nav-section {
  padding: 0 0 28px;
}

.quick-nav-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 18px 48px rgba(15,23,42,0.08);
  backdrop-filter: blur(14px);
}

.quick-nav-strip a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
  transition: 0.22s ease;
}

.quick-nav-strip a:hover {
  background: #0f172a;
  color: #fff;
  transform: translateY(-2px);
}

/* Seções compactas */

.section-head.compact {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-head.compact h2 {
  letter-spacing: -0.035em;
}

.compact-showroom,
.compact-services,
.compact-pricing,
.managed-site,
.compact-budget {
  padding: 58px 0;
}

/* Showroom 3D */

.showroom-3d-shell {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.showroom-3d-track {
  display: grid;
  grid-template-columns: 0.86fr 1.12fr 0.86fr;
  gap: 18px;
  perspective: 1200px;
  align-items: center;
}

.showroom-3d-card {
  position: relative;
  min-height: 280px;
  border-radius: 30px;
  padding: 24px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 66px rgba(15,23,42,0.18);
  border: 1px solid rgba(255,255,255,0.22);
  transform: scale(0.92) rotateY(8deg);
  opacity: 0.82;
  transition: 0.25s ease;
}

.showroom-3d-card:nth-child(3) {
  transform: scale(0.92) rotateY(-8deg);
}

.showroom-3d-card.active {
  min-height: 330px;
  transform: scale(1) rotateY(0);
  opacity: 1;
  z-index: 2;
  box-shadow: 0 34px 90px rgba(15,23,42,0.25);
}

.showroom-3d-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.10), rgba(15,23,42,0.62)),
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.25), transparent 32%);
  z-index: 0;
}

.showroom-3d-card span,
.showroom-3d-card strong {
  position: relative;
  z-index: 1;
}

.showroom-3d-card span {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.26);
  margin-bottom: 12px;
  font-size: 0.86rem;
  font-weight: 900;
}

.showroom-3d-card strong {
  font-size: 1.1rem;
  line-height: 1.35;
  max-width: 360px;
}

.showroom-3d-card:hover {
  transform: translateY(-8px) scale(1.02);
  opacity: 1;
}

.carousel-arrow {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
  cursor: pointer;
  transition: 0.22s ease;
}

.carousel-arrow:hover {
  background: #2563eb;
  color: #fff;
  transform: scale(1.06);
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  justify-content: center;
}

.sector-tags span {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(15,23,42,0.06);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.86rem;
}

/* Setores compactos */

.compact-sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.compact-sector-grid article {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 18px 44px rgba(15,23,42,0.07);
  transition: 0.22s ease;
}

.compact-sector-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 64px rgba(15,23,42,0.12);
}

.compact-sector-grid h3 {
  margin: 0 0 8px;
}

.compact-sector-grid p {
  margin: 0;
  font-size: 0.94rem;
}

/* Pacotes */

.pricing-grid.compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  position: relative;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 18px 50px rgba(15,23,42,0.08);
}

.price-card.featured {
  transform: translateY(-10px);
  border-color: rgba(37,99,235,0.28);
  box-shadow: 0 34px 80px rgba(37,99,235,0.18);
}

.price-card h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 16px 0 4px;
  letter-spacing: -0.05em;
}

.price-card ul {
  margin: 18px 0;
  padding-left: 18px;
}

.price-card li {
  margin: 7px 0;
}

/* Site gerenciado */

.managed-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.floating-steps {
  display: grid;
  gap: 12px;
}

.floating-steps div {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 16px 38px rgba(15,23,42,0.08);
  font-weight: 900;
  animation: btSoftPulse 4.8s ease-in-out infinite;
}

.floating-steps div:nth-child(2) { animation-delay: 0.25s; }
.floating-steps div:nth-child(3) { animation-delay: 0.50s; }
.floating-steps div:nth-child(4) { animation-delay: 0.75s; }

/* Orçamento */

.budget-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.budget-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 22px 60px rgba(15,23,42,0.10);
}

.budget-form input,
.budget-form select,
.budget-form textarea {
  width: 100%;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  background: rgba(248,250,252,0.96);
}

.budget-form textarea {
  min-height: 92px;
  resize: vertical;
}

/* Final */

.compact-final {
  padding: 64px 0;
}

/* Animações */

@keyframes btFloat {
  0%, 100% { transform: translateY(0) rotate(1.5deg); }
  50% { transform: translateY(-10px) rotate(-0.6deg); }
}

@keyframes btSoftPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

/* Responsivo */

@media (max-width: 980px) {
  .showroom-3d-shell {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    display: none;
  }

  .showroom-3d-track,
  .compact-sector-grid,
  .pricing-grid.compact,
  .managed-grid,
  .budget-grid {
    grid-template-columns: 1fr;
  }

  .showroom-3d-card,
  .showroom-3d-card.active {
    min-height: 250px;
    transform: none;
  }

  .price-card.featured {
    transform: none;
  }

  .quick-nav-strip {
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .compact-hero {
    padding: 48px 0 30px;
  }

  .tech-float-card {
    transform: none;
  }

  .hero-pills {
    gap: 8px;
  }

  .hero-pills span {
    font-size: 0.78rem;
  }
}

/* =========================================================
   FIM — FASE 35 / ETAPA 35D
   ========================================================= */

/* =========================================================
   FASE 35 / ETAPA 35F
   Expansão do showroom preview para 8 modelos
   ========================================================= */

.showroom-3d-shell.expanded {
  grid-template-columns: 52px 1fr 52px;
}

.showroom-3d-track.expanded-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(220px, 1fr));
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 18px 8px 26px;
  perspective: none;
}

.showroom-3d-track.expanded-grid::-webkit-scrollbar {
  height: 10px;
}

.showroom-3d-track.expanded-grid::-webkit-scrollbar-track {
  background: rgba(15,23,42,0.06);
  border-radius: 999px;
}

.showroom-3d-track.expanded-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #2563eb, #22c55e);
  border-radius: 999px;
}

.showroom-3d-track.expanded-grid .showroom-3d-card {
  min-width: 240px;
  min-height: 270px;
  scroll-snap-align: center;
  transform: scale(0.96);
  opacity: 0.90;
}

.showroom-3d-track.expanded-grid .showroom-3d-card.active {
  min-height: 300px;
  transform: scale(1.02);
  opacity: 1;
}

.showroom-3d-track.expanded-grid .showroom-3d-card:hover {
  transform: translateY(-8px) scale(1.04);
}

@media (max-width: 980px) {
  .showroom-3d-track.expanded-grid {
    grid-template-columns: repeat(8, minmax(230px, 78vw));
  }
}

/* =========================================================
   FIM — FASE 35 / ETAPA 35F
   ========================================================= */

/* =========================================================
   FASE 35 / ETAPA 35H
   Ajuste visual para card ativo controlado por JS
   ========================================================= */

.showroom-3d-track.expanded-grid .showroom-3d-card.active {
  outline: 3px solid rgba(37, 99, 235, 0.26);
  outline-offset: 4px;
}

.showroom-3d-track.expanded-grid .showroom-3d-card.active::after {
  content: "Abrir modelo";
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15,23,42,0.12);
}

.carousel-arrow {
  user-select: none;
}

.carousel-arrow:active {
  transform: scale(0.96);
}

/* =========================================================
   FIM — FASE 35 / ETAPA 35H
   ========================================================= */

/* =========================================================
   FASE 35 / ETAPA 35I
   Ajuste fino visual: compactação, botões, legibilidade
   ========================================================= */

/* Redução geral de altura e rolagem */
.compact-hero {
  padding-top: 52px;
  padding-bottom: 30px;
}

.compact-showroom,
.compact-services,
.compact-pricing,
.managed-site,
.compact-budget {
  padding: 42px 0;
}

.compact-final {
  padding: 48px 0;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-head.compact h2 {
  margin-bottom: 8px;
}

.section-head.compact p {
  max-width: 620px;
}

/* Hero mais enxuto */
.compact-hero h1 {
  line-height: 0.98;
}

.compact-hero .lead {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-actions {
  gap: 10px;
}

.hero-pills {
  margin-top: 16px;
}

.hero-pills span {
  padding: 7px 11px;
}

/* Card flutuante mais compacto */
.tech-float-card {
  padding: 24px;
  border-radius: 28px;
}

.tech-float-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

/* Navegação rápida menor */
.quick-nav-section {
  padding-bottom: 18px;
}

.quick-nav-strip {
  padding: 8px;
}

.quick-nav-strip a {
  padding: 8px 13px;
  font-size: 0.88rem;
}

/* Showroom mais limpo e com menos peso vertical */
.showroom-3d-track.expanded-grid {
  padding-top: 10px;
  padding-bottom: 18px;
}

.showroom-3d-track.expanded-grid .showroom-3d-card {
  min-height: 230px;
  min-width: 230px;
}

.showroom-3d-track.expanded-grid .showroom-3d-card.active {
  min-height: 260px;
}

.showroom-3d-card strong {
  font-size: 1rem;
}

.showroom-3d-card span {
  padding: 7px 10px;
  font-size: 0.78rem;
}

/* Tags menores */
.sector-tags {
  margin-top: 14px;
}

.sector-tags span {
  padding: 7px 10px;
  font-size: 0.78rem;
}

/* Setores em cards menores */
.compact-sector-grid {
  gap: 12px;
}

.compact-sector-grid article {
  padding: 16px;
  border-radius: 20px;
}

.compact-sector-grid h3 {
  font-size: 1rem;
}

.compact-sector-grid p {
  font-size: 0.86rem;
}

/* Pacotes mais comerciais */
.price-card {
  padding: 20px;
  border-radius: 24px;
}

.price-card h3 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.price-card p {
  margin-top: 4px;
  font-weight: 800;
  color: #2563eb;
}

.price-card ul {
  margin: 14px 0;
}

.price-card li {
  margin: 5px 0;
  font-size: 0.92rem;
}

/* Site gerenciado mais legível */
.managed-grid {
  gap: 20px;
}

.managed-site .lead {
  font-size: 1rem;
  line-height: 1.65;
}

.floating-steps {
  gap: 9px;
}

.floating-steps div {
  padding: 13px 15px;
  border-radius: 16px;
  font-size: 0.94rem;
}

/* Orçamento mais compacto */
.budget-grid {
  gap: 20px;
}

.budget-form {
  padding: 18px;
  border-radius: 24px;
  gap: 10px;
}

.budget-form input,
.budget-form select,
.budget-form textarea {
  padding: 11px 12px;
  border-radius: 14px;
}

.budget-form textarea {
  min-height: 76px;
}

/* Botões com linguagem mais limpa */
.btn {
  white-space: nowrap;
}

.compact-budget .btn,
.price-card .btn,
.compact-final .btn {
  width: fit-content;
}

/* Melhor leitura sobre fundos */
.showroom-3d-card::before {
  background:
    linear-gradient(180deg, rgba(15,23,42,0.14), rgba(15,23,42,0.72)),
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.22), transparent 34%);
}

/* Menos repetição visual no mobile */
@media (max-width: 980px) {
  .compact-hero,
  .compact-showroom,
  .compact-services,
  .compact-pricing,
  .managed-site,
  .compact-budget,
  .compact-final {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .showroom-3d-track.expanded-grid .showroom-3d-card,
  .showroom-3d-track.expanded-grid .showroom-3d-card.active {
    min-height: 225px;
  }
}

/* =========================================================
   FIM — FASE 35 / ETAPA 35I
   ========================================================= */

/* =========================================================
   FASE 35 / ETAPA 35I
   Ajuste fino visual: compactação, botões, legibilidade
   ========================================================= */

/* Redução geral de altura e rolagem */
.compact-hero {
  padding-top: 52px;
  padding-bottom: 30px;
}

.compact-showroom,
.compact-services,
.compact-pricing,
.managed-site,
.compact-budget {
  padding: 42px 0;
}

.compact-final {
  padding: 48px 0;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-head.compact h2 {
  margin-bottom: 8px;
}

.section-head.compact p {
  max-width: 620px;
}

/* Hero mais enxuto */
.compact-hero h1 {
  line-height: 0.98;
}

.compact-hero .lead {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-actions {
  gap: 10px;
}

.hero-pills {
  margin-top: 16px;
}

.hero-pills span {
  padding: 7px 11px;
}

/* Card flutuante mais compacto */
.tech-float-card {
  padding: 24px;
  border-radius: 28px;
}

.tech-float-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

/* Navegação rápida menor */
.quick-nav-section {
  padding-bottom: 18px;
}

.quick-nav-strip {
  padding: 8px;
}

.quick-nav-strip a {
  padding: 8px 13px;
  font-size: 0.88rem;
}

/* Showroom mais limpo e com menos peso vertical */
.showroom-3d-track.expanded-grid {
  padding-top: 10px;
  padding-bottom: 18px;
}

.showroom-3d-track.expanded-grid .showroom-3d-card {
  min-height: 230px;
  min-width: 230px;
}

.showroom-3d-track.expanded-grid .showroom-3d-card.active {
  min-height: 260px;
}

.showroom-3d-card strong {
  font-size: 1rem;
}

.showroom-3d-card span {
  padding: 7px 10px;
  font-size: 0.78rem;
}

/* Tags menores */
.sector-tags {
  margin-top: 14px;
}

.sector-tags span {
  padding: 7px 10px;
  font-size: 0.78rem;
}

/* Setores em cards menores */
.compact-sector-grid {
  gap: 12px;
}

.compact-sector-grid article {
  padding: 16px;
  border-radius: 20px;
}

.compact-sector-grid h3 {
  font-size: 1rem;
}

.compact-sector-grid p {
  font-size: 0.86rem;
}

/* Pacotes mais comerciais */
.price-card {
  padding: 20px;
  border-radius: 24px;
}

.price-card h3 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.price-card p {
  margin-top: 4px;
  font-weight: 800;
  color: #2563eb;
}

.price-card ul {
  margin: 14px 0;
}

.price-card li {
  margin: 5px 0;
  font-size: 0.92rem;
}

/* Site gerenciado mais legível */
.managed-grid {
  gap: 20px;
}

.managed-site .lead {
  font-size: 1rem;
  line-height: 1.65;
}

.floating-steps {
  gap: 9px;
}

.floating-steps div {
  padding: 13px 15px;
  border-radius: 16px;
  font-size: 0.94rem;
}

/* Orçamento mais compacto */
.budget-grid {
  gap: 20px;
}

.budget-form {
  padding: 18px;
  border-radius: 24px;
  gap: 10px;
}

.budget-form input,
.budget-form select,
.budget-form textarea {
  padding: 11px 12px;
  border-radius: 14px;
}

.budget-form textarea {
  min-height: 76px;
}

/* Botões com linguagem mais limpa */
.btn {
  white-space: nowrap;
}

.compact-budget .btn,
.price-card .btn,
.compact-final .btn {
  width: fit-content;
}

/* Melhor leitura sobre fundos */
.showroom-3d-card::before {
  background:
    linear-gradient(180deg, rgba(15,23,42,0.14), rgba(15,23,42,0.72)),
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.22), transparent 34%);
}

/* Menos repetição visual no mobile */
@media (max-width: 980px) {
  .compact-hero,
  .compact-showroom,
  .compact-services,
  .compact-pricing,
  .managed-site,
  .compact-budget,
  .compact-final {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .showroom-3d-track.expanded-grid .showroom-3d-card,
  .showroom-3d-track.expanded-grid .showroom-3d-card.active {
    min-height: 225px;
  }
}

/* =========================================================
   FIM — FASE 35 / ETAPA 35I
   ========================================================= */
