@import url("./valuation-photo.css");

.home-services {color:var(--ink);background:#fff;padding-block:clamp(38px,5vw,80px)}
.home-services-heading {display:flex;align-items:baseline;justify-content:space-between;gap:12px 30px;flex-wrap:wrap;margin-bottom:clamp(18px,2.2vw,34px)}
.home-services-heading h2 {font:400 clamp(32px,3.6vw,62px)/1.09 var(--serif)}
.home-services-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:1fr;gap:clamp(10px,1.15vw,22px);padding:0;margin:0;list-style:none}
.service-flip {grid-column:span 2;position:relative;min-width:0;display:grid;overflow:clip;perspective:1100px}
.service-flip:nth-child(4) {grid-column:2 / span 2}
.service-sides {display:grid;min-width:0}
.service-face {display:flex;flex-direction:column;gap:12px;padding:clamp(16px,1.35vw,24px);border:1px solid #b9c3cb;color:#202a34;background:#fff;overflow-wrap:anywhere}
.service-face h3 {font-size:clamp(22px,1.65vw,31px);line-height:1.12}
.service-face p,.service-back a {font:400 1rem/1.42 var(--sans)}
.service-front p {color:#48545f}
.service-back {background:#f2f5f7}
.service-back a {position:relative;align-self:flex-start;margin-top:auto;padding-block:4px;color:#263e5a;font-weight:600;text-decoration:underline;text-underline-offset:.22em}
.service-flip[data-ready] .service-sides {pointer-events:none;transform-style:preserve-3d;transition:transform .5s cubic-bezier(.32,.05,.22,1);min-height:clamp(154px,15.3vw,201px)}
.service-flip[data-ready] .service-face {grid-area:1/1;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.service-flip[data-ready] .service-front {justify-content:center;gap:7px}
.service-flip[data-ready] .service-back {transform:rotateY(180deg);padding-inline-end:clamp(22px,1.8vw,30px)}
.service-flip[data-ready][data-open] .service-sides {transform:rotateY(180deg)}
.service-flip[data-open] .service-back a {pointer-events:auto}
.service-toggle {position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent}
.service-flip:focus-within {outline:2px solid #405e7b;outline-offset:3px}
.home-services .service-toggle:focus-visible {outline:0}
@media(hover:hover){.service-flip[data-ready]:hover .service-face {border-color:#718495}}
@media(max-width:1350px) and (min-width:1001px){.home-services .wrap {width:92%}}
@media(max-width:800px){.home-services-grid {grid-template-columns:repeat(4,minmax(0,1fr))}.service-flip:nth-child(4) {grid-column:span 2}.service-flip:nth-child(5) {grid-column:2 / span 2}}
@media(max-width:560px){.home-services-grid {grid-template-columns:1fr;grid-auto-rows:auto}.home-services-grid>.service-flip:nth-child(n) {grid-column:1}.service-flip[data-ready] .service-sides {min-height:132px}.service-face {padding:16px 22px 16px 16px}.service-front h3 {max-width:24ch}.home-services-heading {display:block}}
@media(prefers-reduced-motion:reduce){
  .service-flip[data-ready] .service-sides,.service-flip[data-ready][data-open] .service-sides,.service-flip[data-ready] .service-back {transform:none;transition:none}
  .service-flip[data-ready] .service-back,.service-flip[data-ready][data-open] .service-front {visibility:hidden}
  .service-flip[data-ready][data-open] .service-back {visibility:visible}
}

.service-a11y {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
