/* ============================================================
   style.css — NovaXpress
   ============================================================ */

/* ---------- Variáveis globais ---------- */
:root {
  --color-primary:       #002953;
  --color-primary-dark:  #001d3d;
  --color-primary-light: #0a3d6b;
  --color-accent:        #4a90d9;
  --color-text-nav:      rgba(255, 255, 255, 0.85);
  --color-text-nav-hover:#ffffff;
  --navbar-height:       50px;
  --transition-speed:    0.25s;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

section {
  scroll-margin-top: var(--navbar-height);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background-color: var(--color-primary) !important;
  height: var(--navbar-height);
  padding: 0 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: background-color var(--transition-speed) ease;
}

.navbar-brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-speed) ease;
}

.navbar-brand:hover img {
  opacity: 0.85;
}

.navbar-nav .nav-link {
  color: var(--color-text-nav) !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem !important;
  border-radius: 6px;
  transition: color var(--transition-speed) ease,
              background-color var(--transition-speed) ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--color-text-nav-hover) !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
  color: var(--color-text-nav-hover) !important;
  background-color: rgba(255, 255, 255, 0.15);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--color-primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    margin-top: 0.25rem;
    border-radius: 0 0 8px 8px;
  }

  .navbar-nav .nav-link {
    padding: 0.6rem 1.25rem !important;
    border-radius: 0;
  }

  .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }
}

/* ============================================================
   ESPAÇADOR
   ============================================================ */
.header-spacer {
  height: var(--navbar-height);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

.hero-image-wrap {
  width: 100%;
  line-height: 0;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 520px;
}

/* Overlay escuro sobre a imagem para legibilidade */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 41, 83, 0.82) 0%,
    rgba(0, 41, 83, 0.45) 50%,
    rgba(0, 41, 83, 0.05) 100%
  );
}

/* Conteúdo centrado à esquerda */
.hero-content {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.hero-logo {
  width: clamp(180px, 28vw, 340px);
  height: auto;
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.80);
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

@media (max-width: 575.98px) {
  .hero-img {
    max-height: 280px;
  }

  .hero-content {
    left: 5%;
    gap: 0.6rem;
  }

  .hero-tagline {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }
}

/* ============================================================
   FEATURES (Rápido / Seguro / ... + ícones)
   ============================================================ */
.features-section {
  background-color: #ffffff;
  border-top: 1px solid #e8edf2;
  border-bottom: 1px solid #e8edf2;
}

/* Coluna esquerda */
.features-left {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem 3rem 5%;
  border-right: 1px solid #e8edf2;
}

.features-left p {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.55;
}

/* Coluna direita */
.features-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 4% 2.5rem 4%;
  background-color: #ffffff;
}

.features-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.features-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.8rem 2.2rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.feature-item img {
  width: clamp(44px, 6vw, 64px);
  height: auto;
  object-fit: contain;
}

.feature-item span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  text-transform: uppercase;
}

/* Logo decorativa à direita (sem legenda) */
.feature-item--brand img {
  width: clamp(50px, 8vw, 90px);
  opacity: 0.25;
}

@media (max-width: 991.98px) {
  .features-left {
    border-right: none;
    border-bottom: 1px solid #e8edf2;
    padding: 2.5rem 5%;
  }

  .features-right {
    padding: 2rem 5%;
  }
}

/* ============================================================
   GALERIA: 4 imagens
   ============================================================ */
.gallery-section {
  width: 100%;
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--color-primary-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 399.98px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SECÇÕES GERAIS
   ============================================================ */
.section-padding {
  padding: 80px 0;
}

.section-alt {
  background-color: #f4f6f9;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 2.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-primary);
  padding: 0.85rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-powered {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.footer-partner-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.footer-right {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
}

@media (max-width: 575.98px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.text-primary-custom {
  color: var(--color-primary) !important;
}

.bg-primary-custom {
  background-color: var(--color-primary) !important;
}

.btn-primary-custom {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transition: background-color var(--transition-speed) ease,
              border-color var(--transition-speed) ease;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
}