/* =======================================================================
   SHM INDUSTRIES — Professional Theme Refresh (Egypt) · 2026-11-09
   Additive stylesheet; original images, scripts, URLs and theme are retained.
   Shared for English and Arabic pages. Do not replace css/style.css.
   ======================================================================= */
:root {
  --shm-purple: #383480;
  --shm-purple-deep: #27245d;
  --shm-red: #df2635;
  --shm-red-hover: #bc1f2c;
  --shm-ink: #283241;
  --shm-text: #505b6b;
  --shm-muted: #6d7887;
  --shm-line: #e4e9ef;
  --shm-surface: #f5f7fa;
  --shm-white: #fff;
  --shm-radius: 10px;
  --shm-shadow: 0 8px 30px rgba(29, 36, 69, .075);
  --shm-shadow-hover: 0 17px 42px rgba(29, 36, 69, .13);
}
/* Typography and readable page width */
html { scroll-behavior: smooth; }
body { color: var(--shm-text); font-family: 'Roboto', Arial, sans-serif; font-size: 16px; line-height: 1.72; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-family: 'Cairo', Tahoma, sans-serif; line-height: 1.92; }
body, p, li { overflow-wrap: break-word; }
h1,h2,h3,h4,h5,h6 { color: var(--shm-ink); letter-spacing: -.012em; line-height: 1.26; }
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ar"] h4 { letter-spacing: normal; line-height: 1.45; }
h1 {font-size:clamp(30px,3vw,42px);} h2 {font-size:clamp(27px,2.55vw,36px);} h3 {font-size:clamp(21px,2vw,26px);}
.container, .container-custom { max-width: 1240px; }
.site-content > section { padding-top: 70px; padding-bottom: 70px; }
.site-content > section.no-padding, .site-content > section.no-padding-bottom { padding-bottom: 0; }
a { transition: color .18s ease, background-color .18s ease; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline:3px solid var(--shm-red)!important; outline-offset:3px; }
/* Buttons */
.btn.btn-primary, a.btn.btn-primary, .main-navigation > .btn.btn-primary, .mobile-nav > .btn.btn-primary {
  background:var(--shm-red)!important; border-color:var(--shm-red)!important;
  border-radius:6px!important; color:#fff!important; font-size:14px; font-weight:700;
  letter-spacing:.01em; padding:12px 21px; box-shadow:none!important; text-transform:none;
}
.btn.btn-primary:hover, a.btn.btn-primary:hover {background:var(--shm-red-hover)!important;border-color:var(--shm-red-hover)!important;transform:translateY(-1px);}
/* The global navigation: same markup, more balanced alignment */
#site-header {z-index:1000; position:relative;}
#header_topbar {background:var(--shm-purple-deep);}
#header_topbar .topbar-left li, #header_topbar .topbar-right li, #header_topbar a {font-size:12px;}
#header_topbar .topbar-languages a {font-weight:700;}
#site-header .main-header {background:#fff; box-shadow:0 3px 17px rgba(25,36,60,.065);}
#site-header .main-header .logo-brand {margin-top:10px!important;margin-bottom:10px;}
#site-header .main-header .logo-brand img {width:auto;max-height:65px;max-width:100%;object-fit:contain;}
#site-header #primary-menu > li > a {font-size:15px;font-weight:700;letter-spacing:0;white-space:nowrap;}
#site-header #primary-menu > li > a:hover,
#site-header #primary-menu > li:hover > a {color:var(--shm-red)!important;}
#site-header #primary-menu > li.shm-mega-trigger > ul.shm-mega-menu {
  border-radius:0 0 11px 11px!important;
  box-shadow:0 18px 45px rgba(21,27,57,.16)!important;
  border-top:3px solid var(--shm-red)!important;
  gap:20px!important;
}
#site-header .shm-mega-menu .shm-mega-heading {color:var(--shm-purple)!important; font-weight:800;}
#site-header #primary-menu .shm-mega-links > li > a {font-size:14px!important; line-height:1.5!important; padding:8px 0!important;}
#site-header .mobile-header {background:#fff;box-shadow:0 3px 14px rgba(25,36,60,.07);}
#site-header .logo-brand-mobile img {max-height:55px;width:auto;max-width:100%;object-fit:contain;}
#primary-menu-mobile .shm-mobile-products summary {color:var(--shm-purple);}
#primary-menu-mobile .shm-mobile-category {margin:2px 0;border-bottom:1px solid var(--shm-line);}
#primary-menu-mobile .shm-mobile-category summary {font-weight:700;}
/* Home: a confident hero while retaining all original slide photographs */
body.shm-home .slider {overflow:hidden;}
body.shm-home .slider-item {position:relative;isolation:isolate;}
body.shm-home .slider-item::after {content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(90deg,rgba(15,24,48,.78),rgba(21,34,57,.39) 65%,rgba(17,26,46,.19));}
html[lang="ar"] body.shm-home .slider-item::after {background:linear-gradient(270deg,rgba(15,24,48,.78),rgba(21,34,57,.39) 65%,rgba(17,26,46,.19));}
body.shm-home .slider-item > img {width:100%;display:block;max-height:610px;min-height:440px;object-fit:cover;}
body.shm-home .slider-item > .container {position:absolute;z-index:1;top:50%;left:0;right:0;transform:translateY(-50%);}
body.shm-home .slider-content {position:relative!important;bottom:auto!important;margin-top:0!important;}
body.shm-home .slider-content h2 {color:white!important;font-size:clamp(30px,3.8vw,52px);line-height:1.18;letter-spacing:-.02em;text-shadow:0 3px 16px rgba(0,0,0,.13);max-width:850px;margin-bottom:24px!important;}
html[lang="ar"] body.shm-home .slider-content h2 {line-height:1.38;letter-spacing:normal;}
body.shm-home .slider-content .shm-hero-kicker {color:#f3efff;font-size:13px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;margin-bottom:13px;display:block;}
html[lang="ar"] body.shm-home .shm-hero-kicker {letter-spacing:normal;text-transform:none;font-size:15px;}
body.shm-home .slider-content .btn {margin-top:0;}
body.shm-home .slider .slick-prev,body.shm-home .slider .slick-next {z-index:10;}
/* Trust band and the five product navigation tiles */
.shm-trustbar {background:#fff;border-bottom:1px solid var(--shm-line);padding:20px 0;}
.shm-trust-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;}
.shm-trust-item {padding:8px 20px;border-right:1px solid var(--shm-line);text-align:center;}
.shm-trust-item:last-child {border-right:0;}
.shm-trust-item strong {display:block;color:var(--shm-purple);font-size:clamp(17px,2vw,24px);line-height:1.15;font-weight:800;}
.shm-trust-item span {display:block;color:var(--shm-muted);font-size:12px;line-height:1.5;margin-top:7px;}
.shm-category-section {background:var(--shm-surface);padding:70px 0 68px;}
.shm-section-eyebrow {display:block;margin:0 0 9px;color:var(--shm-red);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;}
html[lang="ar"] .shm-section-eyebrow {letter-spacing:normal;text-transform:none;}
.shm-category-section h2 {margin-top:0;margin-bottom:13px;}
.shm-section-intro {max-width:720px;margin:0 0 28px;color:var(--shm-muted);font-size:16px;}
.shm-category-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;}
a.shm-category-card {position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:145px;background:#fff;border:1px solid var(--shm-line);border-top:3px solid var(--shm-purple);border-radius:8px;padding:19px 16px 15px;box-shadow:0 4px 16px rgba(27,35,68,.035);color:var(--shm-ink);text-decoration:none;}
a.shm-category-card:hover,a.shm-category-card:focus {color:var(--shm-purple);transform:translateY(-4px);box-shadow:var(--shm-shadow-hover);border-top-color:var(--shm-red);}
.shm-category-number {font-weight:800;font-size:12px;color:var(--shm-red);}
.shm-category-name {font-size:15px;font-weight:800;line-height:1.45;}
.shm-category-arrow {color:var(--shm-red);font-weight:800;font-size:19px;align-self:flex-end;line-height:1;}
html[lang="ar"] .shm-category-arrow {align-self:flex-start;}
/* Existing homepage cards; same photographs, reliable equal dimensions */
body.shm-home .services-item .services-box,
body.shm-home .post-box {background:#fff;border:1px solid var(--shm-line);border-radius:var(--shm-radius);box-shadow:var(--shm-shadow);overflow:hidden;height:100%;transition:box-shadow .2s ease,transform .2s ease;}
body.shm-home .services-item .services-box:hover,
body.shm-home .post-box:hover {transform:translateY(-4px);box-shadow:var(--shm-shadow-hover);}
body.shm-home .services-item .services-icon {overflow:hidden;aspect-ratio:4/3;background:#edf1f5;}
body.shm-home .services-item .services-icon img {width:100%!important;height:100%!important;object-fit:cover;display:block;}
body.shm-home .services-item .services-content {padding:23px 23px 26px;min-height:250px;display:flex;flex-direction:column;}
body.shm-home .services-item .services-content h3 {font-size:20px;margin-bottom:13px;}
body.shm-home .services-item .services-content p {font-size:14px;line-height:1.75;}
body.shm-home .services-item .view-detail {margin-top:auto;color:var(--shm-red);font-weight:700;}
body.shm-home .bg-primary.no-padding {background:var(--shm-purple-deep)!important;}
body.shm-home .video-section-left {min-height:420px;background-size:cover;background-position:center;}
body.shm-home .video-section-right {padding-top:55px;padding-bottom:55px;}
body.shm-home .bg-default {background:var(--shm-purple-deep)!important;}
body.shm-home .project-item .inner {overflow:hidden;border-radius:8px;}
body.shm-home .project-item .inner > img {width:100%;aspect-ratio:4/3;object-fit:cover;}
body.shm-home .entry-media img {width:100%;aspect-ratio:4/3;object-fit:cover;}
body.shm-home .inner-post {padding:23px;}
body.shm-home .entry-summary p {font-size:14px;line-height:1.75;}
body.shm-home .entry-title {font-size:21px;}
body.shm-home .about-border-right {border-right:0;}
body.shm-home .about-border-right h3 {color:var(--shm-purple);}
/* Consistent headers across all product/service pages */
.page-header {position:relative;isolation:isolate;min-height:190px;background-size:cover!important;background-position:center!important;display:flex;align-items:center;margin-bottom:44px;}
.page-header::before {content:"";position:absolute;inset:0;background:linear-gradient(110deg,rgba(39,36,93,.9),rgba(39,36,93,.64));z-index:0;pointer-events:none;}
.page-header > .container {position:relative;z-index:1;width:100%;}
.page-header .page-title {font-size:clamp(27px,3vw,38px);font-weight:800;color:#fff!important;margin:0;line-height:1.3;}
/* Product content, lists and galleries */
.site-content > .container, .site-content section .container {max-width:1240px;}
.site-content section h1 {font-size:clamp(29px,3vw,39px);margin:0 0 18px;color:var(--shm-purple);}
.site-content section h2 {font-size:clamp(25px,2.4vw,31px);margin:26px 0 17px;color:var(--shm-purple);}
.site-content section h3 {font-size:clamp(19px,2vw,24px);margin:18px 0 12px;}
.site-content section p {line-height:1.78;}
.site-content hr {border-color:var(--shm-line);margin:22px 0;}
.site-content .product-box {background:#fff;border:1px solid var(--shm-line);border-radius:var(--shm-radius);box-shadow:var(--shm-shadow);overflow:hidden;margin-bottom:25px;transition:transform .2s ease,box-shadow .2s ease;}
.site-content .product-box:hover {transform:translateY(-3px);box-shadow:var(--shm-shadow-hover);}
.site-content .product-box .product-head {background:#fff;padding:12px;min-height:215px;display:flex;align-items:center;justify-content:center;}
.site-content .product-box .product-head img {display:block;width:100%;height:auto;max-height:280px;object-fit:contain;}
.site-content ul.unstyle {padding-inline-start:0;list-style:none;}
.site-content ul.unstyle li {margin:9px 0;}
.site-content ul.unstyle li i {color:var(--shm-red);margin-inline-end:7px;}
.site-content .entry, .site-content article.post-box {border-radius:var(--shm-radius);}
/* Shared distributor/logo carousel shown above the footer on all pages */
.shm-partners-strip {background:var(--shm-surface)!important;border-top:1px solid var(--shm-line);padding:45px 0 30px!important;}
.shm-partners-heading {font-size:22px;text-align:center;margin:0 0 20px;color:var(--shm-purple);font-weight:800;}
.partner-slider .partner-item {padding:4px 8px;}
.partner-slider .partner-item .inner {background:#fff;border:1px solid var(--shm-line);border-radius:8px;min-height:165px;height:165px;display:flex;align-items:center;justify-content:center;padding:12px;box-shadow:0 2px 12px rgba(26,38,62,.04);}
.partner-slider .partner-item .thumb {width:100%;height:100%;display:flex;align-items:center;justify-content:center;}
.partner-slider .partner-item .thumb img {display:block;max-width:100%;max-height:132px;width:auto;height:auto;object-fit:contain;}
#site-footer .main-footer {padding-top:54px;padding-bottom:42px;}
#site-footer .widget-footer p,#site-footer .widget-footer li,#site-footer .footer-bottom li {font-size:14px;line-height:1.8;}
#site-footer .widget-footer img {max-width:240px;height:auto;}
#site-footer .footer-social a {display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;border-radius:50%;margin-inline-start:5px;}
#site-footer .footer-social a[href="#"] {display:none;}
#site-footer .footer-bottom {border-top:1px solid rgba(255,255,255,.1);}
/* RTL helpers: no extra left-to-right drift */
html[lang="ar"] .shm-category-section,html[lang="ar"] .site-content {direction:rtl;text-align:right;}
html[lang="ar"] .shm-section-intro {margin-right:0;}
html[lang="ar"] #site-header .shm-mega-menu {direction:rtl!important;text-align:right!important;}
html[lang="ar"] #site-header .shm-mega-links > li > a {text-align:right!important;}
html[lang="ar"] #site-footer .main-footer {direction:rtl;}
/* Responsiveness */
@media (max-width:1199px){
  .shm-category-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
  #site-header #primary-menu > li > a {font-size:14px;}
}
@media (max-width:991px){
  .shm-category-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .shm-trust-grid {grid-template-columns:repeat(2,minmax(0,1fr));row-gap:10px;}
  .shm-trust-item:nth-child(2) {border-right:0;}
  body.shm-home .slider-item > img {min-height:380px;}
  body.shm-home .slider-content h2 {font-size:clamp(26px,4vw,38px);}
  .site-content > section {padding-top:52px;padding-bottom:52px;}
  .shm-category-section {padding:52px 0;}
}
@media (max-width:600px){
  body {font-size:15px;}
  body.shm-home .slider-item > img {min-height:350px;height:350px;object-fit:cover;}
  body.shm-home .slider-content h2 {font-size:25px;line-height:1.3;max-width:95%;}
  .shm-trust-item {padding:8px 10px;}
  .shm-trust-item strong {font-size:17px;}
  .shm-trust-item span {font-size:11px;}
  .shm-category-grid {grid-template-columns:1fr 1fr;gap:9px;}
  a.shm-category-card {min-height:135px;padding:15px 12px;}
  .shm-category-name {font-size:13px;}
  .shm-category-section {padding:42px 0;}
  .page-header {min-height:150px;margin-bottom:26px;}
  .page-header .page-title {font-size:27px;}
  .site-content section h2 {font-size:26px;}
  .partner-slider .partner-item .inner {height:138px;min-height:138px;padding:8px;}
  .partner-slider .partner-item .thumb img {max-height:112px;}
  #site-footer .main-footer {padding-top:35px;padding-bottom:30px;}
}
@media (prefers-reduced-motion:reduce){ html{scroll-behavior:auto;} *,*:before,*:after {transition-duration:0.01ms!important;animation-duration:0.01ms!important;} }

/* 2026-11-09 refinement: more readable top-level, dropdown, and mobile menu. */
@media (min-width:1200px) {
 #site-header #primary-menu > li > a { font-size:15.5px!important; font-weight:700!important; }
 #site-header #primary-menu > li { margin-left:0!important; margin-right:0!important; }
 #site-header #primary-menu > li > a { padding-left:9px!important; padding-right:9px!important; }
}
@media (min-width:992px) and (max-width:1199px) {
 #site-header #primary-menu > li > a {font-size:14px!important; padding-left:5px!important; padding-right:5px!important;}
}
#site-header #primary-menu .shm-mega-heading {font-size:15px!important; line-height:1.45!important;}
#site-header #primary-menu .shm-mega-links > li > a {font-size:14px!important;line-height:1.55!important;padding:7px 0!important;}
#site-header #primary-menu .shm-mega-links > li.shm-sub-link > a {font-size:13.5px!important;}
#site-header #primary-menu > li > ul.menu li a {font-size:14px;line-height:1.5;}
#primary-menu-mobile > li > a, #primary-menu-mobile .shm-mobile-products > details > summary {font-size:16px!important;line-height:1.55!important;}
#primary-menu-mobile .shm-mobile-category summary {font-size:15px!important;}
#primary-menu-mobile .shm-mobile-category li a {font-size:14px!important;}
html[lang="ar"] #site-header #primary-menu > li > a {font-size:16px!important;}
html[lang="ar"] #site-header #primary-menu .shm-mega-links > li > a {font-size:14.5px!important;}
@media (min-width:992px) and (max-width:1199px){html[lang="ar"] #site-header #primary-menu > li > a{font-size:14px!important;}}
/* Five core categories rather than a long list of individual products */
.shm-product-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:25px 0 50px;}
.shm-product-category-card{display:block;background:#fff;border:1px solid var(--shm-line);border-radius:10px;overflow:hidden;box-shadow:var(--shm-shadow);height:100%;color:var(--shm-ink)!important;text-decoration:none!important;transition:transform .2s,box-shadow .2s;}
.shm-product-category-card:hover{transform:translateY(-4px);box-shadow:var(--shm-shadow-hover);}
.shm-product-category-card img{width:100%;height:190px;object-fit:cover;display:block;}
.shm-product-category-card .shm-product-category-body{padding:19px 20px 22px;}
.shm-product-category-card h2{font-size:21px;margin:0 0 10px;line-height:1.4;}
.shm-product-category-card p{font-size:14px;color:var(--shm-muted);margin:0;line-height:1.65;}
.shm-sti-f921{display:inline-block;font-size:17px;font-weight:800;letter-spacing:.02em;color:#383480;background:#f5f6fb;border:1px solid #c6c9e6;border-radius:5px;padding:6px 12px;}
.shm-clients-map img{width:100%;height:auto;display:block;max-height:560px;object-fit:contain;border:1px solid var(--shm-line);border-radius:8px;background:#fff;}
@media(max-width:991px){.shm-product-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.shm-product-category-grid{grid-template-columns:1fr;gap:15px;}.shm-product-category-card img{height:175px;}}

/* 2026-11-10: five-group product landing page and homepage Vision/Mission. */
.shm-product-category-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:23px;align-items:stretch;}
.shm-product-category-card{grid-column:span 2;box-shadow:0 8px 24px rgba(30,33,60,.07);border-radius:11px;overflow:hidden;display:flex;flex-direction:column;}
.shm-product-category-card:nth-child(4){grid-column:2/span 2;}
.shm-product-category-card:nth-child(5){grid-column:4/span 2;}
.shm-product-category-card img{width:100%;height:225px;object-fit:cover;background:#f2f4f8;}
.shm-product-category-body{flex:1;display:flex;flex-direction:column;}
.shm-product-category-body p{flex:1;}
.shm-category-cta{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px;font-size:14px;font-weight:700;color:#d6202c;}
.shm-product-intro{max-width:750px;font-size:17px;line-height:1.7;}
.shm-home-vm{display:grid;grid-template-columns:1fr;gap:14px;margin:22px 0 18px;}
.shm-home-vm-item{padding:16px 18px;border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.08);border-radius:7px;}
.shm-home-vm-item h3{color:white!important;font-size:19px!important;margin:0 0 9px;}
.shm-home-vm-item p{color:white!important;margin:0;font-size:14px;line-height:1.75;}
.shm-clients-map img{width:100%;height:auto;max-height:none;object-fit:contain;}
@media(max-width:991px){.shm-product-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.shm-product-category-card,.shm-product-category-card:nth-child(4),.shm-product-category-card:nth-child(5){grid-column:auto;}.shm-product-category-card:last-child{grid-column:1/-1;max-width:500px;width:100%;justify-self:center;}}
@media(max-width:600px){.shm-product-category-grid{grid-template-columns:1fr;}.shm-product-category-card,.shm-product-category-card:last-child{grid-column:auto;max-width:none;}.shm-product-category-card img{height:200px;}}
