/* Reset CSS */
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Header Styles */
header {
  background-color: #9db3c1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid #eee;
  position: relative;
}

/* Center the Logo */
header .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
}

header .logo img {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Center the navigation links below the logo */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  justify-content: center;
  margin-top: 10px;
}

.nav-links li {
  display: inline-block;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* Hero Section Styles */
.hero {
  background-image: url('/styles/photos/truck1.jpg');
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 900px;
  width: 100%;
  margin: 0;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
  text-align: center;
}

/* Hero Content Styles */
.hero-content {
  width: 100%;
  max-width: 800px;
  margin: 30px auto 0;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  overflow: visible;
}

/* Adjusted Outlined Text Styles */
.hero-content h1 {
  font-size: 40px;
  padding: 0 10px;
  margin: 0 auto 10px;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  color: white;
  text-shadow: 
      -1px -1px 0 #000,
      1px -1px 0 #000,
      -1px 1px 0 #000,
      1px 1px 0 #000;
  font-weight: bold;
}

/* Transparent Box Styles */
.transparent-box {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 20px;
  margin: 10px auto;
  border-radius: 8px;
  max-width: 600px;
  text-align: center;
  position: relative;
}

/* Learn More Button Styles */
.learn-more-btn {
  background-color: black;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  display: block;
  margin: 20px auto 0;
  transition: background-color 0.3s ease;
  width: fit-content;
  position: relative;
  z-index: 1;
}

.learn-more-btn:hover {
  background-color: #333;
}

/* General Services Section Styles for Mobile */
.services-section {
  display: flex; /* Use flexbox for layout */
  flex-wrap: wrap; /* Allow wrapping for smaller screens */
  width: 100%; /* Full width of the page */
  max-width: 1200px; /* Maximum width */
  min-height: 600px; /* Minimum height to ensure content is visible */
  margin: 0 auto; /* Center and add vertical margin */
  padding: 60px 20px; /* Adjust padding for better spacing */
  background-image: url('/styles/photos/truck2.jpg'); /* Background image path */
  background-size: cover; /* Ensure the background covers the whole section */
  background-position: top; /* Adjusted to bring the bottom into view */
  background-repeat: no-repeat; /* Prevent repeating */
  border-radius: 0; /* Remove rounded corners for full coverage */
  box-shadow: none; /* Remove shadow if it affects visibility */
  position: relative; /* Ensure position in flow */
  box-sizing: border-box; /* Include padding and border in the width calculation */
  overflow: hidden; /* Prevent content overflow */
}

/* Left Column Styles */
.services-left {
  flex: 1; /* Take up one part of the flex container */
  text-align: center; /* Center-align text */
  border-right: 2px solid rgba(255, 255, 255, 0.5); /* Add a semi-transparent border to separate content */
  padding: 20px; /* Padding inside */
  background-color: rgba(255, 255, 255, 0.7); /* Add a semi-transparent background for readability */
  border-radius: 10px; /* Keep rounded corners for this part */
  max-width: 45%; /* Ensure it doesn't exceed half of the section width */
  box-sizing: border-box; /* Include padding and border in the width calculation */
}

/* Adjusted Image Size for Icon */
.services-left img {
  max-width: 100px; /* Reduced max width for logo to make it smaller on mobile */
  margin: 20px auto; /* Add vertical margin and center-align */
  display: block; /* Ensure it is centered and block level */
}

/* Right Column Styles */
.services-right {
  flex: 1; /* Take up one part of the flex container */
  padding: 20px; /* Padding inside */
  background-color: rgba(255, 255, 255, 0.7); /* Add a semi-transparent background for readability */
  border-radius: 10px; /* Rounded corners for consistency */
  box-sizing: border-box; /* Include padding in width calculation */
  max-width: 55%; /* Ensure it doesn't exceed half of the section width */
  overflow: hidden; /* Prevent content overflow */
}

.services-list {
  list-style: none; /* Remove default list styling */
  padding: 0; /* Remove padding */
  text-align: left; /* Left-align list items */
  margin-top: 20px; /* Add top margin */
}

.services-list li {
  font-weight: bold; /* Bold font for list items */
  margin-bottom: 10px; /* Space between list items */
  text-align: center;
}

/* Service Items Styles */
.service-item {
  margin-bottom: 30px; /* Space between service items */
}

.service-item h3 {
  font-size: 1.2rem; /* Font size for headings */
  font-weight: bold; /* Bold headings */
  margin-bottom: 10px; /* Add margin below headings */
}

.service-item p {
  margin: 0; /* Remove default margin */
}

/* Responsive Adjustments for Smaller Screens */
@media (max-width: 768px) {
  .services-section {
    flex-direction: column; /* Stack items vertically */
    padding: 20px; /* Reduce padding */
  }
  .services-left, .services-right {
    max-width: 100%; /* Full width for each column */
    margin: 10px 0; /* Add margin */
    padding: 20px; /* Add padding */
    background-color: rgba(255, 255, 255, 0.9); /* More opaque background */
  }
  .services-left {
    border-right: none; /* Remove right border */
    border-bottom: 2px solid rgba(255, 255, 255, 0.5); /* Add bottom border */
  }
  .services-left img {
    max-width: 80px; /* Further reduce image size for smaller screens */
  }
  .services-list {
    text-align: center; /* Center-align list items */
    padding: 10px 0; /* Add padding */
  }
  .services-right {
    text-align: center; /* Center-align the content */
  }
  .service-item {
    margin-bottom: 20px; /* Reduce spacing between service items */
  }
  .service-item h3 {
    font-size: 1.1rem; /* Slightly smaller font size for headings */
  }
}

/* Extra small screens (very small phones) */
@media (max-width: 480px) {
  .services-section {
    padding: 10px; /* Further reduce padding */
  }
  .services-left, .services-right {
    padding: 15px; /* Adjust padding */
    border: none; /* Remove borders for simplicity */
    background-color: rgba(255, 255, 255, 1); /* Full opaque background for readability */
  }
  .services-left img {
    max-width: 60px; /* Further reduce image size for extra small screens */
  }
  .service-item h3 {
    font-size: 1rem; /* Further reduce font size for headings */
  }
  .service-item p {
    font-size: 0.9rem; /* Reduce font size for paragraphs */
  }
}


/* About Us Section Styles */
.about-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 600px;
  margin-bottom: 1px;
  padding: 20px;
  background-color: #000;
  border-radius: 0;
  box-shadow: none;
  color: black;
  box-sizing: border-box;
  gap: 10px;
}

