/* ==========================================================================
   ESK redesign — header, compact page banner, doctor directory, footer
   ========================================================================== */

:root {
	--esk-blue: #0154f7;
	--esk-blue-dark: #0143c6;
	--esk-navy: #0a1d4a;
	--esk-ink: #17213a;
	--esk-slate: #5b6680;
	--esk-line: #e2e7f1;
	--esk-mist: #f4f7fc;
	--esk-orange: #f86e03;
	--esk-head: 'Poppins', sans-serif;
	--esk-body: 'Rubik', 'Poppins', sans-serif;
}

/* ---------- Header ---------------------------------------------------- */

.esk-header { min-height: 76px; }
.esk-header .header-nav { background: var(--esk-blue); }
.esk-header .header-nav.sticky { box-shadow: 0 6px 24px rgba(10, 29, 74, .18); }

.esk-header .navbar { padding: 0; min-height: 76px; }
.esk-header .navbar-brand img { max-height: 46px; width: auto; }

@media (min-width: 992px) {
	.esk-header .header-nav .navigation .navbar .navbar-nav > li > a,
	.esk-header .header-nav.sticky .navbar .navbar-nav > li > a {
		position: relative;
		font-family: var(--esk-head);
		font-size: 15px;
		font-weight: 500;
		line-height: 76px !important;
		margin: 0 14px;
		color: rgba(255, 255, 255, .82);
	}
	.esk-header .header-nav .navigation .navbar .navbar-nav > li > a:hover,
	.esk-header .header-nav .navigation .navbar .navbar-nav > li.current-menu-item > a,
	.esk-header .header-nav .navigation .navbar .navbar-nav > li.current-menu-ancestor > a,
	.esk-header .header-nav .navigation .navbar .navbar-nav > li.current-menu-parent > a {
		color: #fff;
	}
	/* active page marker: a bar sitting on the bottom edge of the header */
	.esk-header .header-nav .navigation .navbar .navbar-nav > li > a::after {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 3px;
		border-radius: 3px 3px 0 0;
		background: #fff;
		transform: scaleX(0);
		transition: transform .2s ease;
	}
	.esk-header .header-nav .navigation .navbar .navbar-nav > li:hover > a::after,
	.esk-header .header-nav .navigation .navbar .navbar-nav > li.current-menu-item > a::after,
	.esk-header .header-nav .navigation .navbar .navbar-nav > li.current-menu-ancestor > a::after,
	.esk-header .header-nav .navigation .navbar .navbar-nav > li.current-menu-parent > a::after {
		transform: scaleX(1);
	}

}

@media (max-width: 991px) {
	.esk-header { min-height: 64px; }
	.esk-header .header-nav { padding: 0 !important; }
	.esk-header .navbar { min-height: 64px; }
	.esk-header .navbar-brand img { max-height: 40px; }
}

/* Contact button */
.esk-header .navbar-btn .main-btn {
	height: auto;
	line-height: 1;
	padding: 13px 22px;
	border-radius: 8px;
	border: 0;
	background: #fff;
	color: var(--esk-blue);
	font-family: var(--esk-head);
	font-size: 14px;
	font-weight: 600;
	box-shadow: none;
}
.esk-header .navbar-btn .main-btn::before,
.esk-header .navbar-btn .main-btn::after { display: none; }
.esk-header .navbar-btn .main-btn:hover { background: var(--esk-navy); color: #fff; }

.esk-header a:focus-visible,
.esk-banner a:focus-visible,
.esk-directory a:focus-visible,
.esk-footer a:focus-visible {
	outline: 2px solid var(--esk-orange);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Compact page banner --------------------------------------- */

.esk-banner {
	position: relative;
	background: var(--esk-navy);
	color: #fff;
	padding: 44px 0 48px;
	overflow: hidden;
}
/* one quiet structural cue: the brand blue running along the top */
.esk-banner::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--esk-blue);
}
.esk-banner.has-tabs { padding-bottom: 0; }
/* ordinary pages: give the content room below the banner */
.esk-banner:not(.has-tabs) { margin-bottom: 48px; }

.esk-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	font-family: var(--esk-head);
	font-size: 13px;
	color: rgba(255, 255, 255, .6);
}
.esk-crumbs li + li::before {
	content: '/';
	margin: 0 10px;
	color: rgba(255, 255, 255, .35);
}
.esk-crumbs a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.esk-crumbs a:hover { color: #fff; text-decoration: underline; }

.esk-banner__title {
	margin: 0;
	max-width: 30ch;
	font-family: var(--esk-head);
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: #fff;
}
.esk-banner__lede {
	margin: 12px 0 0;
	font-family: var(--esk-body);
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .72);
}

