* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
}

/* Navbar */
header {
  background: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e60000;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

nav a:hover {
  color: #e60000;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.contact-us{
    color: #e60000;
    text-decoration: none;
}

/* Banner */
.banner {
  width: 100%;
  max-width: 100%;
  height: 70vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('https://www.truckindispatch.com/images/Truck-Dispatch-Services.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;

}

.banner h1 {
  font-size: 2.5rem;
}

/* Sections */
section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

h2 {
  margin-top: 20px;
  margin-bottom: 30px;
  color: #111;
  text-align: center;
  font-size: 1.8rem;
}

p {
  margin-bottom: 20px;
  text-align: center;
}

/* Services Grid */
.grid {
  display: grid;
  gap: 20px;
}

.card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  font-weight: 500;
}

/* Grid for responsiveness */
@media(min-width: 992px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media(min-width: 600px) and (max-width: 991px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 599px) {
  .grid { grid-template-columns: 1fr; }
}

/* Contact */
.contact {
  text-align: center;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

form button {
  background: #e60000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background: #cc0000;
}

footer {
  text-align: center;
  padding: 15px;
  background: #111;
  color: #fff;
  margin-top: 30px;
}

/* Responsive Navbar */
@media(max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    border: 1px solid #ddd;
    padding: 10px;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .banner h1 {
    font-size: 2rem;
  }
}
