import{c as e,n as t,r as n,t as r}from"./Seo-DIwHowcX.js";import{B as i,U as a,V as o,W as s,c,j as l,w as u}from"./index-BaX9Wv38.js";import{t as d}from"./PageHero-CnGw8JDN.js";var f=e(n(),1),p=t();function m(){let e=i(u),t=i(l),[n,m]=(0,f.useState)(0);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(r,{title:`FAQs — ${t?.company_name??`Touch Therapies Antigua`}`,description:`Booking, cancellations, mobile spa services and everything else you need to know before your visit.`}),(0,p.jsx)(d,{kicker:`FAQs`,title:`Good to Know Before You Glow`,lead:`Everything about booking, visiting, and making the most of your treatment.`}),(0,p.jsx)(`section`,{className:`py-20`,children:(0,p.jsxs)(`div`,{className:`wrap max-w-3xl`,children:[(0,p.jsx)(`div`,{className:`grid gap-4`,children:(e??[]).map((e,t)=>{let r=n===t;return(0,p.jsx)(c,{delay:t*.06,children:(0,p.jsxs)(`div`,{className:`overflow-hidden rounded-2xl bg-white shadow-card`,children:[(0,p.jsxs)(`button`,{type:`button`,onClick:()=>m(r?null:t),"aria-expanded":r,className:`flex w-full cursor-pointer items-center justify-between gap-4 px-7 py-5 text-left`,children:[(0,p.jsx)(`span`,{className:`font-display text-[1.08rem] font-semibold text-forest-700`,children:e.question}),(0,p.jsx)(`span`,{className:`grid h-8 w-8 shrink-0 place-items-center rounded-full bg-sand text-palm-500 transition-transform duration-300 ${r?`rotate-45`:``}`,"aria-hidden":!0,children:`+`})]}),(0,p.jsx)(s,{initial:!1,children:r&&(0,p.jsx)(a.div,{initial:{height:0,opacity:0},animate:{height:`auto`,opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},children:(0,p.jsx)(`p`,{className:`px-7 pb-6 text-muted`,children:e.answer})})})]})},e.id)})}),(0,p.jsx)(c,{className:`mt-12 text-center`,children:(0,p.jsxs)(`p`,{className:`text-muted`,children:[`Still have a question?`,` `,(0,p.jsx)(`a`,{href:o(t),className:`font-semibold text-palm-500 hover:underline`,children:`WhatsApp us`}),` `,`— we reply fast.`]})})]})})]})}export{m as default};