﻿/* Bervion production enhancements: camada segura por cima do site legado. */
:root {
  --bervion-blue: #1a365d;
  --bervion-cyan: #0891b2;
  --bervion-ink: #0d1117;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  text-rendering: optimizeLegibility;
}

img, video, canvas, svg, iframe {
  max-width: 100%;
}

.navbar-container,
.header-content,
.features-grid,
.portfolio-grid,
.products-grid,
.footer-content,
.form-row {
  min-width: 0;
}

.logo img.logo-icon {
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-links {
  scrollbar-width: thin;
}

.products-showcase {
  background: linear-gradient(180deg, rgba(247,250,252,0.98), rgba(226,232,240,0.92));
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.product-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(26, 54, 93, 0.12);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 24px 70px rgba(15, 42, 68, 0.10);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-card-featured {
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: 0 28px 80px rgba(8, 145, 178, 0.16);
}

.product-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bervion-blue), var(--bervion-cyan));
  color: #fff;
  font-size: 1.5rem;
}

.product-kicker {
  color: var(--bervion-cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.product-card h3 {
  margin: 0;
  color: var(--bervion-blue);
}

.product-card p {
  color: #475569;
  margin: 0;
}

.product-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0;
  color: #334155;
}

.product-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.product-list i {
  color: #16a34a;
  margin-top: 4px;
}

.product-card .btn {
  margin-top: auto;
  width: fit-content;
}

.form-status {
  display: none;
  margin-top: 16px;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
}

.form-status.success,
.form-status.error {
  display: block;
}

.form-status.success {
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.form-status.error {
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

@media (max-width: 992px) {
  .nav-links {
    width: min(100%, 360px) !important;
    left: auto;
    right: -110%;
    padding-top: 86px !important;
  }

  .nav-links.active {
    right: 0 !important;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: 100%;
  }

  .header-content,
  .features-grid,
  .portfolio-grid,
  .products-grid {
    gap: 22px !important;
  }

  .header-buttons,
  .product-card .btn,
  .lead-form .submit-btn,
  .btn {
    width: 100%;
    max-width: 100%;
  }

  .product-card {
    border-radius: 22px;
  }

  .portfolio-item,
  .feature-card,
  .product-card,
  .lead-form-container {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 2.75rem) !important;
  }

  .section-title {
    font-size: clamp(1.7rem, 10vw, 2.25rem) !important;
  }

  .btn {
    padding: 15px 18px !important;
    min-height: 48px;
  }

  .nav-link {
    max-width: 100% !important;
  }
}

/* Marca e menu mais estaveis para publicacao. */
.logo {
  gap: 10px !important;
  white-space: nowrap;
  flex: 0 0 auto;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0891b2, #1a365d);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(8, 145, 178, .28);
}

.navbar-container {
  gap: 18px;
}

.nav-links {
  gap: clamp(12px, 1.35vw, 24px) !important;
  align-items: center;
}

.nav-link {
  font-size: clamp(.86rem, .85vw, 1rem);
  white-space: nowrap;
}

@media (max-width: 992px) {
  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .logo span:last-child {
    font-size: 1.18rem;
  }
}

@media (max-width: 380px) {
  .logo span:last-child {
    font-size: 1.05rem;
  }
}
