/* ============================================================
   BrightLine Logistics — custom styles on top of Bootstrap
   ============================================================ */

:root {
  --navy: #0b1d33;
  --navy-2: #0e2440;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --muted-soft: #9fb0c3;
  --font-head: "Oswald", sans-serif;
  --font-body: "Barlow", sans-serif;
}

body {
  font-family: var(--font-body);
  color: #22303f;
  background: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
.navbar-brand,
.stat-num {
  font-family: var(--font-head);
  letter-spacing: 0.01em;
}

.text-accent {
  color: var(--accent);
}

.text-muted-soft {
  color: var(--muted-soft);
}

.rounded-4 {
  border-radius: 1rem !important;
}

/* ---------- Buttons ---------- */
.btn-accent {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-accent:hover {
  background: #ea6a0d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, .6);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all .25s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.site-nav {
  padding: 1.1rem 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}

.site-nav.scrolled {
  background: var(--navy);
  padding: 0.55rem 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}

.site-nav .nav-link {
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
  position: relative;
}

.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

.site-nav .nav-link:hover {
  color: #fff;
}

.site-nav .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  transition: transform .3s ease;
}

.navbar-brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}

.brand-text {
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .02em;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  background: linear-gradient(100deg, rgba(11, 29, 51, .88) 15%, rgba(11, 29, 51, .45) 55%, rgba(11, 29, 51, .15)),
    url("../img/hero-truck.jpg") center / cover no-repeat;
  color: #fff;
  position: relative;
}

.hero-content {
  padding: 120px 0 60px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  font-size: .85rem;
  color: #ffd9b8;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 1.2rem;
  max-width: 540px;
  color: rgba(255, 255, 255, .85);
  margin-top: 1.25rem;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: 1.4rem;
  animation: bob 1.8s ease-in-out infinite;
  cursor: pointer;
}

@keyframes bob {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }
}

/* Hero entrance animation */
.hero .animate-1,
.hero .animate-2,
.hero .animate-3,
.hero .animate-4 {
  opacity: 0;
  animation: rise .8s ease forwards;
}

.hero .animate-2 {
  animation-delay: .15s;
}

.hero .animate-3 {
  animation-delay: .3s;
}

.hero .animate-4 {
  animation-delay: .45s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Stats ---------- */
.stats-bar {
  background: var(--navy);
  color: #fff;
}

.stat-num {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--muted-soft);
  margin-top: .35rem;
}

/* ---------- Sections ---------- */
.section {
  scroll-margin-top: 80px;
}

.section-dark {
  background: var(--navy-2);
  color: #fff;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}

.section-kicker::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-kicker.justify-content-center::after {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ---------- About ---------- */
.about-img-wrap {
  position: relative;
}

.about-badge {
  position: absolute;
  right: -14px;
  bottom: -20px;
  background: #fff;
  color: var(--navy);
  border-radius: .9rem;
  padding: .9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  box-shadow: 0 14px 34px rgba(11, 29, 51, .18);
}

.about-badge i {
  font-size: 1.7rem;
  color: var(--accent);
}

.about-badge small {
  display: block;
  color: var(--muted-soft);
  font-size: .78rem;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .5rem;
}

.about-list li {
  margin-bottom: .55rem;
  font-weight: 500;
}

/* ---------- Services ---------- */
.service-card {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1rem;
  padding: 2rem 1.6rem;
  height: 100%;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  background: var(--navy);
}

.service-icon {
  width: 62px;
  height: 62px;
  border-radius: .9rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: transform .3s ease, background .3s ease;
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(-6deg) scale(1.08);
}

.service-card h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.service-card p {
  color: var(--muted-soft);
  margin: 0;
  font-size: .95rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  border: 1px solid rgba(249, 115, 22, .4);
  border-radius: 1.2rem;
  overflow: hidden;
  padding: 0;
}

.cta-img {
  height: 180px;
  width: 320px;
  object-fit: cover;
  flex-shrink: 0;
}

.cta-banner h3 {
  text-transform: uppercase;
  font-size: 1.4rem;
}

/* ---------- Mini cards ---------- */
.mini-card {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: #f4f6f9;
  border-radius: .8rem;
  padding: .9rem 1.1rem;
  font-weight: 600;
  color: var(--navy);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(11, 29, 51, .1);
}

.mini-card i {
  font-size: 1.3rem;
}

/* ---------- Contacts ---------- */
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.contact-item i {
  font-size: 1.25rem;
  color: var(--accent);
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: .7rem;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item p {
  margin: 0;
  color: var(--muted-soft);
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  transition: color .2s ease;
}

.contact-item a:hover {
  color: var(--accent);
}

.quote-form .form-control,
.quote-form .form-select {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  padding: .8rem 1rem;
  border-radius: .6rem;
}

.quote-form .form-control::placeholder {
  color: rgba(255, 255, 255, .45);
}

.quote-form .form-control:focus,
.quote-form .form-select:focus {
  background: rgba(255, 255, 255, .09);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 .2rem rgba(249, 115, 22, .25);
}

.quote-form .form-select option {
  color: #22303f;
}

.form-success,
.alert-success {
  border-radius: .6rem;
}

.animate-fade {
  animation: rise .5s ease;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: var(--muted-soft);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-copy {
  font-size: .85rem;
  text-align: center;
}

.to-top {
  width: 44px;
  height: 44px;
  border-radius: .6rem;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform .25s ease, background .25s ease;
}

.to-top:hover {
  background: #ea6a0d;
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- Hover lift ---------- */
.hover-lift {
  transition: transform .3s ease, box-shadow .3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(11, 29, 51, .25);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside stats row */
.stats-bar .row>.col-6:nth-child(2) .reveal {
  transition-delay: .1s;
}

.stats-bar .row>.col-6:nth-child(3) .reveal {
  transition-delay: .2s;
}

.stats-bar .row>.col-6:nth-child(4) .reveal {
  transition-delay: .3s;
}

/* ---------- Navbar toggler color ---------- */
.site-nav .navbar-toggler {
  color: #fff;
}

.navbar-nav {
  margin: 0 auto;
}

@media (max-width: 991px) {

  .site-nav.scrolled,
  .site-nav {
    background: var(--navy);
  }

  #navMenu {
    background: var(--navy);
    padding: 1rem;
    margin-top: .5rem;
    border-radius: .8rem;
  }
}