/* Left Column Styles */
.about-content {
  flex: 1;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 20px;
  border-radius: 10px;
  margin-right: 10px;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

/* Right Column Styles */
.about-image {
  flex: 1;
  text-align: center;
  margin-left: 10px;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Design for About Us Section */
@media (max-width: 1200px) {
  .about-content h2 {
    font-size: 2rem;
  }
  .about-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) {
  .about-section {
    flex-direction: column;
    padding: 20px 10px;
  }
  .about-content, .about-image {
    margin: 0 0 20px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .about-content h2 {
    font-size: 1.8rem;
  }
  .about-content p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

@media (max-width: 576px) {
  .about-section {
    padding: 10px;
  }
  .about-content h2 {
    font-size: 1.6rem;
  }
  .about-content p {
    font-size: 0.85rem;
  }
  .about-image img {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .about-content h2 {
    font-size: 1.4rem;
  }
  .about-content p {
    font-size: 0.8rem;
  }
  .about-image img {
    max-width: 85%;
  }
}

/* Contact Section Styles */
.contact-background {
  width: 100%;
  background-color: #f0f0f0;
  padding: 60px 0;
}

/* Contact Section Inner Styles */
#contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Left Column Styles (Contact Info) */
.contact-info {
  flex: 1;
  max-width: 400px;
  margin-right: 30px;
}

#contact h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

#contact p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
  font-weight: bold;
}

/* Right Column Styles (Form) */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  flex: 1;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

#contact-form textarea {
  height: 100px;
  resize: vertical;
}

#contact-form button {
  background-color: #333;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

#contact-form button:hover {
  background-color: #555;
}

/* Footer Styles */
.custom-footer {
  background-color: #000;
  color: #e5f2f6;
  padding: 20px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

.footer-logo,
.footer-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-right: 20px;
}

.footer-mission {
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
  flex-grow: 1;
}

.footer-mission h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.footer-mission p {
  margin: 5px 0;
}

.footer-logo img {
  max-width: 150px;
  margin-bottom: 10px;
}

/* Media Queries for Responsiveness */

/* Large screens (desktops) */
@media (max-width: 1440px) {
  .hero-content {
    max-width: 900px;
  }
  .hero-content h1 {
    font-size: 42px;
  }
  .transparent-box {
    max-width: 700px;
  }
}

/* Medium screens (tablets in landscape mode) */
@media (max-width: 1200px) {
  .hero-content {
    max-width: 800px;
  }
  .hero-content h1 {
    font-size: 36px;
  }
  .transparent-box {
    max-width: 600px;
  }
  .learn-more-btn {
    padding: 12px 24px;
  }
}

/* Medium screens (tablets in portrait mode) */
@media (max-width: 992px) {
  .hero-content {
    max-width: 700px;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .transparent-box {
    max-width: 550px;
  }
  .nav-links {
    gap: 30px;
  }
}

/* Small screens (large phones) */
@media (max-width: 768px) {
  .hero-content {
    max-width: 600px;
    margin: 30px auto 0;
  }
  .hero-content h1 {
    font-size: 28px;
  }
  .transparent-box {
    max-width: 500px;
    padding: 20px;
  }
  .nav-links {
    gap: 20px;
    flex-wrap: wrap;
  }
  .services-section {
    flex-direction: column;
    padding: 30px;
  }
  .services-left, .services-right {
    max-width: 100%;
    margin: 10px 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
  }
  .services-left {
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  }
  .about-section {
    flex-direction: column;
  }
  .about-content, .about-image {
    max-width: 100%;
    margin: 10px 0;
  }
  #contact {
    flex-direction: column;
    padding: 20px;
  }
  .contact-info {
    max-width: 100%;
    margin: 0 0 20px;
  }
  #contact-form {
    max-width: 100%;
  }
}

/* Small screens (small phones) */
@media (max-width: 576px) {
  .hero-content {
    max-width: 500px;
  }
  .hero-content h1 {
    font-size: 24px;
  }
  .transparent-box {
    max-width: 400px;
    padding: 15px;
  }
  .learn-more-btn {
    padding: 10px 20px;
  }
}

/* Extra small screens (very small phones) */
@media (max-width: 480px) {
  .hero-content {
    max-width: 400px;
  }
  .hero-content h1 {
    font-size: 20px;
  }
  .transparent-box {
    max-width: 350px;
    padding: 10px;
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
  }
  .nav-links li a {
    font-size: 1rem;
  }
}
