{"version":3,"file":"FactCards.CFuoKSuY.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/e4gHfC6L3sJrmvX3YGBk/DZFYJFVIvpmMVJZALP0R/FactCards.js"],"sourcesContent":["// Fact Cards (2-up) component for case study pages with hover reveal\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import{useState}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function FactCards(props){const{cards,cornerRadius=20,cardHeight=280,gap=20,overlayStrength=50,hoverDuration=.3,enableShadow=true,shadowStrength=15,hoverScale=1.02,textAlignment=\"bottom-left\",alwaysShowTextMobile=true,titleFont,subtitleFont,textColor=\"#FFFFFF\",underlineOnHover=false}=props;const[hoveredIndex,setHoveredIndex]=useState(null);const getTextAlignmentStyles=()=>{switch(textAlignment){case\"center\":return{justifyContent:\"center\",alignItems:\"center\",textAlign:\"center\"};case\"left\":return{justifyContent:\"flex-start\",alignItems:\"flex-start\",textAlign:\"left\"};case\"bottom-left\":default:return{justifyContent:\"flex-end\",alignItems:\"flex-start\",textAlign:\"left\"};}};const alignmentStyles=getTextAlignmentStyles();const containerStyle={width:\"100%\",display:\"grid\",gridTemplateColumns:\"repeat(2, 1fr)\",gap:`${gap}px`,...props.style};const cardWrapperStyle={position:\"relative\",height:`${cardHeight}px`,borderRadius:`${cornerRadius}px`,overflow:\"hidden\",cursor:\"pointer\",boxShadow:enableShadow?`0 ${shadowStrength/3}px ${shadowStrength}px rgba(0, 0, 0, 0.1)`:\"none\"};const imageStyle={width:\"100%\",height:\"100%\",objectFit:\"cover\",objectPosition:\"center\"};const overlayBaseOpacity=overlayStrength/100;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    @media (max-width: 600px) {\n                        .fact-cards-container {\n                            grid-template-columns: 1fr !important;\n                        }\n                        .fact-cards-text-mobile-show {\n                            opacity: 1 !important;\n                            transform: translateY(0) !important;\n                        }\n                    }\n                `}),/*#__PURE__*/_jsx(\"div\",{style:containerStyle,className:\"fact-cards-container\",children:cards.map((card,index)=>{const isHovered=hoveredIndex===index;const CardWrapper=card.clickable&&card.link?\"a\":\"div\";const linkProps=card.clickable&&card.link?{href:card.link,target:\"_blank\",rel:\"noopener noreferrer\"}:{};const cardImage=card.image||{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Default card image\"};return /*#__PURE__*/_jsx(motion.div,{style:cardWrapperStyle,onMouseEnter:()=>setHoveredIndex(index),onMouseLeave:()=>setHoveredIndex(null),whileHover:{scale:hoverScale},transition:{duration:hoverDuration},children:/*#__PURE__*/_jsxs(CardWrapper,{...linkProps,style:{display:\"block\",width:\"100%\",height:\"100%\",textDecoration:\"none\",color:\"inherit\"},children:[/*#__PURE__*/_jsx(\"img\",{src:cardImage.src,alt:cardImage.alt,style:imageStyle}),/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",background:`linear-gradient(to bottom, rgba(0, 0, 0, ${overlayBaseOpacity*.3}), rgba(0, 0, 0, ${overlayBaseOpacity}))`,pointerEvents:\"none\"},animate:{opacity:isHovered?1:.8},transition:{duration:hoverDuration}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",padding:\"24px\",color:textColor,pointerEvents:\"none\",...alignmentStyles},children:[/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,marginBottom:\"8px\",textDecoration:underlineOnHover&&isHovered?\"underline\":\"none\",transition:`text-decoration ${hoverDuration}s ease`,...titleFont},children:card.title}),/*#__PURE__*/_jsx(motion.p,{style:{margin:0,...subtitleFont},initial:{opacity:0,y:10},animate:{opacity:isHovered?1:0,y:isHovered?0:10},transition:{duration:hoverDuration},children:card.subtitle})]})]})},index);})})]});}addPropertyControls(FactCards,{cards:{type:ControlType.Array,title:\"Cards\",control:{type:ControlType.Object,controls:{image:{type:ControlType.ResponsiveImage,title:\"Image\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Card Title\"},subtitle:{type:ControlType.String,title:\"Subtitle\",defaultValue:\"Card subtitle or description\",displayTextArea:true},clickable:{type:ControlType.Boolean,title:\"Clickable\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},link:{type:ControlType.String,title:\"Link URL\",defaultValue:\"\",hidden:props=>!props.clickable}}},defaultValue:[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Card 1\"},title:\"Innovation\",subtitle:\"Pushing boundaries with cutting-edge solutions\",clickable:false,link:\"\"},{image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Card 2\"},title:\"Excellence\",subtitle:\"Delivering quality in every detail\",clickable:false,link:\"\"}]},cornerRadius:{type:ControlType.Number,title:\"Corner Radius\",defaultValue:20,min:0,max:50,step:1,unit:\"px\"},cardHeight:{type:ControlType.Number,title:\"Card Height\",defaultValue:280,min:150,max:500,step:10,unit:\"px\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:20,min:0,max:60,step:4,unit:\"px\"},overlayStrength:{type:ControlType.Number,title:\"Overlay Strength\",defaultValue:50,min:0,max:100,step:5,unit:\"%\"},hoverDuration:{type:ControlType.Number,title:\"Hover Duration\",defaultValue:.3,min:.1,max:1,step:.1,unit:\"s\",displayStepper:true},enableShadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},shadowStrength:{type:ControlType.Number,title:\"Shadow Strength\",defaultValue:15,min:0,max:40,step:1,unit:\"px\",hidden:props=>!props.enableShadow},hoverScale:{type:ControlType.Number,title:\"Hover Scale\",defaultValue:1.02,min:1,max:1.1,step:.01,displayStepper:true},textAlignment:{type:ControlType.Enum,title:\"Text Alignment\",options:[\"bottom-left\",\"left\",\"center\"],optionTitles:[\"Bottom Left\",\"Top Left\",\"Center\"],defaultValue:\"bottom-left\",displaySegmentedControl:true},alwaysShowTextMobile:{type:ControlType.Boolean,title:\"Show Text on Mobile\",defaultValue:true,enabledTitle:\"Always\",disabledTitle:\"Hover Only\"},titleFont:{type:ControlType.Font,title:\"Title Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"22px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1.2em\"}},subtitleFont:{type:ControlType.Font,title:\"Subtitle Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.4em\"}},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},underlineOnHover:{type:ControlType.Boolean,title:\"Underline on Hover\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FactCards\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FactCards.map"],"mappings":"yOAIG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,QAAM,eAAa,GAAG,aAAW,IAAI,MAAI,GAAG,kBAAgB,GAAG,gBAAc,GAAG,eAAa,GAAK,iBAAe,GAAG,aAAW,KAAK,gBAAc,cAAc,uBAAqB,GAAK,YAAU,eAAa,YAAU,UAAU,mBAAiB,IAAO,EAAW,CAAC,EAAa,GAAiBA,EAAS,KAAK,CAAmV,OAAjT,CAAC,OAAO,EAAP,CAAsB,IAAI,SAAS,MAAM,CAAC,eAAe,SAAS,WAAW,SAAS,UAAU,SAAS,CAAC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