/**
 * Estilos Globais do Site - Wantec
 * Base MVC PHP - Wecoder
 */

:root {
  --brand-navy: #0F2A4A;
  --brand-blue: #0056B3;
  --brand-royal: #1E6091;
  --brand-cyan: #00A8E8;
  --brand-light: #F4F7FA;
  --brand-dark: #1A2229;
  --brand-gray: #6C757D;
  --brand-accent: #FF6B00;

  --primary-color: #0056B3;
  --primary-hover: #0F2A4A;
  --dark-color: #0F2A4A;
  --text-muted: #6C757D;
  --bg-light: #F8FAFC;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333333;
  background-color: #F8FAFC;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Montserrat', sans-serif;
}

/* Helpers de Cor */
.text-brand-navy { color: var(--brand-navy) !important; }
.text-brand-blue { color: var(--brand-blue) !important; }
.text-brand-cyan { color: var(--brand-cyan) !important; }
.bg-brand-navy { background-color: var(--brand-navy) !important; }
.bg-brand-blue { background-color: var(--brand-blue) !important; }
.bg-brand-light { background-color: var(--brand-light) !important; }

/* Topbar */
.top-bar {
  background-color: var(--brand-navy);
  color: #E2E8F0;
  font-size: 0.85rem;
}

/* Navbar com Efeito Blur Glassmorphism */
.navbar,
.navbar.sticky-top {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  padding: 0.35rem 0;
  min-height: 52px;
  transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
  }
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand-navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.02em;
}

.site-header-logo {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  background: transparent !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header-logo:hover {
  transform: scale(1.02);
}

.site-footer-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  background: transparent !important;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer-logo:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.navbar-brand i {
  font-size: 1.15rem;
}

.navbar-brand span {
  color: var(--brand-cyan);
}

.navbar-nav {
  gap: 1px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-navy) !important;
  margin: 0 1px;
  padding: 3px 8px !important;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue) !important;
  background-color: rgba(0, 86, 179, 0.08);
}

/* Botões */
.btn-main, .btn-brand-blue {
  background: var(--brand-blue);
  color: white;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-main:hover, .btn-brand-blue:hover {
  background: var(--brand-navy);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 42, 74, 0.25);
}

/* Hero Section com Animação Lenta da Imagem de Fundo */
.hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  padding: 100px 0 80px;
  background-color: var(--brand-navy, #0F2A4A);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -8%;
  left: -8%;
  width: 116%;
  height: 116%;
  background: linear-gradient(135deg, rgba(15, 42, 74, 0.92) 0%, rgba(30, 96, 145, 0.88) 100%), 
              url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&q=80&w=1600') center/cover no-repeat;
  z-index: 0;
  animation: heroBgSlowPan 26s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

@keyframes heroBgSlowPan {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(-1.5%, -1%);
  }
  100% {
    transform: scale(1.15) translate(1.5%, 0.8%);
  }
}

.hero-badge {
  background-color: rgba(0, 168, 232, 0.2);
  border: 1px solid var(--brand-cyan);
  color: #E0F2FE;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}

/* Cards */
.card-custom {
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #FFFFFF;
}

.card-custom:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(15, 42, 74, 0.12);
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(0, 86, 179, 0.1);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.badge-category {
  background-color: #E2E8F0;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
}

.product-img {
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background-color: #F1F5F9;
}

/* Calculadora de Torque */
.calc-box {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #153E6B 100%);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 30px;
}

/* WhatsApp Flutuante com Pulso */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: #FFFFFF;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  transform: scale(1.12);
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.7;
  z-index: -1;
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Footer Institucional */
.footer {
  background-color: var(--brand-navy);
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer h5 {
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--brand-cyan);
}

.tech-spec-table th {
  background-color: #F1F5F9;
  color: var(--brand-navy);
  font-size: 0.85rem;
}

.tech-spec-table td {
  font-size: 0.85rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero-section {
    padding: 70px 0 50px;
    text-align: center;
  }
  .whatsapp-float {
    width: 54px;
    height: 54px;
    font-size: 26px;
    bottom: 20px;
    right: 20px;
  }
}

/* ==========================================================================
   Page Transition Loader (Wantec Design)
   ========================================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(15, 42, 74, 0.94) 0%, rgba(10, 25, 47, 0.98) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
  pointer-events: none;
  will-change: opacity, visibility;
}

.page-loader.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

.page-loader.loaded {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Barra superior luminosa em gradiente */
.page-loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--brand-cyan, #00A8E8) 50%, #00e5ff 100%);
  box-shadow: 0 0 14px #00e5ff, 0 0 6px #00A8E8;
  animation: loader-bar-slide 1.6s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
  transform-origin: left;
}

@keyframes loader-bar-slide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

.page-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  user-select: none;
}

.page-loader-spinner {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* Anel externo brilhante */
.page-loader-spinner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(0, 168, 232, 0.12);
  border-top-color: var(--brand-cyan, #00A8E8);
  border-right-color: #00e5ff;
  animation: loader-spin-clockwise 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
  box-shadow: 0 0 20px rgba(0, 168, 232, 0.25);
}

/* Anel interno pulsante contra-rotativo */
.page-loader-spinner::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.8);
  animation: loader-spin-counter 2.2s linear infinite;
}

.page-loader-spinner i {
  font-size: 1.85rem;
  color: #FFFFFF;
  text-shadow: 0 0 12px rgba(0, 168, 232, 0.6);
  animation: loader-gear-rotation 2.8s linear infinite;
}

@keyframes loader-spin-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes loader-spin-counter {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes loader-gear-rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.page-loader-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.page-loader-brand img {
  filter: brightness(0) invert(1);
  max-height: 38px;
  width: auto;
}

.page-loader-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
  animation: loader-text-pulse 1.4s ease-in-out infinite alternate;
}

@keyframes loader-text-pulse {
  0% { opacity: 0.45; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1); }
}

