/* Hero Section */
.hero-section {
  background-color: var(--primary-yellow);
  padding: 80px 0;
  position: relative;
  overflow: hidden; /* For absolute positioned image */
}
.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* To contain pseudo-element for background shape */
  z-index: 1; /* Ensure content is above background shape */
}
.hero-text {
  max-width: 55%;
}
.hero-text h1 {
  font-size: 3.4em; /* Larger heading */
  margin-bottom: 20px;
  color: var(--dark-gray);
}
.hero-text p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
  color: var(--dark-gray);
}
.hero-image-placeholder {
  width: 40%;
  height: 450px;
}

/* Why Choose Us Section */
.why-choose-us-section {
  padding: 80px 0;
  text-align: center;
  scroll-margin-top: 132px;
}
.why-choose-us-section h2 {
  margin-bottom: 60px;
}
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.why-choose-item {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--card-border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.why-choose-item .icon-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-yellow);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.8em;
  border: 2px solid rgba(0, 0, 0, 0.1); /* Subtle border */
}
.why-choose-item h4 {
  margin-bottom: 10px;
  color: var(--dark-gray);
}
.why-choose-item p {
  font-size: 0.95em;
  color: var(--light-gray-text);
}

/* Dedicated Trusted Section */
.dedicated-trusted-section {
  background-color: var(--primary-yellow);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.dedicated-trusted-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1; /* Ensure content is above background shape */
}
.dedicated-trusted-image-placeholder {
  width: 50%;
  height: 400px;
  background-color: var(--dark-gray);
  border-radius: var(--card-border-radius);
  position: relative;
  left: 20px; /* Overlap left edge */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}
.dedicated-trusted-text {
  max-width: 45%;
  color: var(--dark-gray);
}
.dedicated-trusted-text h2 {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--dark-gray);
}
.dedicated-trusted-text p {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--dark-gray);
}

/* Home Repair Services Section */
.home-repair-services-section {
  padding: 80px 0;
  text-align: center;
}
.home-repair-services-section h2 {
  margin-bottom: 60px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: left;
}
.service-item {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--card-border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.service-item .service-icon-placeholder {
  width: 60px;
  height: 60px;
  background-color: var(--primary-yellow);
  border-radius: 50%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.8em;
}
.service-item h4 {
  margin-bottom: 10px;
}

/* Our Services Section (Yellow Background) */
.our-services-yellow-section {
  background-color: var(--primary-yellow);
  padding: 80px 0;
  text-align: center;
  scroll-margin-top: 132px;
}
.our-services-yellow-section h2 {
  margin-bottom: 60px;
}
.our-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: left;
}
.our-services-item {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--card-border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.our-services-item .img-placeholder {
  width: 100%;
  height: 200px;
  background-color: var(--image-bg);
  border-radius: var(--card-border-radius);
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}
.our-services-item h4 {
  margin-bottom: 10px;
  color: var(--dark-gray);
}
.our-services-item p {
  font-size: 0.95em;
  color: var(--light-gray-text);
}
.our-services-item .read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-yellow);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  transition: color 0.3s ease;
}
.our-services-item .read-more:hover {
  color: var(--dark-gray);
}

/* Home Repair Section 2 (Image on Right) */
/* Home Repair Section 2 (Image on Right) */
.home-repair-section-2 {
  padding: 80px 0;
}
.home-repair-2-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.home-repair-2-text {
  flex: 1;
}
.home-repair-2-text h2 {
  margin-bottom: 20px;
}
.home-repair-2-image-placeholder {
  width: 50%; /* Adjusted from initial to align better */
  height: 450px;
  background-color: var(--dark-gray);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

/* Send Us A Message Section */
.send-message-section {
  padding: 80px 0;
  background-color: var(--white);
}
.send-message-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.message-image-placeholder {
  height: 400px;
  background-color: var(--dark-gray);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

/* Professional Services Section */
.professional-services-section {
  background-color: var(--section-bg-dark);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.professional-services-section h2 {
  color: var(--white);
  margin-bottom: 60px;
}
.professional-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: left;
}
.professional-service-item {
  background-color: var(--dark-gray);
  padding: 30px;
  border-radius: var(--card-border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--white);
}
.professional-service-item .img-placeholder {
  width: 100%;
  height: 200px;
  background-color: var(--image-bg-dark);
  border-radius: var(--card-border-radius);
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

.image-item .image-placeholder {
  background-color: var(--primary-yellow);
  padding: 30px;
  border-radius: var(--card-border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--white);
}

.image-item-white .image-placeholder {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--card-border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--white);
}

.professional-service-item h4 {
  color: var(--white);
  margin-bottom: 10px;
}
.professional-service-item p {
  color: #ccc; /* Lighter text for dark background */
}
.professional-service-item .learn-more-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-yellow);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  transition: color 0.3s ease;
}
.professional-service-item .learn-more-link:hover {
  color: var(--white);
}

