import{j as a}from"./jsx-runtime.u17CrQMm.js";import{r as i}from"./index.CO9X3OiW.js";const t="/julianaokey/web/",x=[{label:"Início",href:t},{label:"Especialidades",href:`${t}specialties`},{label:"Procedimentos",href:`${t}procedures`},{label:"Equipe Técnica",href:`${t}team`},{label:"Juliana Okay",href:`${t}juliana-okay`},{label:"Perguntas Frequentes",href:`${t}faq`}];function d(o,r,c){const n=s=>s.replace(/\/$/,"")||"/",l=n(o),e=n(r);return c?l===e:l===e||l.startsWith(e+"/")}function u({pathname:o}){const[r,c]=i.useState(!1),[n,l]=i.useState(!1);return i.useEffect(()=>{const e=()=>l(window.scrollY>40);return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),a.jsxs("header",{className:`fixed top-0 inset-x-0 z-50 transition-all duration-500
        ${n?"bg-cream-50/95 backdrop-blur-md shadow-[0_1px_0_0_#e6d9c8]":"bg-cream-50/80 backdrop-blur-sm"}`,children:[a.jsxs("div",{className:"max-w-7xl mx-auto px-8 md:px-16 h-[70px] flex items-center justify-between",children:[a.jsxs("a",{href:t,className:"flex items-center gap-2.5 shrink-0",children:[a.jsx("img",{src:`${t}logo/logo.avif`,alt:"Juliana Okay",className:"h-12 w-auto object-contain",style:{filter:"brightness(0) saturate(100%) invert(22%) sepia(20%) saturate(900%) hue-rotate(345deg) brightness(80%)"}}),a.jsx("span",{className:"hidden sm:block text-lg text-cream-600 uppercase tracking-[0.35em] leading-none translate-y-px",style:{fontFamily:"'Josefin Sans', sans-serif"},children:"Juliana Okay"})]}),a.jsx("nav",{className:"hidden md:flex items-center gap-9",children:x.map(e=>{const s=d(o,e.href,e.href===t);return a.jsxs("a",{href:e.href,className:`group relative text-[11px] tracking-[0.12em] uppercase font-light
                  transition-colors duration-300 pb-0.5
                  ${s?"text-cream-900":"text-cream-500 hover:text-cream-800"}`,children:[e.label,a.jsx("span",{className:`absolute bottom-0 left-0 h-px bg-cream-600 transition-all duration-300
                    ${s?"w-full":"w-0 group-hover:w-full"}`})]},e.href)})}),a.jsxs("button",{onClick:()=>c(!r),className:`md:hidden flex flex-col justify-center gap-[5px] p-1 cursor-pointer
            transition-colors duration-300
            text-cream-700`,"aria-label":"Menú",children:[a.jsx("span",{className:`block h-px w-6 transition-all duration-300 origin-center bg-current
              ${r?"rotate-45 translate-y-[7px]":""}`}),a.jsx("span",{className:`block h-px w-6 transition-all duration-300 bg-current
              ${r?"opacity-0 scale-x-0":""}`}),a.jsx("span",{className:`block h-px w-6 transition-all duration-300 origin-center bg-current
              ${r?"-rotate-45 -translate-y-[7px]":""}`})]})]}),a.jsx("div",{className:`md:hidden overflow-hidden transition-all duration-400
          ${r?"max-h-80 opacity-100":"max-h-0 opacity-0"}`,children:a.jsx("nav",{className:"bg-cream-50 border-t border-cream-100 px-8 py-7 flex flex-col gap-6",children:x.map(e=>{const s=d(o,e.href,e.href===t);return a.jsx("a",{href:e.href,onClick:()=>c(!1),className:`text-[11px] tracking-[0.14em] uppercase font-light transition-colors duration-200
                  ${s?"text-cream-900 border-l-2 border-cream-600 pl-3":"text-cream-500 hover:text-cream-800"}`,children:e.label},e.href)})})})]})}export{u as default};
