/* Ajax Kitchen Cabinets — v25 targeted corrections. ONLY six pages are tagged ak25-*.
   All original v24 pages, copy, anchors and shared CSS preserved. */

/* ===== AJAX: CUSTOM LAUNDRY CABINETS ===== */
body.ak25-laundry-ajax #layouts .v10-card-grid{align-items:stretch!important;}
body.ak25-laundry-ajax #layouts .v10-card{overflow:hidden!important;display:flex!important;flex-direction:column!important;}
body.ak25-laundry-ajax #layouts .v10-card .v10-image{position:relative!important;width:100%!important;height:255px!important;min-height:255px!important;max-height:255px!important;aspect-ratio:auto!important;background:#eeeae4!important;overflow:hidden!important;}
body.ak25-laundry-ajax #layouts .v10-card .v10-image img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;margin:0!important;}

/* Process video is a background, never a separate block above the process steps. */
body:is(.ak25-laundry-ajax,.ak25-bar-ajax) #process.aj-process-cinematic{position:relative!important;isolation:isolate!important;overflow:clip!important;background:#08162e!important;}
body:is(.ak25-laundry-ajax,.ak25-bar-ajax) #process .aj-process-media{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;overflow:hidden!important;z-index:0!important;pointer-events:none!important;}
body:is(.ak25-laundry-ajax,.ak25-bar-ajax) #process .aj-process-media video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:cover!important;object-position:center!important;opacity:.76!important;filter:none!important;}
body:is(.ak25-laundry-ajax,.ak25-bar-ajax) #process .aj-process-tint{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;background:linear-gradient(90deg,rgba(6,16,34,.84),rgba(6,16,34,.6)),linear-gradient(0deg,rgba(6,16,34,.45),transparent 70%)!important;}
body:is(.ak25-laundry-ajax,.ak25-bar-ajax) #process>.wrap{position:relative!important;z-index:1!important;}

