/* v8.3 — Source-level layout and spacing refinement, Option 2 composition + Option 1 restraint. */
/* Prevent parent theme wrappers and the page builder from introducing padding/gaps above the hero. */
body.sai-website.home #main-content,
body.sai-website.home #main-content > .sai-home-hero{margin:0;padding:0;border:0}
body.sai-website.home .sai-home-hero,
body.sai-website.home .sai-home-services{margin-block:0!important;padding-block:0!important}
body.sai-website.home .sai-home-services>.container{padding-top:38px;padding-bottom:28px;display:grid;grid-template-columns:minmax(235px,.88fr) minmax(0,2.7fr);gap:18px 25px;align-items:start}
body.sai-website.home .sai-home-services-heading{grid-column:1;display:flex;flex-direction:column;align-items:start;justify-content:flex-start;gap:12px;margin:0}
body.sai-website.home .sai-home-services-heading>div{width:100%}
body.sai-website.home .sai-home-services-heading h2{font-size:clamp(2.5rem,3.4vw,3.8rem);line-height:1.04;letter-spacing:-.055em;margin:8px 0 15px;max-width:440px}
body.sai-website.home .sai-home-services-heading p{max-width:325px;font-size:.96rem;line-height:1.7}
body.sai-website.home .sai-home-services-heading .sai-text-link{margin-top:15px;color:#5f236b;border:1px solid #9e76a5;border-radius:100px;padding:11px 17px;text-decoration:none;font-size:.8rem}
body.sai-website.home .sai-home-service-grid{grid-column:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0}
body.sai-website.home .sai-home-service-card{height:100%;border-radius:14px;box-shadow:0 11px 30px #38163d12}
body.sai-website.home .sai-home-service-card>img{height:145px;object-fit:cover}
body.sai-website.home .sai-home-service-text{padding:16px 15px 17px;min-width:0}
body.sai-website.home .sai-home-service-text h3{font-size:clamp(1.15rem,1.7vw,1.5rem);margin:7px 0 10px;line-height:1.15}
body.sai-website.home .sai-home-service-text p{font-size:.77rem;line-height:1.55;min-height:54px}
body.sai-website.home .sai-home-service-text>span{font-size:.61rem}
body.sai-website.home .sai-home-service-text small{font-size:.68rem;line-height:1.45}
body.sai-website.home .sai-home-service-text .sai-home-time{font-size:.76rem;margin-top:auto}
body.sai-website.home .sai-home-service-text .sai-service-action{margin-top:13px;font-size:.74rem}
body.sai-website.home .sai-home-service-ribbon{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1fr auto;align-items:center;gap:14px;background:linear-gradient(105deg,#330b40,#581967);color:white;border-radius:14px;border:1px solid #8c5593;padding:15px 20px;margin-top:10px}
body.sai-website.home .sai-home-service-ribbon>div{display:flex;align-items:center;gap:10px;min-width:0;border-right:1px solid #ffffff37;padding-right:13px}
body.sai-website.home .sai-home-service-ribbon>div>span{font-size:1.7rem;color:#ffcc62;line-height:1}
body.sai-website.home .sai-home-service-ribbon p{margin:0;color:#fff}
body.sai-website.home .sai-home-service-ribbon strong{display:block;font-size:.75rem;line-height:1.4}
body.sai-website.home .sai-home-service-ribbon small{display:block;color:#e8d8e9;font-size:.67rem;line-height:1.4}
body.sai-website.home .sai-home-service-ribbon>a{background:#f3be49;color:#2b0737;padding:11px 17px;font-size:.75rem;font-weight:850;text-decoration:none;border-radius:8px;white-space:nowrap}
/* No mystery blank band between services and About, even with older saved builder padding. */
body.sai-website.home .sai-home-services + .sai-home-about{margin-top:0!important}
body.sai-website.home .sai-home-about{padding-block:34px!important}
body.sai-website.home .sai-home-about-grid{align-items:center}
@media(max-width:1180px){
 body.sai-website.home .sai-home-services>.container{grid-template-columns:1fr;gap:20px;padding-top:35px}
 body.sai-website.home .sai-home-services-heading{grid-column:1;display:flex;flex-direction:row;align-items:end;justify-content:space-between;gap:25px}
 body.sai-website.home .sai-home-services-heading h2{max-width:800px}
 body.sai-website.home .sai-home-service-grid{grid-column:1}
 body.sai-website.home .sai-home-service-card>img{height:200px}
}
@media(max-width:760px){
 body.sai-website.home .sai-home-services>.container{padding-top:29px;padding-bottom:22px}
 body.sai-website.home .sai-home-services-heading{display:block}
 body.sai-website.home .sai-home-services-heading h2{font-size:clamp(2.2rem,8vw,3.2rem)}
 body.sai-website.home .sai-home-service-grid{grid-template-columns:1fr;gap:12px}
 body.sai-website.home .sai-home-service-card>img{height:auto;max-height:250px;aspect-ratio:16/8.2}
 body.sai-website.home .sai-home-service-text p{min-height:0}
 body.sai-website.home .sai-home-service-ribbon{grid-template-columns:1fr 1fr;padding:16px;gap:14px}
 body.sai-website.home .sai-home-service-ribbon>div{border-right:0}
 body.sai-website.home .sai-home-service-ribbon>a{grid-column:1/-1;text-align:center}
 body.sai-website.home .sai-home-about{padding-block:27px!important}
}
@media(max-width:460px){body.sai-website.home .sai-home-service-ribbon{grid-template-columns:1fr}body.sai-website.home .sai-home-service-ribbon>a{grid-column:1}body.sai-website.home .sai-home-services-heading .sai-text-link{margin-top:13px}}
