{"version":3,"file":"ServicesFAQ.CDY96dLf.mjs","names":["React.useRef","React.useState"],"sources":["https:/framerusercontent.com/modules/BSSI6IvvjEVmZB0luzM5/7eI75AEhjhTghdymDSt4/ServicesFAQ.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const EASE_OUT=\"cubic-bezier(0.22, 1, 0.36, 1)\";function Row(props){const{item,open,onToggle,forest,border}=props;const innerRef=React.useRef(null);const[height,setHeight]=React.useState(0);React.useEffect(()=>{if(innerRef.current)setHeight(innerRef.current.offsetHeight);},[item.answer,open]);return /*#__PURE__*/_jsxs(\"div\",{style:{borderBottom:`1px solid ${border}`},children:[/*#__PURE__*/_jsxs(\"button\",{type:\"button\",onClick:onToggle,\"aria-expanded\":open,style:{width:\"100%\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",gap:16,background:\"none\",border:\"none\",padding:\"22px 0\",margin:0,cursor:\"pointer\",textAlign:\"left\",fontFamily:\"Lato, -apple-system, sans-serif\",fontSize:18,fontWeight:700,letterSpacing:\"-0.01em\",color:forest},children:[item.question,/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",\"aria-hidden\":\"true\",style:{flexShrink:0,transform:open?\"rotate(45deg)\":\"rotate(0deg)\",transition:`transform 0.3s ${EASE_OUT}`},children:/*#__PURE__*/_jsx(\"path\",{d:\"M7 2 L7 12 M2 7 L12 7\",fill:\"none\",stroke:forest,strokeWidth:\"1.5\",strokeLinecap:\"round\"})})]}),/*#__PURE__*/_jsx(\"div\",{style:{height:open?height:0,overflow:\"hidden\",transition:`height 0.3s ${EASE_OUT}`},children:/*#__PURE__*/_jsx(\"div\",{ref:innerRef,style:{padding:\"0 32px 22px 0\",fontFamily:\"Lato, -apple-system, sans-serif\",fontSize:16,lineHeight:1.6,letterSpacing:\"-0.02em\",color:\"rgba(72, 89, 72, 0.78)\",opacity:open?1:0,transition:`opacity 0.3s ${EASE_OUT}`},children:item.answer})})]});}/**\n * Services hub FAQ accordion - questions about scope and fit, kept\n * distinct from the fees, contact and individual service FAQs.\n * Identical design to every other accordion on the site.\n */export default function ServicesFAQ(props){const{items,forest,border,style}=props;const[openIndex,setOpenIndex]=React.useState(null);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",...style},children:items.map((item,i)=>/*#__PURE__*/_jsx(Row,{item:item,open:openIndex===i,onToggle:()=>setOpenIndex(openIndex===i?null:i),forest:forest,border:border},i))});}ServicesFAQ.displayName=\"Services FAQ\";addPropertyControls(ServicesFAQ,{items:{type:ControlType.Array,title:\"Questions\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,defaultValue:\"Question\"},answer:{type:ControlType.String,displayTextArea:true,defaultValue:\"Answer\"}}},defaultValue:[{question:\"What issues can counselling help with?\",answer:\"The areas listed on this page are the ones people most often bring to us, but they're not a closed list. Counselling can help with most things that are affecting your day-to-day life — work, family, health, confidence, a decision you're stuck on. If you're not sure whether something qualifies, it almost certainly does.\"},{question:\"Do I need to know exactly what's wrong?\",answer:\"No. A lot of people start with something quite vague — that things feel harder than they should, or that they don't feel like themselves at the moment. Working out what's underneath it is part of what counselling is for, not something to sort out beforehand.\"},{question:\"Can counselling help with more than one issue?\",answer:\"Yes, and that's usually the case. These things rarely arrive one at a time — anxiety and low mood often travel together, and stress has a habit of affecting relationships and confidence too. We work with whatever's actually present rather than one issue in isolation.\"},{question:\"What if my situation doesn't fit one of these categories?\",answer:\"That's completely fine. The headings are a starting point for finding the right page, not a set of boxes you need to fit into. If nothing here quite describes it, get in touch and we'll talk it through.\"},{question:\"Can I change focus during counselling?\",answer:\"Yes. What feels most pressing in the first session often isn't what matters most a month later, and that's a normal part of the process. We review how things are going together and follow what's genuinely useful.\"}]},forest:{type:ControlType.Color,title:\"Text\",defaultValue:\"rgb(72, 89, 72)\"},border:{type:ControlType.Color,title:\"Divider\",defaultValue:\"rgba(72, 89, 72, 0.16)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ServicesFAQ\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ServicesFAQ.map"],"mappings":"+LAAyL,SAAS,EAAI,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,WAAS,SAAO,UAAQ,EAAY,EAASA,EAAa,IAAI,EAAO,CAAC,EAAO,GAAWC,EAAe,CAAC,EAA0G,OAAxG,MAAoB,CAAI,EAAS,SAAQ,EAAU,EAAS,QAAQ,YAAY,CAAE,EAAE,CAAC,EAAK,OAAO,CAAI,CAAC,EAAsB,EAAM,MAAM,CAAC,MAAM,CAAC,aAAa,aAAa,GAAQ,EAAE,SAAS,CAAc,EAAM,SAAS,CAAC,KAAK,SAAS,QAAQ,EAAS,gBAAgB,EAAK,MAAM,CAAC,MAAM,OAAO,QAAQ,OAAO,eAAe,gBAAgB,WAAW,SAAS,IAAI,GAAG,WAAW,OAAO,OAAO,OAAO,QAAQ,SAAS,OAAO,EAAE,OAAO,UAAU,UAAU,OAAO,WAAW,kCAAkC,SAAS,GAAG,WAAW,IAAI,cAAc,UAAU,MAAM,CAAM,EAAE,SAAS,CAAC,EAAK,SAAsB,EAAK,MAAM,CAAC,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,cAAc,OAAO,MAAM,CAAC,WAAW,EAAE,UAAU,EAAK,gBAAgB,eAAe,WAAW,kBAAkB,GAAU,EAAE,SAAsB,EAAK,OAAO,CAAC,EAAE,wBAAwB,KAAK,OAAO,OAAO,EAAO,YAAY,MAAM,cAAc,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAe,EAAK,MAAM,CAAC,MAAM,CAAC,OAAO,EAAK,EAAO,EAAE,SAAS,SAAS,WAAW,eAAe,GAAU,EAAE,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAS,MAAM,CAAC,QAAQ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