/* =========================================================
   HPM FINAL POLISH  (load this file LAST on every public page)

   One place for the mobile / tablet / laptop refinements:
     1. Section spacing (smaller, consistent gaps on every screen)
     2. Header: bigger logo, smaller hamburger button
     3. Home hero arrows: smaller and centred on the banner
     4. About section: text first, images below, smaller "100+" box
     5. Floating mail / call buttons: smaller
     6. Home product cards: single card, image + title + button only
     7. Products page cards: full image (never cropped)

   Everything here is intentionally written with extra selector weight
   so it wins over the older HPM CSS files without editing them.
   ========================================================= */

:root {
  --hpm-section-gap: 72px;       /* laptop / desktop  (was 120px) */
  --hpm-section-gap-sm: 52px;    /* tablet            (was 80px)  */
  --hpm-section-gap-xs: 34px;    /* mobile            (was 60px)  */
}

/* =========================================================
   1. SECTION SPACING
   ========================================================= */
html body section.tmp-section-gap,
html body .tmp-section-gap {
  padding-top: var(--hpm-section-gap) !important;
  padding-bottom: var(--hpm-section-gap) !important;
}
html body section.tmp-section-gapTop,
html body .tmp-section-gapTop {
  padding-top: var(--hpm-section-gap) !important;
}
html body section.tmp-section-gapBottom,
html body .tmp-section-gapBottom {
  padding-bottom: var(--hpm-section-gap) !important;
}
html body section.tmp-section-gap2,
html body section.tmp-section-gap3 {
  padding-top: var(--hpm-section-gap) !important;
  padding-bottom: var(--hpm-section-gap) !important;
}
html body section.tmp-section-gap2Top,
html body section.tmp-section-gap3Top {
  padding-top: var(--hpm-section-gap) !important;
}
html body section.tmp-section-gap2Bottom,
html body section.tmp-section-gap3Bottom {
  padding-bottom: var(--hpm-section-gap) !important;
}

/* Sections that carry an extra utility padding (pb--150, pb--165, pb--60 ...) */
html body section.pb--150,
html body section.pb--165,
html body section.pb--120,
html body section.pb--100,
html body section.pb--60 {
  padding-bottom: var(--hpm-section-gap) !important;
}
/* About blocks have an award card that hangs below the images: keep a little room. */
html body section.tmp-about-area.pb--150,
html body section.tmp-about-area.pb--165 {
  padding-bottom: calc(var(--hpm-section-gap) + 28px) !important;
}

/* Spacing between a section title block and its content */
html body .section-inner.mt--80 { margin-top: 48px !important; }
html body .section-inner.mt--60 { margin-top: 40px !important; }
html body .section-inner.mt--40 { margin-top: 30px !important; }

/* The theme forces 60px on the home services block for tablet/mobile: use the same rhythm */
html body section.tmp-service-area.area-3 {
  padding-top: var(--hpm-section-gap) !important;
}

/* Home products + other custom blocks follow the same rhythm */
html body section.hpm-home-products {
  padding-top: var(--hpm-section-gap) !important;
  padding-bottom: var(--hpm-section-gap) !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  :root { --hpm-section-gap: var(--hpm-section-gap-sm); }
  html body .section-inner.mt--80,
  html body .section-inner.mt--60 { margin-top: 34px !important; }
}

@media (max-width: 767.98px) {
  :root { --hpm-section-gap: var(--hpm-section-gap-xs); }
  html body .section-inner.mt--80,
  html body .section-inner.mt--60,
  html body .section-inner.mt--40 { margin-top: 24px !important; }
  html body .mt_sm--30 { margin-top: 20px !important; }

  /* Section headings: a little smaller so they never dominate a phone screen */
  html body .section-title-area-3 .section-title,
  html body .section-title-area-4 .section-title {
    font-size: clamp(24px, 6.6vw, 30px) !important;
    line-height: 1.25 !important;
  }
  html body .section-title-area-3 .sub-title,
  html body .section-title-area-4 .sub-title {
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }
  html body .section-title-area-3,
  html body .section-title-area-4 { margin-bottom: 0 !important; }

  /* Buttons */
  html body .tmp-btn.btn-md { padding: 12px 20px !important; font-size: 14px !important; }
}

