/* Graze — atomic header (layout lives in Elementor; menus, sticky bar and announcement here). */

/* Sticky needs the page not to be a scroll box (theme sets overflow-x:hidden). */
html:has(body.grzp-hd-on),body.grzp-hd-on{overflow-x:clip!important;overflow-y:visible!important}
/* No scroll anchoring: the bar's height change when it pins must not nudge the scroll position. */
html:has(body.grzp-hd-on){overflow-anchor:none}

/* Only the logo row stays pinned: the wrapper sticks with a negative top equal to the rows above it. */
body.grzp-hd-on .elementor-location-header{position:sticky;top:calc(var(--wp-admin--admin-bar--height,0px) - var(--grzp-hd-stick,0px));z-index:999;background:#fff;transition:box-shadow .2s}
body.grzp-hd-on .elementor-location-header.is-stuck{box-shadow:0 6px 18px rgba(29,29,29,.08)}
@media (max-width:600px){body.grzp-hd-on .elementor-location-header{top:calc(0px - var(--grzp-hd-stick,0px))}}

/* Menus */
.grzp-hd-menu{display:block}
.grzp-hd-nav ul{display:flex;align-items:center;flex-wrap:nowrap;gap:clamp(18px,2.2vw,34px);margin:0;padding:0;list-style:none}
.grzp-hd-nav li{margin:0;padding:0}
.grzp-hd-nav a{position:relative;display:inline-block;padding:8px 0;font-family:"Noto Sans",sans-serif;font-size:15px;font-weight:400;line-height:1.3;letter-spacing:.01em;color:#1d1d1d;text-decoration:none;white-space:nowrap;transition:color .15s}
.grzp-hd-nav a::after{content:"";position:absolute;left:0;right:0;bottom:2px;height:2px;border-radius:2px;background:#CE7019;transform:scaleX(0);transform-origin:left;transition:transform .2s}
.grzp-hd-nav a:hover,.grzp-hd-nav a:focus-visible{color:#CE7019}
.grzp-hd-nav a:hover::after,.grzp-hd-nav a:focus-visible::after,.grzp-hd-nav a[aria-current="page"]::after{transform:scaleX(1)}
.grzp-hd-nav a:focus-visible{outline:2px solid #CE7019;outline-offset:3px;border-radius:2px}

/* Between tablet and wide desktop: tighten instead of wrapping. */
@media (min-width:1025px) and (max-width:1240px){
	.grzp-hd-nav ul{gap:16px}
	.grzp-hd-nav a{font-size:14px}
}

/* Announcement strip */
.grzp-hd-announce{display:block;width:100%;overflow:hidden}
/* Two cart icons (classic widgets): one beside Order Online on desktop, one at the left on phones/tablets. */
@media (min-width:1025px){.elementor-10249 .elementor-element-603ee048{display:none!important}}
@media (max-width:1024px){.elementor-10249 .elementor-element-783a8e3d{display:none!important}}
.elementor-10249 .elementor-widget-woocommerce-menu-cart{width:auto!important;flex:0 0 auto;margin:0!important}
/* Small laptops: tighter spacing, smaller logo/button so one line always fits. */
@media (min-width:1025px) and (max-width:1240px){
	.elementor-10249 .elementor-element-50181c14{gap:16px!important}
	.elementor-10249 .elementor-element-b95d033{gap:14px!important}
	.elementor-10249 [data-id="469d75ef"]{width:112px!important;margin-block-end:-48px!important}
	.elementor-10249 [data-id="40d9b4db"]{padding:10px 18px!important;font-size:14px!important}
}
/* Wreath logo hangs below the bar (desktop); once the bar is pinned it tucks inside it. */
.elementor-10249 [data-id="469d75ef"]{transition:width .25s ease,margin .25s ease,padding .25s ease,box-shadow .25s ease,transform .2s}
body.grzp-hd-on .elementor-location-header.is-stuck .elementor-10249 [data-id="469d75ef"],
body.grzp-hd-on .elementor-location-header.is-stuck[data-elementor-id="10249"] [data-id="469d75ef"]{width:72px!important;margin-block-start:0!important;margin-block-end:0!important;padding:4px!important;box-shadow:none!important}
/* Desktop, once pinned: swap the wreath for the horizontal "Graze Acadiana" logo. */
@media (min-width:1025px){
	body.grzp-hd-on .elementor-location-header.is-stuck[data-elementor-id="10249"] [data-id="469d75ef"]{display:none!important}
	body.grzp-hd-on .elementor-location-header.is-stuck[data-elementor-id="10249"] [data-id="647df0e1"]{display:block!important;width:210px!important;animation:grzp-hd-fade .25s ease}
}
@media (min-width:1025px) and (max-width:1240px){
	body.grzp-hd-on .elementor-location-header.is-stuck[data-elementor-id="10249"] [data-id="647df0e1"]{width:170px!important}
}
@keyframes grzp-hd-fade{from{opacity:0}to{opacity:1}}
