/* ==========================================================================
   Nordex Transportes LTDA — Folha de estilos principal
   Paleta: azul-marinho (confiança) + âmbar (estrada / sinalização)
   ========================================================================== */

:root {
  --nx-navy-900: #07152b;
  --nx-navy-800: #0b1f3f;
  --nx-navy-700: #12305c;
  --nx-navy-600: #1b4482;
  --nx-amber: #f5a524;
  --nx-amber-dark: #d98a0b;
  --nx-ink: #1d2433;
  --nx-muted: #5d6779;
  --nx-line: #e3e8f0;
  --nx-soft: #f4f7fb;
  --nx-white: #ffffff;
  --nx-whatsapp: #25d366;
  --nx-radius: 14px;
  --nx-radius-lg: 22px;
  --nx-shadow: 0 10px 30px rgba(7, 21, 43, .08);
  --nx-shadow-lg: 0 24px 60px rgba(7, 21, 43, .16);
  --nx-font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nx-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bs-primary: #12305c;
  --bs-primary-rgb: 18, 48, 92;
  --bs-body-font-family: var(--nx-font-body);
  --bs-body-color: var(--nx-ink);
  --bs-link-color: #1b4482;
  --bs-link-hover-color: #d98a0b;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--nx-font-body); color: var(--nx-ink); background: var(--nx-white); line-height: 1.65; }

h1, h2, h3, h4, h5, .nx-head { font-family: var(--nx-font-head); font-weight: 800; letter-spacing: -.02em; color: var(--nx-navy-800); }
.lead { color: var(--nx-muted); }
.text-amber { color: var(--nx-amber) !important; }
.bg-soft { background: var(--nx-soft); }
.bg-navy { background: var(--nx-navy-800); }

/* Skip link (acessibilidade) */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--nx-amber); color: var(--nx-navy-900); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- Barra superior ---------- */
.nx-topbar { background: var(--nx-navy-900); color: rgba(255,255,255,.78); font-size: .85rem; }
.nx-topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.nx-topbar a:hover { color: var(--nx-amber); }
.nx-topbar .fa-solid, .nx-topbar .fa-brands { color: var(--nx-amber); margin-right: 6px; }

/* ---------- Navbar ---------- */
.nx-navbar { background: rgba(255,255,255,.97); backdrop-filter: saturate(160%) blur(8px); box-shadow: 0 1px 0 var(--nx-line); transition: box-shadow .25s; }
.nx-navbar.is-scrolled { box-shadow: 0 8px 24px rgba(7,21,43,.08); }
.nx-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nx-brand img { width: 42px; height: 42px; }
.nx-brand-name { font-family: var(--nx-font-head); font-weight: 800; font-size: 1.3rem; color: var(--nx-navy-800); line-height: 1; letter-spacing: -.02em; }
.nx-brand-name small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .28em; color: var(--nx-muted); text-transform: uppercase; margin-top: 4px; }
.nx-navbar .nav-link { font-weight: 600; color: var(--nx-ink); padding: .5rem 1rem !important; position: relative; }
.nx-navbar .nav-link::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .2rem; height: 2px; background: var(--nx-amber); transform: scaleX(0); transition: transform .25s; }
.nx-navbar .nav-link:hover::after, .nx-navbar .nav-link.active::after { transform: scaleX(1); }
.nx-navbar .nav-link.active { color: var(--nx-navy-700); }

