/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
}

/* Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background-color: #1F4294;
  color: #fff;
  padding: 15px 0;
  position: relative;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  max-width: 140px;
}

.contact-info p {
  margin: 3px 0;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.contact-link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.mail-icon {
  vertical-align: middle;
  margin-right: 5px;
  color: #F44336; /* Red envelope icon */
}

.contact-link:hover { text-decoration: underline; }

.header-line {
  height: 8px;
  background-color: #F67E2D;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

@media (max-width: 768px) {
  .header-container { 
    flex-direction: column; 
    align-items: center; 
  }

  .logo {
    margin-bottom: 22px; /* Add space between logo and contact info */
  }

  .services-wrapper { 
    flex-wrap: nowrap; 
    overflow-x: auto; 
  }

  .service { 
    flex: 0 0 80%; 
  }

  .hero h1 { 
    font-size: 1.8rem; 
  }

  .section h2 { 
    font-size: 1.5rem; 
  }
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 0 60px 0;
  background-color: #fff;
}

.hero-overlay {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
  text-align: center;
  /* Remove border-radius to ensure full-width background is visible */
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #000;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #333;
}

.hero-button {
  display: inline-block;
  background-color: #F67E2D;
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: #1F4294;
  color: #fff;
}

/* Bus Image Section */
.bus-image-section {
  padding: 40px 0;
  background-color: #b3b8bb;
  display: flex;
  justify-content: center; /* center horizontally */
}

.bus-info-container {
  display: flex;
  align-items: center; /* Vertically center image and text */
  gap: 40px;
  flex-wrap: wrap;          /* allow wrapping */
  max-width: 1200px;
  width: 100%;
}

.bus-image-wrapper {
  flex: 1 1 400px;
  display: flex;
  align-items: center;     /* vertically center image */
  justify-content: center; /* center horizontally */
}

.bus-text {
  flex: 2 1 500px;
  font-size: 1rem;
  color: #222;
}

.bus-text h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #1F4294;
}

.bus-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* --- MOBILE FIX --- */
@media (max-width: 768px) {
  .bus-info-container {
    display: flex !important;  /* ensure flex applies */
    flex-direction: column !important; /* stack image above text */
    align-items: center !important;    /* center horizontally */
    text-align: center !important;     /* center text */
    gap: 20px;                         /* space between image and text */
  }

  .bus-image-wrapper,
  .bus-text {
    margin: 18px; /* Add some space between image and text */
  }

  .bus-image-wrapper {
    margin-bottom: 0;        /* spacing controlled by gap */
  }
 
}


.company-image {
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.5s ease;
}
.company-image:hover { transform: scale(1.05); }

/* Sections */
.section { padding: 60px 0; }
.section:nth-child(even) { background-color: #f9f9f9; }
.section.light { background-color: #1F4294; color: #fff; }
.section h2 { font-size: 1.8rem; margin-bottom: 40px; text-align: center; }

/* Services */
.services-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Alternate directions for initial animation */
.service:nth-child(odd) { transform: translateX(-30px); }
.service:nth-child(even) { transform: translateX(30px); }

.service.show {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.service img {
  width: 100%;
  height: 180px;       /* Set a uniform height */
  object-fit: cover;    /* Crop or scale to fit nicely */
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.service img:hover {
  transform: scale(1.05);
}

.service h3 {
  color: #F67E2D;
  margin-bottom: 8px;
  position: relative;
  cursor: default;
}

/* Micro-interaction arrow */
.service h3::after {
  content: "→";
  display: inline-block;
  margin-left: 5px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.service:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.service:hover h3::after {
  opacity: 1;
  transform: translateX(0);
}


/* Benefits */
.benefits {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 0;
  text-align: center; /* Center the text */
}

.benefits li {
  display: block;          /* Make each item a block (vertical) */
  text-align: left;        /* Keep checkmark on the left of text */
  padding: 8px 0 8px 25px; /* Top/bottom padding, left space for checkmark */
  font-size: 1rem;
  position: relative;
  opacity: 0;
  transition: all 0.6s ease;
}

.benefits li::before {
  content: "✔";          /* Checkmark */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); /* Vertically center the checkmark */
  color: #F67E2D;
  font-weight: bold;
}

.benefits li.show {
  opacity: 1;
  transform: translateX(0);
}
.benefits li {
  display: block;          /* Make each item a block (vertical) */
  text-align: left;        /* Keep checkmark on the left of text */
  padding: 8px 0 8px 25px; /* Top/bottom padding, left space for checkmark */
  font-size: 1rem;
  position: relative;
  opacity: 0;
  transition: all 0.6s ease;
}

.benefits li::before {
  content: "✔";          /* Checkmark */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); /* Vertically center the checkmark */
  color: #F67E2D;
  font-weight: bold;
}

/* Contact Form */
#contact-form-section p {
  text-align: center;
}

.contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  padding: 25px;
  border: 2px solid #F67E2D;
  border-radius: 8px;
  background-color: #f9f9f9;
}
.contact-form form { display: flex; flex-direction: column; gap: 15px; }
.contact-form label { font-weight: bold; margin-bottom: 5px; }
.contact-form input, .contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
}
.contact-form textarea { min-height: 120px; }
.contact-form button {
  background-color: #F67E2D;
  color: #fff;
  border: none;
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.contact-form button:hover { background-color: #1F4294; }

/* Form messages */
.success-message {
  color: #28a745; /* Green */
  font-weight: bold;
  font-size: 1rem;
}

/* Error message */
.error-message {
  color: #dc3545; /* Bright red */
  font-weight: bold;
  font-size: 1rem;
  display: inline-block;
  margin-top: 10px;
}


/* Required field mark */
.required {
  color: red;
  font-weight: bold;
  margin-left: 3px;
  font-size: 1rem;
  vertical-align: middle;
}

/* Footer */
.site-footer {
  background-color: #1F4294;
  color: #fff;
  text-align: center;
  padding: 25px 0;
  font-size: 0.9rem;
}
.site-footer a { color: #fff; font-weight: bold; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .header-container { flex-direction: column; align-items: center; }
  .services-wrapper { flex-wrap: nowrap; overflow-x: auto; }
  .service { flex: 0 0 80%; }
  .hero h1 { font-size: 1.8rem; }
  .section h2 { font-size: 1.5rem; }
}
