{"version":3,"file":"ServiceCard.DNU7-1ae.mjs","names":[],"sources":["https:/framerusercontent.com/modules/nw4AMq3L6MQ7Luhr0LS1/IsoVOMd5iCwxHXb0tpQ9/ServiceCard.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Service Card — full-colour 4:3 photo, then name, a one-line description and a\n * \"Learn more →\" text link. No box or background. The whole card is one link.\n * Desktop hover: the photo scales to 1.04 inside its frame.\n * Below 810px the button spans the content width with centred text, pinned to the card bottom.\n *\n * @framerIntrinsicWidth 380\n * @framerIntrinsicHeight 420\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n */export default function ServiceCard(props){const{title=\"Paint Protection Film\",description=\"One line about the service.\",link=\"/\",image={src:\"https://framerusercontent.com/images/2jOBn54JLqedYWgZLdy2CQC8bY.jpg\",alt:\"\"},radius=16,linkLabel=\"Learn more\\xa0→︎\",previewHover=false,textColor=\"var(--token-af0881ac-1316-4f1a-a849-4c938b5da4d1, #0A0A0A)\",mutedColor=\"var(--token-60723f9b-37c7-4ce9-b5ec-09f11a5e90e0, #686868)\",borderColor=\"var(--token-af0881ac-1316-4f1a-a849-4c938b5da4d1, #0A0A0A)\",buttonBg=\"var(--token-efa1d602-5dda-4aa3-b29c-ed8be6d8c7d3, #0A0A0A)\",buttonText=\"var(--token-40f3e94f-f3bc-4c51-9e42-0b2877891cba, #FFFFFF)\",padding=16,titleFont={},bodyFont={},labelFont={}}=props;return /*#__PURE__*/_jsxs(\"a\",{href:link,className:previewHover?\"sc2 sc2-hover\":\"sc2\",style:{...props.style,position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",boxSizing:\"border-box\",overflow:\"hidden\",border:`1px solid ${borderColor}`,borderRadius:radius,color:textColor,textDecoration:\"none\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n.sc2 .sc2-media { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }\n.sc2 .sc2-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; filter: none; transform: scale(1); transition: transform 0.7s cubic-bezier(.65,0,.35,1); }\n.sc2 .sc2-body { display: flex; flex-direction: column; flex: 1 1 auto; }\n.sc2 .sc2-title { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.sc2 .sc2-desc { margin: 6px 0 0; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\n.sc2 .sc2-more { display: inline-flex; align-self: flex-start; margin-top: auto; text-transform: uppercase; text-decoration: none; padding: 12px 20px; border-radius: 999px; border: 1px solid ${buttonBg}; background: ${buttonBg}; color: ${buttonText}; transition: background-color 0.3s ease, color 0.3s ease; }\n.sc2 .sc2-spacer { height: 18px; flex: none; }\n.sc2.sc2-hover .sc2-more { background: ${buttonText}; color: ${buttonBg}; }\n@media (hover: hover) { .sc2:hover .sc2-more { background: ${buttonText}; color: ${buttonBg}; } }\n@media (max-width: 809.98px) { .sc2 .sc2-more { align-self: stretch; justify-content: center; text-align: center; } }\n.sc2:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }\n.sc2.sc2-hover .sc2-media img { transform: scale(1.04); }\n@media (hover: hover) { .sc2:hover .sc2-media img { transform: scale(1.04); } }\n`}),/*#__PURE__*/_jsx(\"div\",{className:\"sc2-media\",children:image?.src?/*#__PURE__*/_jsx(\"img\",{src:image.src,srcSet:image.srcSet,alt:image.alt??\"\",loading:\"lazy\",style:props.imagePosition?{objectPosition:props.imagePosition}:undefined}):null}),/*#__PURE__*/_jsxs(\"div\",{className:\"sc2-body\",style:{padding:`18px ${padding+4}px ${padding+4}px`},children:[/*#__PURE__*/_jsx(\"p\",{className:\"sc2-title\",style:{...titleFont,color:textColor},children:title}),/*#__PURE__*/_jsx(\"p\",{className:\"sc2-desc\",style:{...bodyFont,color:mutedColor},children:description}),/*#__PURE__*/_jsx(\"div\",{className:\"sc2-spacer\"}),/*#__PURE__*/_jsx(\"span\",{className:\"sc2-more\",style:labelFont,children:linkLabel})]})]});}addPropertyControls(ServiceCard,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Paint Protection Film\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"One line about the service.\",displayTextArea:true},link:{type:ControlType.Link,title:\"Link\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},imagePosition:{type:ControlType.String,title:\"Image Position\",defaultValue:\"center\",description:'CSS object-position, e.g. \"50% 60%\"'},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:16,min:0,max:40,unit:\"px\"},linkLabel:{type:ControlType.String,title:\"Link label\",defaultValue:\"Learn more\\xa0→︎\"},previewHover:{type:ControlType.Boolean,title:\"Preview hover\",defaultValue:false,description:\"Shows the hover state on the canvas. Keep off.\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#0A0A0A\"},mutedColor:{type:ControlType.Color,title:\"Muted\",defaultValue:\"#686868\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#0A0A0A\"},buttonBg:{type:ControlType.Color,title:\"Button\",defaultValue:\"#0A0A0A\"},buttonText:{type:ControlType.Color,title:\"Button text\",defaultValue:\"#FFFFFF\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:16,min:0,max:48,unit:\"px\"},titleFont:{type:ControlType.Font,title:\"Title font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"22px\",letterSpacing:\"-0.02em\",lineHeight:\"1.2em\"}},bodyFont:{type:ControlType.Font,title:\"Body font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",lineHeight:\"1.4em\"}},labelFont:{type:ControlType.Font,title:\"Label font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",letterSpacing:\"0.06em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ServiceCard\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"380\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"420\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ServiceCard.map"],"mappings":"8JAWG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,wBAAwB,cAAY,8BAA8B,OAAK,IAAI,QAAM,CAAC,IAAI,sEAAsE,IAAI,EAAE,EAAE,SAAO,GAAG,YAAU,mBAAmB,eAAa,GAAM,YAAU,6DAA6D,aAAW,6DAA6D,cAAY,6DAA6D,WAAS,6DAA6D,aAAW,6DAA6D,UAAQ,GAAG,YAAU,CAAC,EAAE,WAAS,CAAC,EAAE,YAAU,CAAC,GAAG,EAAM,OAAoB,EAAM,IAAI,CAAC,KAAK,EAAK,UAAU,EAAa,gBAAgB,MAAM,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,cAAc,SAAS,UAAU,aAAa,SAAS,SAAS,OAAO,aAAa,IAAc,aAAa,EAAO,MAAM,EAAU,eAAe,MAAM,EAAE,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;;;iMAM12B,EAAS,gBAAgB,EAAS,WAAW,EAAW;;yCAEhN,EAAW,WAAW,EAAS;6DACX,EAAW,WAAW,EAAS;;;;;CAK3F,CAAC,EAAe,EAAK,MAAM,CAAC,UAAU,YAAY,SAAS,GAAO,IAAiB,EAAK,MAAM,CAAC,IAAI,EAAM,IAAI,OAAO,EAAM,OAAO,IAAI,EAAM,KAAK,GAAG,QAAQ,OAAO,MAAM,EAAM,cAAc,CAAC,eAAe,EAAM,aAAa,EAAE,IAAA,EAAS,CAAC,EAAE,IAAI,CAAC,EAAe,EAAM,MAAM,CAAC,UAAU,WAAW,MAAM,CAAC,QAAQ,QA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