/* Hero Section */
.hero-section {
  background-color: var(--primary-purple);
  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(--white);
}
.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-purple);
  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-purple);
  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-purple);
  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(--white);
  padding: 80px 0;
  text-align: center;
  scroll-margin-top: 132px;
}
.our-services-yellow-section h2 {
  margin-bottom: 60px;
  color: var(--primary-purple);
}
.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(--primary-purple);
}
.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-purple);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}
.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;
}
.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-purple);
  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-purple);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}
.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;
  color: var(--primary-purple);
}
.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-purple); /* 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 {
  }
}

.site-brand-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Montserrat", sans-serif;
  font-size: 1.2em;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  pointer-events: none; /* prevents accidental clicks */
}

.site-brand-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

/* Desktop brand name (inside logo-container) */
.desktop-text {
  margin-left: 10px;
  font-size: 1.2em;
  display: inline-block;
}

/* Mobile-centered brand name */
.mobile-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2em;
  pointer-events: none;
  display: none;
}

/* Mobile-specific overrides */
@media (max-width: 768px) {
  .desktop-text {
    display: none;
  }

  .mobile-text {
    display: block;
  }
}

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

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

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

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

.in-home-care-image {
  background: url("/assets/images/inhome_care.jpg") no-repeat center center;
  background-size: cover;
  background-position: center 65%;
}

.luxury-image {
  background: url("/assets/images/luxury.jpg") no-repeat center center;
  background-size: cover;
  background-color: var(--primary-purple);
  background-position: center 30%;
}

.best-pet-image {
  background: url("/assets/images/best-pet.jpg") no-repeat center center;
  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(--primary-teal);
}

.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(--primary-teal);
}

.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(--primary-purple); /* Light background for contrast */
}

.os-device-support-section h2 {
  margin-bottom: 60px;
  color: var(--white);
}

.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-purple); /* Yellow color for icons */
  margin-bottom: 20px;
}

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

.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;
}

/* ========================================= */
/* SPLIT LAYOUT CIRCLES — DESKTOP + MOBILE  */
/* ========================================= */

.split-layout {
  display: flex;
  flex-direction: row;
  height: calc(100vh - var(--header-height));
  width: 100%;
  background: url("/assets/images/background.jpg") no-repeat center center;
  background-size: cover;
}

.circle-container {
  width: 50%;
  height: 100%;
  display: grid;
  place-items: center;
}

.circle {
  max-height: 75%;
  min-width: 50%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  font-size: clamp(1rem, 5vw, 3rem);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
}

.circle:hover {
  transform: scale(1.05);
}

/* Mobile layout: stack rows, 50% height each */
@media (max-width: 768px) {
  .split-layout {
    flex-direction: column;
  }

  .circle-container {
    width: 100%;
    height: 50%;
    padding: 8px;
  }

  .circle {
    height: 100%;
    width: auto !important;
    min-width: auto !important;
    max-width: auto !important;
  }
}

/* ==================== */
/* RESPONSIVE QUERIES   */
/* ==================== */

@media (max-width: 992px) {
  .main-header .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    padding: 40px 0;
  }

  .main-header .nav-menu.active {
    display: flex;
  }

  .main-header .quote-button {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }
}

@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 1.5rem 1rem;
  }

  .circle {
    margin-bottom: 0rem;
  }
}

.default-text {
  color: var(--secondary-purple);
}
