/* QASR ALARAEK v5.24 — manufacturing journey + hero refinements + project category polish */

/* Manufacturing Journey */
html body.home .q524-manufacturing{
  background:#f7f3ec;
  color:#2b211a;
  padding:96px 0 104px;
  position:relative;
  overflow:hidden;
  border-top:1px solid rgba(70,52,39,.06);
  border-bottom:1px solid rgba(70,52,39,.08);
}
html body.home .q524-manufacturing:before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(circle at 18% 18%,rgba(255,255,255,.68),transparent 28%),radial-gradient(circle at 82% 82%,rgba(185,143,105,.08),transparent 30%);
}
html body.home .q524-manufacturing__inner{position:relative;z-index:1}
html body.home .q524-manufacturing__head{text-align:right;max-width:760px;margin:0 0 42px auto}
html body.home .q524-manufacturing__head>span{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.04em;color:#9b6d4c;margin-bottom:9px}
html body.home .q524-manufacturing__head h2{margin:0;color:#211914;font-size:clamp(2.35rem,4vw,4.7rem);line-height:1.05;font-weight:700;letter-spacing:-.035em}
html body.home .q524-manufacturing__head p{margin:14px 0 0;color:#75665b;font-size:1rem;line-height:1.9;max-width:650px}
html body.home .q524-manufacturing__grid{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(360px,.94fr);gap:54px;align-items:center;direction:ltr}
html body.home .q524-manufacturing__video-col{direction:rtl;min-width:0}
html body.home .q524-manufacturing__video-shell{position:relative;border-radius:26px;overflow:hidden;background:#d7cabd;box-shadow:0 20px 52px rgba(58,40,28,.14);border:1px solid rgba(91,64,45,.12)}
html body.home .q524-manufacturing__video-shell:before{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.42);border-radius:inherit;z-index:3;pointer-events:none}
html body.home .q524-manufacturing__video{display:block;width:100%;height:auto;aspect-ratio:1344/768;object-fit:cover;background:#eee5db}
html body.home .q524-manufacturing__video-badge{position:absolute;top:16px;right:16px;z-index:4;background:rgba(39,29,23,.78);color:#fff;border:1px solid rgba(255,255,255,.35);backdrop-filter:blur(8px);border-radius:999px;padding:8px 12px;font-size:11px;font-weight:800}
html body.home .q524-manufacturing__video-progress{height:3px;background:rgba(91,64,45,.13);overflow:hidden;position:absolute;bottom:0;left:0;right:0;z-index:4;transform-origin:right}
html body.home .q524-manufacturing__video-progress i{display:block;width:100%;height:100%;background:#8d5d3d;transform:scaleX(0);transform-origin:left center;transition:transform .12s linear}
html[dir="rtl"] body.home .q524-manufacturing__video-progress i{transform-origin:right center}
html body.home .q524-manufacturing__video-caption{font-size:13px;color:#85766b;margin:12px 6px 0;line-height:1.8}
html body.home .q524-manufacturing__steps{direction:rtl;position:relative;display:grid;gap:10px;padding-inline-end:20px}
html body.home .q524-manufacturing__steps:before{content:"";position:absolute;right:5px;top:26px;bottom:26px;width:1px;background:linear-gradient(180deg,rgba(139,91,59,.16),rgba(139,91,59,.66),rgba(139,91,59,.16))}
html body.home .q524-manufacturing__step{position:relative;display:grid;grid-template-columns:42px 58px minmax(0,1fr);gap:13px;align-items:center;padding:16px 17px;border-radius:18px;background:rgba(255,255,255,.38);border:1px solid rgba(77,55,41,.08);transition:transform .35s ease,background-color .35s ease,box-shadow .35s ease,border-color .35s ease;overflow:visible}
html body.home .q524-manufacturing__step:hover,html body.home .q524-manufacturing__step.is-active{transform:translateX(-7px);background:rgba(255,255,255,.86);border-color:rgba(141,93,61,.2);box-shadow:0 12px 30px rgba(78,53,37,.08)}
html body.home .q524-manufacturing__step-num{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#3e2a1e;color:#fff;font:700 11px/1 Arial,sans-serif;box-shadow:0 5px 14px rgba(62,42,30,.18)}
html body.home .q524-manufacturing__step-icon{width:56px;height:56px;border-radius:15px;display:grid;place-items:center;background:#efe3d5;color:#8b5b3c;transition:transform .35s ease,background-color .35s ease}
html body.home .q524-manufacturing__step.is-active .q524-manufacturing__step-icon{transform:scale(1.06) rotate(-2deg);background:#ead8c4}
html body.home .q524-manufacturing__step-icon svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html body.home .q524-manufacturing__step-copy h3{margin:0;color:#2d211a;font-size:1rem;line-height:1.45;font-weight:800}
html body.home .q524-manufacturing__step-copy p{margin:5px 0 0;color:#7b6b60;font-size:12px;line-height:1.75}
html body.home .q524-manufacturing__step-dot{position:absolute;width:10px;height:10px;border-radius:50%;background:#f7f3ec;border:2px solid #a87450;right:-20px;top:50%;transform:translateY(-50%);box-shadow:0 0 0 4px #f7f3ec;transition:background-color .3s ease,box-shadow .3s ease}
html body.home .q524-manufacturing__step.is-active .q524-manufacturing__step-dot{background:#8d5d3d;box-shadow:0 0 0 4px #f7f3ec,0 0 0 8px rgba(141,93,61,.12)}

/* Hero requested refinements */
html body.home .q494-hero-title-wrap{top:48.3%!important}
html body.home .q494-hero-title-wrap h1{color:#2d241f!important;text-shadow:0 1px 0 rgba(255,255,255,.55),0 4px 18px rgba(255,255,255,.28)!important}
html body.home .q494-hero-actions{top:86.5%!important;gap:8px!important;width:min(64%,650px)!important}
html body.home .q494-hero-action{min-width:148px!important;height:42px!important;padding:0 16px!important;background:rgba(255,255,255,.11)!important;color:#2d241f!important;border-color:rgba(45,36,31,.34)!important;box-shadow:none!important;backdrop-filter:blur(5px)!important;-webkit-backdrop-filter:blur(5px)!important;font-size:12.5px!important}
html body.home .q494-hero-action:hover,html body.home .q494-hero-action:focus-visible{background:rgba(255,255,255,.38)!important;color:#1d1713!important;border-color:rgba(45,36,31,.5)!important;box-shadow:0 8px 18px rgba(37,27,20,.08)!important}

@media(max-width:980px){
  html body.home .q524-manufacturing{padding:72px 0 78px}
  html body.home .q524-manufacturing__head{text-align:center;margin:0 auto 30px;max-width:640px}
  html body.home .q524-manufacturing__head p{margin-inline:auto}
  html body.home .q524-manufacturing__grid{grid-template-columns:1fr;gap:22px;direction:rtl}
  html body.home .q524-manufacturing__video-col{order:1}
  html body.home .q524-manufacturing__steps{order:2;padding-inline-end:0;gap:9px}
  html body.home .q524-manufacturing__steps:before{display:none}
  html body.home .q524-manufacturing__step{grid-template-columns:36px 48px minmax(0,1fr);padding:13px 14px;border-radius:15px;background:rgba(255,255,255,.62)}
  html body.home .q524-manufacturing__step:hover,html body.home .q524-manufacturing__step.is-active{transform:none}
  html body.home .q524-manufacturing__step-num{width:34px;height:34px}
  html body.home .q524-manufacturing__step-icon{width:46px;height:46px;border-radius:12px}
  html body.home .q524-manufacturing__step-icon svg{width:30px;height:30px}
  html body.home .q524-manufacturing__step-copy p{display:none}
  html body.home .q524-manufacturing__step-dot{display:none}
}

@media(max-width:767px){
  html body.home .q524-manufacturing{padding:58px 0 62px}
  html body.home .q524-manufacturing__head{margin-bottom:24px}
  html body.home .q524-manufacturing__head>span{font-size:10px}
  html body.home .q524-manufacturing__head h2{font-size:2rem}
  html body.home .q524-manufacturing__head p{font-size:13px;line-height:1.8;margin-top:10px}
  html body.home .q524-manufacturing__video-shell{border-radius:18px}
  html body.home .q524-manufacturing__video-badge{top:10px;right:10px;padding:6px 9px;font-size:9px}
  html body.home .q524-manufacturing__video-caption{font-size:11px;margin-top:8px;text-align:center}
  html body.home .q524-manufacturing__step-copy h3{font-size:13px}
  html body.home .q494-hero-title-wrap{top:46.8%!important;width:90%!important}
  html body.home .q494-hero-title-wrap h1{color:#2d241f!important}
  html body.home .q494-hero-actions{top:69.2%!important;width:78%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  html body.home .q494-hero-action{min-width:0!important;width:100%!important;height:36px!important;border-radius:12px!important;padding:0 8px!important;font-size:11px!important;background:rgba(255,255,255,.10)!important}
  html body.home .q494-hero-action:nth-child(3){grid-column:1 / -1!important;width:calc(50% - 3.5px)!important;justify-self:center!important}
}

@media(max-width:390px){
  html body.home .q494-hero-actions{width:82%!important;gap:6px!important}
  html body.home .q494-hero-action{height:34px!important;font-size:10px!important}
}

/* Four requested project groups */
html body.home .qpf-v524-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(max-width:767px){html body.home .qpf-v524-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}}
@media(max-width:520px){
  html body.home .qpf-v524-grid .qpf-v516-card{min-height:210px!important}
  html body.home .qpf-v524-grid .qpf-v516-card-body{padding:14px!important}
  html body.home .qpf-v524-grid .qpf-v516-card-body strong{font-size:1rem!important}
  html body.home .qpf-v524-grid .qpf-v516-card-link{font-size:10px!important;line-height:1.55!important}
}