/* Dark-card text: retain exactly approved cream/blue contrast, never ink-on-navy. */
body.ak25-laundry-ajax #ajax .v10-card h3,
body.ak25-bar-ajax #compare .v10-compare-card.premium h3,
body.ak25-bar-ajax :is(#bar-layouts,#wet-bar,#cost,#ajax) .v10-card h3,
body.ak25-bar-scarb :is(#bar-layouts,#wet-bar,#cost) .sc18-card h3 {color:#FFF6E8!important;}
body.ak25-laundry-ajax #ajax .v10-card p,
body.ak25-bar-ajax #compare .v10-compare-card.premium :is(p,li),
body.ak25-bar-ajax :is(#bar-layouts,#wet-bar,#cost,#ajax) .v10-card p,
body.ak25-bar-scarb :is(#bar-layouts,#wet-bar,#cost) .sc18-card p {color:#DBE4F0!important;}

/* ===== SCARBOROUGH: CUSTOM BAR CABINETS ===== */
body.ak25-bar-scarb .service-hero .hero-art img{object-fit:cover!important;object-position:70% center!important;filter:none!important;}
body.ak25-bar-scarb .service-hero .service-hero-shade{background:linear-gradient(90deg,rgba(5,14,31,.89),rgba(5,14,31,.63) 43%,rgba(5,14,31,.13) 86%),linear-gradient(0deg,rgba(5,14,31,.39),transparent 60%)!important;}
body.ak25-bar-scarb .sc18-inline-feature .sc18-feature-project{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important;overflow:hidden!important;}
body.ak25-bar-scarb .sc18-inline-feature .sc18-feature-project>img{width:100%!important;height:100%!important;min-height:440px!important;max-height:none!important;aspect-ratio:auto!important;object-fit:cover!important;object-position:center center!important;align-self:stretch!important;background:#172944!important;}
body.ak25-bar-scarb #faqs .sc18-faq-layout{display:grid!important;grid-template-columns:minmax(0,.62fr) minmax(0,1fr)!important;align-items:start!important;gap:clamp(25px,4vw,60px)!important;}
body.ak25-bar-scarb #faqs .sc18-faq-side{min-width:0;position:sticky;top:140px;}
body.ak25-bar-scarb #faqs .sc18-faq-side .sec-head{max-width:100%;margin-bottom:0!important;}
body.ak25-bar-scarb #faqs .sc18-faq-side h2{font-size:clamp(37px,3.5vw,54px)!important;line-height:1.13!important;}
body.ak25-bar-scarb #faqs .sc18-faq-side p{font-size:17px!important;line-height:1.7!important;}

/* ===== SCARBOROUGH: KITCHEN RENOVATION ===== */
body.ak25-kitchen-scarb .service-hero .hero-side,
body:is(.ak25-laundry-scarb,.ak25-vanity-scarb) .service-hero .hero-side{background:transparent!important;border:none!important;box-shadow:none!important;border-radius:0!important;padding:0!important;}
body.ak25-kitchen-scarb .service-hero .hero-pill-list span,
body:is(.ak25-laundry-scarb,.ak25-vanity-scarb) .service-hero .hero-pill-list span{display:block!important;background:rgba(8,23,48,.83)!important;border:1px solid rgba(221,187,120,.38)!important;border-radius:11px!important;padding:12px 13px!important;}
body.ak25-kitchen-scarb #services .ks20-service-split{align-items:stretch!important;}
body.ak25-kitchen-scarb #services .ks20-wide-photo{align-self:stretch!important;position:relative!important;min-height:430px!important;max-height:none!important;height:100%!important;}
body.ak25-kitchen-scarb #services .ks20-wide-photo img{display:block!important;width:100%!important;height:100%!important;min-height:430px!important;max-height:none!important;object-fit:cover!important;object-position:center!important;}
body.ak25-kitchen-scarb #design .ks20-image-feature{align-items:stretch!important;}
body.ak25-kitchen-scarb #design .ks20-photo{min-height:390px!important;height:100%!important;overflow:hidden!important;}
body.ak25-kitchen-scarb #design .ks20-photo img{display:block!important;width:100%!important;height:100%!important;min-height:390px!important;max-height:none!important;object-fit:cover!important;object-position:center!important;}
body.ak25-kitchen-scarb #projects .ks20-project-image{width:100%!important;height:270px!important;min-height:270px!important;max-height:270px!important;aspect-ratio:auto!important;overflow:hidden!important;background:#eeeae3!important;}
body.ak25-kitchen-scarb #projects .ks20-project-image img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;}

/* ===== SCARBOROUGH: CUSTOM LAUNDRY CABINETS ===== */
body.ak25-laundry-scarb #detail-03>.wrap{display:grid!important;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr)!important;gap:clamp(28px,4vw,65px)!important;align-items:start!important;}
body.ak25-laundry-scarb #detail-03>.wrap>.sec-head{margin-bottom:0!important;max-width:none!important;}
body.ak25-laundry-scarb #detail-03>.wrap>.v22-grid{grid-template-columns:1fr!important;align-content:start!important;}
body.ak25-laundry-scarb #detail-03>.wrap>.v22-grid .v22-card{width:100%!important;}
body.ak25-laundry-scarb :is(#detail-04,#detail-05) .v22-image-inset,
body.ak25-vanity-scarb :is(#detail-03,#detail-06) .v22-image-inset{display:block!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;aspect-ratio:auto!important;background:transparent!important;border-radius:19px!important;overflow:hidden!important;}
body.ak25-laundry-scarb :is(#detail-04,#detail-05) .v22-image-inset img,
body.ak25-vanity-scarb :is(#detail-03,#detail-06) .v22-image-inset img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;margin:0!important;}
body.ak25-laundry-scarb #projects .v22-project-grid{grid-template-columns:minmax(0,1fr)!important;}
body.ak25-laundry-scarb #projects .v22-project{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important;max-width:100%!important;}
body.ak25-laundry-scarb #projects .v22-photo{height:100%!important;min-height:365px!important;max-height:none!important;overflow:hidden!important;}
body.ak25-laundry-scarb #projects .v22-photo img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;}
body.ak25-laundry-scarb #projects .v22-project-copy{align-self:center!important;padding:clamp(25px,3.5vw,54px)!important;}
body.ak25-laundry-scarb #ajax .v22-local-cards{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;}
body.ak25-laundry-scarb #ajax .v22-local-cards .v22-card{width:100%!important;max-width:100%!important;}

/* ===== SCARBOROUGH: BATHROOM VANITIES ===== */
body.ak25-vanity-scarb #trust.v22-trust .trust-grid h2{font-family:'Cormorant Garamond',Georgia,serif!important;font-weight:500!important;font-size:clamp(21px,1.65vw,27px)!important;line-height:1.15!important;letter-spacing:0!important;color:#e8c27c!important;}
body.ak25-vanity-scarb #detail-02>.wrap>.v22-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;width:100%!important;}
body.ak25-vanity-scarb #detail-02 .v22-card{width:100%!important;height:100%!important;}

/* Restore v22 floating 'ON THIS PAGE' rail: older pages used a different nav class and link markup. */
body:is(.ak25-laundry-scarb,.ak25-vanity-scarb) #sectionRail{position:fixed!important;display:flex!important;align-items:center!important;gap:15px!important;left:50%!important;top:12px!important;width:min(calc(100% - 40px),1500px)!important;max-width:calc(100% - 24px)!important;padding:5px 14px 5px 20px!important;min-height:52px!important;border:1px solid rgba(229,198,132,.38)!important;border-radius:15px!important;background:rgba(7,19,41,.95)!important;box-shadow:0 12px 36px rgba(2,8,20,.28)!important;z-index:900!important;overflow:hidden!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translate(-50%,-10px)!important;transition:opacity .25s,visibility .25s,transform .25s,top .25s!important;}
body:is(.ak25-laundry-scarb,.ak25-vanity-scarb) #sectionRail.is-visible{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translate(-50%,0)!important;}
body:is(.ak25-laundry-scarb,.ak25-vanity-scarb).header-visible #sectionRail{top:111px!important;}
body:is(.ak25-laundry-scarb,.ak25-vanity-scarb) #sectionRail .rail-caption{color:#dcbc78!important;font:700 11px/1.2 Jost,Arial,sans-serif!important;letter-spacing:.18em!important;white-space:nowrap!important;flex:none!important;}
body:is(.ak25-laundry-scarb,.ak25-vanity-scarb) #sectionRail .section-rail-items{min-width:0!important;flex:1!important;display:flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important;overflow-x:auto!important;scrollbar-width:none!important;overscroll-behavior-x:contain!important;}
body:is(.ak25-laundry-scarb,.ak25-vanity-scarb) #sectionRail .section-rail-items::-webkit-scrollbar{display:none!important;}
body:is(.ak25-laundry-scarb,.ak25-vanity-scarb) #sectionRail .section-rail-items a{font:600 13px/1.2 Jost,Arial,sans-serif!important;color:#e7ebf0!important;text-decoration:none!important;padding:11px 12px!important;flex-shrink:0!important;white-space:nowrap!important;border-radius:9px!important;}
body:is(.ak25-laundry-scarb,.ak25-vanity-scarb) #sectionRail .section-rail-items a:is(.is-active,.active,[aria-current]){background:#ddba70!important;color:#0a1831!important;}
@media(max-width:1020px){
 body.ak25-bar-scarb #faqs .sc18-faq-layout{grid-template-columns:1fr!important;gap:18px!important;}
 body.ak25-bar-scarb #faqs .sc18-faq-side{position:static!important;}
 body.ak25-laundry-scarb #detail-03>.wrap{grid-template-columns:1fr!important;gap:22px!important;}
 body.ak25-laundry-scarb #detail-03>.wrap>.v22-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:700px){
 body.ak25-laundry-ajax #layouts .v10-card .v10-image{height:220px!important;min-height:220px!important;max-height:220px!important;}
 body.ak25-bar-scarb .sc18-inline-feature .sc18-feature-project{grid-template-columns:1fr!important;}
 body.ak25-bar-scarb .sc18-inline-feature .sc18-feature-project>img{min-height:0!important;height:290px!important;max-height:290px!important;}
 body.ak25-kitchen-scarb :is(#services .ks20-wide-photo,#design .ks20-photo){min-height:250px!important;height:280px!important;}
 body.ak25-kitchen-scarb :is(#services .ks20-wide-photo img,#design .ks20-photo img){min-height:0!important;height:100%!important;}
 body.ak25-kitchen-scarb #projects .ks20-project-image{height:245px!important;min-height:245px!important;max-height:245px!important;}
 body.ak25-laundry-scarb #detail-03>.wrap>.v22-grid{grid-template-columns:1fr!important;}
 body.ak25-laundry-scarb #projects .v22-project{grid-template-columns:1fr!important;}
 body.ak25-laundry-scarb #projects .v22-photo{height:260px!important;min-height:260px!important;}
 body.ak25-vanity-scarb #detail-02>.wrap>.v22-grid{grid-template-columns:1fr!important;}
 body:is(.ak25-laundry-scarb,.ak25-vanity-scarb) #sectionRail{width:calc(100% - 12px)!important;max-width:calc(100% - 12px)!important;min-height:44px!important;padding:5px 9px!important;gap:8px!important;top:8px!important;}
 body:is(.ak25-laundry-scarb,.ak25-vanity-scarb).header-visible #sectionRail{top:83px!important;}
 body:is(.ak25-laundry-scarb,.ak25-vanity-scarb) #sectionRail .rail-caption{font-size:9px!important;}
 body:is(.ak25-laundry-scarb,.ak25-vanity-scarb) #sectionRail .section-rail-items a{font-size:12px!important;padding:9px 10px!important;}
}
