{"version":3,"file":"Subpage_Header.0zinxqzl.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/wWFVj6cjCTE6U1VKwEq8/7qW9sbBZyt0zAAeZ26IV/Subpage_Header.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * SubpageHeader — Barron MD 360\n *\n * Header for every page EXCEPT the homepage. Identical look + nav to the\n * main Header, but without the announcement-bar offset.\n *\n *  - Homepage uses Header.tsx which sits BELOW the AnnouncementBar at the\n *    top of the viewport. As the patient scrolls, the announcement bar\n *    slides away and the header sticks to top: 0.\n *  - Subpages don't have the announcement bar, so this header just stays\n *    at top: 0 the entire time. No scroll listener, no offset math.\n *\n * Desktop layout: Logo (left) | Nav links (center) | Phone + Schedule (right)\n * Mobile layout: Logo (left) | Phone icon, Schedule, Hamburger (right)\n *\n * To set the logo: select the SubpageHeader component on the canvas → in the\n * right property panel, find the \"Logo\" field → drag your logo PNG into it.\n */const HOME_URL=\"https://barronmd360.com/\";const SCHEDULE_URL=\"https://barronmd360.com/schedule\";const PHONE_DISPLAY=\"(561) 932-1212\";const PHONE_TEL=\"tel:5619321212\";const NAV_LINKS=[{label:\"Meet Our Providers\",href:\"https://barronmd360.com/providers\"},{label:\"Conditions\",href:\"https://barronmd360.com/conditions\"},{label:\"Concierge\",href:\"https://barronmd360.com/concierge\"},{label:\"Telehealth\",href:\"https://barronmd360.com/telehealth\"},{label:\"Offices\",href:\"https://barronmd360.com/offices\"}];export default function SubpageHeader({logo=\"\"}){const[visible,setVisible]=useState(true);const[menuOpen,setMenuOpen]=useState(false);// Hide on scroll-down, reveal on scroll-up.\nuseEffect(()=>{if(typeof window===\"undefined\")return;let lastScroll=0;const onScroll=()=>{const y=window.scrollY;if(y<20)setVisible(true);else if(y>lastScroll)setVisible(false);else if(y<lastScroll)setVisible(true);lastScroll=y;};window.addEventListener(\"scroll\",onScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",onScroll);},[]);// Lock body scroll while the mobile menu is open\nuseEffect(()=>{if(typeof document===\"undefined\")return;if(menuOpen){document.body.style.overflow=\"hidden\";}else{document.body.style.overflow=\"\";}return()=>{document.body.style.overflow=\"\";};},[menuOpen]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:styles}),/*#__PURE__*/_jsx(\"div\",{className:\"sphdr-spacer\"}),/*#__PURE__*/_jsx(\"header\",{className:`sphdr ${visible?\"\":\"sphdr-hidden\"}`,children:/*#__PURE__*/_jsxs(\"div\",{className:\"sphdr-inner\",children:[/*#__PURE__*/_jsx(\"a\",{href:HOME_URL,className:\"sphdr-logo\",\"aria-label\":\"Barron MD 360 home\",children:logo?/*#__PURE__*/_jsx(\"img\",{src:logo,alt:\"Barron MD 360\",className:\"sphdr-logo-img\"}):/*#__PURE__*/_jsx(\"span\",{className:\"sphdr-logo-placeholder\",children:\"Barron MD 360\"})}),/*#__PURE__*/_jsx(\"nav\",{className:\"sphdr-nav\",\"aria-label\":\"Primary navigation\",children:NAV_LINKS.map(link=>/*#__PURE__*/_jsx(\"a\",{href:link.href,className:\"sphdr-nav-link\",children:link.label},link.label))}),/*#__PURE__*/_jsxs(\"div\",{className:\"sphdr-right\",children:[/*#__PURE__*/_jsxs(\"a\",{href:PHONE_TEL,className:\"sphdr-phone\",children:[/*#__PURE__*/_jsx(\"svg\",{className:\"sphdr-phone-icon\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})}),/*#__PURE__*/_jsx(\"span\",{className:\"sphdr-phone-text\",children:PHONE_DISPLAY})]}),/*#__PURE__*/_jsx(\"a\",{href:SCHEDULE_URL,className:\"sphdr-cta\",children:\"Schedule Appointment\"}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"sphdr-burger\",\"aria-label\":menuOpen?\"Close menu\":\"Open menu\",\"aria-expanded\":menuOpen,onClick:()=>setMenuOpen(v=>!v),children:/*#__PURE__*/_jsxs(\"span\",{className:`sphdr-burger-icon ${menuOpen?\"sphdr-burger-open\":\"\"}`,\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"span\",{}),/*#__PURE__*/_jsx(\"span\",{}),/*#__PURE__*/_jsx(\"span\",{})]})})]})]})}),/*#__PURE__*/_jsx(\"div\",{className:`sphdr-menu-overlay ${menuOpen?\"sphdr-menu-open\":\"\"}`,onClick:()=>setMenuOpen(false),\"aria-hidden\":!menuOpen,children:/*#__PURE__*/_jsxs(\"div\",{className:\"sphdr-menu-panel\",onClick:e=>e.stopPropagation(),role:\"dialog\",\"aria-label\":\"Site menu\",children:[/*#__PURE__*/_jsx(\"nav\",{className:\"sphdr-menu-nav\",children:NAV_LINKS.map(link=>/*#__PURE__*/_jsx(\"a\",{href:link.href,className:\"sphdr-menu-link\",onClick:()=>setMenuOpen(false),children:link.label},link.label))}),/*#__PURE__*/_jsx(\"div\",{className:\"sphdr-menu-footer\",children:/*#__PURE__*/_jsxs(\"a\",{href:PHONE_TEL,className:\"sphdr-menu-phone\",children:[/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})}),PHONE_DISPLAY]})})]})})]});}addPropertyControls(SubpageHeader,{logo:{type:ControlType.Image,title:\"Logo\"}});const styles=`\n.sphdr-spacer { height: 48px; }\n\n.sphdr {\n    position: fixed;\n    top: 0;\n    left: 0;\n    right: 0;\n    z-index: 200;\n    background: #fff;\n    height: 48px;\n    border-bottom: 1px solid rgba(2, 23, 117, 0.08);\n    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;\n    color: #0E1320;\n    -webkit-font-smoothing: antialiased;\n    letter-spacing: -0.005em;\n    box-shadow: 0 2px 16px rgba(2, 23, 117, 0.06);\n    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.sphdr-hidden {\n    transform: translateY(-100%);\n}\n\n.sphdr-inner {\n    max-width: 1280px;\n    margin: 0 auto;\n    height: 100%;\n    padding: 0 32px;\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    gap: 32px;\n}\n\n/* Logo */\n.sphdr-logo {\n    display: inline-flex;\n    align-items: center;\n    text-decoration: none;\n    color: inherit;\n    flex-shrink: 0;\n}\n\n.sphdr-logo-img {\n    height: 32px;\n    max-height: 32px;\n    width: auto;\n    max-width: 170px;\n    object-fit: contain;\n    display: block;\n}\n\n.sphdr-logo-placeholder {\n    font-size: 18px;\n    font-weight: 800;\n    letter-spacing: -0.025em;\n    color: #021775;\n}\n\n/* Center nav */\n.sphdr-nav {\n    display: flex;\n    align-items: center;\n    gap: 32px;\n}\n\n.sphdr-nav-link {\n    color: #0E1320;\n    text-decoration: none;\n    font-size: 14px;\n    font-weight: 600;\n    transition: color 0.2s ease;\n    white-space: nowrap;\n    letter-spacing: -0.01em;\n}\n\n.sphdr-nav-link:hover { color: #021775; }\n\n/* Right side */\n.sphdr-right {\n    display: flex;\n    align-items: center;\n    gap: 18px;\n    flex-shrink: 0;\n}\n\n.sphdr-phone {\n    color: #0E1320;\n    text-decoration: none;\n    font-size: 14px;\n    font-weight: 700;\n    display: inline-flex;\n    align-items: center;\n    gap: 8px;\n    transition: color 0.2s ease;\n    letter-spacing: -0.01em;\n}\n\n.sphdr-phone:hover { color: #021775; }\n\n.sphdr-phone-icon {\n    width: 15px;\n    height: 15px;\n    color: #021775;\n    flex-shrink: 0;\n}\n\n.sphdr-cta {\n    background: #021775;\n    color: #fff;\n    text-decoration: none;\n    padding: 8px 18px;\n    border-radius: 100px;\n    font-size: 13px;\n    font-weight: 700;\n    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;\n    white-space: nowrap;\n    letter-spacing: -0.005em;\n}\n\n.sphdr-cta:hover {\n    background: #010E4A;\n    transform: translateY(-1px);\n    box-shadow: 0 6px 16px rgba(2, 23, 117, 0.22);\n}\n\n/* Hamburger button — hidden on desktop */\n.sphdr-burger {\n    display: none;\n    background: transparent;\n    border: 0;\n    padding: 8px;\n    margin: -8px -4px -8px 0;\n    cursor: pointer;\n    color: #0E1320;\n}\n\n.sphdr-burger-icon {\n    display: block;\n    width: 22px;\n    height: 16px;\n    position: relative;\n}\n\n.sphdr-burger-icon span {\n    position: absolute;\n    left: 0;\n    right: 0;\n    height: 2px;\n    background: currentColor;\n    border-radius: 2px;\n    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;\n}\n\n.sphdr-burger-icon span:nth-child(1) { top: 0; }\n.sphdr-burger-icon span:nth-child(2) { top: 7px; }\n.sphdr-burger-icon span:nth-child(3) { top: 14px; }\n\n.sphdr-burger-open span:nth-child(1) { top: 7px; transform: rotate(45deg); }\n.sphdr-burger-open span:nth-child(2) { opacity: 0; }\n.sphdr-burger-open span:nth-child(3) { top: 7px; transform: rotate(-45deg); }\n\n/* Mobile menu overlay */\n.sphdr-menu-overlay {\n    position: fixed;\n    inset: 0;\n    z-index: 195;\n    background: rgba(2, 23, 117, 0);\n    pointer-events: none;\n    transition: background 0.25s ease;\n}\n\n.sphdr-menu-open {\n    background: rgba(2, 23, 117, 0.45);\n    pointer-events: auto;\n}\n\n.sphdr-menu-panel {\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    background: #fff;\n    /* 48px header + 28px breathing room. No announcement bar to clear. */\n    padding: 76px 24px 32px;\n    transform: translateY(-100%);\n    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n    box-shadow: 0 12px 32px rgba(2, 23, 117, 0.12);\n    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;\n}\n\n.sphdr-menu-open .sphdr-menu-panel {\n    transform: translateY(0);\n}\n\n.sphdr-menu-nav {\n    display: flex;\n    flex-direction: column;\n    gap: 4px;\n}\n\n.sphdr-menu-link {\n    display: block;\n    color: #0E1320;\n    text-decoration: none;\n    font-size: 18px;\n    font-weight: 700;\n    padding: 14px 4px;\n    border-bottom: 1px solid rgba(2, 23, 117, 0.08);\n    letter-spacing: -0.015em;\n    transition: color 0.2s ease;\n}\n\n.sphdr-menu-link:last-child { border-bottom: none; }\n\n.sphdr-menu-link:hover { color: #021775; }\n\n.sphdr-menu-footer {\n    margin-top: 24px;\n    padding-top: 20px;\n    border-top: 1px solid rgba(2, 23, 117, 0.08);\n}\n\n.sphdr-menu-phone {\n    display: inline-flex;\n    align-items: center;\n    gap: 10px;\n    color: #021775;\n    text-decoration: none;\n    font-size: 17px;\n    font-weight: 700;\n    letter-spacing: -0.01em;\n}\n\n.sphdr-menu-phone svg {\n    width: 18px;\n    height: 18px;\n    color: #021775;\n}\n\n/* Tablet — tighten + hide phone text */\n@media (max-width: 1024px) {\n    .sphdr-inner { padding: 0 24px; gap: 20px; }\n    .sphdr-nav { gap: 22px; }\n    .sphdr-nav-link { font-size: 13.5px; }\n    .sphdr-phone-text { display: none; }\n}\n\n/* Tablet down (≤960px) — hide nav, show hamburger.\n   Prevents the Schedule button from being cut off at tablet widths\n   where logo + nav + phone + schedule won't all fit. */\n@media (max-width: 960px) {\n    .sphdr-nav { display: none; }\n    .sphdr-burger { display: inline-flex; align-items: center; justify-content: center; }\n}\n\n/* Mobile-only size tweaks — apply on top of tablet rules above */\n@media (max-width: 720px) {\n    .sphdr-spacer { height: 46px; }\n    .sphdr { height: 46px; }\n    .sphdr-inner { padding: 0 16px; gap: 8px; }\n    .sphdr-right { gap: 10px; }\n    .sphdr-logo-placeholder { font-size: 16px; }\n    .sphdr-cta { padding: 6px 12px; font-size: 12px; }\n    /* No announcement bar to clear — just header + breathing room */\n    .sphdr-menu-panel { padding: 70px 20px 28px; }\n}\n`;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SubpageHeader\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Subpage_Header.map"],"mappings":"6MAiBqf,SAAwB,EAAc,CAAC,OAAK,IAAI,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAS,GAAK,CAAM,CAAC,EAAS,GAAaA,EAAS,GAAM,CAE9a,OAD5M,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,IAAI,EAAW,EAAQ,MAAa,CAAC,IAAM,EAAE,EAAO,QAAW,EAAE,GAAG,EAAW,GAAK,CAAS,EAAE,EAAW,EAAW,GAAM,CAAS,EAAE,GAAW,EAAW,GAAK,CAAC,EAAW,GAA8D,OAA1D,EAAO,iBAAiB,SAAS,EAAS,CAAC,QAAQ,GAAK,CAAC,KAAW,EAAO,oBAA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