{"version":3,"file":"ClearNav.5SHdxlJD.mjs","names":["useState","useRef","useCallback","_Fragment"],"sources":["https:/framerusercontent.com/modules/TWuTQQkkwDQVmxL8Bx3z/x6xZz3fpzpcBmSYqxfEr/ClearNav.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect,useRef,useCallback}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const DEFAULT_LINKS=[{label:\"Co robimy\",href:\"/co-robimy\"},{label:\"O nas\",href:\"/#o-nas\"},{label:\"FAQ\",href:\"/#faq\"}];const GREEN=\"rgb(141,225,99)\";const css=`\n@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');\n\n.cn-root {\n    font-family: 'Inter', sans-serif;\n    -webkit-font-smoothing: antialiased;\n    position: fixed;\n    top: 0; left: 0; right: 0;\n    z-index: 9999;\n    pointer-events: none;\n}\n.cn-inner {\n    pointer-events: auto;\n    max-width: 1200px;\n    margin: 0 auto;\n    padding: 12px 20px;\n}\n.cn-bar {\n    display: flex;\n    align-items: center;\n    padding: 14px 28px;\n    border-radius: 16px;\n    border: 1px solid rgba(255,255,255,0.08);\n    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),\n                opacity 0.4s cubic-bezier(0.22,1,0.36,1),\n                background 0.3s ease,\n                border-color 0.3s ease;\n    position: relative;\n}\n.cn-bar.scrolled {\n    border-color: rgba(255,255,255,0.12);\n}\n.cn-bar.hidden {\n    transform: translateY(-120%);\n    opacity: 0;\n}\n.cn-logo-wrap {\n    flex-shrink: 0;\n    z-index: 2;\n}\n.cn-logo {\n    display: block;\n    height: auto;\n    object-fit: contain;\n}\n.cn-logo:hover { opacity: 0.85; }\n.cn-links {\n    position: absolute;\n    left: 50%;\n    transform: translateX(-50%);\n    display: flex;\n    align-items: center;\n    gap: 32px;\n    list-style: none;\n    margin: 0; padding: 0;\n    z-index: 1;\n}\n.cn-link {\n    font-size: 13px;\n    font-weight: 500;\n    color: rgba(255,255,255,0.6);\n    text-decoration: none;\n    letter-spacing: 0.01em;\n    transition: color 0.2s ease;\n    white-space: nowrap;\n}\n.cn-link:hover { color: #fff; }\n.cn-cta-wrap {\n    flex-shrink: 0;\n    margin-left: auto;\n    z-index: 2;\n}\n.cn-cta {\n    display: inline-flex;\n    align-items: center;\n    gap: 8px;\n    padding: 10px 22px;\n    border-radius: 8px;\n    background: ${GREEN};\n    color: #000;\n    font-size: 12px;\n    font-weight: 700;\n    letter-spacing: 0.06em;\n    text-transform: uppercase;\n    text-decoration: none;\n    border: none;\n    cursor: pointer;\n    transition: box-shadow 0.3s ease, transform 0.2s ease;\n    white-space: nowrap;\n}\n.cn-cta:hover {\n    box-shadow: 0 0 24px rgba(141,225,99,0.25), 0 0 6px rgba(141,225,99,0.15);\n    transform: translateY(-1px);\n}\n\n/* Hamburger */\n.cn-hamburger {\n    display: none;\n    flex-direction: column;\n    justify-content: center;\n    align-items: center;\n    gap: 5px;\n    width: 40px; height: 40px;\n    background: none; border: none;\n    cursor: pointer;\n    padding: 0;\n    flex-shrink: 0;\n}\n.cn-hamburger span {\n    display: block;\n    width: 22px; height: 1.5px;\n    background: rgba(255,255,255,0.7);\n    border-radius: 2px;\n    transition: transform 0.3s ease, opacity 0.3s ease;\n}\n.cn-hamburger.open span:nth-child(1) {\n    transform: translateY(6.5px) rotate(45deg);\n}\n.cn-hamburger.open span:nth-child(2) {\n    opacity: 0;\n}\n.cn-hamburger.open span:nth-child(3) {\n    transform: translateY(-6.5px) rotate(-45deg);\n}\n\n/* Mobile menu */\n.cn-mobile-menu {\n    display: none;\n    flex-direction: column;\n    gap: 0;\n    padding: 16px 0 8px;\n    border-top: 1px solid rgba(255,255,255,0.06);\n    margin-top: 16px;\n    width: 100%;\n}\n.cn-mobile-link {\n    display: block;\n    padding: 14px 8px;\n    font-size: 15px;\n    font-weight: 500;\n    color: rgba(255,255,255,0.7);\n    text-decoration: none;\n    border-bottom: 1px solid rgba(255,255,255,0.04);\n    transition: color 0.2s;\n}\n.cn-mobile-link:hover { color: #fff; }\n.cn-mobile-cta {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    gap: 8px;\n    margin-top: 12px;\n    padding: 14px 24px;\n    border-radius: 8px;\n    background: ${GREEN};\n    color: #000;\n    font-size: 13px;\n    font-weight: 700;\n    letter-spacing: 0.06em;\n    text-transform: uppercase;\n    text-decoration: none;\n    border: none;\n    cursor: pointer;\n}\n\n@media (max-width: 810px) {\n    .cn-links { display: none !important; }\n    .cn-cta-wrap { display: none !important; }\n    .cn-hamburger { display: flex !important; }\n    .cn-mobile-menu.open { display: flex !important; }\n    .cn-bar {\n        flex-wrap: wrap;\n        padding: 12px 20px;\n    }\n    .cn-bar-top {\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        width: 100%;\n    }\n}\n@media (min-width: 811px) {\n    .cn-bar-top {\n        display: contents;\n    }\n}\n`;/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function ClearNav(props){const{logoSrc=\"https://framerusercontent.com/images/jReGv0jT3Ux02MuMRRwG4x7zzT4.png\",logoWidth=110,links=DEFAULT_LINKS,ctaText=\"Bezpłatna konsultacja\",ctaLink=\"/konsultacja1\",blurAmount=16,bgOpacity=.6,style}=props;const[scrolled,setScrolled]=useState(false);const[hidden,setHidden]=useState(false);const[mobileOpen,setMobileOpen]=useState(false);const lastScrollY=useRef(0);const ticking=useRef(false);const onScroll=useCallback(()=>{if(ticking.current)return;ticking.current=true;requestAnimationFrame(()=>{const y=window.scrollY;const isScrolled=y>40;const isDown=y>lastScrollY.current&&y>120;setScrolled(isScrolled);setHidden(isDown&&!mobileOpen);lastScrollY.current=y;ticking.current=false;});},[mobileOpen]);useEffect(()=>{window.addEventListener(\"scroll\",onScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",onScroll);},[onScroll]);const bgColor=scrolled?`rgba(10,10,10,${bgOpacity})`:\"rgba(10,10,10,0.3)\";const blur=scrolled?`blur(${blurAmount}px)`:\"blur(8px)\";const resolvedLinks=Array.isArray(links)?links:DEFAULT_LINKS;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsx(\"nav\",{className:\"cn-root\",style:style,children:/*#__PURE__*/_jsx(\"div\",{className:\"cn-inner\",children:/*#__PURE__*/_jsxs(\"div\",{className:`cn-bar${scrolled?\" scrolled\":\"\"}${hidden?\" hidden\":\"\"}`,style:{background:bgColor,backdropFilter:blur,WebkitBackdropFilter:blur},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"cn-bar-top\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"cn-logo-wrap\",children:/*#__PURE__*/_jsx(\"a\",{href:\"/\",children:/*#__PURE__*/_jsx(\"img\",{src:logoSrc,alt:\"21LL\",className:\"cn-logo\",style:{width:logoWidth}})})}),/*#__PURE__*/_jsx(\"ul\",{className:\"cn-links\",children:resolvedLinks.map((link,i)=>/*#__PURE__*/_jsx(\"li\",{children:/*#__PURE__*/_jsx(\"a\",{href:link.href,className:\"cn-link\",children:link.label})},i))}),/*#__PURE__*/_jsx(\"div\",{className:\"cn-cta-wrap\",children:/*#__PURE__*/_jsx(\"a\",{href:ctaLink,className:\"cn-cta\",children:ctaText})}),/*#__PURE__*/_jsxs(\"button\",{className:`cn-hamburger${mobileOpen?\" open\":\"\"}`,onClick:()=>setMobileOpen(!mobileOpen),\"aria-label\":\"Menu\",children:[/*#__PURE__*/_jsx(\"span\",{}),/*#__PURE__*/_jsx(\"span\",{}),/*#__PURE__*/_jsx(\"span\",{})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:`cn-mobile-menu${mobileOpen?\" open\":\"\"}`,children:[resolvedLinks.map((link,i)=>/*#__PURE__*/_jsx(\"a\",{href:link.href,className:\"cn-mobile-link\",onClick:()=>setMobileOpen(false),children:link.label},i)),/*#__PURE__*/_jsx(\"a\",{href:ctaLink,className:\"cn-mobile-cta\",onClick:()=>setMobileOpen(false),children:ctaText})]})]})})})]});}ClearNav.defaultProps={logoSrc:\"https://framerusercontent.com/images/jReGv0jT3Ux02MuMRRwG4x7zzT4.png\",logoWidth:110,ctaText:\"Bezpłatna konsultacja\",ctaLink:\"/konsultacja1\",blurAmount:16,bgOpacity:.6};addPropertyControls(ClearNav,{logoSrc:{type:ControlType.ResponsiveImage,title:\"Logo\"},logoWidth:{type:ControlType.Number,title:\"Logo Width\",defaultValue:110,min:60,max:200,step:5,unit:\"px\"},links:{type:ControlType.Array,title:\"Links\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Label\"},href:{type:ControlType.String,title:\"URL\"}}},defaultValue:[{label:\"Co robimy\",href:\"/co-robimy\"},{label:\"O nas\",href:\"/#o-nas\"},{label:\"FAQ\",href:\"/#faq\"}]},ctaText:{type:ControlType.String,title:\"CTA Text\",defaultValue:\"Bezpłatna konsultacja\"},ctaLink:{type:ControlType.String,title:\"CTA Link\",defaultValue:\"/konsultacja1\"},blurAmount:{type:ControlType.Number,title:\"Blur\",defaultValue:16,min:0,max:40,step:2,unit:\"px\"},bgOpacity:{type:ControlType.Number,title:\"BG Opacity\",defaultValue:.6,min:0,max:1,step:.05}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ClearNav\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ClearNav.map"],"mappings":"sNA6LG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,UAAQ,uEAAuE,YAAU,IAAI,QAAM,EAAc,UAAQ,wBAAwB,UAAQ,gBAAgB,aAAW,GAAG,YAAU,GAAG,SAAO,EAAW,CAAC,EAAS,GAAaA,EAAS,GAAM,CAAM,CAAC,EAAO,GAAWA,EAAS,GAAM,CAAM,CAAC,EAAW,GAAeA,EAAS,GAA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