/* Need Your Home Service Section */
.need-home-service-section {
  padding: 80px 0;
  scroll-margin-top: 132px;
}
.need-home-service-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.need-home-service-text {
  flex: 1;
}
.need-home-service-text h2 {
  margin-bottom: 20px;
}
.need-home-service-list {
  list-style: none;
  margin-bottom: 30px;
}
.need-home-service-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--light-gray-text);
}
.need-home-service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background-color: var(--primary-yellow); /* Placeholder for checkmark icon */
  -webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>')
    no-repeat 50% 50%;
  mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>')
    no-repeat 50% 50%;
  background-size: contain;
}
.need-home-service-image-placeholder {
  width: 50%;
  height: 400px;
  background-color: var(--dark-gray);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}
/* Responsive Adjustments */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8em;
  }
  h2 {
    font-size: 2em;
  }

  .dedicated-trusted-text h2 {
    font-size: 2em;
  }

  .logo-placeholder {
    margin-right: auto; /* Push hamburger to the right */
  }

  .hero-content,
  .dedicated-trusted-content,
  .home-repair-2-content,
  .need-home-service-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text,
  .dedicated-trusted-text,
  .home-repair-2-text,
  .need-home-service-text {
    max-width: 100%;
    margin-bottom: 0px;
    margin-top: 30px;
  }
  .hero-image-placeholder,
  .dedicated-trusted-image-placeholder,
  .home-repair-2-image-placeholder,
  .need-home-service-image-placeholder {
    width: 80%;
    height: 350px;
    position: static; /* Remove absolute positioning */
    margin: 0 auto;
  }

  .why-choose-grid,
  .service-grid,
  .our-services-grid,
  .send-message-grid,
  .professional-services-grid,
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2em;
  }
  h2 {
    font-size: 1.8em;
  }

  .hero-section {
    padding: 60px 0;
  }
  .hero-text h1 {
    font-size: 2.5em;
  }

  .dedicated-trusted-text h2 {
    font-size: 1.8em;
  }

  .why-choose-grid,
  .service-grid,
  .our-services-grid,
  .send-message-grid,
  .professional-services-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .hero-image-placeholder,
  .dedicated-trusted-image-placeholder,
  .home-repair-2-image-placeholder,
  .need-home-service-image-placeholder {
    height: 300px;
    width: 95%; /* Make them almost full width */
  }

  .why-choose-us-section,
  .dedicated-trusted-section,
  .home-repair-services-section,
  .our-services-yellow-section,
  .home-repair-section-2,
  .send-message-section,
  .professional-services-section,
  .need-home-service-section,
  .main-footer {
    padding: 50px 0;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
  .social-icons {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  h1 {
    font-size: 1.8em;
  }
  h2 {
    font-size: 1.5em;
  }

  .dedicated-trusted-text h2 {
    font-size: 1.5em;
  }

  .hero-text h1 {
    font-size: 2em;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .logo-placeholder {
    width: 150px;
    height: 35px;
  }
}

.tech-professional-image {
  background: url("/assets/images/computer_repair.jpg") no-repeat center center;
  background-size: cover;
  background-color: #fff;
}

.tech-support-image {
  background: url("/assets/images/tech_support.jpg") no-repeat center center;
  background-size: cover;
  background-color: #fff;
}

.hardware-upgrade-image {
  background: url("/assets/images/hardware_upgrade.jpg") no-repeat center center;
  background-size: cover;
}

.remote-support-image {
  background: url("/assets/images/remote_support.jpg") no-repeat center center;
  background-size: cover;
}

.cloud-backup-image {
  background: url("/assets/images/cloud_backup.jpg") no-repeat center center;
  background-size: cover;
}

.tech-consultation-image {
  background: url("/assets/images/tech_consultation.jpg") no-repeat center
    center;
  background-size: cover;
  background-color: var(--primary-yellow);
}

.cybersecurity-image {
  background: url("/assets/images/cyber_security.jpg") no-repeat center center;
  background-size: cover;
}

.server-management-image {
  background: url("/assets/images/server_management.jpg") no-repeat center
    center;
  background-size: cover;
}

.it-consulting-image {
  background: url("/assets/images/it_consulting.jpg") no-repeat center center;
  background-size: cover;
}

.tech-services-image {
  background: url("/assets/images/tech_services.jpg") no-repeat center center;
  background-size: cover;
  background-color: var(--primary-yellow);
}

.data-recovery-image {
  background: url("/assets/images/data_recovery.jpg") no-repeat center center;
  background-size: cover;
}

.gaming-repair-image {
  background: url("/assets/images/gaming_repair.jpg") no-repeat;
  background-size: cover;
}

.home-repair {
  width: 50%;
  height: 450px;
  background-color: var(--dark-gray);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

.home-services {
  width: 50%;
  height: 400px;
  background-color: var(--dark-gray);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

.dedicated-image {
  width: 50%;
  height: 400px;
  background-color: var(--dark-gray);
  border-radius: var(--card-border-radius);
  position: relative;
  left: 20px; /* Overlap left edge */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

.hero-image {
  width: 40%;
  height: 450px; /* Adjust height based on visual */
  background-color: var(--white); /* Placeholder for man in hard hat */
  border-radius: var(--card-border-radius);
  position: relative;
  right: 20px; /* Overlap with right edge */
  overflow: hidden;
  display: flex; /* For centering text */
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

/* Send Us A Message Section - Custom Rules */
.send-message-section {
  padding: 80px 0;
  background-color: var(--white);
}

.send-message-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.send-message-content-block {
  display: flex; /* Make content block a flex container */
  flex-direction: column; /* Stack image and text vertically */
  background-color: var(--white);
  border-radius: var(--card-border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* Ensure image border-radius is respected */
}

.message-image-placeholder {
  height: 250px; /* Adjusted height for consistency and to allow space for text */
  width: 100%; /* Ensure image placeholder takes full width of its container */
  background-color: var(--dark-gray); /* Placeholder background */
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0; /* Rounded top corners */
  overflow: hidden; /* For image within */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  /* Specific image backgrounds are defined later in the main CSS */
}

.send-message-text {
  padding: 30px; /* Padding around text content */
  text-align: left; /* Align text to the left */
}

.send-message-text h3 {
  margin-bottom: 10px;
  color: var(--dark-gray);
}

.send-message-text p {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--light-gray-text);
}

/* Cross-Platform & Device Support Section - New Rules */
.os-device-support-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(
    --border-light-gray
  ); /* Light background for contrast */
}

.os-device-support-section h2 {
  margin-bottom: 60px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.support-item {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--card-border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.support-item .fa-icon {
  font-size: 3.5em; /* Larger icons */
  color: var(--primary-yellow); /* Yellow color for icons */
  margin-bottom: 20px;
}

.support-item h4 {
  margin-bottom: 10px;
  color: var(--dark-gray);
}

.support-item p {
  font-size: 0.9em;
  color: var(--light-gray-text);
}

/* Responsive Adjustments for new sections */
@media (max-width: 992px) {
  .send-message-grid,
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .message-image-placeholder {
    height: 200px; /* Adjust image height for tablets */
  }
}

@media (max-width: 768px) {
  .send-message-grid,
  .support-grid {
    grid-template-columns: 1fr; /* Stack columns on smaller screens */
  }

  .send-message-section,
  .os-device-support-section {
    padding: 50px 0;
  }

  .message-image-placeholder {
    height: 180px; /* Further adjust image height for mobile */
  }
}

@media (max-width: 480px) {
  .send-message-text {
    padding: 20px;
  }
  .send-message-text h3 {
    font-size: 1.5em;
  }
  .send-message-text p {
    font-size: 0.85em;
  }

  .support-item .fa-icon {
    font-size: 3em;
  }
  .support-item h4 {
    font-size: 1.2em;
  }
}

.quote-button-inline {
  margin-bottom: 30px;
}

.read-more {
  display: none !important;
}