/* district tabs, fused to the banner's bottom edge */
.esk-tabs-wrap { margin-top: 34px; }
.esk-tabs {
	position: relative;
	display: flex;
	gap: 2px;
	/* fade the right edge so it's clear the row scrolls */
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
	mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.esk-tabs::-webkit-scrollbar { display: none; }
.esk-tabs.is-end { -webkit-mask-image: none; mask-image: none; }
.esk-tabs a {
	flex: 0 0 auto;
	padding: 12px 15px 13px;
	border-radius: 10px 10px 0 0;
	font-family: var(--esk-head);
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, .75);
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.esk-tabs a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.esk-tabs a.is-active { background: var(--esk-mist); color: var(--esk-navy); font-weight: 600; }

/* ---------- Doctor directory ------------------------------------------ */

.esk-directory {
	background: var(--esk-mist);
	padding: 36px 0 90px;
	font-family: var(--esk-body);
}

.esk-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 20px;
}
.esk-search {
	position: relative;
	flex: 0 1 420px;
	margin: 0;
}
.esk-search .esk-i {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--esk-slate);
	pointer-events: none;
}
.esk-search input {
	width: 100%;
	height: 50px;
	padding: 0 16px 0 46px;
	border: 1px solid var(--esk-line);
	border-radius: 10px;
	background: #fff;
	font-family: var(--esk-body);
	font-size: 15px;
	color: var(--esk-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.esk-search input::placeholder { color: #8b94aa; }
.esk-search input:focus {
	outline: none;
	border-color: var(--esk-blue);
	box-shadow: 0 0 0 4px rgba(1, 84, 247, .12);
}
.esk-count {
	margin: 0;
	font-family: var(--esk-head);
	font-size: 14px;
	color: var(--esk-slate);
}

/* one panel, one row per doctor, same three columns every time */
.esk-docs {
	border: 1px solid var(--esk-line);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
}
.esk-docs[hidden], .esk-doc[hidden] { display: none; }

.esk-doc {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 210px;
	gap: 32px;
	align-items: start;
	padding: 24px 28px;
}
.esk-doc + .esk-doc { border-top: 1px solid var(--esk-line); }
.esk-doc:hover { background: #fbfcff; }

.esk-doc__who {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 16px;
	align-items: start;
}
.esk-doc__avatar {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--esk-mist);
	font-family: var(--esk-head);
	font-size: 15px;
	font-weight: 600;
	color: var(--esk-blue);
}
.esk-doc__name {
	margin: 0;
	font-family: var(--esk-head);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--esk-ink);
}
.esk-doc__degrees {
	margin: 4px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--esk-slate);
}
.esk-doc__district {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--esk-blue);
}

