/* ==========================================================================
   Nexora Freight – brand layer
   Loaded AFTER the theme CSS. Keep all project-specific styling here so the
   vendor theme files (style.css / responsive.css) stay close to upstream.

   1. Tokens & base
   2. Accessibility helpers
   3. Logo
   4. Header / navigation tweaks
   5. Animation fallbacks (no-JS / reduced motion)
   6. Hero, team, testimonial, footer tweaks
   7. Pricing
   8. Contact + form
   ========================================================================== */

/* 1. Tokens & base --------------------------------------------------------- */
:root {
  --nx-teal: #0B4654;
  --nx-teal-2: #15505E;
  --nx-orange: #FF6D45;
  --nx-ink: #12303a;
  --nx-muted: #5d7279;
  --nx-line: #dfe8ea;
  --nx-bg: #F0FDFE;
  --nx-radius: 20px;
  --nx-header-offset: 90px;
}

html { scroll-behavior: smooth; }
main section[id], main div[id] { scroll-margin-top: var(--nx-header-offset); }

img { max-width: 100%; height: auto; }

/* The theme was designed for Font Awesome Pro (solid icons at weight 400).
   Free FA only ships solid at 900 / regular at 400, so pin the weights. */
.fa-solid, .fas, .fa { font-weight: 900 !important; }
.fa-regular, .far { font-weight: 400 !important; }
.fa-brands, .fab { font-weight: 400 !important; }