/* =========================================================
   2. HEADER  (logo bigger, hamburger smaller)
   ========================================================= */
@media (max-width: 1199.98px) {
  /* Logo: clearer and larger */
  html body header.header-one.header-seven .logo-area img,
  html body header.header-one.header-seven .logo img {
    width: auto !important;
    height: 58px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  /* Keep the header slim even with the bigger logo */
  html body header.header-one.header-seven .logo-area {
    display: flex !important;
    align-items: center !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 0 !important;
  }
  html body header.header-one.header-seven .logo-area a { display: block !important; line-height: 0 !important; }
  html body header.header-one.header-seven .header-mid-one-wrapper {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  /* Hamburger: compact square button */
  html body header.header-one.header-seven #menu-btn.menu-area {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 8px !important;
  }
  html body header.header-one.header-seven #menu-btn.menu-area .icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
  }
  html body header.header-one.header-seven #menu-btn.menu-area svg {
    width: 16px !important;
    height: 14px !important;
  }
}

@media (max-width: 575.98px) {
  html body header.header-one.header-seven .logo-area img,
  html body header.header-one.header-seven .logo img {
    height: 54px !important;
  }
}

@media (max-width: 374.98px) {
  html body header.header-one.header-seven .logo-area img,
  html body header.header-one.header-seven .logo img {
    height: 48px !important;
  }
}

/* =========================================================
   3. HOME HERO ARROWS
   Smaller, and always in the vertical middle of the banner.
   ========================================================= */
html body .tmp-banner-slider-area.banner-five .hpm-banner-nav {
  top: 50% !important;
  bottom: auto !important;
  width: 44px !important;
  height: 44px !important;
  transform: translateY(-50%) !important;
}
html body .tmp-banner-slider-area.banner-five .hpm-banner-nav i { font-size: 15px !important; }
html body .tmp-banner-slider-area.banner-five .hpm-banner-nav:hover,
html body .tmp-banner-slider-area.banner-five .hpm-banner-nav:focus-visible {
  transform: translateY(-50%) scale(1.06) !important;
}

@media (max-width: 991.98px) {
  html body .tmp-banner-slider-area.banner-five .hpm-banner-nav {
    width: 34px !important;
    height: 34px !important;
  }
  html body .tmp-banner-slider-area.banner-five .hpm-banner-nav i { font-size: 12px !important; }
  html body .tmp-banner-slider-area.banner-five .hpm-banner-prev { left: 10px !important; }
  html body .tmp-banner-slider-area.banner-five .hpm-banner-next { right: 10px !important; }
}

@media (max-width: 575.98px) {
  html body .tmp-banner-slider-area.banner-five .hpm-banner-nav {
    width: 26px !important;
    height: 26px !important;
    border-width: 1px !important;
    background: rgba(32, 43, 54, .72) !important;
  }
  html body .tmp-banner-slider-area.banner-five .hpm-banner-nav i { font-size: 10px !important; }
  html body .tmp-banner-slider-area.banner-five .hpm-banner-prev { left: 5px !important; }
  html body .tmp-banner-slider-area.banner-five .hpm-banner-next { right: 5px !important; }
}