.esk-doc__places {
	margin: 0;
	padding: 0;
	list-style: none;
}
.esk-doc__places li {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 10px;
	align-items: start;
}
.esk-doc__places li + li { margin-top: 12px; }
.esk-doc__places .esk-i { margin-top: 2px; color: #9aa3b8; }
.esk-doc__place {
	display: block;
	font-size: 15px;
	line-height: 1.5;
	color: var(--esk-ink);
}
.esk-doc__phones {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	margin-top: 2px;
}
.esk-doc__phones a,
.esk-doc__online a {
	font-size: 14px;
	color: var(--esk-slate);
	text-decoration: none;
	white-space: nowrap;
}
.esk-doc__phones a:hover,
.esk-doc__online a:hover { color: var(--esk-blue); text-decoration: underline; }

.esk-doc__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}
.esk-doc__call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	border: 1px solid #d3def7;
	border-radius: 8px;
	background: #eef3fe;
	font-family: var(--esk-head);
	font-size: 14px;
	font-weight: 600;
	color: var(--esk-blue) !important;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.esk-doc__call:hover { background: var(--esk-blue); border-color: var(--esk-blue); color: #fff !important; }
.esk-doc__call .esk-i { width: 16px; height: 16px; }
.esk-doc__online,
.esk-doc__web {
	display: grid;
	grid-template-columns: 16px 1fr;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--esk-ink);
}
.esk-doc__online > span { display: flex; flex-direction: column; }
.esk-doc__muted { color: var(--esk-slate); }
.esk-doc__online .esk-i,
.esk-doc__web .esk-i { width: 16px; height: 16px; margin-top: 2px; color: #9aa3b8; }
.esk-doc__web {
	color: var(--esk-blue);
	text-decoration: none;
	word-break: break-all;
}
.esk-doc__web:hover { text-decoration: underline; }

.esk-empty {
	padding: 60px 20px;
	border: 1px dashed #c8d1e4;
	border-radius: 14px;
	background: #fff;
	text-align: center;
	color: var(--esk-slate);
}
.esk-empty[hidden] { display: none; }
.esk-empty p { margin: 0 0 18px; font-size: 16px; }
.esk-btn {
	display: inline-block;
	padding: 12px 22px;
	border: 1px solid var(--esk-blue);
	border-radius: 8px;
	background: var(--esk-blue);
	color: #fff;
	font-family: var(--esk-head);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.esk-btn--ghost { background: #fff; color: var(--esk-blue); }
.esk-btn:hover { background: var(--esk-blue-dark); border-color: var(--esk-blue-dark); color: #fff; }

@media (max-width: 991px) {
	.esk-doc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; }
	.esk-doc__actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
	.esk-doc__call { padding: 0 20px; }
}
@media (max-width: 640px) {
	.esk-banner { padding-top: 32px; }
	.esk-tabs-wrap { margin-top: 26px; }
	.esk-search { flex-basis: 100%; }
	.esk-doc { grid-template-columns: 1fr; gap: 16px; padding: 20px 18px; }
	.esk-doc__places { padding-left: 60px; }
	.esk-doc__actions { grid-column: auto; padding-left: 60px; flex-direction: column; align-items: stretch; }
}

/* ---------- Footer ----------------------------------------------------- */

.esk-footer {
	background: var(--esk-navy);
	color: rgba(255, 255, 255, .72);
	font-family: var(--esk-body);
	font-size: 15px;
	padding: 72px 0 0;
}
.esk-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
	gap: 40px;
	padding-bottom: 56px;
}
.esk-footer__logo img { width: 200px; height: auto; }
.esk-footer__brand p { margin: 20px 0 18px; max-width: 34ch; line-height: 1.7; color: rgba(255, 255, 255, .72); }
.esk-footer__phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--esk-head);
	font-weight: 500;
	color: #fff;
}
.esk-footer__phone .esk-i { color: var(--esk-orange); }
.esk-footer h2 {
	margin: 6px 0 18px;
	font-family: var(--esk-head);
	font-size: 16px;
	font-weight: 600;
	color: #fff;
}
.esk-footer ul { margin: 0; padding: 0; list-style: none; }
.esk-footer li + li { margin-top: 10px; }
.esk-footer__col--districts ul { columns: 2; column-gap: 20px; }
.esk-footer__col--districts li { break-inside: avoid; margin: 0 0 10px; }
.esk-footer__col--districts li + li { margin-top: 0; }
.esk-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.esk-footer a:hover { color: #fff; }
.esk-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	padding: 22px 0 26px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 14px;
	color: rgba(255, 255, 255, .55);
}
.esk-footer__bottom p { margin: 0; }

@media (max-width: 991px) {
	.esk-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
	.esk-footer { padding-top: 52px; }
	.esk-footer__grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.esk-header *, .esk-tabs a, .esk-search input { transition: none !important; }
}

/* ---------- Dropdown menus (desktop) ----------------------------------- */

