@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

.sh-portfolio {
  --sh-ink: #142236;
  --sh-muted: #52647a;
  --sh-paper: #f7f8f5;
  --sh-surface: #fff;
  --sh-blue: #2455c7;
  --sh-sky: #d9ecf4;
  --sh-rule: #cfd9e1;
  --sh-subtle: #edf2f5;
  color: var(--sh-ink);
  background: var(--sh-paper);
  font: 400 16px/1.65 Manrope, 'IBM Plex Sans Arabic', sans-serif;
  isolation: isolate;
  overflow: clip;
}
body.dark-theme .sh-portfolio, body[data-theme='dark'] .sh-portfolio, html[data-theme='dark'] .sh-portfolio {
  --sh-ink: #edf3f7;
  --sh-muted: #b4c5d5;
  --sh-paper: #101b2b;
  --sh-surface: #19283a;
  --sh-blue: #8cafff;
  --sh-sky: #223f52;
  --sh-rule: #395064;
  --sh-subtle: #203348;
}
.sh-portfolio, .sh-portfolio *, .sh-portfolio *::before, .sh-portfolio *::after { box-sizing: border-box; }
.sh-portfolio [hidden] { display: none !important; }
.sh-portfolio a { color: inherit; text-decoration: none; }
.sh-portfolio button, .sh-portfolio input { font: inherit; }
.sh-portfolio button { cursor: pointer; }
.sh-portfolio :focus-visible { outline: 3px solid var(--sh-blue); outline-offset: 3px; }
.sh-portfolio .lang-ar { display: none; font-family: 'IBM Plex Sans Arabic', sans-serif; }
html[lang^='ar'] .sh-portfolio .lang-en { display: none; }
html[lang^='ar'] .sh-portfolio .lang-ar { display: inline; }
html[lang^='ar'] .sh-portfolio { direction: rtl; font-family: 'IBM Plex Sans Arabic', Manrope, sans-serif; }
.sh-portfolio .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.sh-shell { max-width: 1500px; margin: auto; padding: clamp(24px, 4vw, 64px) clamp(18px, 4vw, 60px) 100px; }
.sh-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(310px, 0.85fr); gap: clamp(24px, 3vw, 52px); align-items: start; }
.sh-primary { min-width: 0; }
.sh-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 32%); align-items: center; gap: clamp(22px, 4vw, 56px); min-height: 430px; padding: clamp(26px, 4vw, 58px); background: var(--sh-sky); border: 1px solid var(--sh-rule); border-radius: 4px 44px 4px 4px; }
.sh-identity { color: var(--sh-muted); font-size: 13px; font-weight: 700; margin: 0 0 20px; }
.sh-intro h1 { font-size: clamp(44px, 5.2vw, 82px); font-weight: 800; line-height: 0.99; letter-spacing: -0.075em; margin: 0 0 26px; color: var(--sh-ink); }
html[lang^='ar'] .sh-intro h1 { direction: ltr; text-align: right; }
.sh-title-mark { color: var(--sh-blue); }
.sh-lead { max-width: 49ch; color: var(--sh-ink); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; margin: 0 0 28px; }
.sh-intro-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sh-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 11px 18px; border-radius: 7px; font-size: 13px; font-weight: 800; border: 1px solid var(--sh-blue); text-align: center; transition: background .18s, color .18s; }
.sh-button-primary { background: #2455c7; color: #fff !important; }
.sh-button-primary:hover { background: #163d9e; }
.sh-button-outline { background: transparent; color: var(--sh-ink); border-color: var(--sh-rule); }
.sh-button-outline:hover { background: var(--sh-surface); }
.sh-location { margin: 24px 0 0; color: var(--sh-muted); font-size: 12px; }
.sh-portrait-frame { position: relative; align-self: stretch; min-height: 280px; padding: 12px 12px 36px; border: 1px solid var(--sh-ink); background: var(--sh-surface); transform: rotate(2deg); }
.sh-portrait-frame img { width: 100%; height: 100%; max-height: 390px; object-fit: cover; object-position: center 25%; filter: saturate(.82); display: block; }
.sh-portrait-caption { position: absolute; bottom: 6px; left: 12px; font: 700 10px/1.3 Manrope, sans-serif; letter-spacing: .02em; }
.sh-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 0 0 23px; padding-bottom: 18px; border-bottom: 1px solid var(--sh-rule); }
.sh-section-heading > p { max-width: 28ch; margin: 0; color: var(--sh-muted); font-size: 13px; }
.sh-section-index { margin: 0 0 7px; font-size: 12px; font-weight: 700; color: var(--sh-blue); }
.sh-section-heading h2, .sh-rail h2 { font-size: clamp(25px, 2.6vw, 36px); line-height: 1.18; letter-spacing: -.045em; margin: 0; }
.sh-work, .sh-expertise { margin-top: clamp(54px, 6vw, 96px); }
.sh-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 3px 2px 15px; margin-bottom: 12px; }
.sh-filter { background: transparent; border: 1px solid var(--sh-rule); color: var(--sh-muted); padding: 8px 15px; border-radius: 5px; font-size: 12px; font-weight: 700; flex: none; min-height: 40px; }
.sh-filter:hover { border-color: var(--sh-blue); color: var(--sh-ink); }
.sh-filter.is-active { color: #fff; background: #2455c7; border-color: #2455c7; }
.sh-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sh-project { min-width: 0; border: 1px solid var(--sh-rule); background: var(--sh-surface); }
.sh-project[hidden], .sh-product[hidden] { display: none; }
.sh-project-visual { position: relative; padding: 12px; background: var(--sh-subtle); aspect-ratio: 16/10; overflow: hidden; }
.sh-project-visual img { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--sh-surface); }
.sh-project-number { position: absolute; left: 22px; top: 22px; background: var(--sh-surface); color: var(--sh-ink); border: 1px solid var(--sh-rule); padding: 2px 9px; font-size: 11px; font-weight: 800; }
html[lang^='ar'] .sh-project-number { left: auto; right: 22px; }
.sh-project-content { display: flex; flex-direction: column; min-height: 152px; padding: 18px 20px; }
.sh-project-content h3 { margin: 0 0 5px; font-size: 16px; line-height: 1.35; }
.sh-project-content p { margin: 0 0 15px; color: var(--sh-muted); font-size: 13px; line-height: 1.55; }
.sh-project-link, .sh-text-button { width: fit-content; margin-top: auto; font-size: 13px; font-weight: 800; color: var(--sh-blue) !important; border-bottom: 1px solid currentColor; }
.sh-project-link:hover, .sh-text-button:hover { color: var(--sh-ink) !important; }
.sh-empty { padding: 24px; background: var(--sh-subtle); color: var(--sh-muted); font-size: 14px; }
.sh-work-empty { grid-column: 1 / -1; }
.sh-expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.sh-expertise-grid > div { border-top: 2px solid var(--sh-blue); padding: 15px 8px 0 0; }
.sh-expertise-grid h3 { font-size: 14px; margin: 0 0 8px; }
.sh-expertise-grid p { font-size: 13px; color: var(--sh-muted); margin: 0; }
.sh-text-button { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 3px; margin: 6px 18px 0 0; }
.sh-rail { position: sticky; top: 24px; }
.sh-rail-inner { background: var(--sh-surface); border: 1px solid var(--sh-rule); padding: clamp(21px, 2.3vw, 32px); }
.sh-rail h2 { max-width: 13ch; }
.sh-rail-intro { color: var(--sh-muted); font-size: 14px; max-width: 38ch; margin: 14px 0 24px; }
.sh-service-list { border-top: 1px solid var(--sh-rule); }
.sh-service { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--sh-rule); }
.sh-service h3 { font-size: 14px; margin: 0 0 3px; }
.sh-service p { font-size: 12px; line-height: 1.4; color: var(--sh-muted); margin: 0; }
.sh-service > span { white-space: nowrap; color: var(--sh-blue); font-size: 12px; font-weight: 800; }
.sh-process { padding: 23px 0; }
.sh-process h3 { font-size: 14px; margin: 0 0 12px; }
.sh-process ol { list-style: none; padding: 0; margin: 0; counter-reset: phase; }
.sh-process li { counter-increment: phase; display: flex; gap: 12px; align-items: baseline; font-size: 12px; padding: 5px 0; }
.sh-process li::before { content: '0' counter(phase); color: var(--sh-blue); font-weight: 800; }
.sh-contact { width: 100%; }
.sh-store { margin-top: clamp(70px, 8vw, 120px); }
.sh-store-toolbar { display: flex; gap: 12px; margin: 0 0 15px; }
.sh-search { flex: 1; }
.sh-search input { background: var(--sh-surface); border: 1px solid var(--sh-rule); border-radius: 6px; min-height: 48px; width: 100%; color: var(--sh-ink); padding: 9px 16px; }
.sh-search input::placeholder { color: var(--sh-muted); }
.sh-cart-trigger { border: 1px solid var(--sh-blue); border-radius: 6px; background: var(--sh-surface); color: var(--sh-blue); padding: 9px 16px; font-size: 13px; font-weight: 800; }
.sh-cart-count { margin-inline-start: 4px; }
.sh-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sh-product { background: var(--sh-surface); border: 1px solid var(--sh-rule); min-width: 0; }
.sh-product-image { aspect-ratio: 16/10; background: var(--sh-subtle); padding: 10px; }
.sh-product-image img { width: 100%; height: 100%; object-fit: contain; }
.sh-product-content { padding: 16px; }
.sh-product-content h3 { font-size: 15px; line-height: 1.4; margin: 0 0 20px; min-height: 2.8em; }
.sh-product-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; }
.sh-product-footer button, .sh-product-footer a { background: none; border: 0; padding: 4px 0; color: var(--sh-blue); font-size: 12px; font-weight: 800; text-align: end; text-decoration: underline; }
.sh-overlay { position: fixed; inset: 0; background: rgba(9, 20, 33, .68); z-index: 999990; }
.sh-dialog { position: fixed; z-index: 999991; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 750px); max-height: min(88dvh, 850px); overflow: auto; background: var(--sh-surface); color: var(--sh-ink); border: 1px solid var(--sh-rule); border-radius: 20px 20px 0 0; box-shadow: 0 -15px 50px rgba(0, 0, 0, .2); }
.sh-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 23px 26px 16px; border-bottom: 1px solid var(--sh-rule); }
.sh-dialog-head h2 { font-size: 24px; margin: 0; line-height: 1.3; }
.sh-close { background: var(--sh-subtle); border: 1px solid var(--sh-rule); color: var(--sh-ink); border-radius: 50%; min-width: 42px; height: 42px; font-size: 26px; line-height: 1; }
.sh-dialog-body { padding: 25px 26px 38px; }
.sh-skill-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; }
.sh-skill-list li { padding: 18px; border: 1px solid var(--sh-rule); }
.sh-skill-list strong { font-size: 16px; }
.sh-skill-list p { color: var(--sh-muted); font-size: 13px; margin: 5px 0 0; }
.sh-dialog-product { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; }
.sh-dialog-product img { width: 120px; height: 100px; object-fit: contain; background: var(--sh-subtle); }
.sh-dialog-product p { margin: 0; color: var(--sh-muted); font-size: 14px; max-height: 140px; overflow: auto; }
.sh-plans { border: 0; margin: 20px 0; padding: 0; }
.sh-plans legend { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
#shPlans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sh-plan { display: flex; justify-content: space-between; gap: 6px; align-items: center; padding: 12px; border: 1px solid var(--sh-rule); border-radius: 6px; font-size: 13px; cursor: pointer; }
.sh-plan:has(input:checked) { border-color: var(--sh-blue); background: var(--sh-sky); }
.sh-plan input { accent-color: var(--sh-blue); }
.sh-product-price { font-size: 21px; font-weight: 800; color: var(--sh-blue); }
.sh-form-error { color: #a2222a; background: #fdebed; border: 1px solid #edb2b8; padding: 10px; font-size: 13px; }
.sh-dialog-actions { display: flex; gap: 10px; }
.sh-dialog-actions .sh-button { flex: 1; }
.sh-dialog-actions button:disabled { cursor: wait; opacity: .6; }
.sh-cart-dialog { left: auto; right: 0; top: 0; bottom: 0; transform: none; width: min(100%, 440px); max-height: none; border-radius: 0; }
html[lang^='ar'] .sh-cart-dialog { right: auto; left: 0; }
.sh-cart-dialog .woocommerce-mini-cart { list-style: none; padding: 0; }
.sh-cart-dialog .woocommerce-mini-cart-item { position: relative; padding: 14px 32px 14px 0; border-bottom: 1px solid var(--sh-rule); font-size: 14px; }
.sh-cart-dialog .woocommerce-mini-cart-item > a:not(.remove) { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sh-cart-dialog .woocommerce-mini-cart-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 5px; float: none; }
.sh-cart-dialog .woocommerce-mini-cart-item a.remove { position: absolute; right: 0; top: 15px; color: #a2222a; font-size: 22px; }
.sh-cart-dialog .quantity { display: block; padding-inline-start: 60px; color: var(--sh-muted); }
.sh-cart-dialog .woocommerce-mini-cart__total { display: flex; justify-content: space-between; border-top: 1px solid var(--sh-rule); padding-top: 15px; }
.sh-cart-dialog .woocommerce-mini-cart__buttons { display: grid; gap: 10px; }
.sh-cart-dialog .woocommerce-mini-cart__buttons a { display: block; text-align: center; padding: 10px 16px; min-height: 44px; border: 1px solid var(--sh-blue); border-radius: 6px; color: var(--sh-blue); font-weight: 800; }
.sh-cart-dialog .woocommerce-mini-cart__buttons a.checkout { color: #fff; background: #2455c7; }
@media (max-width: 1100px) { .sh-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr); gap: 20px; } .sh-intro { grid-template-columns: 1fr; } .sh-portrait-frame { display: none; } .sh-expertise-grid { grid-template-columns: 1fr; } }
@media (max-width: 850px) { .sh-layout { grid-template-columns: 1fr; } .sh-rail { position: static; } .sh-intro { min-height: 0; } .sh-project-grid { gap: 14px; } .sh-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sh-shell { padding: 14px 14px 70px; } .sh-intro { border-radius: 3px 28px 3px 3px; padding: 28px 23px; } .sh-intro h1 { font-size: clamp(48px, 13vw, 66px); } .sh-section-heading { display: block; } .sh-section-heading > p { margin-top: 8px; } .sh-project-grid { grid-template-columns: 1fr; } .sh-product-grid { gap: 9px; } .sh-product-content { padding: 10px; } .sh-product-content h3 { font-size: 13px; } .sh-product-footer { flex-wrap: wrap; font-size: 12px; } .sh-dialog-body, .sh-dialog-head { padding-inline: 18px; } .sh-skill-list { grid-template-columns: 1fr; } .sh-dialog-product { grid-template-columns: 80px 1fr; } .sh-dialog-product img { width: 80px; height: 80px; } }
@media (max-width: 370px) { .sh-product-grid, #shPlans { grid-template-columns: 1fr; } .sh-intro-actions .sh-button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .sh-portfolio *, .sh-portfolio *::before, .sh-portfolio *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