/* Dots: small, centred at the bottom edge */
@media (max-width: 767.98px) {
  html body .tmp-banner-slider-area.banner-five .swiper-pagination {
    bottom: 6px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  html body .tmp-banner-slider-area.banner-five .swiper-pagination .swiper-pagination-bullet {
    width: 7px !important;
    height: 7px !important;
    margin: 0 3px !important;
  }
}

/* =========================================================
   4. ABOUT SECTION  (text first, images below, smaller 100+ box)
   ========================================================= */
@media (max-width: 991.98px) {
  /* The theme moves the image column ABOVE the text on phones/tablets.
     Put the content first and the pictures after it. */
  html body .tmp-about-area .order-change,
  html body .tmp-about-area .order-change-lg { order: 0 !important; }

  html body .tmp-about-area .row > .col-lg-6:first-child { margin-top: 0 !important; }

  html body .tmp-about-area .about-image-area3 {
    margin: 26px 0 0 !important;
    padding-bottom: 0;
  }
  html body section.tmp-about-area.pb--150,
  html body section.tmp-about-area.pb--165 {
    padding-bottom: var(--hpm-section-gap) !important;
  }
  html body .tmp-about-area .left-side-content .button-area-about {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }
}

@media (max-width: 991.98px) {
  html body .about-image-area3 .about-award-area { display: block !important; }
}

@media (max-width: 767.98px) {
  html body .tmp-about-area.area-3 .left-side-content .desc {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }
  html body .tmp-about-area .about-feature-list.mt--20 { margin-top: 14px !important; }
  html body .tmp-about-area .about-feature-list .single { margin-bottom: 10px !important; }
  html body .tmp-about-area .about-feature-list .single .icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    font-size: 11px !important;
  }
  html body .tmp-about-area .about-feature-list .single span {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  html body .tmp-about-area.area-3 .left-side-content .button-area-about {
    margin-top: 22px !important;
    gap: 14px !important;
  }
  html body .tmp-about-area .button-area-about .video-btn a {
    width: 44px !important;
    height: 44px !important;
    font-size: 14px !important;
  }

  /* Pictures: stacked, full width, neat radius */
  html body .about-image-area3 .main-image {
    gap: 12px !important;
    align-items: stretch !important;
  }
  html body .about-image-area3 .main-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    transform: none !important;
  }
  html body .about-image-area3 .floating-img { display: none !important; }
  html body .about-image-area3 [data-parallax] { transform: none !important; }

  /* "100+ Successful Project" card: roughly half the size it was */
  html body .about-image-area3 .counter-area {
    top: 10px !important;
    left: 10px !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
  }
  html body .about-image-area3 .counter-area .title-main {
    margin-bottom: 2px !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }
  html body .about-image-area3 .counter-area .disc {
    margin: 0 !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }

  /* "Best Quality Provider" star card: the theme hides it on phones, it is shown here
     as a compact card sitting on the bottom-left corner of the pictures. */
  html body .about-image-area3 .about-award-area {
    display: block !important;
    left: 10px !important;
    bottom: 10px !important;
    padding: 10px 14px !important;
    max-width: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18) !important;
  }
  html body .about-image-area3 .about-award-area .award-inner .star-rating-area {
    margin-bottom: 6px !important;
    padding: 2px 8px !important;
  }
  html body .about-image-area3 .about-award-area .award-inner .year {
    margin-bottom: 4px !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
  }
  html body .about-image-area3 .about-award-area .award-inner .title {
    font-size: 12px !important;
  }
}

/* =========================================================
   5. FLOATING MAIL / CALL BUTTONS
   ========================================================= */
html body .hpm-floating-contact-right,
html body .hpm-floating-contact-left { bottom: 28px !important; }
html body .hpm-floating-contact-right { right: 18px !important; }
html body .hpm-floating-contact-left { left: 18px !important; }

html body .hpm-floating-contact-right a,
html body .hpm-floating-contact-left a {
  flex-basis: 48px !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
}
html body .hpm-floating-contact-right i,
html body .hpm-floating-contact-left i { font-size: 20px !important; }

@media (max-width: 991.98px) {
  html body .hpm-floating-contact-right a,
  html body .hpm-floating-contact-left a {
    flex-basis: 42px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }
  html body .hpm-floating-contact-right i,
  html body .hpm-floating-contact-left i { font-size: 17px !important; }
}

@media (max-width: 575.98px) {
  html body .hpm-floating-contact-right,
  html body .hpm-floating-contact-left { bottom: 14px !important; }
  html body .hpm-floating-contact-right { right: 10px !important; }
  html body .hpm-floating-contact-left { left: 10px !important; }

  html body .hpm-floating-contact-right a,
  html body .hpm-floating-contact-left a {
    flex-basis: 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .22) !important;
  }
  html body .hpm-floating-contact-right i,
  html body .hpm-floating-contact-left i { font-size: 15px !important; }
}