@media (min-width: 992px) {
	.esk-header .navigation .navbar-nav > li > ul {
		top: calc(100% - 6px);
		width: 250px;
		padding: 8px;
		border: 1px solid var(--esk-line);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 24px 48px -12px rgba(10, 29, 74, .28);
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
	}
	.esk-header .navigation .navbar-nav > li.dropdown:hover > ul,
	.esk-header .navigation .navbar-nav > li.dropdown:focus-within > ul {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .16s ease, transform .16s ease, visibility 0s;
	}
	/* theme leftovers: inner outline frame and orange hover bar */
	.esk-header .navigation .navbar-nav > li > ul::before { display: none; }
	.esk-header .navigation .navbar-nav > li > ul > li > a,
	.esk-header .navigation .navbar-nav > li > ul > li:hover > a {
		border-left: 0 !important;
		padding: 10px 12px !important;
	}

	.esk-header .navigation .navbar-nav > li > ul > li > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		border-radius: 8px;
		font-family: var(--esk-head);
		font-size: 14px;
		font-weight: 500;
		line-height: 1.35 !important;
		color: var(--esk-ink) !important;
		transition: background .12s ease, color .12s ease;
	}
	.esk-header .navigation .navbar-nav > li > ul > li > a:hover,
	.esk-header .navigation .navbar-nav > li > ul > li.current-menu-item > a {
		background: var(--esk-mist) !important;
		color: var(--esk-blue) !important;
	}

	/* Doctors: district grid */
	.esk-header .navigation .navbar-nav > li.esk-mega > ul {
		left: 50%;
		width: 470px;
		padding: 10px;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2px 6px;
		transform: translate(-50%, 8px);
	}
	.esk-header .navigation .navbar-nav > li.esk-mega:hover > ul,
	.esk-header .navigation .navbar-nav > li.esk-mega:focus-within > ul {
		transform: translate(-50%, 0);
	}
	.esk-header .navigation .navbar-nav > li.esk-mega > ul > li { width: auto; }
	.esk-header .navigation .navbar-nav > li.esk-mega > ul > li.esk-mega-all {
		grid-column: 1 / -1;
		margin-bottom: 6px;
		padding-bottom: 8px;
		border-bottom: 1px solid var(--esk-line);
	}
	.esk-header .navigation .navbar-nav > li.esk-mega > ul > li.esk-mega-all > a {
		background: var(--esk-blue) !important;
		color: #fff !important;
		font-weight: 600;
	}
	.esk-header .navigation .navbar-nav > li.esk-mega > ul > li.esk-mega-all > a:hover { background: var(--esk-blue-dark) !important; }
	.esk-header .navigation .navbar-nav > li.esk-mega > ul > li.esk-mega-all .esk-menu-count { background: rgba(255, 255, 255, .2); color: #fff; }

	.esk-menu-count {
		flex: 0 0 auto;
		min-width: 26px;
		padding: 2px 8px;
		border-radius: 20px;
		background: var(--esk-mist);
		font-size: 12px;
		font-weight: 600;
		line-height: 1.5;
		text-align: center;
		color: var(--esk-slate);
	}
	.esk-header .navigation .navbar-nav > li > ul > li > a:hover .esk-menu-count { background: #fff; color: var(--esk-blue); }
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
	.esk-header .navigation .navbar-nav > li > ul { transition: none; }
}
@media (min-width: 992px) {
	.esk-header .navigation .navbar-nav > li > ul > li > a { text-transform: none; }
}
@media (min-width: 992px) {
	/* the theme reserves room for a caret we don't show */
	.esk-header .navigation .navbar-nav > li.dropdown { padding-right: 0; }
}

/* ---------- Floating call button ---------------------------------------- */

.esk-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 56px;
	padding: 0 22px 0 18px;
	border-radius: 999px;
	background: var(--esk-orange);
	box-shadow: 0 12px 28px -8px rgba(248, 110, 3, .55), 0 4px 10px rgba(10, 29, 74, .15);
	font-family: var(--esk-head);
	font-size: 15px;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease;
}
.esk-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(248, 110, 3, .6), 0 4px 10px rgba(10, 29, 74, .15); }
.esk-fab:focus-visible { outline: 3px solid var(--esk-navy); outline-offset: 3px; }
.esk-fab .esk-i { width: 22px; height: 22px; stroke-width: 2; }

/* gentle ring behind the icon, once on load, to draw the eye */
.esk-fab::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(248, 110, 3, .45);
	animation: esk-fab-ring 1.8s ease-out 1.2s 2;
	pointer-events: none;
}
@keyframes esk-fab-ring { to { box-shadow: 0 0 0 16px rgba(248, 110, 3, 0); } }

/* keep the theme's back-to-top button clear of it */
.back-top.new_top .back-to-top { position: fixed; left: auto !important; right: 28px !important; bottom: 96px !important; margin: 0 !important; }

@media (max-width: 640px) {
	/* icon only on phones */
	.esk-fab { right: 16px; bottom: 16px; width: 56px; padding: 0; justify-content: center; }
	.esk-fab__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.back-top.new_top .back-to-top { right: 19px !important; bottom: 84px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.esk-fab::before { animation: none; }
	.esk-fab { transition: none; }
}

/* The theme's wrapper uses overflow:hidden, which disables position:sticky everywhere.
   overflow-x:clip still prevents sideways scrolling without creating a scroll container. */
main.boxed_wrapper { overflow: visible !important; overflow-x: clip !important; }
body { overflow-x: clip !important; overflow-y: visible !important; }

/* ---------- Preloader: logo on brand blue ------------------------------- */

.esk-preloader { background: var(--esk-blue); }
.esk-preloader .three { display: flex; flex-direction: column; align-items: center; text-align: center; }
.esk-preloader__logo {
	display: block;
	width: 240px;
	max-width: 70vw;
	height: auto;
	animation: esk-logo-in .6s ease-out both;
}
.esk-preloader #loader { line-height: 0; margin-top: 28px; }
.esk-preloader #loader span { width: 10px; height: 10px; margin: 0 5px; background-color: #fff; }
@keyframes esk-logo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.esk-preloader__logo { animation: none; }
}
