/* ==========================================================================
   Pride IVF header and navigation
   One <nav> element for every screen size; only this CSS changes its layout.
   - 1100px and up: info strip, sticky bar, mega panel and dropdown.
   - Below 1100px: app bar on top (logo, call, Book); the same <nav> becomes
     the bottom tab bar and its dropdown panels slide up from the bottom.
   No max-width: content runs full width with 28px side padding (14px on phones).
   ========================================================================== */

:root {
	--pg-plum: #3b3284;
	--pg-plum-deep: #2a2363;
	--pg-pink: #e6087f;
	--pg-pink-deep: #c4066c;
	--pg-blush: #fdf0f6;
	--pg-lilac: #f2f0fb;
	--pg-ink: #241f4a;
	--pg-muted: #6b6788;
	--pg-line: #ece9f5;
	--pg-radius: 18px;
	--pg-gutter: 28px;
	--pg-ease: cubic-bezier(.22, 1, .36, 1);
	--pg-sheet-ease: cubic-bezier(.32, .72, 0, 1);
	--pg-font: 'Jost', 'Nunito', system-ui, sans-serif;
	--pg-strip-h: 38px;
	--pg-bar-h: 78px;
	--pg-tab-h: 66px;
}

.pg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pg-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pg-skip {
	position: fixed; top: 10px; left: 10px; z-index: 2000;
	padding: 10px 16px; border-radius: 10px;
	background: var(--pg-plum); color: #fff; font: 600 14px/1 var(--pg-font);
	transform: translateY(-150%); transition: transform .2s;
}
.pg-skip:focus { transform: none; color: #fff; }

.pg-wrap { width: 100%; padding-left: var(--pg-gutter); padding-right: var(--pg-gutter); }

/* The old theme header spacer is not used any more. */
.header-wrap-clone { display: none !important; }

/* --------------------------------------------------------------------------
   Header shell: the strip scrolls away, the bar sticks.
   -------------------------------------------------------------------------- */
.pg-header {
	position: sticky;
	top: calc(var(--pg-strip-h) * -1);
	z-index: 999;
	font-family: var(--pg-font);
}

.pg-strip {
	height: var(--pg-strip-h);
	background: linear-gradient(90deg, var(--pg-plum-deep), var(--pg-plum) 60%, #4a3a96);
	color: rgba(255, 255, 255, .82);
	font-size: 13.5px;
}
.pg-strip .pg-wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.pg-strip__info { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.pg-strip__info--end { gap: 14px; }
.pg-strip__info li { display: flex; align-items: center; gap: 7px; margin: 0; }
.pg-strip__info .pg-i { width: 15px; height: 15px; color: #ff9fd0; }
.pg-strip a { display: inline-flex; align-items: center; gap: 7px; color: inherit; transition: color .2s; }
.pg-strip a:hover { color: #fff; }
.pg-strip__social { width: 26px; height: 26px; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.pg-strip__social .pg-i { width: 14px; height: 14px; color: #fff; }
.pg-strip__social:hover { background: var(--pg-pink); }

.pg-bar {
	position: relative;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--pg-line);
	transition: box-shadow .3s, background-color .3s;
}
.pg-header.is-stuck .pg-bar { background: rgba(255, 255, 255, .97); box-shadow: 0 10px 30px -18px rgba(42, 35, 99, .45); }
.pg-bar__row { display: flex; align-items: center; gap: 28px; height: var(--pg-bar-h); }

.pg-brand { display: inline-flex; flex: none; line-height: 0; }
.pg-brand__logo { width: 196px; height: auto; }

/* --------------------------------------------------------------------------
   Navigation: desktop layout
   -------------------------------------------------------------------------- */
.pg-nav { flex: 1; display: flex; justify-content: center; }
.pg-nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pg-nav__item { position: static; margin: 0; }
.pg-nav__icon, .pg-panel__head, .pg-scrim { display: none; }

.pg-nav__link {
	position: relative;
	display: inline-flex; align-items: center; gap: 4px;
	padding: 10px 15px;
	border: 0; border-radius: 999px; background: none;
	color: var(--pg-ink); font: 500 16px/1 var(--pg-font);
	cursor: pointer; transition: color .2s, background-color .2s;
}
.pg-nav__link::after {
	content: ""; position: absolute; left: 50%; bottom: 1px;
	width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
	background: var(--pg-pink);
	transform: scale(0); transition: transform .3s var(--pg-ease);
}
.pg-nav__link:hover, .pg-nav__item.is-open > .pg-nav__link { color: var(--pg-plum); background: var(--pg-lilac); }
.pg-nav__link[aria-current="page"], .pg-nav__link.is-active { color: var(--pg-pink); }
.pg-nav__link[aria-current="page"]::after, .pg-nav__link.is-active::after { transform: scale(1); }
.pg-nav__chev { width: 16px; height: 16px; transition: transform .3s var(--pg-ease); }
.pg-nav__item.is-open .pg-nav__chev { transform: rotate(180deg); }
.pg-nav__link:focus-visible, .pg-cta:focus-visible, .pg-call:focus-visible { outline: 2px solid var(--pg-pink); outline-offset: 2px; }

/* Panels: hidden until opened (by JS; keyboard focus opens them if JS is off). */
.pg-panel {
	position: absolute; z-index: 5;
	opacity: 0; visibility: hidden;
	transform: translateY(8px);
	transition: opacity .22s var(--pg-ease), transform .3s var(--pg-ease), visibility 0s linear .3s;
}
.pg-nav__item.is-open > .pg-panel,
html:not(.pg-js) .pg-nav__item:focus-within > .pg-panel {
	opacity: 1; visibility: visible; transform: none;
	transition: opacity .22s var(--pg-ease), transform .3s var(--pg-ease), visibility 0s;
}

.pg-mega { left: 0; right: 0; top: calc(100% - 6px); padding: 0 var(--pg-gutter); }
.pg-mega__inner {
	display: grid; grid-template-columns: 1fr 300px;
	overflow: hidden;
	border: 1px solid var(--pg-line); border-radius: 24px;
	background: #fff; box-shadow: 0 30px 60px -30px rgba(42, 35, 99, .4);
}
.pg-mega__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 26px; padding: 28px 30px; align-content: start; }
.pg-mega__cat { padding: 4px 0 8px; }
.pg-mega__cat-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--pg-ink); font: 600 16px/1.3 var(--pg-font); }
.pg-mega__cat-head { transition: color .2s; }
.pg-mega__cat-head:hover, .pg-mega__cat-head[aria-current], .pg-mega__cat-head.is-here { color: var(--pg-pink); }
.pg-mega__cat-head.is-here .pg-chip { background: var(--pg-pink); color: #fff; }
.pg-mega__sub { display: inline-block; margin: 0 0 4px; padding-left: 2px; color: var(--pg-muted); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; transition: color .2s; }
.pg-mega__sub:hover, .pg-mega__sub.is-here { color: var(--pg-pink); }
.pg-mega__sub.is-here { text-decoration: underline; text-decoration-color: rgba(230, 8, 127, .35); text-underline-offset: 4px; }
.pg-mega__links { margin: 0 0 10px; padding: 0; list-style: none; }
.pg-mega__links a {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	margin: 0 -10px; padding: 8px 10px; border-radius: 10px;
	color: #3d3866; font-size: 15px; line-height: 1.35;
	transition: background-color .2s, color .2s;
}
.pg-mega__go { width: 16px; height: 16px; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .25s var(--pg-ease); }
.pg-mega__links a:hover, .pg-mega__links a[aria-current="page"] { background: var(--pg-blush); color: var(--pg-pink); }
.pg-mega__links a:hover .pg-mega__go { opacity: 1; transform: none; }

.pg-mega__intro {
	display: flex; flex-direction: column; gap: 12px;
	padding: 30px 28px;
	background:
		radial-gradient(circle at 100% 0, rgba(230, 8, 127, .35), transparent 55%),
		linear-gradient(160deg, var(--pg-plum) 0%, var(--pg-plum-deep) 100%);
	color: rgba(255, 255, 255, .82);
}
.pg-mega__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #ff9fd0; }
.pg-mega__title { margin: 0; color: #fff; font: 600 23px/1.25 var(--pg-font); }
.pg-mega__text { margin: 0; font-size: 14.5px; line-height: 1.6; }
.pg-mega__cta {
	display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
	margin-top: auto; padding: 12px 16px; border-radius: 14px;
	background: #fff; color: var(--pg-plum); font-weight: 600; font-size: 15px;
	transition: transform .2s var(--pg-ease), color .2s;
}
.pg-mega__cta:hover { color: var(--pg-pink); transform: translateX(3px); }
.pg-mega__call { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; font-size: 15px; }
.pg-mega__call .pg-i { width: 17px; height: 17px; color: #ff9fd0; }
.pg-mega__call:hover { color: #ffd1e8; }
.pg-mega__all { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 5px; transition: text-decoration-color .2s, gap .25s var(--pg-ease); }
.pg-mega__all .pg-i { width: 16px; height: 16px; }
.pg-mega__all:hover { color: #fff; text-decoration-color: #ff9fd0; gap: 10px; }

.pg-chip {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 36px; height: 36px; border-radius: 12px;
	background: linear-gradient(140deg, var(--pg-blush), var(--pg-lilac));
	color: var(--pg-pink);
}
.pg-chip .pg-i { width: 19px; height: 19px; }

.pg-nav__item:has(> .pg-drop) { position: relative; }
.pg-drop { left: 50%; top: calc(100% + 10px); width: 340px; margin-left: -170px; }
.pg-drop__list {
	margin: 0; padding: 8px; list-style: none;
	border: 1px solid var(--pg-line); border-radius: 20px;
	background: #fff; box-shadow: 0 24px 50px -24px rgba(42, 35, 99, .4);
}
.pg-drop__link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--pg-ink); transition: background-color .2s; }
.pg-drop__link strong { display: block; font-size: 15px; font-weight: 600; }
.pg-drop__link small { display: block; margin-top: 2px; color: var(--pg-muted); font-size: 13px; line-height: 1.4; }
.pg-drop__link:hover, .pg-drop__link[aria-current="page"] { background: var(--pg-blush); color: var(--pg-ink); }
.pg-drop__link:hover strong { color: var(--pg-pink); }

/* Actions: call and Book */
.pg-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.pg-call { display: inline-flex; align-items: center; gap: 10px; color: var(--pg-ink); }
.pg-call__icon {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--pg-lilac); color: var(--pg-plum);
	transition: background-color .2s, color .2s;
}
.pg-call__icon::before {
	content: ""; position: absolute; inset: -4px; border-radius: 50%;
	border: 1.5px solid rgba(59, 50, 132, .25);
	animation: pg-ring 2.6s var(--pg-ease) infinite;
}
.pg-call__icon .pg-i { width: 19px; height: 19px; }
.pg-call__text { display: flex; flex-direction: column; font-size: 15.5px; font-weight: 600; line-height: 1.2; }
.pg-call__text small { color: var(--pg-muted); font-size: 12px; font-weight: 500; }
.pg-call:hover .pg-call__icon { background: var(--pg-plum); color: #fff; }
.pg-call:hover { color: var(--pg-plum); }

.pg-cta {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 22px; border-radius: 999px;
	background: linear-gradient(135deg, var(--pg-pink), var(--pg-pink-deep));
	color: #fff; font: 600 15.5px/1 var(--pg-font); white-space: nowrap;
	box-shadow: 0 10px 22px -10px rgba(230, 8, 127, .75);
	transition: transform .2s var(--pg-ease), box-shadow .2s;
}
.pg-cta .pg-i { width: 18px; height: 18px; }
.pg-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(230, 8, 127, .8); }
.pg-cta:active { transform: scale(.97); }

@keyframes pg-ring {
	0% { transform: scale(.85); opacity: 1; }
	70%, 100% { transform: scale(1.25); opacity: 0; }
}

@media (max-width: 1279.98px) and (min-width: 1100px) {
	.pg-call__text { display: none; }
	.pg-bar__row { gap: 18px; }
	.pg-nav__link { padding: 10px 12px; }
}

/* --------------------------------------------------------------------------
   Phone and tablet: the same <nav> becomes the bottom tab bar
   -------------------------------------------------------------------------- */
@media (max-width: 1099.98px) {
	:root { --pg-bar-h: 62px; --pg-gutter: 14px; }
	.pg-header { top: 0; }
	.pg-strip, .pg-call__text, .pg-nav__chev { display: none; }
	.pg-bar__row { justify-content: space-between; gap: 10px; }
	.pg-brand__logo { width: 150px; }

	/* A blur on the bar would trap the fixed tab bar inside it, so the bar stays solid. */
	.pg-bar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }

	.pg-actions { gap: 10px; }
	.pg-call__icon { width: 40px; height: 40px; }
	.pg-call__icon::before { display: none; }
	.pg-cta { padding: 11px 16px; font-size: 14.5px; box-shadow: 0 8px 18px -10px rgba(230, 8, 127, .8); }
	.pg-cta .pg-i { width: 17px; height: 17px; }

	body { padding-bottom: calc(var(--pg-tab-h) + 14px + env(safe-area-inset-bottom)); }
	.mobile-book-my-botton { display: none !important; }
	#gotoTop { bottom: calc(var(--pg-tab-h) + 26px + env(safe-area-inset-bottom)) !important; }

	/* The tab bar */
	.pg-nav {
		position: fixed; z-index: 5;
		left: var(--pg-gutter); right: var(--pg-gutter);
		bottom: calc(10px + env(safe-area-inset-bottom));
		display: block;
		transition: transform .35s var(--pg-ease);
	}
	.pg-nav.is-hidden { transform: translateY(calc(100% + 24px)); }
	.pg-nav__list {
		position: relative;
		display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
		height: var(--pg-tab-h); padding: 0 4px;
		border: 1px solid var(--pg-line); border-radius: 22px;
		background: rgba(255, 255, 255, .96);
		box-shadow: 0 16px 40px -16px rgba(42, 35, 99, .45);
	}
	.pg-nav__item { display: flex; }
	.pg-nav__link {
		flex: 1; flex-direction: column; justify-content: center; gap: 4px;
		height: 100%; padding: 0 2px; border-radius: 0;
		color: var(--pg-muted); font-size: 11.5px; font-weight: 500;
		-webkit-tap-highlight-color: transparent; touch-action: manipulation;
		-webkit-user-select: none; user-select: none;
	}
	.pg-nav__link:hover { background: none; color: var(--pg-muted); }
	.pg-nav__link::after { display: none; }
	.pg-nav__label { white-space: nowrap; }
	.pg-nav__icon {
		display: block; box-sizing: content-box;
		width: 22px; height: 22px; padding: 4px 13px; border-radius: 999px;
		transition: background-color .25s, color .25s, transform .2s var(--pg-ease);
	}
	.pg-nav__link:active .pg-nav__icon { transform: scale(.9); }
	.pg-nav__link[aria-current="page"], .pg-nav__link.is-active, .pg-nav__item.is-open > .pg-nav__link {
		background: none; color: var(--pg-plum); font-weight: 600;
	}
	.pg-nav__link[aria-current="page"] .pg-nav__icon, .pg-nav__link.is-active .pg-nav__icon { background: var(--pg-lilac); }
	.pg-nav__item.is-open > .pg-nav__link .pg-nav__icon { background: var(--pg-pink); color: #fff; }
	.pg-nav__link:focus-visible { outline: none; }
	.pg-nav__link:focus-visible .pg-nav__icon { box-shadow: 0 0 0 2px var(--pg-pink); }

	/* Dropdown panels become sheets that slide up from the bottom */
	.pg-panel, .pg-mega, .pg-drop {
		position: fixed; z-index: 3;
		left: 0; right: 0; top: auto; bottom: 0;
		width: auto; margin: 0; padding: 0 var(--pg-gutter) calc(18px + env(safe-area-inset-bottom));
		max-height: 86vh; max-height: 86dvh;
		overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
		border-radius: 26px 26px 0 0;
		background: #fff;
		box-shadow: 0 -20px 50px -20px rgba(26, 21, 64, .5);
		opacity: 1;
		transform: translateY(105%);
		transition: transform .42s var(--pg-sheet-ease), visibility 0s linear .42s;
	}
	.pg-nav__item.is-open > .pg-panel {
		transform: none;
		transition: transform .42s var(--pg-sheet-ease), visibility 0s;
	}
	.pg-nav.is-dragging .pg-panel { transition: none; }

	.pg-panel__head {
		position: sticky; top: 0; z-index: 1;
		display: flex; align-items: center; justify-content: space-between;
		margin: 0 calc(var(--pg-gutter) * -1) 4px; padding: 22px var(--pg-gutter) 12px;
		background: #fff; touch-action: none; cursor: grab;
	}
	.pg-panel__head::before {
		content: ""; position: absolute; left: 50%; top: 8px;
		width: 42px; height: 5px; margin-left: -21px; border-radius: 999px; background: #d9d5e8;
	}
	.pg-panel__title { margin: 0; color: var(--pg-ink); font: 600 20px/1.2 var(--pg-font); }
	.pg-panel__close {
		display: inline-flex; align-items: center; justify-content: center;
		width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
		background: var(--pg-lilac); color: var(--pg-plum); cursor: pointer;
	}

	.pg-scrim {
		display: block; position: fixed; inset: 0; z-index: 2;
		background: rgba(26, 21, 64, .45);
		opacity: 0; visibility: hidden;
		transition: opacity .3s, visibility 0s linear .3s;
	}
	.pg-nav.has-open .pg-scrim { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }

	/* Treatments sheet content */
	.pg-mega__inner { display: block; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
	.pg-mega__grid { display: block; padding: 0; }
	.pg-mega__cat {
		margin-bottom: 12px; padding: 14px;
		border: 1px solid var(--pg-line); border-radius: var(--pg-radius);
		background: linear-gradient(180deg, #fff, #fcfbff);
	}
	.pg-mega__cat-head { margin-bottom: 6px; font-size: 16.5px; }
	.pg-mega__links { margin: 0 0 4px; }
	.pg-mega__links li + li a { border-top: 1px solid var(--pg-line); border-radius: 0; }
	.pg-mega__links a { margin: 0; min-height: 46px; padding: 0 2px; font-size: 15.5px; }
	.pg-mega__links a:hover { background: none; }
	.pg-mega__links a[aria-current="page"] { background: none; color: var(--pg-pink); }
	.pg-mega__go { opacity: 1; transform: none; width: 18px; height: 18px; color: #b8b3d1; }
	.pg-mega__intro { padding: 18px; border-radius: var(--pg-radius); gap: 10px; }
	.pg-mega__title { font-size: 19px; }
	.pg-mega__text { font-size: 14px; }
	.pg-mega__cta { margin-top: 4px; }

	/* Patient Care sheet content */
	.pg-drop__list { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
	.pg-drop__list li + li { margin-top: 8px; }
	.pg-drop__link { padding: 12px; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); }
	.pg-drop__link[aria-current="page"] { border-color: var(--pg-pink); }

	html.pg-locked, html.pg-locked body { overflow: hidden; }
}

@media (max-width: 479.98px) {
	.pg-cta__more { display: none; }
}

@media (max-width: 380px) {
	.pg-brand__logo { width: 128px; }
	.pg-nav__link { font-size: 10.5px; }
	.pg-nav__icon { padding: 4px 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.pg-panel, .pg-scrim, .pg-nav, .pg-nav__chev { transition: none !important; }
	.pg-call__icon::before { animation: none; }
}

/* --------------------------------------------------------------------------
   Lazy images: a soft branded placeholder shows until the picture arrives.
   -------------------------------------------------------------------------- */
:where(img[width][height]) { height: auto; }
html.pg-lazy-ready img[loading="lazy"]:not(.is-loaded) {
	background: #faf6fb url("../../images/general/lazy-placeholder.svg") center / min(42%, 72px) no-repeat;
}