/* =========================================================
   6. HOME PAGE PRODUCT CARDS
   Full picture (never cropped) + title + "View Details".
   One card per row on phones.
   ========================================================= */
html body .hpm-home-products .hpm-home-product-card__image {
  height: auto !important;
  aspect-ratio: 4 / 3;
  background: #f1f4f7;
}
html body .hpm-home-products .hpm-home-product-card__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 6px;
}

/* The description lives inside the "View Details" popup, on every screen size. */
html body .hpm-home-products .hpm-home-product-card__body p { display: none !important; }

/* The picture is a button now: reset the browser button look, keep the zoom cursor */
html body .hpm-home-products .hpm-home-product-card__image {
  display: block;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  position: relative;
}
html body .hpm-home-products .hpm-home-product-card__body {
  padding: 18px 20px 20px !important;
}
html body .hpm-home-products .hpm-home-product-card__category {
  display: block !important;
  margin: 0 0 6px !important;
  font-size: 11px !important;
  letter-spacing: .6px;
}
html body .hpm-home-products .hpm-home-product-card__body h3 {
  margin: 0 0 14px !important;
  font-size: clamp(16px, 1.25vw, 19px) !important;
  line-height: 1.35 !important;
}
html body .hpm-home-products .hpm-home-product-card__actions { margin-top: auto !important; }

/* Magnifier badge: tells the visitor the picture can be zoomed */
.hpm-zoom-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(21, 33, 48, .78);
  color: #fff;
  font-size: 13px;
  pointer-events: none;
  transition: background .2s ease, transform .2s ease;
}
button:hover > .hpm-zoom-badge { background: #ff5a00; transform: scale(1.08); }

@media (max-width: 767.98px) {
  html body .hpm-home-products .hpm-home-products__heading { margin-bottom: 24px !important; }
  html body .hpm-home-products .hpm-home-products__heading h2 {
    font-size: clamp(24px, 6.6vw, 30px) !important;
    margin-bottom: 8px !important;
  }
  html body .hpm-home-products .hpm-home-products__intro { font-size: 14px !important; line-height: 1.6 !important; }

  html body .hpm-home-products .hpm-home-products__grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  html body .hpm-home-products .hpm-home-product-card { height: auto !important; }
  /* Phone: the picture keeps its own proportions (no empty bands, no cropping) */
  html body .hpm-home-products .hpm-home-product-card__image {
    display: flex !important;
    align-items: center;
    justify-content: center;
    aspect-ratio: auto !important;
  }
  html body .hpm-home-products .hpm-home-product-card__image img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 320px !important;
    padding: 0 !important;
  }
  html body .hpm-home-products .hpm-home-product-card__body {
    padding: 14px 16px 16px !important;
  }
  html body .hpm-home-products .hpm-home-product-card__category { font-size: 10px !important; margin-bottom: 4px !important; }
  html body .hpm-home-products .hpm-home-product-card__body h3 {
    margin: 0 0 12px !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
  }
  .hpm-zoom-badge { width: 28px; height: 28px; right: 8px; bottom: 8px; font-size: 12px; }
  html body .hpm-home-products .hpm-home-product-card__details {
    min-height: 42px !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
  }
  html body .hpm-home-products .hpm-home-products__footer { margin-top: 24px !important; }
  html body .hpm-home-products .hpm-home-products__view-all { padding: 12px 22px !important; font-size: 13px !important; }
}

/* Tablet: three cards in one row (no lonely third card on a second row) */
@media (min-width: 768px) and (max-width: 991.98px) {
  html body .hpm-home-products .hpm-home-products__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  html body .hpm-home-products .hpm-home-product-card__body { padding: 14px 14px 16px !important; }
  html body .hpm-home-products .hpm-home-product-card__body h3 { font-size: 15px !important; }
  html body .hpm-home-products .hpm-home-product-card__details { padding: 9px 10px !important; font-size: 12px !important; }
}

/* Home "View Details" popup: show the picture in full (never cropped) */
html body .hpm-featured-modal__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* =========================================================
   7. PRODUCTS PAGE CARDS  (products.php)
   ========================================================= */
