body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* left-aligns the ul inside the nav */
  max-width: 1000px;
  margin: 0 auto; /* centers the nav */
  padding: 10px; /* space around the nav items, adjust as needed */
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  display: inline;
  margin-right: 20px;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffa500;
}

section::before {
  content: "";
  display: block;
  height: 100px; /* Adjust this value based on your specific needs */
  margin: -100px 0 0; /* Negative value of the height */
  visibility: hidden;
}

section {
  padding: 20px;
  margin: 20px auto;
  max-width: 1000px;
  background-color: #ffffff;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
}

h1,
h2 {
  color: #333;
}

blockquote {
  border-left: 4px solid #ffa500;
  padding-left: 10px;
  font-style: italic;
  margin: 10px 0;
}

form {
  margin-top: 10px;
}

label,
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  display: block;
}

input[type="submit"] {
  background-color: #333;
  color: #fff;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

input[type="submit"]:hover {
  background-color: #ffa500;
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  position: relative;
  bottom: 0;
  width: 100%;
}

.services-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-row {
  display: grid;
  gap: 20px;
  width: 90%;
  margin: 0 auto 30px auto; /* Added 30px margin to the bottom to separate the rows */
  grid-template-columns: repeat(
    3,
    calc(33.33% - 20px)
  ); /* Adjusting column size and considering the gap */
}

.service-card {
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 5px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.service-card img {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  padding: 1px;
}

/* Contact Section Styles */
#contact {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact h2 {
  margin-bottom: 20px;
  text-align: center; /* Center the heading */
  font-size: 2rem;
  color: #333;
}

#contact p {
  margin-bottom: 30px;
  text-align: center; /* Center the paragraph */
  font-size: 1.1rem;
}

#contact form {
  box-sizing: border-box;
  width: 100%; /* Make form span across the section */
  padding: 0 30px;
}

#contact label {
  display: block; /* Make labels take the full width */
  margin-bottom: 8px; /* Space between the label and its input field */
  font-weight: bold; /* Make label text bold */
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
  width: calc(100% - 20px); /* Adjust width accounting for padding */
  padding: 10px; /* Add padding for comfort */
  margin-bottom: 20px; /* Space out the fields */
  border: 1px solid #ccc; /* Light border */
  border-radius: 5px; /* Rounded corners */
  font-size: 1rem; /* Text size inside the input */
}

#contact textarea {
  resize: vertical; /* Allow vertical resizing only */
}

#contact input[type="submit"] {
  padding: 10px 20px; /* Button padding */
  background-color: #333; /* Button color */
  color: #fff; /* Text color on button */
  border: none; /* Remove border */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Hand cursor on hover */
  transition: background-color 0.3s; /* Transition effect */
}

#contact input[type="submit"]:hover {
  background-color: #555; /* Darken button on hover */
}

.property-services-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.property-service-card {
  display: flex;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 20px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  width: 90%; /* Adjust to suit your design */
  margin: 0 auto 30px auto; /* This is shorthand for top, right, bottom, left margins */
  border-radius: 10px; /* Keeping consistent with your original design */
  align-items: center; /* Added this line to vertically center the content */
}

.property-service-card:hover {
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.2);
}

.property-service-image {
  flex-basis: 25%;
  padding-right: 15px;
}

.property-service-text {
  flex-basis: 75%;
}

.property-service-card img {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  padding: 1px;
  display: block; /* To ensure the image is centered in its container */
}

.property-service-text h3 {
  margin-top: 0;
  font-size: 1.2rem; /* Keeping consistent with your original design */
  margin-bottom: 5px;
}
/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  /* Navigation Menu */
  nav ul {
    display: none; /* Initially hide the menu */
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  nav li {
    display: block;
    margin: 10px 0;
  }

  /* Menu Toggle - just for visual, requires JS for functionality */
  nav::before {
    content: "☰"; /* Unicode for a simple hamburger menu */
    font-size: 1.5rem;
    margin-right: 10px;
    cursor: pointer;
    display: block;
  }

  /* Services Section */
  .service-row {
    grid-template-columns: 1fr; /* One column layout */
  }

  .service-card img {
    width: 100%;
    height: auto;
  }

  .property-service-card {
    flex-direction: column; /* Stack image and text vertically */
    align-items: center;
  }

  .property-service-image,
  .property-service-text {
    flex-basis: 100%;
    padding: 0;
    margin-bottom: 10px;
  }

  .property-service-image {
    display: flex;
    justify-content: center;
  }

  /* Adjust input fields and buttons to be more mobile-friendly */
  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%; /* Full width on mobile */
    box-sizing: border-box; /* Include padding and border in total width */
  }
}
