/* HESHAM LOCAL UI REFRESH 2026-10-17
   Scoped changes: homepage sections + global Solutions menu & customer icon.
   Original index/common CSS files are deliberately untouched. */

/* 1+2 — Solutions section after AI, responsive readable cards */
.home-page #solutions{padding:clamp(42px,5vw,72px) 0!important;background:#f5f8fc}
.home-page .home-solutions-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:26px}
.home-page .home-solutions-heading h2{font-size:clamp(29px,3vw,40px);line-height:1.13;letter-spacing:-.025em;color:#081f3c;margin:0 0 10px}
.home-page .home-solutions-heading p{color:#566c83;font-size:clamp(13px,1.1vw,15px);line-height:1.65;margin:0;max-width:640px}
.home-page .home-solutions-view-all{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;font-size:13px;font-weight:800;color:#0875d5;white-space:nowrap;text-decoration:none}
.home-page .home-solutions-view-all:focus-visible{outline:2px solid #0878ee;outline-offset:4px}
.home-page .home-solutions-view-all span{font-size:18px}
.home-page #solutionGrid.home-solutions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.home-page #solutionGrid.home-solutions-grid:empty{min-height:0}
.home-page #solutionGrid .solution-card-pro{display:flex;flex-direction:column;min-width:0;min-height:100%;overflow:hidden;border:1px solid #d8e3ef;border-radius:12px;background:#fff;box-shadow:0 8px 25px rgba(11,42,70,.055);text-decoration:none;transform:none}
.home-page #solutionGrid .solution-card-pro:hover{transform:none;box-shadow:0 8px 25px rgba(11,42,70,.055)}
.home-page #solutionGrid .solution-card-pro:focus-visible{outline:3px solid #1a81e9;outline-offset:3px}
.home-page #solutionGrid .solution-card-pro .media-wrap{width:100%;aspect-ratio:16/10;min-height:205px;overflow:hidden;border-radius:0;background:#eef4f9}
.home-page #solutionGrid .solution-card-pro .media-wrap img{width:100%;height:100%;object-fit:contain;padding:10px;transition:none!important;transform:none!important}
.home-page #solutionGrid .solution-card-pro .card-body{display:flex;flex:1;flex-direction:column;gap:0;padding:20px 21px 22px}
.home-page #solutionGrid .solution-card-pro .card-body h3{font-size:clamp(18px,1.65vw,22px);font-weight:800;line-height:1.3;margin:0 0 10px;color:#0b2442}
.home-page #solutionGrid .solution-card-pro .card-body p{font-size:14px;line-height:1.7;margin:0;color:#4d6277;max-width:52ch}
.home-page #solutionGrid .solution-card-pro .solution-cta{font-size:12px;padding-top:15px;color:#086bc4}

/* 3 — Gallery: square photos, image-only click target, no hover animations */
.home-page .home-gallery-section{padding:clamp(40px,5vw,68px) 0!important;background:#fff}
.home-page .home-gallery-heading{margin-bottom:25px}
.home-page .home-gallery-heading h2{font-size:clamp(30px,3.2vw,42px);font-weight:850;line-height:1.16;letter-spacing:-.03em;color:#0b2442;margin:0}
.home-page .home-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}
.home-page .home-gallery-grid .his-gallery-work{min-width:0;display:flex;flex-direction:column;background:transparent!important;border:0!important;box-shadow:none!important}
.home-page .home-gallery-grid .his-gallery-photo{display:block;width:100%;aspect-ratio:1/1;min-height:0;padding:0;margin:0;border:1px solid #d6e1eb;border-radius:10px;overflow:hidden;background:#edf3f8;cursor:zoom-in;box-shadow:none;transform:none!important;transition:none!important}
.home-page .home-gallery-grid .his-gallery-photo::before,.home-page .home-gallery-grid .his-gallery-photo::after{display:none!important;content:none!important}
.home-page .home-gallery-grid .his-gallery-photo:hover,.home-page .home-gallery-grid .his-gallery-photo:active{border-color:#d6e1eb;box-shadow:none;transform:none;filter:none}
.home-page .home-gallery-grid .his-gallery-photo:focus-visible{outline:3px solid #0878ee;outline-offset:3px}
.home-page .home-gallery-grid .his-gallery-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;opacity:1!important;filter:none!important;transform:none!important;transition:none!important;animation:none!important}
.home-page .home-gallery-grid .his-gallery-work-copy{padding:15px 1px 0;background:transparent}
.home-page .home-gallery-grid h3{font-size:clamp(19px,1.85vw,23px);color:#0a2444;font-weight:850;line-height:1.25;margin:0 0 7px}
.home-page .home-gallery-grid p{font-size:13.5px;color:#566b80;line-height:1.62;margin:0;overflow-wrap:anywhere}
body.his-gallery-viewer-open{overflow:hidden}
.home-page .his-gallery-lightbox{z-index:13010;padding:clamp(16px,3vw,42px);gap:12px}
.home-page .his-gallery-lightbox[aria-hidden="true"]{visibility:hidden}
.home-page .his-gallery-lightbox[aria-hidden="false"]{visibility:visible}
.home-page .his-gallery-lightbox img{max-height:76dvh;max-width:min(1080px,84vw);width:auto;height:auto;border-radius:7px;object-fit:contain}
.home-page .his-gallery-lightbox p{text-align:center;max-width:90vw;line-height:1.5;font-size:14px}
.home-page .his-gallery-lightbox .his-lightbox-step{top:50%;transform:translateY(-50%);right:auto;left:clamp(6px,3vw,48px);width:44px;height:56px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.16);font-size:33px;cursor:pointer}
.home-page .his-gallery-lightbox .his-lightbox-next{left:auto;right:clamp(6px,3vw,48px)}
.home-page .his-gallery-lightbox .his-lightbox-step[hidden]{display:none!important}
.home-page .his-gallery-lightbox button:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* 4 — Professional medium-blue contact card, original brand mark untouched */
.home-page .home-contact-company{max-width:none;padding:22px 23px;border:1px solid #418bd2;border-radius:13px;background:linear-gradient(132deg,#1976c8 0%,#1163b5 100%);box-shadow:0 16px 35px rgba(14,90,167,.12);color:#fff}
.home-page .home-contact-company-head{padding-bottom:17px;border-bottom:1px solid rgba(255,255,255,.31);gap:15px}
.home-page .home-contact-logo{width:68px;height:68px;flex:0 0 68px;border:2px solid rgba(255,255,255,.96);border-radius:11px;padding:6px;background:rgba(255,255,255,.96);box-shadow:0 5px 14px rgba(4,35,70,.10)}
.home-page .home-contact-logo img{display:block;object-fit:contain;width:100%;height:100%}
.home-page .home-contact-company-kicker,.home-page .home-contact-company-title h3{color:#fff}
.home-page .home-contact-company-kicker{font-size:10px;letter-spacing:.1em;opacity:.93}
.home-page .home-contact-company-title h3{font-size:clamp(17px,1.5vw,21px);line-height:1.3;font-weight:850;letter-spacing:-.01em;overflow-wrap:anywhere}
.home-page .home-contact-company .contact-list-pro{gap:7px;margin-top:15px}
.home-page .home-contact-company .home-contact-link,.home-page .home-contact-company .home-contact-address,.home-page .home-contact-company .home-contact-sites-title{color:#fff;padding:8px 0}
.home-page .home-contact-company .home-contact-icon{border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.16);color:#fff;border-radius:9px}
.home-page .home-contact-company .home-contact-link small,.home-page .home-contact-company .home-contact-address small,.home-page .home-contact-company .home-contact-sites-title small{color:#d5ecff;font-size:10px}
.home-page .home-contact-company .home-contact-link strong,.home-page .home-contact-company .home-contact-address strong,.home-page .home-contact-company .home-contact-sites-title strong{color:#fff;font-size:13px;font-weight:760;overflow-wrap:anywhere}
.home-page .home-contact-company .home-contact-link:hover strong,.home-page .home-contact-company .home-contact-link:focus-visible strong,.home-page .home-contact-company .home-contact-site-links a:hover{color:#fff}
.home-page .home-contact-company .home-contact-sites{border-top:1px solid rgba(255,255,255,.24)}
.home-page .home-contact-company .home-contact-site-links a{color:#fff;font-size:12.5px;text-underline-offset:3px;text-decoration:underline}
.home-page .home-contact-company .home-contact-site-links a::after,.home-page .home-contact-company .home-contact-link strong::after{content:none}

/* 5 — Only Solutions mega menu is simplified. Other menus are unaffected. */
.his-mega-menu[data-mega-for="solutions"] .his-mega-shell{width:min(1200px,calc(100% - 42px));grid-template-columns:minmax(200px,.95fr) minmax(280px,1.28fr) minmax(245px,1fr);gap:24px;padding:25px 0}
.his-mega-menu[data-mega-for="solutions"] .his-mega-columns{grid-template-columns:minmax(0,1fr)!important;gap:0}
.his-mega-menu[data-mega-for="solutions"] .his-mega-group h3{display:none}
.his-mega-menu[data-mega-for="solutions"] .his-mega-link-simple{grid-template-columns:minmax(0,1fr) 15px;gap:12px;margin:0 0 4px;padding:12px 12px!important;border-radius:9px;transform:none!important}
.his-mega-menu[data-mega-for="solutions"] .his-mega-link-simple:hover{background:#f1f7fe;border-color:#dce9f8}
.his-mega-menu[data-mega-for="solutions"] .his-mega-link-simple strong{font-size:13px;font-weight:800;line-height:1.28}
.his-mega-menu[data-mega-for="solutions"] .his-mega-link-simple small{font-size:11px;line-height:1.42;margin-top:4px}
.his-mega-menu[data-mega-for="solutions"] .his-mega-link-simple .his-mega-link-arrow{font-size:17px;transform:none!important;color:#437ea9}
.his-mega-menu[data-mega-for="solutions"] .his-mega-feature{background:linear-gradient(145deg,#f7fbff,#e6f1f8);border-color:#cfe2f0;border-radius:16px}
.his-mega-menu[data-mega-for="solutions"] .his-mega-feature:hover{transform:none}

/* 6 — Account Center icon appears only after a successful auth check. */
.his-profile-control{position:relative;flex:0 0 auto;display:flex;align-items:center}
.his-profile-control[hidden],.his-profile-menu[hidden],.his-account-float[hidden],[data-mobile-signin][hidden]{display:none!important}
.his-profile-trigger{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;padding:0;border:1.5px solid #1c324b;border-radius:11px;background:#fff;color:#0a2947;cursor:pointer;box-shadow:0 2px 8px rgba(8,28,51,.035)}
.his-profile-trigger svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.his-profile-trigger:focus-visible{outline:3px solid #1976d2;outline-offset:3px}
.his-profile-menu{position:absolute;z-index:12400;right:0;top:calc(100% + 10px);width:190px;display:flex;flex-direction:column;padding:7px;border:1px solid #d6e4f2;border-radius:12px;background:#fff;box-shadow:0 18px 38px rgba(4,31,61,.18);text-align:left}
.his-profile-menu a,.his-profile-menu button{display:block!important;width:100%;min-height:43px;padding:11px 12px!important;line-height:1.3;color:#123756!important;font:inherit;font-size:13px!important;font-weight:800;text-align:left;background:transparent;border:0;border-radius:7px;cursor:pointer;text-decoration:none;white-space:normal}
.his-profile-menu a:after{content:none!important;display:none!important}
.his-profile-menu a:hover,.his-profile-menu button:hover,.his-profile-menu a:focus-visible,.his-profile-menu button:focus-visible{background:#edf5fc;color:#075da6!important;outline:none}
.his-profile-menu button{border-top:1px solid #e9f0f7;border-radius:0 0 7px 7px;color:#9d2929!important}
body.his-homepage .his-pro-header.is-home-top .his-profile-trigger,body.his-image-header-page .his-pro-header.is-image-top .his-profile-trigger{border-color:rgba(255,255,255,.7);background:rgba(4,26,48,.35);color:#fff}
@media (min-width:901px) and (max-width:1180px){
  .his-mega-menu[data-mega-for="solutions"] .his-mega-shell{grid-template-columns:minmax(0,1fr) minmax(230px,.45fr)}
}
@media (min-width:901px) and (max-width:1040px){
  .his-mega-menu[data-mega-for="solutions"] .his-mega-shell{grid-template-columns:1fr}
}
@media (min-width:901px) and (max-width:1180px){
  .his-pro-header .his-header-search{
    left:104px!important;
    width:min(470px,calc(100vw - 410px))!important;
  }
}

@media (max-width:900px){
  .home-page #solutionGrid.home-solutions-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
  .home-page .home-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .his-profile-trigger{width:39px;height:39px;flex-basis:39px}
  /* Signed-out users get the existing Sign In card, not a header account icon. */
  .his-account-float:not([hidden]){display:flex!important;right:10px;bottom:145px;top:auto;transform:none}
  .his-pro-header .his-pro-actions{gap:6px}
}
@media (max-width:640px){
  .home-page .home-solutions-heading{align-items:flex-start;flex-direction:column;gap:11px;margin-bottom:20px}
  .home-page #solutionGrid.home-solutions-grid{grid-template-columns:1fr;gap:16px}
  .home-page #solutionGrid .solution-card-pro .media-wrap{min-height:170px}
  .home-page #solutionGrid .solution-card-pro .card-body{padding:17px 17px 19px}
  .home-page .home-gallery-grid{grid-template-columns:1fr;gap:25px}
  .home-page .home-gallery-heading{margin-bottom:18px}
  .home-page .his-gallery-lightbox img{max-width:calc(100vw - 68px);max-height:70dvh}
  .home-page .his-gallery-lightbox .his-lightbox-step{width:34px;height:46px;left:4px}
  .home-page .his-gallery-lightbox .his-lightbox-next{left:auto;right:4px}
  .home-page .home-contact-company{padding:17px 16px;border-radius:12px}
  .home-page .home-contact-company-title h3{font-size:16px}
  .home-page .home-contact-logo{width:58px;height:58px;flex-basis:58px}
  .home-page .home-contact-site-links{padding-left:0;margin-top:6px}
  .his-profile-menu{right:-30px;width:185px}
}


/* ================================================
   V12.7.5 SAFE RECOVERY + UI POLISH
   Six UI changes retained; search is compact,
   dropdowns use translucent glass, gallery viewer
   visibly shows all photos, contact card refined.
   ================================================ */
@media (min-width:901px){
  .his-pro-header .his-header-search{
    inset:auto;
    left:50%;top:50%;right:auto;
    width:min(680px,calc(100vw - 44px));height:58px;
    transform:translate(-50%,-50%) scale(.98);
    padding:0 13px;
    border:1px solid #d5e5f1;border-radius:17px;
    background:rgba(255,255,255,.985);
    box-shadow:0 20px 42px rgba(5,32,65,.17);
    backdrop-filter:blur(12px);
  }
  .his-pro-header.search-active .his-header-search{
    transform:translate(-50%,-50%) scale(1);
  }
  .his-pro-header .his-header-search input{
    flex:1;min-width:0;height:54px;
    padding:0 8px;border:0;
    font-size:15px;
  }
  .his-pro-header .his-header-search-results{
    left:50%;right:auto;top:calc(100% + 10px);
    width:100%;transform:translateX(-50%);
    border-radius:15px;
  }
  .his-pro-nav .his-mega-menu{
    background:linear-gradient(132deg,rgba(252,254,255,.97),rgba(244,249,253,.97) 64%,rgba(237,245,251,.97));
    color:#17324e;
    border-top:1px solid rgba(182,205,223,.45);
    border-bottom:1px solid rgba(182,205,223,.55);
    box-shadow:0 24px 55px rgba(18,52,82,.12);
    backdrop-filter:blur(16px) saturate(1.02);
  }
  .his-pro-nav .his-mega-shell{
    width:min(1240px,calc(100% - 56px));gap:20px;
    padding:25px 0;
  }
  .his-pro-nav .his-mega-intro{border-right:1px solid rgba(195,214,228,.68)}
  .his-pro-nav .his-mega-intro h2,.his-pro-nav .his-mega-link-copy strong,
  .his-pro-nav .his-mega-feature strong{color:#15344f}
  .his-pro-nav .his-mega-intro p,.his-pro-nav .his-mega-link-copy small,
  .his-pro-nav .his-mega-feature p{color:#627c91}
  .his-pro-nav .his-mega-intro>span,.his-pro-nav .his-mega-feature>span,
  .his-pro-nav .his-mega-group h3{color:#377ca2}
  .his-pro-nav .his-mega-intro .his-mega-view-page,.his-pro-nav .his-mega-feature>b{color:#2d7fa5}
  .his-pro-nav .his-mega-group{
    background:rgba(255,255,255,.72);
    border:1px solid rgba(194,214,228,.72);
    border-radius:15px;
    padding:12px;
    box-shadow:0 10px 24px rgba(22,58,88,.05);
  }
  .his-pro-nav .his-mega-group h3{border-bottom:1px solid rgba(199,217,229,.88)}
  .his-pro-nav .his-mega-link{grid-template-columns:minmax(0,1fr) 18px;gap:10px}
  .his-pro-nav .his-mega-link-index{display:none!important}
  .his-pro-nav .his-mega-link:hover,.his-pro-nav .his-mega-link:focus-visible,
  .his-pro-nav .his-mega-menu[data-mega-for="solutions"] .his-mega-link-simple:hover{
    background:rgba(232,242,249,.92);border-color:rgba(184,206,222,.8);
  }
  .his-pro-nav .his-mega-link-arrow{color:#4a89af;font-size:18px;transform:none}
  .his-pro-nav .his-mega-feature,
  .his-pro-nav .his-mega-menu[data-mega-for="solutions"] .his-mega-feature{
    border:1px solid rgba(187,213,230,.85);
    border-radius:16px;
    background:linear-gradient(138deg,rgba(246,251,255,.98),rgba(226,239,247,.95));
    color:#15344f!important;
    box-shadow:0 14px 30px rgba(24,61,93,.07);
  }
  .his-pro-nav .his-mega-feature:hover,
  .his-pro-nav .his-mega-feature:focus-visible{border-color:rgba(144,187,214,.95)}
  .his-pro-nav .his-mega-menu[data-mega-for="solutions"] .his-mega-shell{
    grid-template-columns:minmax(190px,.9fr) minmax(330px,1.3fr) minmax(235px,.92fr);
  }
  .his-pro-nav .his-mega-menu[data-mega-for="solutions"] .his-mega-columns{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .his-pro-nav .his-mega-menu[data-mega-for="solutions"] .his-mega-group h3{display:none}
  .his-pro-nav .his-mega-menu[data-mega-for="solutions"] .his-mega-link-simple .his-mega-link-arrow{color:#9ed1ff}
}
@media(min-width:901px) and (max-width:1180px){
  .his-pro-nav .his-mega-menu[data-mega-for="solutions"] .his-mega-shell{
    grid-template-columns:minmax(0,1fr) minmax(235px,.46fr);
  }
}
@media(min-width:901px) and (max-width:1040px){
  .his-pro-nav .his-mega-menu[data-mega-for="solutions"] .his-mega-shell{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:900px){
  .his-pro-header .his-header-search{
    width:calc(100vw - 24px);max-width:680px;
    left:12px;right:auto;top:calc(100% + 7px);
    border:1px solid #d7e5f1;border-radius:15px;
    padding:0 10px;background:rgba(255,255,255,.985);
    box-shadow:0 16px 35px rgba(4,32,61,.13);
  }
  .his-pro-header.search-active .his-header-search{transform:none}
  .his-pro-header .his-header-search input{height:47px;border:0;font-size:14px}
  .his-pro-header .his-header-search-results{left:0;right:0;top:calc(100% + 9px)}
}
/* A balanced blue contact identity panel (not the previous harsh saturated gradient). */
.home-page .home-contact-company{
  background:linear-gradient(132deg,#2879b6 0%,#2372ad 57%,#1f67a4 100%);
  border:1px solid rgba(255,255,255,.23);
  box-shadow:0 18px 35px rgba(14,66,111,.14);
}
/* Under-card image counts, and numbered navigation in the open photo viewer. */
.home-page .his-gallery-work-count{
  display:inline-flex;align-items:center;gap:7px;
  margin-top:8px;color:#2c699e;
  font-size:12px;font-weight:800;
}
.home-page .his-gallery-lightbox{gap:10px;padding-block:15px}
.home-page .his-gallery-lightbox img#lightboxImg{
  max-height:calc(100dvh - 220px);max-width:min(1080px,84vw)
}
.home-page .his-gallery-lightbox .his-lightbox-counter{
  color:#e7f3ff;font-size:12px;font-weight:750;
  padding:5px 13px;border:1px solid rgba(255,255,255,.20);
  border-radius:999px;background:rgba(255,255,255,.09);
}
.home-page .his-gallery-lightbox .his-lightbox-thumbs{
  display:flex;align-items:center;justify-content:center;
  gap:8px;max-width:min(980px,94vw);min-height:62px;
  overflow-x:auto;overflow-y:hidden;
  padding:4px 5px 7px;scrollbar-width:thin;
  overscroll-behavior-inline:contain;
}
.home-page .his-gallery-lightbox .his-lightbox-thumbs[hidden]{display:none!important}
.home-page .his-gallery-lightbox .his-lightbox-thumb{
  position:relative;inset:auto;transform:none;
  display:block;flex:0 0 66px;width:66px;height:55px;
  margin:0;padding:3px;border:2px solid transparent;
  border-radius:8px;background:rgba(255,255,255,.12);
  cursor:pointer;overflow:hidden;
}
.home-page .his-gallery-lightbox .his-lightbox-thumb img{
  display:block;width:100%;height:100%;max-height:none;max-width:none;
  object-fit:cover;border-radius:4px
}
.home-page .his-gallery-lightbox .his-lightbox-thumb.is-active{
  border-color:#8ac6ff;background:rgba(110,181,255,.25)
}
.home-page .his-gallery-lightbox .his-lightbox-thumb:focus-visible{
  outline:3px solid #fff;outline-offset:2px
}
@media(max-width:640px){
  .home-page .his-gallery-lightbox img#lightboxImg{
    max-height:calc(100dvh - 230px);max-width:calc(100vw - 65px)
  }
  .home-page .his-gallery-lightbox .his-lightbox-thumbs{
    width:calc(100vw - 16px);max-width:calc(100vw - 16px);
    min-height:60px;justify-content:flex-start;
  }
  .home-page .his-gallery-lightbox .his-lightbox-thumb{
    flex-basis:56px;width:56px;height:48px
  }
}

/* Ensure an opened gallery viewer and its counters never inherit hidden visibility. */
.home-page .his-gallery-lightbox.open,
.home-page .his-gallery-lightbox[aria-hidden="false"]{visibility:visible!important}

/* Viewer's visibility should not wait on the inherited global transition. */
.home-page .his-gallery-lightbox{transition:opacity .16s ease!important}
.home-page .his-gallery-lightbox[aria-hidden="true"]:not(.open){visibility:hidden!important}
.home-page .his-gallery-lightbox[aria-hidden="false"].open{visibility:visible!important}


/* ================================================================
  V12.7.6: Header controls + right-anchored product search.
  Keeps visible navigation and account control while searching.
  Overrides the previous centered modal and oversized mobile search.
================================================================ */
.his-pro-header .his-pro-actions {gap:9px}
.his-pro-header .his-pro-actions .his-search-trigger,
.his-pro-header .his-pro-actions .his-profile-trigger,
.his-pro-header .his-pro-actions .his-menu-trigger {
  box-sizing:border-box;
  width:40px;height:40px;min-width:40px;min-height:40px;
  padding:0;
  border-radius:11px;
  display:grid;place-items:center;
  line-height:1;
}
.his-pro-header .his-pro-actions .his-profile-trigger {
  border:1.5px solid #24415b;
  background:#fff;color:#153958;
}
.his-pro-header .his-profile-trigger svg {width:20px;height:20px;flex:none}
.his-pro-header .his-pro-actions .his-search-trigger {font-size:21px}
.his-pro-header.search-active .his-pro-nav,
.his-pro-header.search-active .his-pro-actions {
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
.his-pro-header .his-header-search {
  box-sizing:border-box;
  position:absolute!important;
  inset:auto!important;
  top:calc(100% + 9px)!important;
  right:0!important;
  left:auto!important;
  width:min(414px,calc(100vw - 28px))!important;
  height:54px!important;
  padding:5px 9px 5px 13px!important;
  display:flex;align-items:center;gap:8px;
  border-radius:14px!important;
  border:1px solid #d8e5ef!important;
  background:rgba(255,255,255,.98)!important;
  box-shadow:0 17px 42px rgba(6,29,54,.19)!important;
  backdrop-filter:blur(12px);
  transform:translateY(-5px)!important;
  transform-origin:right top!important;
}
.his-pro-header.search-active .his-header-search {transform:translateY(0)!important}
.his-pro-header .his-header-search input {
  box-sizing:border-box;
  width:100%!important;
  height:42px!important;
  min-width:0!important;
  padding:0 6px!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  font:500 14px/1.35 system-ui,-apple-system,'Segoe UI',Arial,sans-serif!important;
  color:#17324e;
}
.his-pro-header .his-header-search input:focus {
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
}
.his-pro-header .his-header-search .his-search-symbol{flex:0 0 18px;font-size:19px;color:#2570bb}
.his-pro-header .his-header-search #hisHeaderSearchClose {
  box-sizing:border-box;
  flex:0 0 35px;
  width:35px;height:35px;
  display:grid;place-items:center;
  font-size:22px;
  border:0;border-radius:9px;
  background:#f0f5fb;color:#264967;
}
.his-pro-header .his-header-search .his-header-search-results {
  box-sizing:border-box;
  left:0!important;right:0!important;
  top:calc(100% + 7px)!important;
  width:100%!important;
  transform:none!important;
  border-radius:13px;
}
.his-pro-header #hisProfileMenu {max-width:min(220px,calc(100vw - 22px))}
/* Exactly four compact quick links in Products, Shop and Reviews. */
@media(min-width:901px){
  .his-pro-nav .his-mega-menu:is([data-mega-for="products"],[data-mega-for="shop"],[data-mega-for="reviews"]) .his-mega-shell {
    width:min(1190px,calc(100% - 48px));
    grid-template-columns:minmax(190px,.88fr) minmax(300px,1.34fr) minmax(245px,.95fr);
    gap:22px;
  }
  .his-pro-nav .his-mega-menu:is([data-mega-for="products"],[data-mega-for="shop"],[data-mega-for="reviews"]) .his-mega-columns {
    grid-template-columns:minmax(0,1fr)!important;
  }
  .his-pro-nav .his-mega-menu:is([data-mega-for="products"],[data-mega-for="shop"],[data-mega-for="reviews"]) .his-mega-group h3 {display:none!important}
  .his-pro-nav .his-mega-menu:is([data-mega-for="products"],[data-mega-for="shop"],[data-mega-for="reviews"]) .his-mega-link {
    grid-template-columns:minmax(0,1fr) 16px;
    padding:11px 12px!important;
  }
  .his-pro-nav .his-mega-menu:is([data-mega-for="products"],[data-mega-for="shop"],[data-mega-for="reviews"]) .his-mega-link-copy strong {font-size:13px}
  .his-pro-nav .his-mega-menu:is([data-mega-for="products"],[data-mega-for="shop"],[data-mega-for="reviews"]) .his-mega-link-copy small {font-size:11px;line-height:1.4}
  .his-pro-nav .his-mega-menu:is([data-mega-for="products"],[data-mega-for="shop"],[data-mega-for="reviews"]) .his-mega-link-arrow {
    font-size:17px;color:#4a89af;
  }
}
@media(min-width:901px) and (max-width:1180px){
  .his-pro-nav .his-mega-menu:is([data-mega-for="products"],[data-mega-for="shop"],[data-mega-for="reviews"]) .his-mega-shell {grid-template-columns:minmax(0,1fr) minmax(235px,.46fr)}
}
@media(min-width:901px) and (max-width:1040px){
  .his-pro-nav .his-mega-menu:is([data-mega-for="products"],[data-mega-for="shop"],[data-mega-for="reviews"]) .his-mega-shell {grid-template-columns:minmax(0,1fr)}
}
/* Homepage contact card now matches the slate-blue Explore feature panel. */
body.home-page .home-contact-company {
  background:linear-gradient(135deg,#294766 0%,#213d5a 52%,#1b3551 100%)!important;
  border:1px solid rgba(161,197,226,.28)!important;
  box-shadow:0 15px 34px rgba(17,39,67,.15)!important;
}
body.home-page .home-contact-company .home-contact-icon {
  border-color:rgba(233,245,255,.28);
  background:rgba(255,255,255,.085);
}
body.home-page .home-contact-company .home-contact-logo {
  border-color:rgba(250,252,255,.95);
}
@media(max-width:900px){
  .his-pro-header .his-pro-actions {gap:7px}
  .his-pro-header .his-pro-actions .his-search-trigger,
  .his-pro-header .his-pro-actions .his-profile-trigger,
  .his-pro-header .his-pro-actions .his-menu-trigger {
    width:38px!important;height:38px!important;
    min-width:38px!important;min-height:38px!important;
    border-radius:10px!important;
  }
  .his-pro-header .his-profile-trigger svg {width:19px;height:19px}
  .his-pro-header .his-header-search {
    top:calc(100% + 7px)!important;
    right:0!important;
    left:auto!important;
    width:min(338px,calc(100vw - 28px))!important;
    height:51px!important;
    padding:4px 8px 4px 11px!important;
  }
  .his-pro-header .his-header-search input {height:40px!important;font-size:14px!important}
  .his-pro-header .his-header-search #hisHeaderSearchClose {width:34px;height:34px;flex-basis:34px}
  .his-pro-header .his-profile-menu {right:0!important;max-width:calc(100vw - 22px)}
  /* Guest sign-in remains accessible but is no longer in the bottom-right
     cluster occupied by WhatsApp, chatbot and back-to-top. */
  body .his-account-float:not([hidden]) {
    display:flex!important;
    box-sizing:border-box;
    position:fixed!important;
    top:82px!important;bottom:auto!important;
    right:11px!important;left:auto!important;
    transform:none!important;
    width:auto!important;min-width:79px!important;max-width:90px;
    height:34px;
    border-radius:10px;
    z-index:9200;
  }
  body .his-account-float:not([hidden]) a {
    box-sizing:border-box;
    min-height:32px!important;
    padding:6px 9px!important;
    font-size:10px!important;
    white-space:nowrap;
  }
  body.his-search-open .his-account-float:not([hidden]),
  body.his-drawer-open .his-account-float:not([hidden]) {display:none!important}
  /* Back-to-top above chatbot, not in the same slot as Sign In. */
  body .his-back-top {right:21px!important;bottom:173px!important}
}
@media(max-width:560px){
  .his-pro-header .his-pro-actions {gap:6px}
  .his-pro-header .his-pro-actions .his-search-trigger,
  .his-pro-header .his-pro-actions .his-profile-trigger,
  .his-pro-header .his-pro-actions .his-menu-trigger {
    width:36px!important;height:36px!important;
    min-width:36px!important;min-height:36px!important;
  }
  .his-pro-header .his-profile-trigger svg {width:18px;height:18px}
  .his-pro-header .his-header-search {width:min(310px,calc(100vw - 24px))!important}
  body .his-account-float:not([hidden]) {top:70px!important;right:10px!important}
  body .his-back-top {right:21px!important;bottom:173px!important}
}
/* Fixed flex-basis from the legacy profile button must match its visual width. */
.his-pro-header .his-pro-actions .his-profile-trigger{flex:0 0 40px!important}
@media(max-width:900px){.his-pro-header .his-pro-actions .his-profile-trigger{flex-basis:38px!important}}
@media(max-width:560px){.his-pro-header .his-pro-actions .his-profile-trigger{flex-basis:36px!important}}
/* Do not reveal the hamburger in the full desktop navigation. */
@media(min-width:901px){.his-pro-header .his-pro-actions .his-menu-trigger{display:none!important}}

/* v12.8.0 approved refinements */
.home-page #solutionGrid .solution-card-pro .solution-cta{display:none!important}
body.home-page .home-contact-company{background:linear-gradient(135deg,#0878ee 0%,#0058c8 100%)!important;border-color:#64b4ff!important;box-shadow:0 16px 36px rgba(6,107,220,.20)!important}
body.home-page .home-contact-company .home-contact-icon{background:rgba(255,255,255,.13)!important;border-color:rgba(255,255,255,.44)!important}
@media(min-width:901px){
  .his-pro-header.search-active .his-pro-nav{visibility:hidden;opacity:0;pointer-events:none}
  .his-pro-header.search-active .his-pro-actions{visibility:hidden;opacity:0;pointer-events:none}
  .his-pro-header.search-active .his-header-search{position:absolute!important;top:50%!important;left:50%!important;right:auto!important;transform:translate(-50%,-50%)!important;width:min(520px,52vw)!important;height:48px!important;margin:0!important;display:flex!important;align-items:center!important;z-index:20!important}
  .his-pro-header.search-active .his-header-search-results{top:calc(100% + 8px)!important}
}


/* Homepage Solutions — open editorial layout v12.8.1 */
.home-page #solutions{background:#fff!important}
.home-page .home-solutions-heading{display:block;margin-bottom:30px}
.home-page .home-solutions-heading>div{display:flex;align-items:center;gap:20px;width:100%}
.home-page .home-solutions-heading h2{display:flex;align-items:center;gap:18px;width:100%;margin:0;color:#0b2d45;font-size:clamp(30px,3.2vw,43px);line-height:1.12}
.home-page .home-solutions-heading h2::after{content:"";display:block;flex:1 1 120px;height:1px;background:#aebcc5}
.home-page .home-solutions-heading p{margin-top:13px;max-width:720px}
.home-page #solutionGrid.home-solutions-grid{gap:clamp(22px,2.4vw,34px)}
.home-page #solutionGrid .solution-card-pro{display:block;min-height:0;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none!important}
.home-page #solutionGrid .solution-card-pro:hover{box-shadow:none!important}
.home-page #solutionGrid .solution-card-pro .media-wrap{aspect-ratio:16/10;min-height:0;border:0;border-radius:0;background:#f1f4f6;overflow:hidden}
.home-page #solutionGrid .solution-card-pro .media-wrap img{width:100%;height:100%;padding:0;object-fit:cover}
.home-page #solutionGrid .solution-card-pro .card-body{display:block;padding:16px 0 0}
.home-page #solutionGrid .solution-card-pro .card-body h3{display:flex;align-items:center;gap:12px;margin:0;color:#0b2d45;font-size:clamp(18px,1.55vw,22px);line-height:1.28}
.home-page #solutionGrid .solution-card-pro .card-body h3::after{content:"";display:block;flex:1 1 35px;height:1px;background:#c0cbd1}
.home-page #solutionGrid .solution-card-pro .card-body p{margin-top:10px;color:#526775;font-size:13.5px;line-height:1.72}
@media(max-width:700px){
  .home-page .home-solutions-heading h2{font-size:29px;gap:12px}
  .home-page #solutionGrid.home-solutions-grid{grid-template-columns:1fr;gap:30px}
  .home-page #solutionGrid .solution-card-pro .media-wrap{aspect-ratio:16/9}
}


/* ==================================================================
   V12.8.3 PROFESSIONAL IN-HEADER SEARCH
   Search expands inside the existing header; it never floats below it.
   It stays open until the explicit X button is pressed.
   ================================================================== */
.his-pro-header .his-pro-inner{position:relative!important}

@media (min-width:901px){
  .his-pro-header.search-active .his-pro-nav{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .his-pro-header.search-active .his-search-trigger{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .his-pro-header.search-active .his-pro-actions{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }
  .his-pro-header .his-header-search{
    box-sizing:border-box!important;
    position:absolute!important;
    top:50%!important;
    left:clamp(116px,8vw,152px)!important;
    right:auto!important;
    bottom:auto!important;
    width:min(520px,calc(100vw - 470px))!important;
    min-width:0!important;
    height:46px!important;
    margin:0!important;
    padding:4px 7px 4px 13px!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    border:1px solid rgba(180,202,219,.88)!important;
    border-radius:13px!important;
    background:rgba(255,255,255,.95)!important;
    box-shadow:0 8px 24px rgba(20,57,87,.10)!important;
    backdrop-filter:blur(14px) saturate(1.04)!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(-50%) scale(.985)!important;
    transition:opacity .16s ease,transform .16s ease,visibility .16s ease!important;
    z-index:30!important;
  }
  .his-pro-header.search-active .his-header-search{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:translateY(-50%) scale(1)!important;
  }
  .his-pro-header .his-header-search input{
    width:100%!important;
    height:36px!important;
    min-width:0!important;
    padding:0 5px!important;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#17324e!important;
    font:500 14px/1.35 system-ui,-apple-system,'Segoe UI',Arial,sans-serif!important;
  }
  .his-pro-header .his-header-search .his-search-symbol{
    flex:0 0 17px!important;
    font-size:18px!important;
    color:#2b78a7!important;
  }
  .his-pro-header .his-header-search #hisHeaderSearchClose{
    flex:0 0 34px!important;
    width:34px!important;
    height:34px!important;
    display:grid!important;
    place-items:center!important;
    border:0!important;
    border-radius:9px!important;
    background:#eef5fa!important;
    color:#31546d!important;
    font-size:20px!important;
    cursor:pointer!important;
  }
  .his-pro-header .his-header-search #hisHeaderSearchClose:hover{
    background:#e4eff6!important;
    color:#163d5b!important;
  }
  .his-pro-header .his-header-search-results{
    position:absolute!important;
    left:0!important;
    right:0!important;
    top:calc(100% + 8px)!important;
    width:100%!important;
    max-height:min(420px,60vh)!important;
    overflow:auto!important;
    transform:none!important;
    border:1px solid #dce7ee!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.99)!important;
    box-shadow:0 16px 34px rgba(17,49,78,.13)!important;
  }
  /* Hero headers stay readable while search is open. */
  body.his-homepage .his-pro-header.search-active,
  body.his-image-header-page .his-pro-header.search-active{
    background:rgba(255,255,255,.96)!important;
    border-bottom-color:#dfe8f0!important;
    box-shadow:0 8px 25px rgba(15,45,72,.09)!important;
    backdrop-filter:blur(14px)!important;
  }
  body.his-homepage .his-pro-header.search-active .his-pro-brand img,
  body.his-image-header-page .his-pro-header.search-active .his-pro-brand img{
    content:url('/assets/hesham-logo.webp')!important;
  }
  body.his-homepage .his-pro-header.search-active .his-profile-trigger,
  body.his-image-header-page .his-pro-header.search-active .his-profile-trigger{
    border-color:#24415b!important;
    background:#fff!important;
    color:#153958!important;
  }
}

@media (max-width:900px){
  .his-pro-header.search-active .his-pro-brand,
  .his-pro-header.search-active .his-pro-actions{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .his-pro-header .his-header-search{
    box-sizing:border-box!important;
    position:absolute!important;
    top:50%!important;
    left:12px!important;
    right:12px!important;
    bottom:auto!important;
    width:auto!important;
    height:44px!important;
    margin:0!important;
    padding:4px 6px 4px 11px!important;
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    border:1px solid #d6e4ed!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 7px 20px rgba(18,53,82,.10)!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(-50%) scale(.985)!important;
    transition:opacity .16s ease,transform .16s ease,visibility .16s ease!important;
    z-index:40!important;
  }
  .his-pro-header.search-active .his-header-search{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:translateY(-50%) scale(1)!important;
  }
  .his-pro-header .his-header-search input{
    height:34px!important;
    padding:0 4px!important;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    font-size:13.5px!important;
  }
  .his-pro-header .his-header-search #hisHeaderSearchClose{
    width:32px!important;height:32px!important;flex:0 0 32px!important;
    border-radius:8px!important;border:0!important;
    background:#edf4f9!important;color:#31546d!important;
    font-size:19px!important;
  }
  .his-pro-header .his-header-search-results{
    position:absolute!important;
    left:0!important;right:0!important;
    top:calc(100% + 8px)!important;
    width:100%!important;
    max-height:55vh!important;
    overflow:auto!important;
    transform:none!important;
    border-radius:11px!important;
    border:1px solid #dce7ee!important;
    background:#fff!important;
    box-shadow:0 14px 30px rgba(17,49,78,.13)!important;
  }
  body.his-homepage .his-pro-header.search-active,
  body.his-image-header-page .his-pro-header.search-active{
    background:rgba(255,255,255,.97)!important;
    border-bottom-color:#dfe8f0!important;
    box-shadow:0 7px 22px rgba(15,45,72,.09)!important;
    backdrop-filter:blur(13px)!important;
  }
}