html body .hpm-product-card .hpm-product-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  padding: 8px !important;
  background: #f1f4f7 !important;
  cursor: zoom-in;
}
html body .hpm-product-card .hpm-product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Same simple card on every screen: category, name, View Details (no description). */
html body .hpm-product-card .hpm-product-body > p { display: none !important; }
html body .hpm-product-card .hpm-product-image { position: relative !important; border: 0; }
html body .hpm-product-card .hpm-product-body { padding: 18px 20px 20px !important; }
html body .hpm-product-card .hpm-product-body .hpm-category {
  display: block !important;
  font-size: 11px !important;
  letter-spacing: .6px;
  margin: 0 0 6px;
}
html body .hpm-product-card .hpm-product-body h3 {
  min-height: 0 !important;
  margin: 0 0 14px !important;
  font-size: clamp(16px, 1.25vw, 19px) !important;
  line-height: 1.35 !important;
}

@media (max-width: 767.98px) {
  html body .hpm-product-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  html body .hpm-product-card .hpm-product-image {
    aspect-ratio: auto !important;
    padding: 0 !important;
  }
  html body .hpm-product-card .hpm-product-image img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 320px !important;
  }
  html body .hpm-product-card .hpm-product-body { padding: 14px 16px 16px !important; }
  html body .hpm-product-card .hpm-product-body h3 { font-size: 17px !important; }
  html body .hpm-product-card .hpm-details-btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }
}

/* Floating buttons step aside while a product popup is open */
html body .hpm-featured-modal.is-open ~ .hpm-floating-contact-left,
html body .hpm-featured-modal.is-open ~ .hpm-floating-contact-right,
html body .hpm-featured-modal.is-open ~ .float-text,
html body .hpm-featured-modal.is-open ~ .scrollbar-v,
html body.hpm-modal-open .hpm-floating-contact-left,
html body.hpm-modal-open .hpm-floating-contact-right {
  display: none !important;
}

/* Custom About-page blocks and the contact info strip follow the same section rhythm */
html body section.hpm-why-section,
html body section.hpm-founder-message {
  padding-top: var(--hpm-section-gap) !important;
  padding-bottom: var(--hpm-section-gap) !important;
}
html body section.tmp-top-contact-area {
  padding-bottom: var(--hpm-section-gap) !important;
}


/* =========================================================
   8. SCROLL TO TOP  (assets/js/hpm-scroll-top.js, every page)
   The theme's vertical "Scroll to top" tab is replaced by one round
   button with a progress ring. It sits above the call button.
   ========================================================= */
html body .float-text,
html body .scrollbar-v { display: none !important; }

html body .hpm-scroll-top {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #ff5a00;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(20, 30, 45, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease, color .2s ease;
}
html body .hpm-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
html body .hpm-scroll-top:hover,
html body .hpm-scroll-top:focus-visible {
  background: #ff5a00;
  color: #fff;
  outline: none;
}
html body .hpm-scroll-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
html body .hpm-scroll-top__track,
html body .hpm-scroll-top__bar {
  fill: none;
  stroke-width: 2.5;
}
html body .hpm-scroll-top__track { stroke: rgba(255, 90, 0, .16); }
html body .hpm-scroll-top__bar { stroke: #ff5a00; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
html body .hpm-scroll-top:hover .hpm-scroll-top__bar { stroke: #fff; }
html body .hpm-scroll-top:hover .hpm-scroll-top__track { stroke: rgba(255, 255, 255, .3); }

@media (max-width: 991.98px) {
  html body .hpm-scroll-top { right: 14px; bottom: 82px; width: 40px; height: 40px; font-size: 14px; }
}
@media (max-width: 575.98px) {
  /* call button is 36px at right:10px / bottom:14px -> sit 12px above it */
  html body .hpm-scroll-top { right: 10px; bottom: 62px; width: 36px; height: 36px; font-size: 13px; }
}
html body.hpm-modal-open .hpm-scroll-top,
html body.hpm-lightbox-open .hpm-scroll-top { display: none !important; }