/* ---------- Botões ---------- */
.btn { font-weight: 700; border-radius: 999px; padding: .75rem 1.5rem; letter-spacing: .01em; }
.btn-amber { background: var(--nx-amber); border: 2px solid var(--nx-amber); color: var(--nx-navy-900); }
.btn-amber:hover, .btn-amber:focus { background: var(--nx-amber-dark); border-color: var(--nx-amber-dark); color: var(--nx-navy-900); transform: translateY(-1px); }
.btn-navy { background: var(--nx-navy-700); border: 2px solid var(--nx-navy-700); color: #fff; }
.btn-navy:hover { background: var(--nx-navy-800); border-color: var(--nx-navy-800); color: #fff; }
.btn-outline-light-nx { border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline-light-nx:hover { background: #fff; color: var(--nx-navy-800); }
.btn-whatsapp { background: var(--nx-whatsapp); border: 2px solid var(--nx-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1eb457; border-color: #1eb457; color: #fff; }

/* ---------- Hero ---------- */
.nx-hero { position: relative; overflow: hidden; color: #fff; padding: 110px 0 120px;
  background:
    radial-gradient(1100px 500px at 85% 10%, rgba(245,165,36,.18), transparent 60%),
    linear-gradient(135deg, var(--nx-navy-900) 0%, var(--nx-navy-700) 70%, var(--nx-navy-600) 100%); }
.nx-hero::before { /* faixa de estrada */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 46px; height: 6px;
  background: repeating-linear-gradient(90deg, rgba(245,165,36,.75) 0 60px, transparent 60px 110px); transform: rotate(-2deg); opacity: .55; }
.nx-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.08; }
.nx-hero h1 .hl { color: var(--nx-amber); }
.nx-hero p.lead { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 560px; }
.nx-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--nx-amber); }
.nx-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.nx-hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; font-size: .92rem; color: rgba(255,255,255,.85); }
.nx-hero-badges i { color: var(--nx-amber); margin-right: 6px; }
.nx-hero-art { position: relative; z-index: 1; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }

.nx-quote-card { background: #fff; color: var(--nx-ink); border-radius: var(--nx-radius-lg); box-shadow: var(--nx-shadow-lg); padding: 28px; position: relative; z-index: 2; }
.nx-quote-card h2 { font-size: 1.25rem; }

/* ---------- Page header (páginas internas) ---------- */
.nx-page-header { color: #fff; padding: 80px 0 70px; position: relative; overflow: hidden;
  background: radial-gradient(800px 400px at 90% 0%, rgba(245,165,36,.2), transparent 60%), linear-gradient(135deg, var(--nx-navy-900), var(--nx-navy-700)); }
.nx-page-header h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.nx-page-header p { color: rgba(255,255,255,.8); max-width: 680px; font-size: 1.1rem; }
.nx-page-header .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: var(--nx-amber); margin-bottom: 1rem; font-size: .9rem; }
.nx-page-header .breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }

/* ---------- Seções ---------- */
.nx-section { padding: 96px 0; }
.nx-section-sm { padding: 64px 0; }
.nx-section-title { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.nx-section-title h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 10px 0 14px; }
.nx-section-title.text-start { margin-left: 0; }

/* Faixa de destaques */
.nx-strip { background: var(--nx-amber); color: var(--nx-navy-900); }
.nx-strip-item { display: flex; align-items: center; gap: 14px; padding: 22px 0; font-weight: 700; }
.nx-strip-item i { font-size: 1.6rem; }

/* Cards de serviço */
.nx-card { background: #fff; border: 1px solid var(--nx-line); border-radius: var(--nx-radius-lg); padding: 32px 28px; height: 100%; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; }
.nx-card:hover { transform: translateY(-6px); box-shadow: var(--nx-shadow-lg); border-color: transparent; }
.nx-card h3 { font-size: 1.2rem; margin: 18px 0 10px; }
.nx-card p { color: var(--nx-muted); margin-bottom: 0; }
.nx-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, var(--nx-navy-700), var(--nx-navy-600)); color: var(--nx-amber); }
.nx-icon-soft { background: rgba(245,165,36,.14); color: var(--nx-amber-dark); }
.nx-card .nx-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; text-decoration: none; color: var(--nx-navy-700); }
.nx-card .nx-card-link:hover { color: var(--nx-amber-dark); }
.nx-check { list-style: none; padding: 0; margin: 0; }
.nx-check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.nx-check li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; color: var(--nx-amber-dark); }

