body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
}

/* Base styles for header */
header {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 80px;
  width: auto;
  margin-right: 20px;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-right: 20px;
}

nav ul li a {
  text-decoration: none;
  color: white;
}

main {
  margin: 20px;
}

.intro-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 1200px; /* Adjust width as needed */
}

.intro-section h2 {
  color: #4CAF50;
  margin-bottom: 15px;
}

.intro-section p {
  color: #333;
  line-height: 1.6;
}

/* Specific styles for services section on the homepage */
.homepage-services {
  background-color: #ffffff;
  padding: 20px;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 1200px; /* Adjust width as needed */
}

.homepage-services h2 {
  color: #4CAF50;
  text-align: center;
  margin-bottom: 30px;
}

.homepage-services .service {
  margin-bottom: 20px;
  padding: 10px;
}

.homepage-services .service h3 {
  color: #333;
  margin-bottom: 10px;
}

.homepage-services .service p {
  color: #333;
  line-height: 1.6;
}

/* Logo styling */
.logo {
  height: 100px; /* Adjust the height as needed */
  width: auto; /* This will maintain the aspect ratio of the logo */
  display: block;
  margin: 0 auto; /* Centers the logo */
}

.contact-section {
  background-color: #ffffff;
  padding: 20px;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 1200px; /* Adjust width as needed */
}

.contact-section h2, .contact-section h3 {
  color: #4CAF50;
}

.contact-section p {
  color: #333;
  line-height: 1.6;
}

form {
  display: grid;
  grid-gap: 10px;
  margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button[type="submit"] {
  background-color: #4CAF50;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #45a049;
}

.contact-info {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-item {
  flex: 1;
  min-width: 200px; /* Minimum width for each item */
  margin: 10px;
}

.contact-item h3 {
  color: #4CAF50;
  margin-bottom: 5px;
}

.contact-item p {
  color: #333;
  line-height: 1.6;
}

/* General styles for the services section */
.our-services {
  background-color: #ffffff;
  padding: 20px;
  margin: 20px auto; /* Centering the section */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 1200px; /* Adjust width as needed */
}

.our-services h2 {
  color: #4CAF50;
  text-align: center;
  margin-bottom: 30px;
}

/* Styles for each service */
.service {
  margin-bottom: 20px;
  padding: 10px;
  border-left: 4px solid #4CAF50; /* Adds a left border for emphasis */
}

.service h3 {
  color: #333;
  margin-bottom: 10px;
}

.service p {
  color: #333;
  line-height: 1.6;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1em 0;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* Styling for email and telephone links */
a[href^="mailto:"], a[href^="tel:"] {
  color: #333; /* Change to your preferred color */
  text-decoration: none; /* Removes the underline */
}

/* Optional: Add a hover effect */
a[href^="mailto:"]:hover, a[href^="tel:"]:hover {
  text-decoration: underline; /* Adds underline on hover */
  color: #4CAF50; /* Change to your preferred hover color */
}


/* Responsive adjustments */
@media (max-width: 600px) {
  .logo {
    height: 60px;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul li {
    margin-top: 10px;
  }

  .our-services {
    margin: 20px 10px; /* Smaller side margins on mobile */
    padding: 10px;
  }

  .service {
    padding: 5px;
  }

  .homepage-services {
    margin: 20px 10px;
    padding: 10px;
  }

  /* Optional: Hide longer text in the header */
  .header-long-text {
    display: none;
  }
}
