/* Transform manufacturing with AI & Industrial IoT (services/iot/smart-manufacturing-with-ai-iot.php) - layout follows the Dynamics 365 page */
.mf-wrap{max-width:1270px;margin:0 auto;padding:0 15px}
.mf-narrow{max-width:900px}
.mf-section{padding:80px 0}
.mf-section--alt{background:#f4f7fc}
.mf-head{text-align:center;max-width:860px;margin:0 auto 50px}
.mf-head h2{font-size:40px;line-height:48px;font-weight:800;color:#0b1b42;margin:0 0 18px}
.mf-head p{font-size:16px;line-height:30px;color:#4b587a;margin:0}
.mf-head--left{text-align:left;margin:0}

/* banner */
.mf-banner{background:linear-gradient(180deg,#eaf1ff 0,#fff 100%);padding:40px 0 60px}
.mf-banner .mf-wrap{display:flex;justify-content:space-between;align-items:flex-start;gap:60px}
.mf-banner__text{flex:0 0 600px;max-width:600px}
.mf-banner .rank-math-breadcrumb p{margin:0 0 28px;font-size:14px;max-width:none}
.mf-banner .rank-math-breadcrumb a,.mf-banner .rank-math-breadcrumb .last{color:#5b6b82}
.mf-banner .rank-math-breadcrumb .mf-current{color:#1167e8}
.mf-banner h1{font-size:56px;line-height:60px;font-weight:800;color:#0b1b42;margin:0 0 30px;letter-spacing:-1px}
.mf-banner h1 span{color:#1167e8}
.mf-banner h2.mf-sub{font-size:22px;line-height:31px;font-weight:700;color:#0b1b42;margin:0 0 24px}
.mf-banner .mf-text{font-size:16px;line-height:30px;color:#4b587a;margin:0 0 30px;max-width:none}
.mf-glance-label{display:block;font-size:12px;letter-spacing:1.4px;font-weight:700;color:#5b6b82;text-transform:uppercase;margin-bottom:14px}
.mf-glance{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:34px}
.mf-glance span{display:inline-flex;align-items:center;gap:12px;background:#fff;border:1px solid #e3e9f4;border-radius:12px;padding:10px 16px;font-size:15px;font-weight:600;color:#0b1b42}
.mf-glance img{width:28px;height:28px;flex:0 0 28px}
.mf-banner .button-wrapper{margin:0}
.mf-banner .blue-button{height:56px;padding:0 32px;box-shadow:0 10px 24px -8px rgba(17,103,232,.5)}
.mf-banner__img{flex:1 1 0;min-width:0;padding-top:60px}
.mf-banner__img img{display:block;width:100%;height:auto;border-radius:24px;border:1px solid #e3e9f4}

/* cards */
.mf-grid{display:grid;gap:24px}
.mf-grid--3{grid-template-columns:repeat(3,1fr)}
.mf-card{background:#fff;border:1px solid #e3e9f4;border-radius:16px;padding:32px;min-width:0}
.mf-icon{margin-bottom:32px;line-height:0}
.mf-icon img{display:block;width:56px;height:56px}
.mf-card h3{font-size:20px;line-height:27px;font-weight:700;color:#0b1b42;margin:0 0 16px}
.mf-card p{font-size:15px;line-height:26.5px;color:#4b587a;margin:0}

/* why choose */
.mf-why{display:flex;gap:56px;align-items:flex-start}
.mf-why__left{flex:0 0 583px;max-width:583px}
.mf-why__left h2{font-size:40px;line-height:48px;font-weight:800;color:#0b1b42;margin:0 0 24px}
.mf-why__left p{font-size:16px;line-height:30px;color:#4b587a;margin:0 0 32px}
.mf-why__left img{display:block;width:100%;height:auto;border-radius:20px}
.mf-why__right{flex:1 1 0;display:grid;grid-template-columns:1fr 1fr;gap:20px}
.mf-why-card{background:#fff;border-radius:16px;padding:28px;box-shadow:0 8px 24px -12px rgba(11,27,66,.12)}
.mf-why-card b{display:block;font-size:14px;font-weight:700;color:#1167e8;margin-bottom:16px}
.mf-why-card h3{font-size:18px;line-height:25px;font-weight:700;color:#0b1b42;margin:0 0 12px}
.mf-why-card p{font-size:14px;line-height:25.5px;color:#4b587a;margin:0}

.mf-grid--2{grid-template-columns:repeat(2,1fr)}


.mf-grid--4{grid-template-columns:repeat(4,1fr)}


/* bottom cta */
.mf-bottom{padding:0 0 80px}
.mf-bottom__box{background:#eaf1ff;border-radius:24px;padding:70px 30px;text-align:center}
.mf-bottom__box h2{font-size:32px;line-height:40px;font-weight:800;color:#0b1b42;margin:0 0 16px}
.mf-bottom__box p{font-size:16px;line-height:29px;color:#4b587a;margin:0 auto 30px;max-width:560px}
.mf-bottom__box .button-wrapper{justify-content:center;margin:0}
.mf-bottom__box .blue-button{height:56px;padding:0 32px;box-shadow:0 10px 24px -8px rgba(17,103,232,.5)}

@media (max-width:1199px){
.mf-banner h1{font-size:46px;line-height:52px}
.mf-banner__text{flex-basis:520px;max-width:520px}
.mf-why{flex-direction:column}
.mf-why__left{flex:1 1 auto;max-width:100%}
.mf-why__right{width:100%}
.mf-grid--4{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:991px){
.mf-section{padding:56px 0}
.mf-banner .mf-wrap{flex-direction:column;gap:30px}
.mf-banner__text{flex:1 1 auto;max-width:100%}
.mf-banner__img{padding-top:0;width:100%}
.mf-grid--3{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:767px){
.mf-banner h1{font-size:34px;line-height:40px}
.mf-head{margin-bottom:32px}
.mf-grid--3,.mf-grid--4,.mf-why__right{grid-template-columns:1fr}
.mf-card{padding:24px}
.mf-bottom__box{padding:44px 20px}
.mf-bottom__box h2{font-size:24px;line-height:32px}
}


/* page extras */
.mf-grid--4{grid-template-columns:repeat(4,1fr)}
.mf-grid--5{grid-template-columns:repeat(5,1fr)}
.mf-grid--4 .mf-card{padding:28px}
.mf-grid--5{display:grid;gap:20px}
.mf-grid--4.mf-steps{gap:20px}
.mf-case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.mf-case{background:#fff;border:1px solid #e3e9f4;border-radius:16px;padding:32px;display:flex;flex-direction:column;min-width:0}
.mf-case__tag{align-self:flex-start;background:#eaf1ff;color:#1167e8;font-size:12px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;padding:6px 14px;border-radius:20px;margin-bottom:16px}
.mf-case h3{font-size:20px;line-height:28px;font-weight:800;color:#0b1b42;margin:0 0 16px}
.mf-case p{font-size:15px;line-height:26.5px;color:#4b587a;margin:0 0 12px}
.mf-case p strong{color:#0b1b42}
.mf-case__stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:auto;padding-top:22px;border-top:1px solid #e3e9f4}
.mf-case__stats strong{display:block;font-size:26px;line-height:32px;font-weight:800;color:#1167e8}
.mf-case__stats span{display:block;font-size:13px;line-height:19px;color:#5b6b82}
.mf-quote{max-width:900px;margin:40px auto 0;text-align:center;background:#fff;border:1px solid #e3e9f4;border-radius:16px;padding:36px}
.mf-quote p{font-size:19px;line-height:31px;font-weight:600;color:#0b1b42;margin:0 0 14px}
.mf-quote .mf-quote-by{font-size:14px;font-weight:600;color:#1167e8}
@media (max-width:1199px){.mf-grid--5{grid-template-columns:repeat(3,1fr)}}
@media (max-width:991px){.mf-grid--4{grid-template-columns:repeat(2,1fr)}.mf-case-grid{grid-template-columns:1fr}}
@media (max-width:767px){.mf-grid--5,.mf-grid--4{grid-template-columns:1fr}.mf-case{padding:24px}.mf-case__stats{grid-template-columns:1fr}.mf-quote{padding:24px}}

/* hero tag, buttons, stats strip */
.mf-tag{display:inline-block;background:#fff;border:1px solid #e3e9f4;color:#1167e8;font-size:12px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;padding:7px 16px;border-radius:30px;margin-bottom:22px}
.mf-banner .mf-text{margin:0 0 34px}
.mf-btns{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.mf-btns .button-wrapper{margin:0}
.mf-btn-ghost{display:inline-flex;align-items:center;justify-content:center;height:56px;padding:0 30px;border:1px solid #1167e8;border-radius:8px;background:#fff;color:#1167e8;font-size:15px;font-weight:600;text-decoration:none}
.mf-btn-ghost:hover{background:#eaf1ff;color:#1167e8}
.mf-stats{padding:40px 0;border-bottom:0}
.mf-stats__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.mf-stats__grid strong{display:block;font-size:44px;line-height:52px;font-weight:800;color:#1167e8}
.mf-stats__grid span{display:block;font-size:14px;line-height:22px;color:#5b6b82;margin-top:4px}
.mf-head{text-align:left;max-width:none;margin:0 0 40px}
@media (max-width:1199px){.mf-case-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:991px){.mf-stats__grid{grid-template-columns:repeat(2,1fr)}.mf-case-grid{grid-template-columns:1fr}}
@media (max-width:767px){.mf-stats__grid strong{font-size:34px;line-height:40px}.mf-btn-ghost{height:51px}}

/* services bento */
.mf-bento{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:minmax(200px,auto);gap:20px}
.mf-bento__card{position:relative;display:flex;flex-direction:column;background:#f4f7fc;border:1px solid #e3e9f4;border-radius:24px;padding:28px;min-width:0;overflow:hidden}
.mf-bento__card.big{grid-column:1/3;grid-row:1/3}
.mf-bento__card.wide{grid-column:3/5}
.mf-bento__card.hl{grid-column:3/5}
.mf-bento__card.wide2{grid-column:1/3}
.mf-bento__icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:#e3edff;line-height:0;margin-bottom:22px}
.mf-bento__icon img{display:block;width:32px;height:32px}
.mf-bento__body{margin-top:auto}
.mf-bento__card h3{font-size:20px;line-height:27px;font-weight:700;color:#0b1b42;margin:0 0 10px}
.mf-bento__card p{font-size:15px;line-height:25px;color:#4b587a;margin:0}
.mf-bento__card.big h3{font-size:30px;line-height:38px}
.mf-bento__card.big p{font-size:16px;line-height:28px;max-width:520px}
.mf-bars{display:flex;align-items:flex-end;gap:10px;height:90px;margin-top:26px}
.mf-bars span{flex:1;border-radius:6px 6px 0 0;background:linear-gradient(180deg,#1aa0ff,#1167e8)}
.mf-bars span.red{background:#e62e2e}
@media (max-width:991px){
.mf-bento{grid-template-columns:repeat(2,1fr)}
.mf-bento__card.big,.mf-bento__card.wide,.mf-bento__card.hl,.mf-bento__card.wide2{grid-column:1/3;grid-row:auto}
}
@media (max-width:575px){
.mf-bento{grid-template-columns:1fr}
.mf-bento__card.big,.mf-bento__card.wide,.mf-bento__card.hl,.mf-bento__card.wide2{grid-column:auto}
.mf-bento__card.big h3{font-size:24px;line-height:32px}
}

/* case stats + quote refinements */
.mf-case{padding:32px 28px 28px}
.mf-case__stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding-top:0;margin-top:auto}
.mf-case__stats>div{padding:20px 14px 0;border-left:1px solid #e3e9f4;display:flex;flex-direction:column}
.mf-case__stats>div:first-child{padding-left:0;border-left:0}
.mf-case__stats strong{font-size:24px;line-height:30px;white-space:nowrap;margin-bottom:6px}
.mf-case__stats span{font-size:12.5px;line-height:18px}
.mf-case .mf-case__stats{border-top:1px solid #e3e9f4;margin-top:20px}
.mf-case p:last-of-type{margin-bottom:0}
.mf-case h3{min-height:56px}
.mf-quote{position:relative;max-width:860px;margin:64px auto 0;padding:0 20px;background:none;border:0;border-radius:0;text-align:center}
.mf-quote::before{content:"\201C";display:flex;align-items:center;justify-content:center;width:56px;height:56px;margin:0 auto 20px;border-radius:50%;background:#e3edff;color:#1167e8;font-size:44px;line-height:1;font-family:Georgia,serif;padding-top:14px;box-sizing:border-box}
.mf-quote p{font-size:22px;line-height:34px;font-weight:600;color:#0b1b42;margin:0 0 18px}
.mf-quote .mf-quote-by{font-size:15px;font-weight:700;color:#1167e8}
@media (max-width:1199px){.mf-case h3{min-height:0}}
@media (max-width:767px){
.mf-case__stats>div{padding:14px 0 0;border-left:0;border-top:1px solid #e3e9f4;margin-top:14px}
.mf-case__stats>div:first-child{border-top:0;margin-top:0;padding-top:0}
.mf-case .mf-case__stats{border-top:1px solid #e3e9f4}
.mf-quote p{font-size:18px;line-height:29px}
}

/* smooth scroll for in-page links (Explore services) */
html{scroll-behavior:smooth}
#services{scroll-margin-top:90px}

/* hero buttons full width on mobile */
@media (max-width:767px){
.mf-btns{flex-direction:column;align-items:stretch;gap:14px}
.mf-btns .button-wrapper{width:100%;display:block}
.mf-btns .blue-button,.mf-btns .mf-btn-ghost{display:flex;align-items:center;justify-content:center;width:100%;box-sizing:border-box}
}

/* case stats: clean stacked rows on mobile */
@media (max-width:767px){
.mf-case .mf-case__stats{grid-template-columns:1fr;gap:0;margin-top:20px;padding-top:0;border-top:1px solid #e3e9f4}
.mf-case .mf-case__stats>div{flex-direction:row;align-items:center;gap:16px;padding:14px 0;margin:0;border-left:0;border-top:0;border-bottom:1px solid #e3e9f4}
.mf-case .mf-case__stats>div:first-child{padding-top:14px}
.mf-case .mf-case__stats>div:last-child{border-bottom:0;padding-bottom:0}
.mf-case .mf-case__stats strong{flex:0 0 92px;margin:0;font-size:26px;line-height:32px}
.mf-case .mf-case__stats span{font-size:14px;line-height:20px}
}

/* hero tag polish + heading wrap */
.mf-tag{display:inline-flex;align-items:center;gap:8px;background:#e3edff;border:1px solid #c9dcff;color:#1167e8;font-size:12px;line-height:16px;font-weight:700;letter-spacing:1.4px;padding:9px 18px;border-radius:30px;margin:6px 0 24px}
.mf-tag svg{flex:0 0 16px;display:block}
.mf-banner h1 span{white-space:nowrap}

/* content update: highlights strip, transition line, testimonials */
.mf-banner h1{font-size:46px;line-height:54px}
.mf-banner h1 span{white-space:normal}
.mf-stats__grid>div{display:flex;align-items:center;gap:12px}
.mf-stats__grid>div svg{flex:0 0 22px}
.mf-stats__grid>div span{display:block;margin:0;font-size:17px;line-height:24px;font-weight:700;color:#0b1b42}
.mf-transition{margin:40px 0 0;font-size:18px;line-height:30px;font-weight:600;color:#0b1b42;text-align:center}
.mf-testi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:64px}
.mf-testi-grid .mf-quote{max-width:none;margin:0;padding:32px 28px;background:#fff;border:1px solid #e3e9f4;border-radius:16px;text-align:left;display:flex;flex-direction:column}
.mf-testi-grid .mf-quote::before{margin:0 0 18px}
.mf-testi-grid .mf-quote p{font-size:16px;line-height:27px;font-weight:500;margin:0 0 20px}
.mf-testi-grid .mf-quote .mf-quote-by{margin-top:auto;font-size:14px;line-height:21px}
@media (max-width:1199px){.mf-banner h1{font-size:38px;line-height:46px}.mf-testi-grid{grid-template-columns:1fr 1fr}}
@media (max-width:991px){.mf-stats__grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:767px){.mf-banner h1{font-size:30px;line-height:38px}.mf-testi-grid{grid-template-columns:1fr;margin-top:44px}.mf-stats__grid{grid-template-columns:1fr}}

/* services bento v4 (desktop): Predictive Maintenance is a 1-row card, so it has no empty gap */
@media (min-width:992px){
.mf-bento{grid-auto-rows:auto}
.mf-bento__card:nth-child(1){grid-column:1/3;grid-row:1}
.mf-bento__card:nth-child(2){grid-column:1/3;grid-row:2}
.mf-bento__card:nth-child(3){grid-column:3;grid-row:1}
.mf-bento__card:nth-child(4){grid-column:4;grid-row:1}
.mf-bento__card:nth-child(5){grid-column:3;grid-row:2}
.mf-bento__card:nth-child(6){grid-column:4;grid-row:2}
.mf-bento__card:nth-child(7){grid-column:1/3;grid-row:3}
.mf-bento__card:nth-child(8){grid-column:3/5;grid-row:3}
.mf-bento__card.big .mf-bars{height:80px;margin-top:22px}
}