/* Processo */
.nx-step { text-align: center; padding: 10px 18px; position: relative; }
.nx-step-num { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-family: var(--nx-font-head); font-weight: 800; font-size: 1.5rem; color: var(--nx-navy-800); background: #fff; border: 3px solid var(--nx-amber); box-shadow: var(--nx-shadow); position: relative; z-index: 1; }
@media (min-width: 992px) {
  .nx-steps { position: relative; }
  .nx-steps::before { content: ""; position: absolute; top: 37px; left: 12%; right: 12%; border-top: 3px dashed rgba(18,48,92,.2); }
}
.nx-step h3 { font-size: 1.1rem; }
.nx-step p { color: var(--nx-muted); font-size: .95rem; }

/* Sobre / split */
.nx-media { border-radius: var(--nx-radius-lg); overflow: hidden; box-shadow: var(--nx-shadow-lg); background: linear-gradient(135deg, var(--nx-navy-800), var(--nx-navy-600)); position: relative; }
.nx-media-badge { position: absolute; left: 22px; bottom: 22px; background: #fff; border-radius: var(--nx-radius); padding: 16px 20px; box-shadow: var(--nx-shadow); display: flex; gap: 14px; align-items: center; max-width: 82%; }
.nx-media-badge strong { font-family: var(--nx-font-head); color: var(--nx-navy-800); display: block; line-height: 1.2; }
.nx-media-badge span { color: var(--nx-muted); font-size: .88rem; }

/* MVV */
.nx-mvv { border-radius: var(--nx-radius-lg); padding: 34px 30px; height: 100%; color: #fff; background: linear-gradient(160deg, var(--nx-navy-800), var(--nx-navy-600)); }
.nx-mvv h3 { color: #fff; font-size: 1.3rem; margin: 16px 0 10px; }
.nx-mvv p, .nx-mvv li { color: rgba(255,255,255,.82); }
.nx-mvv .nx-icon { background: rgba(245,165,36,.16); }

/* Timeline (sobre) */
.nx-timeline { position: relative; padding-left: 34px; }
.nx-timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--nx-amber), rgba(245,165,36,.15)); border-radius: 3px; }
.nx-timeline-item { position: relative; margin-bottom: 28px; }
.nx-timeline-item::before { content: ""; position: absolute; left: -31px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--nx-amber); }
.nx-timeline-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.nx-timeline-item p { color: var(--nx-muted); margin: 0; }

/* Dados cadastrais */
.nx-data-table { background: #fff; border-radius: var(--nx-radius-lg); border: 1px solid var(--nx-line); overflow: hidden; }
.nx-data-row { display: flex; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--nx-line); }
.nx-data-row:last-child { border-bottom: 0; }
.nx-data-row dt { width: 160px; flex-shrink: 0; color: var(--nx-muted); font-weight: 600; font-size: .92rem; }
.nx-data-row dd { margin: 0; font-weight: 600; color: var(--nx-navy-800); word-break: break-word; }
@media (max-width: 575px) { .nx-data-row { flex-direction: column; gap: 2px; } .nx-data-row dt { width: auto; } }

/* Segmentos */
.nx-segment { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--nx-line); border-radius: var(--nx-radius); padding: 18px 20px; font-weight: 700; color: var(--nx-navy-800); height: 100%; }
.nx-segment i { color: var(--nx-amber-dark); font-size: 1.3rem; width: 28px; text-align: center; }

/* FAQ */
.nx-faq .accordion-item { border: 1px solid var(--nx-line); border-radius: var(--nx-radius) !important; overflow: hidden; margin-bottom: 12px; }
.nx-faq .accordion-button { font-family: var(--nx-font-head); font-weight: 700; color: var(--nx-navy-800); padding: 20px 24px; }
.nx-faq .accordion-button:not(.collapsed) { background: rgba(245,165,36,.1); box-shadow: none; }
.nx-faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(245,165,36,.35); }
.nx-faq .accordion-body { color: var(--nx-muted); padding: 4px 24px 22px; }

