/* =====================================================================
   EDS Core – Header widget
   Floating pill bar; the logo sits in a raised circle that flows out of the
   bar's top and bottom edges (SVG "bump" drawn over the pill border).
   Scope: ".eds-hdr-root:not(#eds)" / ".eds-mm:not(#eds)" = ID-level specificity,
   so theme/kit/Elementor button and link styles never leak in.
   ===================================================================== */

.eds-hdr-root{
	--h:64px;            /* bar height */
	--top:22px;          /* distance from viewport top */
	--gutter:40px;       /* side space */
	--max:1260px;
	--u:calc((var(--h) - 1px) / 60);   /* 1 unit of the bump SVG */
	--bx:calc(var(--h) / 2);           /* bump starts where the pill's round end stops */
	--bg:var(--e-global-color-accent,#fff);
	--line:#dedede;
	--ink:var(--e-global-color-secondary,#111);
	--black:var(--e-global-color-primary,#000);
	--muted:var(--e-global-color-eds_g600,#737373);
	--rule:var(--e-global-color-46313f9,#e5e5e5);
	--surface:var(--e-global-color-4b5c478,#f5f5f5);
	--ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset (beats Hello reset.css + kit link colours) ---------- */
.eds-hdr-root:not(#eds) *,.eds-hdr-root:not(#eds) *::before,.eds-hdr-root:not(#eds) *::after{box-sizing:border-box}
.eds-hdr-root:not(#eds) ul{list-style:none;margin:0;padding:0}
.eds-hdr-root:not(#eds) :is(a,button){margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:none;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.eds-hdr-root:not(#eds) :is(a,button):focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:6px}

/* ---------- placement ---------- */
.eds-hdr-root:not(#eds) .eds-hdr{position:fixed;z-index:1000;left:0;right:0;top:var(--top);padding:0 var(--gutter);pointer-events:none;transition:transform .55s var(--ease)}
body.admin-bar .eds-hdr-root:not(#eds) .eds-hdr{top:calc(var(--top) + 32px)}
.eds-hdr-root:not(#eds) .eds-hdr.is-hidden{transform:translateY(calc(-100% - var(--top) - 40px))}
.eds-hdr-root:not(#eds) .eds-hdr-space{height:0}
/* Elementor editor: render in the flow so it can be selected */
.elementor-editor-active .eds-hdr-root:not(#eds) .eds-hdr{position:relative;top:auto;padding:24px 0}

/* parent containers stay out of the way (header template) */
.eds-site-header:has(.eds-hdr-root){padding:0!important;margin:0!important;min-height:0!important;background:none!important}
.eds-site-header:has(.eds-hdr-root) :is(.e-con-inner,.elementor-widget-container){padding:0}

/* ---------- bar + shape ---------- */
.eds-hdr-root:not(#eds) .eds-hdr__bar{position:relative;max-width:var(--max);height:var(--h);margin:0 auto;display:flex;align-items:center;justify-content:flex-end;padding:0 12px 0 calc(var(--bx) + 100 * var(--u) + 20px);pointer-events:auto;font-family:var(--e-global-typography-secondary-font-family,inherit),sans-serif;color:var(--ink)}
/* Same shadow language as the dropdown panels (0 30px 60px -20px rgba(0,0,0,.22)):
   low, soft, offset down, no dark halo at the edge. drop-shadow() has no spread,
   so the offset/blur/alpha are scaled to the bar's 64px height to read the same. */
.eds-hdr-root:not(#eds) .eds-hdr__shape{position:absolute;inset:0;pointer-events:none;filter:drop-shadow(0 16px 22px rgba(0,0,0,.075))}
.eds-hdr-root:not(#eds) .eds-hdr__pill{position:absolute;inset:0;border:1px solid var(--line);border-radius:999px;background:var(--bg)}
.eds-hdr-root:not(#eds) .eds-hdr__bump{position:absolute;left:var(--bx);top:calc(.5px - 16 * var(--u));width:calc(100 * var(--u));height:calc(92 * var(--u));overflow:visible}
.eds-hdr-root:not(#eds) .eds-hdr__bump--start{display:none;left:0;width:calc(95 * var(--u))}
.eds-hdr-root:not(#eds) .eds-hdr__bump-fill{fill:var(--bg)}
.eds-hdr-root:not(#eds) .eds-hdr__bump-line{fill:none;stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}

.eds-hdr-root:not(#eds) .eds-hdr__logo{position:absolute;z-index:2;left:calc(var(--bx) + 50 * var(--u));top:50%;width:calc(66 * var(--u));aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;transition:transform .6s var(--ease)}
.eds-hdr-root:not(#eds) .eds-hdr__logo:hover{transform:translate(-50%,-50%) rotate(-12deg)}
.eds-hdr-root:not(#eds) .eds-hdr__logo img{display:block;width:100%;height:100%;object-fit:contain;max-width:none;border:0;border-radius:0;box-shadow:none}

/* ---------- desktop nav ---------- */
.eds-hdr-root:not(#eds) .eds-nav{position:static;display:flex;align-items:center;gap:34px}
.eds-hdr-root:not(#eds) .eds-nav__list{display:flex;align-items:center;gap:34px}
.eds-hdr-root:not(#eds) .eds-nav__item{position:static}
.eds-hdr-root:not(#eds) .eds-nav__link{position:relative;display:inline-flex;align-items:center;gap:6px;padding:10px 0;font-size:var(--e-global-typography-secondary-font-size,.9375rem);line-height:1.2;color:var(--ink);white-space:nowrap}
.eds-hdr-root:not(#eds) .eds-nav__link::after{content:"";position:absolute;left:0;right:0;bottom:4px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:right;transition:transform .35s var(--ease)}
.eds-hdr-root:not(#eds) :is(.eds-nav__item:hover,.eds-nav__item.is-open,.eds-nav__item.is-current)>.eds-nav__link::after,.eds-hdr-root:not(#eds) .eds-nav__link[aria-current="page"]::after{transform:scaleX(1);transform-origin:left}
.eds-hdr-root:not(#eds) .eds-nav__chev{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s var(--ease)}
.eds-hdr-root:not(#eds) .eds-nav__item.is-open .eds-nav__chev{transform:rotate(180deg)}
.eds-hdr-root:not(#eds) .eds-hdr__cta{flex:none}

/* ---------- dropdown panels ---------- */
.eds-hdr-root:not(#eds) .eds-dd{position:absolute;left:0;right:0;top:calc(100% + 22px);z-index:50;opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .25s ease,transform .35s var(--ease),visibility 0s linear .35s;pointer-events:none}
.eds-hdr-root:not(#eds) .eds-dd::before{content:"";position:absolute;left:0;right:0;top:-24px;height:24px}
.eds-hdr-root:not(#eds) .eds-nav__item.is-open>.eds-dd{opacity:1;visibility:visible;transform:none;transition:opacity .25s ease,transform .35s var(--ease),visibility 0s;pointer-events:auto}
.eds-hdr-root:not(#eds) .eds-dd__inner{background:var(--bg);border:1px solid var(--line);border-radius:30px;padding:36px 40px;box-shadow:0 30px 60px -20px rgba(0,0,0,.22);color:var(--ink)}
.eds-hdr-root:not(#eds) .eds-dd__title{display:block;font-weight:var(--e-global-typography-eds_h5-font-weight,700);font-size:1.0625rem;line-height:1.3;color:var(--ink)}
.eds-hdr-root:not(#eds) .eds-dd__desc{display:block;margin-top:6px;font-size:.875rem;line-height:1.5;color:var(--muted)}
.eds-hdr-root:not(#eds) .eds-dd__num{display:block;margin-bottom:14px;font-size:.75rem;font-weight:700;letter-spacing:.12em;color:var(--muted);transition:color .25s}
.eds-hdr-root:not(#eds) .eds-dd__eyebrow{display:block;font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.eds-hdr-root:not(#eds) .eds-dd__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px 8px}
.eds-hdr-root:not(#eds) .eds-dd__grid a{display:block;height:100%;padding:16px 20px;border-radius:18px;transition:background-color .25s ease}
.eds-hdr-root:not(#eds) .eds-dd__grid a:is(:hover,:focus-visible){background:var(--surface)}
.eds-hdr-root:not(#eds) .eds-dd__grid a:hover .eds-dd__num{color:var(--black)}
.eds-hdr-root:not(#eds) .eds-dd__foot{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 20px 0;padding-top:22px;border-top:1px solid var(--rule);font-size:.875rem;color:var(--muted)}
.eds-hdr-root:not(#eds) .eds-dd__more{display:inline-flex;align-items:center;gap:10px;font-weight:700;font-size:.9375rem;color:var(--ink)}
.eds-hdr-root:not(#eds) .eds-dd__more svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s var(--ease)}
.eds-hdr-root:not(#eds) .eds-dd__more:hover svg{transform:translateX(4px)}
.eds-hdr-root:not(#eds) .eds-dd__inner--about{display:grid;grid-template-columns:1fr 1.1fr;gap:40px;align-items:stretch}
.eds-hdr-root:not(#eds) .eds-dd__links{display:flex;flex-direction:column;justify-content:center;gap:4px}
.eds-hdr-root:not(#eds) .eds-dd__links a{display:block;padding:18px 20px;border-radius:18px;transition:background-color .25s ease}
.eds-hdr-root:not(#eds) .eds-dd__links a:is(:hover,:focus-visible){background:var(--surface)}
.eds-hdr-root:not(#eds) .eds-dd__links .eds-dd__title{font-size:1.375rem;font-weight:400}
.eds-hdr-root:not(#eds) .eds-dd__feature{position:relative;display:block;border-radius:20px;overflow:hidden;min-height:260px}
.eds-hdr-root:not(#eds) :is(.eds-dd__feature,.eds-dd__clinic) img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .8s var(--ease)}
.eds-hdr-root:not(#eds) .eds-dd__feature img{position:absolute;inset:0}
.eds-hdr-root:not(#eds) :is(.eds-dd__feature,.eds-dd__clinic):hover img{transform:scale(1.04)}
.eds-hdr-root:not(#eds) .eds-dd__feature-cap{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:6px;padding:60px 24px 22px;background:linear-gradient(transparent,rgba(0,0,0,.7));color:#fff;font-size:1.0625rem}
/* Clinics: one row of photo cards (as many as are chosen), a slim bar underneath. */
.eds-hdr-root:not(#eds) .eds-dd__inner--clinics{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:24px;align-items:start}
.eds-hdr-root:not(#eds) .eds-dd__clinic{display:block;min-width:0;padding:10px 10px 14px;margin:-10px;border-radius:22px;transition:background-color .25s ease}
.eds-hdr-root:not(#eds) .eds-dd__clinic:is(:hover,:focus-visible){background:var(--surface)}
.eds-hdr-root:not(#eds) .eds-dd__clinic-media{display:block;aspect-ratio:3/2;margin-bottom:16px;overflow:hidden;border-radius:16px;background:var(--surface)}
.eds-hdr-root:not(#eds) .eds-dd__clinic img{height:100%;border-radius:0}
.eds-hdr-root:not(#eds) .eds-dd__clinic .eds-dd__title{padding:0 4px}
.eds-hdr-root:not(#eds) .eds-dd__clinic .eds-dd__desc{margin-top:4px;padding:0 4px}
.eds-hdr-root:not(#eds) .eds-dd__aside{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:6px 0 0;padding-top:22px;border-top:1px solid var(--rule)}
.eds-hdr-root:not(#eds) .eds-dd__aside-copy{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 16px}
.eds-hdr-root:not(#eds) .eds-dd__aside-text{font-size:.875rem;line-height:1.5;color:var(--muted)}

/* ---------- burger ---------- */
.eds-hdr-root:not(#eds) .eds-burger{display:none;position:relative;width:44px;height:44px;border-radius:50%;align-items:center;justify-content:center;color:var(--ink);transition:background-color .3s}
.eds-hdr-root:not(#eds) .eds-burger:hover{background:var(--surface)}
/* Two equal lines, both placed from the same centre with translate, so they rasterise with
   the same weight. Opening: they slide together, then rotate into an X. Closing: reverse. */
.eds-burger__lines{position:relative;display:block;width:22px;height:10px}
.eds-burger__lines i{position:absolute;left:0;top:50%;width:100%;height:1.5px;margin-top:-.75px;border-radius:2px;background:currentColor;
	translate:0 var(--off,0px);rotate:0deg;
	transition:rotate .22s cubic-bezier(.4,0,.2,1),translate .22s cubic-bezier(.4,0,.2,1) .18s}
.eds-burger__lines i:first-child{--off:-3px}
.eds-burger__lines i:last-child{--off:3px}
.eds-burger:hover .eds-burger__lines i:first-child{--off:-4px}
.eds-burger:hover .eds-burger__lines i:last-child{--off:4px}
.eds-mm.is-in .eds-burger__lines.is-x i{translate:0 0;transition:translate .2s cubic-bezier(.4,0,.2,1),rotate .28s cubic-bezier(.3,1.4,.5,1) .16s}
.eds-mm.is-in .eds-burger__lines.is-x i:first-child{rotate:45deg}
.eds-mm.is-in .eds-burger__lines.is-x i:last-child{rotate:-45deg}

/* ---------- mobile menu (moved to <body> by JS) ---------- */
/* Menu motion: one custom curve, quick start + long soft landing.
   Open .58s, close .4s (closing = base transition, opening = .is-open transition). */
.eds-mm:not(#eds){--x:100%;--y:0px;--ease:cubic-bezier(.2,.7,.2,1);--mm-ease:cubic-bezier(.7,0,.12,1);--mm-out:cubic-bezier(.55,0,.15,1);--stag:.045s;
	position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;background:#000;color:#fff;font-family:var(--e-global-typography-secondary-font-family,inherit),sans-serif;
	clip-path:circle(0px at var(--x) var(--y));transition:clip-path .4s var(--mm-out);overflow:hidden}
.eds-mm:not(#eds)[hidden]{display:none}
.eds-mm:not(#eds).is-open{clip-path:circle(150vmax at var(--x) var(--y));transition:clip-path .58s var(--mm-ease)}
.eds-mm:not(#eds) *,.eds-mm:not(#eds) *::before,.eds-mm:not(#eds) *::after{box-sizing:border-box}
.eds-mm:not(#eds) ul{list-style:none;margin:0;padding:0}
.eds-mm:not(#eds) :is(a,button){margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:none;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.eds-mm:not(#eds) :is(a,button):focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:6px}
.eds-mm:not(#eds) .eds-mm__top{position:relative;flex:0 0 auto;height:var(--top-h,84px)}
.eds-mm:not(#eds) .eds-mm__logo{position:absolute;left:var(--logo-x,20px);top:var(--logo-y,12px)}
.eds-mm:not(#eds) .eds-mm__logo img{display:block;width:var(--logo-w,52px);height:auto;max-width:none;filter:invert(1)}
.eds-mm:not(#eds) .eds-mm__close{position:absolute;left:var(--btn-x,auto);top:var(--btn-y,16px);width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:50%}
.eds-mm:not(#eds) .eds-mm__body{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;display:flex;flex-direction:column;justify-content:space-between;gap:40px;padding:28px 24px max(28px,env(safe-area-inset-bottom))}
.eds-mm:not(#eds) .eds-mm__item{border-bottom:1px solid rgba(255,255,255,.12);perspective:400px;perspective-origin:bottom}
.eds-mm:not(#eds) .eds-mm__link{position:relative;display:flex;align-items:center;width:100%;padding:16px 0;text-align:left;font-size:clamp(1.75rem,7vw,2.5rem);line-height:1.1;letter-spacing:-.01em;font-weight:400;color:#fff}
.eds-mm:not(#eds) .eds-mm__text{display:inline-block;transform-origin:center bottom;transform:rotateX(90deg) translate3d(0,40px,0);opacity:0;transition:transform 0s linear .3s,opacity .14s linear,margin .45s var(--ease)}
.eds-mm:not(#eds).is-in .eds-mm__text{transform:none;opacity:1;transition:transform .55s cubic-bezier(.2,.8,.2,1) calc(var(--i,0)*var(--stag) + .22s),opacity .3s linear calc(var(--i,0)*var(--stag) + .22s),margin .45s cubic-bezier(.215,.61,.355,1)}
.eds-mm:not(#eds) .eds-mm__arrow{position:absolute;left:0;top:50%;width:34px;height:1.4px;margin-top:-.7px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .5s cubic-bezier(.215,.61,.355,1)}
.eds-mm:not(#eds) .eds-mm__arrow::before,.eds-mm:not(#eds) .eds-mm__arrow::after{content:"";position:absolute;right:0;top:0;width:10px;height:1.4px;background:currentColor;transform-origin:right center;transform:rotate(40deg)}
.eds-mm:not(#eds) .eds-mm__arrow::after{transform:rotate(-40deg)}
@media (hover:hover){
	.eds-mm:not(#eds) .eds-mm__link:hover .eds-mm__arrow{transform:scaleX(1)}
	.eds-mm:not(#eds) .eds-mm__link:hover .eds-mm__text{margin-left:48px}
}
.eds-mm:not(#eds) .eds-mm__link[aria-current="page"] .eds-mm__text{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:8px}
.eds-mm:not(#eds) .eds-mm__plus{position:relative;margin-left:auto;width:16px;height:16px;flex:0 0 16px;opacity:0;transition:opacity .14s linear}
.eds-mm:not(#eds).is-in .eds-mm__plus{transition:opacity .3s linear calc(var(--i,0)*var(--stag) + .38s)}
.eds-mm:not(#eds).is-in .eds-mm__plus{opacity:1}
.eds-mm:not(#eds) .eds-mm__plus::before,.eds-mm:not(#eds) .eds-mm__plus::after{content:"";position:absolute;left:0;right:0;top:50%;height:1.4px;margin-top:-.7px;background:currentColor;transition:transform .4s var(--ease)}
.eds-mm:not(#eds) .eds-mm__plus::after{transform:rotate(90deg)}
.eds-mm:not(#eds) .eds-mm__link[aria-expanded="true"] .eds-mm__plus::after{transform:rotate(0)}
.eds-mm:not(#eds) .eds-mm__sub{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s cubic-bezier(.215,.61,.355,1)}
.eds-mm:not(#eds) .eds-mm__sub>ul{overflow:hidden;min-height:0}
.eds-mm:not(#eds) .eds-mm__item.is-expanded .eds-mm__sub{grid-template-rows:1fr}
.eds-mm:not(#eds) .eds-mm__sub li:first-child{padding-top:2px}
.eds-mm:not(#eds) .eds-mm__sub li:last-child{padding-bottom:18px}
.eds-mm:not(#eds) .eds-mm__sub a{display:block;padding:9px 0;font-size:1.0625rem;color:rgba(255,255,255,.7);transition:color .2s}
.eds-mm:not(#eds) .eds-mm__sub a:is(:hover,[aria-current="page"]){color:#fff}
.eds-mm:not(#eds) .eds-mm__foot{display:flex;flex-direction:column;gap:22px;opacity:0;transform:translateY(16px);transition:opacity .14s linear,transform 0s linear .3s}
.eds-mm:not(#eds).is-in .eds-mm__foot{opacity:1;transform:none;transition:opacity .4s linear .5s,transform .6s cubic-bezier(.2,.8,.2,1) .5s}
.eds-mm:not(#eds) .eds-mm__cta .elementor-button{width:100%}
.eds-mm:not(#eds) .eds-mm__contacts{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.eds-mm:not(#eds) .eds-mm__contacts a{font-size:.9375rem;color:#fff}
.eds-mm:not(#eds) .eds-mm__contacts span{display:block;margin-bottom:4px;font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.55)}
html.eds-mm-lock,html.eds-mm-lock body{overflow:hidden!important}
@media (min-width:1025px){.eds-mm:not(#eds){display:none}}

/* ---------- breakpoints ---------- */
@media (max-width:1200px) and (min-width:1025px){
	.eds-hdr-root:not(#eds) :is(.eds-nav,.eds-nav__list){gap:24px}
	.eds-hdr-root:not(#eds) .eds-dd__inner{padding:28px}
}
@media (max-width:1024px){
	.eds-hdr-root{--h:58px;--top:18px;--gutter:24px}
	.eds-hdr-root:not(#eds) .eds-nav__list{display:none}
	.eds-hdr-root:not(#eds) .eds-nav{gap:10px}
	.eds-hdr-root:not(#eds) .eds-burger{display:inline-flex}
	.eds-hdr-root:not(#eds) .eds-hdr__bar{padding-right:7px;padding-left:calc(95 * var(--u) + 14px)}
	/* the logo circle becomes the left end of the bar */
	.eds-hdr-root:not(#eds) .eds-hdr__bump{display:none}
	.eds-hdr-root:not(#eds) .eds-hdr__bump--start{display:block}
	.eds-hdr-root:not(#eds) .eds-hdr__pill{left:calc(45 * var(--u))}
	.eds-hdr-root:not(#eds) .eds-hdr__logo{left:calc(45 * var(--u))}
}
@media (max-width:767px){
	.eds-hdr-root{--h:52px;--top:16px;--gutter:14px}
	.eds-hdr-root:not(#eds) .eds-hdr__cta{display:none}
	.eds-hdr-root:not(#eds) .eds-hdr__bar{padding-right:4px}
}
@media (max-width:782px){body.admin-bar .eds-hdr-root:not(#eds) .eds-hdr{top:calc(var(--top) + 46px)}}

@media (prefers-reduced-motion:reduce){
	.eds-hdr-root:not(#eds) .eds-hdr{transition:none}
	.eds-mm:not(#eds){transition:opacity .2s;clip-path:none;opacity:0}
	.eds-mm:not(#eds).is-open{opacity:1}
	.eds-mm:not(#eds) :is(.eds-mm__text,.eds-mm__foot),.eds-mm:not(#eds).is-in :is(.eds-mm__text,.eds-mm__foot){transition:none;transform:none;opacity:1}
}
