/* ============================================================
   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;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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.75rem 1.25rem !important;
    border-radius: 0;
    font-size: 1.05rem;
  }

  .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }
}

/* ============================================================
   ESPAÇADOR
   ============================================================ */
.header-spacer {
  height: var(--navbar-height);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  width: 100%;
  overflow: hidden;
  background-color: var(--color-primary-dark);
  line-height: 0;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 560px;
}

@media (max-width: 767.98px) {
  .hero-img {
    max-height: 260px;
  }
}

/* ============================================================
   FEATURES (3 colunas: texto | ícones | brand mark)
   ============================================================ */
.features-section {
  background-color: #ffffff;
  border-top: 1px solid #e8edf2;
  border-bottom: 1px solid #e8edf2;
}

/* Coluna esquerda — texto */
.features-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem 3rem 5%;
}

.features-left p {
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: #0a0a0a;
  margin: 0;
  line-height: 1.55;
}

/* Coluna centro — ícones */
.features-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 3% 2.5rem 8%;
}

.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: nowrap;
  gap: 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  padding: 0 1.5rem;
  border-right: 1px solid #e8edf2;
}

.feature-item:first-child {
  padding-left: 0;
}

.feature-item:last-child {
  border-right: none;
}

.feature-icon {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  color: var(--color-accent);
  line-height: 1;
  display: block;
}

.feature-item span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  text-transform: uppercase;
}

/* Coluna direita — brand mark */
.features-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.brand-mark {
  width: 100%;
  max-width: 140px;
  height: auto;
  object-fit: contain;
}

/* Mobile features */
@media (max-width: 991.98px) {
  .features-left {
    padding: 2rem 5%;
    border-bottom: 1px solid #e8edf2;
  }

  .features-center {
    padding: 2rem 5%;
    border-bottom: 1px solid #e8edf2;
  }

  .features-icons {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .feature-item {
    border-right: none;
    padding: 0.5rem 0.8rem;
    width: calc(50% - 1.5rem);
  }

  .features-right {
    padding: 1.5rem 5%;
    justify-content: flex-start;
  }

  .brand-mark {
    max-width: 100px;
  }
}

/* ============================================================
   GALERIA: 4 imagens
   ============================================================ */
.gallery-section {
  width: 100%;
  overflow: hidden;
  background-color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #ffffff;
  padding: 6px;
}

.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;
  }
}

/* ============================================================
   QUEM SOMOS
   ============================================================ */
.quem-somos-section {
  background-color: #ffffff;
}

.qs-text-wrap {
  padding: 5rem 0 4rem;
  background-image: url('assets/hero2_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.qs-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.75rem;
}

.qs-body {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.qs-body:last-child {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .qs-text-wrap {
    padding: 3rem 0 2.5rem;
  }

  .qs-title {
    font-size: 1.6rem;
  }

  .qs-body {
    font-size: 1rem;
  }
}

/* Bloco de 2 imagens */
.qs-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
}

.qs-img-item {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.qs-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.qs-img-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 767.98px) {
  .qs-images {
    grid-template-columns: 1fr;
  }

  .qs-img-item {
    aspect-ratio: 4 / 3;
  }
}

/* ============================================================
   CONTACTOS
   ============================================================ */
.contacto-section {
  background-color: #ffffff;
}

.contacto-info-wrap {
  background-image: url('assets/hero2_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 0;
}

.contacto-info-wrap .container {
  max-width: 520px;
  margin: 0 auto;
}

.contacto-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.contacto-intro {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contacto-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacto-list li {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 2;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.contacto-list li i {
  margin-top: 0.35rem;
  flex-shrink: 0;
  color: var(--color-accent);
}

.contacto-list li span {
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.contacto-list li a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.contacto-list li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .contacto-info-wrap {
    padding: 3rem 0;
  }

  .contacto-info-wrap .container {
    max-width: 100%;
    padding: 0 1.5rem;
  }

  .contacto-title {
    font-size: 1.5rem;
  }
}

/* Formulário */
.contacto-form-wrap {
  padding: 3rem 0 4rem;
  background-color: #ffffff;
}

.contacto-form {
  max-width: 520px;
  margin: 0 auto;
}

.cf-field {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cf-field label {
  width: 90px;
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  padding-top: 0.5rem;
  text-align: right;
}

.cf-field input,
.cf-field textarea {
  flex: 1;
  border: 1.5px solid #d0d8e4;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  color: #1a1a1a;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  resize: vertical;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: #bbb;
  font-size: 0.9rem;
}

.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.cf-submit {
  display: flex;
  justify-content: flex-end;
  padding-left: calc(90px + 1rem);
}

.cf-btn {
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease,
              transform 0.1s ease;
  display: inline-flex;
  align-items: center;
}

.cf-btn:hover {
  background-color: var(--color-primary-dark);
}

.cf-btn:active {
  transform: scale(0.98);
}

.cf-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.cf-input--erro {
  border-color: #e03e3e !important;
  box-shadow: 0 0 0 3px rgba(224, 62, 62, 0.15) !important;
}

.cf-feedback {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cf-feedback--ok {
  background-color: #eafaf1;
  color: #1a7a45;
  border: 1px solid #a8e6c3;
}

.cf-feedback--erro {
  background-color: #fdf2f2;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}

@media (max-width: 575.98px) {
  .contacto-form {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .cf-field {
    flex-direction: column;
    gap: 0.35rem;
  }

  .cf-field label {
    text-align: left;
    width: auto;
    padding-top: 0;
    font-size: 0.9rem;
  }

  .cf-submit {
    padding-left: 0;
    justify-content: stretch;
  }

  .cf-btn {
    width: 100%;
    justify-content: center;
  }

  .cf-feedback {
    max-width: 100%;
  }
}

/* ============================================================
   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;
    gap: 0.35rem;
  }

  .footer-right {
    text-align: center;
  }
}

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.btn-primary-custom {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transition: background-color var(--transition-speed) ease;
}

.btn-primary-custom:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
}