/*services section styiling start*/

#servicesContent {
  width: 100%;
  height: auto;
  min-height: 650px;
  margin: auto;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 10px;
  background-image: url(../images/service-content-background.png);
  background-size:contain;
  background-position: bottom;
  background-repeat: no-repeat;
}

.serviceCategoriesImages {
  width: 100%;
  height: 175px;
  margin: auto;
  object-fit: cover;
}

.servicesCategories {
  flex-direction: column;
  align-items: center;
  width: 30%;
  max-width: 400px;
  height: auto;
  min-height: 600px;
  text-align: left;
  display: inline-block;
  vertical-align: top;
  margin: 0 1%;
  font-size: 1.25rem;
  border: solid 3px #b30000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transform: scale(.99);
  transition: ease-in-out 0.1s;
  background-color: #ffffff;
  overflow: hidden;
}

.servicesCategories:hover {
  background: #700000;
  background: -webkit-linear-gradient(0deg, rgba(112, 0, 0, 1) 10%, rgba(202, 0, 0, 1) 52%);
  background: -moz-linear-gradient(0deg, rgba(112, 0, 0, 1) 10%, rgba(202, 0, 0, 1) 52%);
  background: linear-gradient(0deg, rgba(112, 0, 0, 1) 10%, rgba(202, 0, 0, 1) 52%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#700000", endColorstr="#CA0000", GradientType=0);
  transform: scale(1);
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}


.servicesCategories h2 {
  width: 100%;
  padding-left: 10px;
  font-size: 2rem;
  color: #ffffff;
  background-color: #b30000;
  margin: 0 0 10px 0;
  transition: ease-in-out 0.2s;
}

.servicesCategories:hover h2 {
  background-color: #ffffff;
  color: #b30000;
}

/*services section end*/


.contact {
  padding-top: 40px;
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center; /* keeps entire block centered on the page */
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 250px; /* or whatever width suits your layout */
  justify-content: flex-start; /* ensures items line up from the left edge */
}

.contact-item img {
    width: 35px;
    height: 35px;
    vertical-align: middle;
}

.contact-item a {
    text-decoration: none;
    font-size: clamp(18px, 2.5vw, 18px);
    color: #000;
    vertical-align: middle;
}


#contactUsHolder {
    width: 100%;
    margin: auto;
    height: auto;
    text-align: center;
}

@media (max-width: 1100px) {

  #servicesContent {
    background-image: none;
  }

    .servicesCategories {
    display: block;
    width: 97%;
    height: auto;
    min-height: auto;
    max-height: auto;
    border-radius: 5px;
  }
  .servicesCategories h2 {
    text-align: center;
  }
}

/* === BEGIN: Services Slider Overrides (non-destructive, appended) === */
/* Base: do not change desktop layout */
#servicesContent.slider-enabled { position: relative; }

/* Nav buttons default hidden; shown on mobile */
.svc-nav-wrapper { display: none; }

/* Desktop: keep your original 3-column styling intact.
   Track stays block so your .servicesCategories keep their existing widths/flow. */
.svc-viewport { overflow: visible; }
.svc-track { display: block; }

/* Mobile-only slider layout */
@media (max-width: 1100px) {
  #servicesContent.slider-enabled .svc-viewport { overflow: hidden; width: 100%; }
  #servicesContent.slider-enabled .svc-track { display: flex; will-change: transform; touch-action: pan-y; }
  #servicesContent.slider-enabled .svc-slide { flex: 0 0 100%; min-width: 100%; }

  /* Bottom-right nav */
  #servicesContent.slider-enabled .svc-nav-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
  }

  #servicesContent.slider-enabled .svc-btn {
    appearance: none;
    background: #fff;
    border: 2px solid #b30000;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }
  #servicesContent.slider-enabled .svc-btn:disabled { opacity: 0.5; cursor: default; }
}

/* === END: Services Slider Overrides === */


/* === BEGIN: Services Slider Fixes (mobile width & margins) === */
@media (max-width: 1100px) {
  /* Ensure slides never exceed viewport width due to legacy margins/inline-block */
  #servicesContent.slider-enabled .servicesCategories {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  #servicesContent.slider-enabled .svc-viewport {
    padding: 0 !important;
  }
  #servicesContent.slider-enabled .svc-track {
    gap: 0 !important;
  }
  #servicesContent.slider-enabled img {
    max-width: 100%;
    height: auto;
    max-height: 250px; /*limit image height for mobile*/
    object-fit: cover; /* maintain aspect ratio */
  }
}
/* === END: Services Slider Fixes === */


/* === BEGIN: Services Slider Button Icons === */
@media (max-width: 1100px) {
  #servicesContent.slider-enabled .svc-nav-wrapper {
    margin-right: 10px; /* space from right edge */
  }
  #servicesContent.slider-enabled .svc-prev,
  #servicesContent.slider-enabled .svc-next {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0; /* hide text */
    cursor: pointer;
  }
  #servicesContent.slider-enabled .svc-prev {
    background-image: url('../icons/services-left-nav.png');
  }
  #servicesContent.slider-enabled .svc-next {
    background-image: url('../icons/services-right-nav.png');
  }
}
/* === END: Services Slider Button Icons === */