/* 2. Accessibility helpers ------------------------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000000;
  background: var(--nx-teal); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible { outline: 3px solid var(--nx-orange); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-section-one .marquee .marquee-block { animation: none !important; }
}

/* 3. Logo ------------------------------------------------------------------ */
.nx-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; }
.nx-logo__bg { fill: var(--nx-teal); }
.nx-logo__text { display: flex; flex-direction: column; font-family: var(--title-font, 'Outfit', sans-serif); }
.nx-logo__name { font-size: 26px; font-weight: 700; letter-spacing: -.5px; color: var(--nx-teal); }
.nx-logo__sub  { font-size: 11px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--nx-orange); margin-top: 3px; }
.nx-logo--light .nx-logo__bg { fill: #fff; }
.nx-logo--light .nx-logo__mark path:first-of-type { fill: var(--nx-teal); }
.nx-logo--light .nx-logo__name { color: #fff; }
.main-header .logo .nx-logo, .sticky-header .logo .nx-logo { max-width: none; }

/* 4. Header / navigation -------------------------------------------------- */
button.mobile-nav-toggler, button.close-btn {
  background: none; border: 0; padding: 0;
}
button.close-btn { color: #fff; cursor: pointer; }
.main-menu .navigation > li.current > a,
.sticky-header .navigation > li.current > a { color: var(--nx-orange); }
.main-header .theme-btn.btn-style-one { white-space: nowrap; }

.main-header.header-style-one .main-box {
  align-items: center;
  flex-wrap: nowrap;
}
.main-header.header-style-one .header-lower .logo-box {
  min-width: 0;
  padding: 14px 0 14px 20px;
  margin-right: 4px;
  flex: 0 0 auto;
}
.main-header.header-style-one .logo .nx-logo__name { font-size: 22px; }
.main-header.header-style-one .main-box .nav-outer {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: auto;
}
.main-header.header-style-one .main-menu {
  flex: 1 1 auto;
  min-width: 0;
}
.main-header.header-style-one .main-menu .navigation {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  float: none;
}
.main-header.header-style-one .main-menu .navigation > li {
  float: none;
  margin: 0;
  padding: 16px 8px;
  white-space: nowrap;
}
.main-header.header-style-one .main-menu .navigation > li > a {
  font-size: 15px;
}
.main-header.header-style-one .header-lower .outer-box,
.main-header.header-style-one .nx-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  gap: 8px;
  padding: 0 4px 0 0;
  height: auto;
}
.nx-header-auth,
.main-header .menu-btn {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}
.nx-header-auth__link {
  font-weight: 600;
  color: var(--nx-teal, #0B4654);
  text-decoration: none;
  white-space: nowrap;
  font-size: 15px;
}
.nx-header-auth__link:hover { color: var(--nx-orange, #e85d3a); }
.nx-header-auth__btn .btn-title,
.nx-header-quote .btn-title {
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.2;
}
.main-header.header-style-one .nx-mobile-toggler {
  flex: 0 0 auto;
  order: 10;
}

@media (min-width: 992px) {
  .main-header.header-style-one .nx-mobile-toggler {
    display: none !important;
  }
}

@media (min-width: 992px) and (max-width: 1399px) {
  .main-header.header-style-one .header-lower .outer-box .theme-btn {
    display: inline-block !important;
  }
  .main-header.header-style-one .main-menu .navigation > li > a {
    font-size: 14px;
  }
  .main-header.header-style-one .main-menu .navigation > li {
    padding: 16px 5px;
  }
  .nx-header-auth__btn .btn-title,
  .nx-header-quote .btn-title {
    padding: 7px 12px;
    font-size: 12px;
  }
}

@media (max-width: 991px) {
  .main-header.header-style-one .main-menu {
    display: none !important;
  }
  .main-header.header-style-one .nx-header-actions {
    display: none !important;
  }
  .main-header.header-style-one .main-box .nav-outer {
    flex: 0 0 auto;
    margin-left: auto;
  }
  .main-header.header-style-one .header-lower .mobile-nav-toggler,
  .main-header.header-style-one .nx-mobile-toggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 16px 0 0;
    background: var(--nx-teal, #0B4654);
    color: #fff !important;
    border-radius: 8px;
    font-size: 18px;
  }
  .sticky-header {
    display: none !important;
  }
  .main-header.header-style-one .header-lower .logo-box {
    padding: 14px 0 14px 16px;
  }
}

.mobile-menu .nx-mobile-auth { margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,.12); }

.nx-hero-portal { margin-top: 1.25rem; max-width: 520px; }
.nx-hero-track {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.nx-hero-track input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d5e2e5;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 15px;
}
.nx-hero-track button {
  border: 0;
  border-radius: 8px;
  background: var(--nx-teal, #0B4654);
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
}
.nx-hero-auth { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.nx-hero-auth__in {
  color: var(--nx-teal, #0B4654);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nx-hero-auth__up {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  background: var(--nx-orange, #e85d3a);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.nx-hero-auth__up:hover { opacity: 0.92; color: #fff; }

.nx-track-page { padding: 48px 0 72px; background: #f3f6f7; min-height: 50vh; }
.nx-track-form.card-like {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  background: #fff;
  border: 1px solid #e3eaec;
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 30px rgba(11, 70, 84, 0.06);
}
.nx-track-form label { display: block; font-weight: 700; margin-bottom: 0.4rem; color: #14323b; }
.nx-track-form__row { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.nx-track-form__row input {
  flex: 1;
  min-width: 200px;
  border: 1px solid #e3eaec;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
.nx-track-alert {
  max-width: 720px;
  margin: 0 auto 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
}
.nx-track-alert--warn { background: #fff4df; color: #8a5a12; border: 1px solid #f0d9a6; }
.nx-track-result {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e3eaec;
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: 0 10px 30px rgba(11, 70, 84, 0.06);
}
.nx-track-result__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e3eaec;
}
.nx-track-result__head h2 { margin: 0 0 0.35rem; color: #0B4654; }
.nx-track-result .muted { color: #5d7278; font-size: 0.92rem; }
.nx-track-badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}
.nx-badge-ok { background: #e7f6ee; color: #1f7a4d; }
.nx-badge-warn { background: #fff4df; color: #8a5a12; }
.nx-badge-bad { background: #fdecec; color: #9d2c2c; }
.nx-badge-info { background: #e7f3f8; color: #0f5f86; }
.nx-track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nx-track-panel {
  border: 1px solid #e3eaec;
  border-radius: 12px;
  padding: 1rem;
}
.nx-track-panel h3 { margin: 0 0 0.75rem; font-size: 1.05rem; color: #0B4654; }
.nx-track-timeline { list-style: none; margin: 0; padding: 0 0 0 0.2rem; }
.nx-track-timeline li {
  position: relative;
  padding: 0 0 1rem 1.1rem;
  border-left: 2px solid #e3eaec;
}
.nx-track-timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0B4654;
}
.nx-track-timeline li strong { display: block; margin-bottom: 0.2rem; }
.nx-track-map { height: 300px; border-radius: 10px; border: 1px solid #e3eaec; }
.nx-track-foot { margin-top: 1rem; text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
@media (max-width: 768px) {
  .nx-track-grid { grid-template-columns: 1fr; }
}

/* 5. Animation fallbacks --------------------------------------------------- */
/* Template hides these until JS reveals them; keep content visible without JS. */
html:not(.js) .reveal { visibility: visible; }
html:not(.js) .fade-in,
.fade-in.is-visible { opacity: 1; transform: none; }
.reveal.is-visible { visibility: visible; }
.preloader { transition: opacity .4s ease, visibility .4s ease; }
.preloader.is-hidden { opacity: 0; visibility: hidden; }
html:not(.js) .preloader { display: none; }

/* 6. Page tweaks ------------------------------------------------------------ */
/* Hero: one <h1> containing three styled lines */
.banner-section-one .banner-content-wrap .banner-title h1 .nx-line { display: block; color: inherit; }
.banner-section-one .banner-call-info .call-number a { color: inherit; }

/* Team cards have no profile pages, so the arrow link is not used */
.single-team-box .team-content .title { color: #fff; }

/* Testimonials: <figure>/<blockquote> carry browser margins */
figure.single-testi-box { margin-top: 0; margin-bottom: 30px; }
.single-testi-box blockquote { margin: 0; padding: 0; border: 0; }
.single-testi-box figcaption { display: flex; }
.single-testi-box .testi-autor-box { display: flex; }

/* The theme's testimonials block ends with a 1130px panel that sat under the
   (now disabled) blog section. Replace it with a simple rounded bottom edge,
   and let the client-logo strip tuck underneath. */
.testimonial-section-one { padding-bottom: 120px; border-radius: 0 0 50px 50px; z-index: 2; }
.testimonial-section-one::before { display: none; }
.brand-area-one { position: relative; z-index: 1; margin-top: -50px; padding: 130px 0 80px; }
.brand-area-one + .nx-contact { position: relative; }

/* Partner-logo placeholders */
.brand-area-one .brand-thumb { height: 100%; display: flex; align-items: center; justify-content: center; }
.brand-area-one .brand-thumb img { max-width: 180px; }

/* Footer */
.main-footer-one .footer-legal { display: block; opacity: .8; font-size: 13px; margin-top: 4px; }
.main-footer-one .footer-top-section { padding-top: 0; }

/* Scroll-to-top is a real <button> */
button.scroll-to-top { border: 0; padding: 0; }
.scroll-to-top.is-visible { display: block; }

/* 7. Pricing ---------------------------------------------------------------- */
.nx-pricing { padding: 120px 0; background: var(--nx-bg); position: relative; }
.nx-pricing .sec-title { margin-bottom: 56px; }
.nx-pricing .sec-title .section-desc { max-width: 640px; margin: 18px auto 0; }

.nx-plan {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--nx-line); border-radius: var(--nx-radius);
  padding: 40px 34px 34px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nx-plan:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(11, 70, 84, .12); }
.nx-plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--nx-orange); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 6px 16px; border-radius: 30px; white-space: nowrap;
}
.nx-plan__name { font-size: 26px; font-weight: 700; color: var(--nx-teal); margin: 0 0 8px; }
.nx-plan__blurb { color: var(--nx-muted); min-height: 52px; margin: 0 0 22px; }
.nx-plan__price { font-family: var(--title-font, 'Outfit', sans-serif); font-size: 52px; font-weight: 700; line-height: 1; color: var(--nx-ink); margin: 0 0 26px; }
.nx-plan__price span { display: block; font-size: 14px; font-weight: 500; color: var(--nx-muted); margin-top: 8px; }
.nx-plan__features { list-style: none; margin: 0 0 32px; padding: 26px 0 0; border-top: 1px solid var(--nx-line); flex: 1; }
.nx-plan__features li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--nx-ink); }
.nx-plan__features i { color: var(--nx-orange); margin-top: 5px; }
.nx-plan__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 50px; font-weight: 600;
  background: var(--nx-teal); color: #fff; border: 2px solid var(--nx-teal);
  transition: all .3s ease;
}
.nx-plan__cta:hover { background: var(--nx-orange); border-color: var(--nx-orange); color: #fff; }

.nx-plan--featured { background: var(--nx-teal); border-color: var(--nx-teal); }
.nx-plan--featured .nx-plan__name,
.nx-plan--featured .nx-plan__price,
.nx-plan--featured .nx-plan__features li { color: #fff; }
.nx-plan--featured .nx-plan__blurb,
.nx-plan--featured .nx-plan__price span { color: rgba(255, 255, 255, .75); }
.nx-plan--featured .nx-plan__features { border-top-color: rgba(255, 255, 255, .2); }
.nx-plan--featured .nx-plan__cta { background: var(--nx-orange); border-color: var(--nx-orange); }
.nx-plan--featured .nx-plan__cta:hover { background: #fff; border-color: #fff; color: var(--nx-teal); }
@media (min-width: 992px) { .nx-plan--featured { transform: translateY(-14px); } .nx-plan--featured:hover { transform: translateY(-20px); } }

/* 8. Contact + form --------------------------------------------------------- */
.nx-contact { padding: 120px 0; background: #fff; }
.nx-contact__list { list-style: none; margin: 40px 0 0; padding: 0; }
.nx-contact__list li { display: flex; gap: 18px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--nx-line); }
.nx-contact__list li:last-child { border-bottom: 0; }
.nx-contact__list i {
  flex: 0 0 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--nx-teal); color: #fff; font-size: 17px;
}
.nx-contact__list span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--nx-muted); margin-bottom: 2px; }
.nx-contact__list a { color: var(--nx-ink); font-weight: 600; }
.nx-contact__list a:hover { color: var(--nx-orange); }

.nx-form {
  background: var(--nx-bg); border: 1px solid var(--nx-line); border-radius: var(--nx-radius);
  padding: 40px;
}
@media (max-width: 575.98px) { .nx-form { padding: 24px 20px; } }
.nx-form label { display: block; color: var(--nx-ink); font-size: 14px; font-weight: 600; margin-bottom: 6px; cursor: default; }
.nx-form input[type="text"], .nx-form input[type="email"], .nx-form input[type="tel"],
.nx-form select, .nx-form textarea {
  width: 100%; padding: 14px 16px; background: #fff; color: var(--nx-ink);
  border: 1px solid var(--nx-line); border-radius: 12px; font: inherit; font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nx-form textarea { resize: vertical; min-height: 130px; }
.nx-form input:focus, .nx-form select:focus, .nx-form textarea:focus {
  outline: 0; border-color: var(--nx-teal); box-shadow: 0 0 0 4px rgba(11, 70, 84, .12);
}
.nx-form .is-invalid { border-color: #c62828; }
.nx-form__consent { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; color: var(--nx-muted) !important; cursor: pointer !important; }
.nx-form__consent input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--nx-teal); }
.nx-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nx-form__submit {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--nx-orange); color: #fff; border: 2px solid var(--nx-orange);
  padding: 16px 34px; border-radius: 50px; font-weight: 600; font-size: 16px;
  transition: all .3s ease;
}
.nx-form__submit:hover { background: var(--nx-teal); border-color: var(--nx-teal); }
.nx-form__submit[disabled] { opacity: .6; cursor: progress; }
.nx-form__status { margin: 16px 0 0; font-weight: 600; min-height: 1.5em; }
.nx-form__status.is-success { color: #1b7f4b; }
.nx-form__status.is-error { color: #c62828; }