/* CTA */
.nx-cta { border-radius: var(--nx-radius-lg); padding: 56px 48px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(245,165,36,.35), transparent 60%), linear-gradient(135deg, var(--nx-navy-800), var(--nx-navy-600)); }
.nx-cta h2 { color: #fff; }
.nx-cta p { color: rgba(255,255,255,.82); }
@media (max-width: 575px) { .nx-cta { padding: 40px 24px; } }

/* Contato */
.nx-contact-item { display: flex; gap: 16px; padding: 20px; border-radius: var(--nx-radius); background: #fff; border: 1px solid var(--nx-line); margin-bottom: 14px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
a.nx-contact-item:hover { border-color: var(--nx-amber); box-shadow: var(--nx-shadow); }
.nx-contact-item .nx-icon { width: 50px; height: 50px; font-size: 1.2rem; flex-shrink: 0; }
.nx-contact-item strong { display: block; font-family: var(--nx-font-head); color: var(--nx-navy-800); }
.nx-contact-item span { color: var(--nx-muted); word-break: break-word; }
.nx-form { background: #fff; border-radius: var(--nx-radius-lg); box-shadow: var(--nx-shadow-lg); padding: 36px; }
.nx-form .form-control, .nx-form .form-select { border-radius: 10px; padding: .75rem 1rem; border-color: #d5dce7; }
.nx-form .form-control:focus, .nx-form .form-select:focus { border-color: var(--nx-amber); box-shadow: 0 0 0 .2rem rgba(245,165,36,.25); }
.nx-form label { font-weight: 600; font-size: .9rem; color: var(--nx-navy-800); }
.nx-map { border-radius: var(--nx-radius-lg); overflow: hidden; box-shadow: var(--nx-shadow); line-height: 0; }
.nx-map iframe { width: 100%; height: 400px; border: 0; }
@media (max-width: 575px) { .nx-form { padding: 24px; } }

/* Texto legal */
.nx-legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.nx-legal p, .nx-legal li { color: #3b4456; }

/* ---------- Rodapé ---------- */
.nx-footer { background: var(--nx-navy-900); color: rgba(255,255,255,.72); padding-top: 72px; font-size: .95rem; }
.nx-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.nx-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.nx-footer a:hover { color: var(--nx-amber); }
.nx-footer ul { list-style: none; padding: 0; }
.nx-footer li { margin-bottom: 10px; }
.nx-footer .nx-brand-name { color: #fff; }
.nx-footer .nx-brand-name small { color: rgba(255,255,255,.55); }
.nx-footer-contact i { color: var(--nx-amber); width: 22px; }
.nx-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 22px 0; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- Flutuantes ---------- */
.nx-whats-float { position: fixed; right: 20px; bottom: 20px; z-index: 1030; width: 60px; height: 60px; border-radius: 50%; background: var(--nx-whatsapp); color: #fff; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 10px 25px rgba(37,211,102,.45); text-decoration: none; animation: nxPulse 2.4s infinite; }
.nx-whats-float:hover { color: #fff; transform: scale(1.06); }
@keyframes nxPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.nx-back-top { position: fixed; right: 28px; bottom: 92px; z-index: 1029; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--nx-navy-700); color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; }
.nx-back-top.show { opacity: 1; pointer-events: auto; }

/* Banner de cookies (LGPD) */
.nx-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1040; max-width: 760px; margin: 0 auto; background: #fff; border-radius: var(--nx-radius-lg); box-shadow: var(--nx-shadow-lg); padding: 20px 22px; border: 1px solid var(--nx-line); display: none; }
.nx-cookie.show { display: block; }
.nx-cookie p { font-size: .92rem; color: var(--nx-muted); margin: 0; }
.nx-cookie .btn { padding: .55rem 1.2rem; font-size: .9rem; }

/* Animações de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .nx-whats-float { animation: none; }
}

/* 404 */
.nx-404 { min-height: 70vh; display: flex; align-items: center; }
.nx-404 .code { font-family: var(--nx-font-head); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--nx-navy-800); }
.nx-404 .code span { color: var(--nx-amber); }
