/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f7fc;
  color: #333;
  line-height: 1.6;
}

/* Container */
.quantity-takeoff-services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

/* Header Section */
.quantity-takeoff-services-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

/* Text Section */
.quantity-takeoff-services-text {
  flex: 1 1 60%;
  padding-right: 30px;
}

.quantity-takeoff-services-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: #001b7e;
  text-align: left;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quantity-takeoff-services-description {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.8;
}

/* Image Section */
.quantity-takeoff-services-image {
  flex: 1 1 35%;
  display: flex;
  justify-content: flex-end;
}

.quantity-takeoff-services-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Why Choose Section */
.why-choose {
  margin-bottom: 40px;
}

.why-choose-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: #001d87;
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.why-choose-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.why-choose-item {
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.why-choose-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.why-choose-item-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #002ed6;
  margin-bottom: 15px;
}

.why-choose-item-description {
  font-size: 1.1rem;
  color: #555;
}

/* Service List Section */
.services-list-title {
  font-size: 2rem;
  font-weight: 600;
  color: #001d86;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.services-list-items {
  list-style: none;
  padding: 0;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.services-list-item {
  font-size: 1.2rem;
  color: #555;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.services-list-item:hover {
  background-color: #2e5bff;
  color: #fff;
  transform: translateY(-5px);
}

/* Contact Section */
.contact-section {
  text-align: center;
  margin-top: 40px;
}

.contact-info {
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .quantity-takeoff-services-title {
    font-size: 2.5rem;
  }

  .quantity-takeoff-services-description {
    font-size: 1rem;
  }

  .why-choose-title {
    font-size: 2rem;
  }

  .why-choose-item-title {
    font-size: 1.4rem;
  }

  .services-list-title {
    font-size: 1.8rem;
  }

  .services-list-item {
    font-size: 1rem;
  }

  .contact-info {
    font-size: 1rem;
  }

  /* Stack Image Below Content on Smaller Screens */
  .quantity-takeoff-services-header {
    flex-direction: column;
    align-items: center;
  }

  .quantity-takeoff-services-image {
    margin-top: 20px;
  }
}

@media screen and (max-width: 768px) {

  .services-list-title {
    font-size: 25px;
  }  

  .quantity-takeoff-services-title {
    font-size: 1.5rem;
  }

  .services-list-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-choose-title {
    font-size: 1.5rem;
  }

  .why-choose-item-title {
    font-size: 1.3rem;
  }

  .services-list-item {
    font-size: 0.8rem;
  }
}
/* Title Styles - Responsively Adjust Font Sizes */
.clients-quantity-takeoff-title {
  font-size: clamp(1.25rem, 5vw, 2rem); /* Dynamically adjust based on viewport */
  font-weight: 700;
  color: #343a40; /* Dark text */
}

.quantity-takeoff-outsource-title,
.quantity-takeoff-start-title {
  font-size: clamp(1.5rem, 4vw, 2rem); /* Dynamically adjust based on viewport */
  font-weight: 700;
  color: #343a40; /* Dark text */
}

h2, h3 {
  font-weight: 600;
}

h2.client-title {
  font-size: clamp(1.25rem, 4vw, 1.7rem); /* Adjust card title sizes */
}

/* Description Text */
.clients-quantity-takeoff-description,
.quantity-takeoff-outsource-description,
.quantity-takeoff-start-description,
.card-text {
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: #6c757d; /* Muted text color */
}
.quantity-takeoff-outsource-description {
    margin-top: 20px;
}

/* Card Design */
.card {
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease-in-out; /* Smooth transition */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Light shadow */
}

.card:hover {
  transform: translateY(-10px); /* Elevate on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
}

.card-body {
  padding: 2rem; /* Extra padding for better spacing */
}

/* Card Titles */
.card-title {
  font-size: clamp(1.125rem, 4vw, 1.5rem); /* Adjust title font size */
  font-weight: 700;
  color: #007bff; /* Primary blue for headings */
  margin-bottom: 1rem; /* Space below title */
}

/* Spacing & Alignment */
.clients-quantity-takeoff-clients {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.outsourcing-advantages h3 {
  font-size: clamp(1.1rem, 3vw, 1.5rem); /* Responsive title font for list items */
  font-weight: 700;
}

.outsourcing-advantage-description {
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  color: #6c757d;
  margin-bottom: 1rem;
}

.outsourcing-advantage-item {
  margin-bottom: 1.5rem; /* Space between items */
}

/* Links & Interactions */
a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* Footer / Get Started Section */
.quantity-takeoff-start-description {
  font-size: 1.1rem;
  color: #495057;
  margin-bottom: 1.5rem;
}

/* Media Queries for further customization */
@media (max-width: 767px) {
  /* On small devices like phones */
  .clients-quantity-takeoff-title {
    font-size: 1.5rem; /* Adjust for smaller devices */
  }

  .quantity-takeoff-outsource-title,
  .quantity-takeoff-start-title {
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 1.25rem; /* Smaller title on mobile */
  }

  .card-body {
    padding: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Medium Devices like Tablets */
  .clients-quantity-takeoff-title {
    font-size: 2rem;
  }

  .quantity-takeoff-outsource-title,
  .quantity-takeoff-start-title {
    font-size: 2.25rem;
  }
}
/* Centering the Get a Quote Button */
.get-quote-container {
  display: flex;
  justify-content: center; /* Aligns the button horizontally */
  align-items: center; /* Aligns the button vertically */
  margin-top: 2rem; /* Adds spacing above the button */
}

.get-quote-btn {
  display: inline-block;
  padding: 0.75rem 2rem; /* Padding for comfortable size */
  font-size: clamp(1rem, 3vw, 1.25rem); /* Responsive font size */
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  background-color: #007bff; /* Primary blue color */
  color: #ffffff; /* White text */
  border-radius: 50px; /* Rounded corners */
  border: 2px solid #007bff; /* Border matching the background color */
  transition: all 0.3s ease-in-out; /* Smooth transition for hover */
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); /* Subtle shadow */
}

.get-quote-btn:hover {
  background-color: #00172fe8; /* Darker blue on hover */
  border-color: #0056b3; /* Darker border */
  transform: translateY(-5px); /* Slight lift effect */
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4); /* Enhanced shadow */
  color: white;
  text-decoration: none;
}

.get-quote-btn:active {
  background-color: #004085; /* Even darker shade on click */
  transform: translateY(0); /* Reset lift effect */
}

.get-quote-btn:focus {
  outline: none; /* Remove outline on focus */
}

@media (max-width: 767px) {
  .get-quote-btn {
    width: 100%; /* Full width on mobile for better accessibility */
    font-size: 1.1rem; /* Slightly smaller font on mobile */
  }
}
