/* Base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fb;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Color variables */
:root {
  /* Updated color palette for a more lively look */
  --primary: #2e63d4; /* vibrant blue */
  --secondary: #ff8c42; /* warm orange */
  --light-bg: #f9f9fb; /* very light background */
  --dark: #1f1f1f; /* dark for text/accents */
  --text-light: #555;
  /* Additional accent colours for a more dynamic palette */
  --accent1: #e63946; /* coral red */
  --accent2: #2a9d8f; /* teal green */
  --accent3: #e9c46a; /* golden yellow */
  --accent4: #8e44ad; /* deep purple */
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #fff;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.logo {
  /* Use flex to align the company logo image */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Size the logo image for the header */
.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--primary);
}

.nav-btn {
  margin-left: 1rem;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  display: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: #143270;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
  padding: 0 1rem;
  color: #fff;
  /* Use a photo of a moving truck with a semi-transparent overlay for the hero background */
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-bg.png');
  background-size: cover;
  background-position: center;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Sections */
.section {
  padding: 4rem 1rem;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* About Section */
.about-section p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
}

/* Services */
.services-section .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background-color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  /* Add a colourful accent bar at the top of each card */
  border-top: 4px solid var(--primary);
}

/* Apply different accent colours to each service card using nth-child selectors */
.service-card:nth-child(1) {
  border-top-color: var(--primary);
}

.service-card:nth-child(2) {
  border-top-color: var(--secondary);
}

.service-card:nth-child(3) {
  border-top-color: var(--accent1);
}

.service-card:nth-child(4) {
  border-top-color: var(--accent2);
}

.service-card:nth-child(5) {
  border-top-color: var(--accent3);
}

/* Service card images */
.service-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.service-card .icon {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--primary);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Countries */
.countries-section p {
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  text-align: center;
  color: var(--text-light);
}

.map-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.country-flags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}

.flag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
  color: var(--dark);
}

.flag-item img {
  width: 80px;
  height: auto;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Commitment */
.commitment-section .commitment-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.commitment-text ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.commitment-text li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
}

.commitment-text li::before {
  content: '\f058'; /* Font Awesome check icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.commitment-image {
  text-align: center;
  color: var(--primary);
}

/* Why Us */
.whyus-section .why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.why-card {
  background-color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.why-card .icon {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.why-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--primary);
}

.why-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Team */
.team-section .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-card {
  background-color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.team-card .avatar {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.team-card h3 {
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.team-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Testimonials */
.testimonials-section .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background-color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  /* center the content and remove italic from entire card */
  text-align: center;
  color: var(--dark);
}

.testimonial-card h4 {
  margin-top: 1rem;
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}

/* Avatar styles for testimonials */
.testimonial-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Quote Section */
.quote-section {
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

.quote-section h2 {
  color: #fff;
}

.quote-section p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.quote-section .btn-primary {
  background-color: #fff;
  color: var(--primary);
  border: none;
}

.quote-section .btn-primary:hover {
  background-color: var(--secondary);
  color: #fff;
}

/* Contact */
.contact-section .contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: flex-start;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background-color: var(--primary);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #143270;
}

.contact-info {
  background-color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
  margin-top: 0;
  color: var(--primary);
}

.contact-info p {
  margin: 0.5rem 0;
  color: var(--text-light);
}

.contact-info i {
  margin-right: 0.5rem;
  color: var(--secondary);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: #fff;
  padding: 1rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

/* Track Section */
.track-section {
  background-color: var(--accent2);
  color: #fff;
  text-align: center;
}

.track-section h2 {
  color: #fff;
}

.track-section p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

.track-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.track-form input {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.track-form button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  background-color: var(--dark);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.track-form button:hover {
  background-color: #000;
}

/* Quote Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-content {
  background-color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
  margin-top: 0;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.modal-content button {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background-color: var(--primary);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: var(--secondary);
}

.close-modal {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Responsive navigation */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
  }
}