/* ---------------------------------------------------------------------------
 * Dr Yash Khatod — layout.css
 * Hand-written layout foundation. Replaces Bootstrap (grid, reboot, modal,
 * accordion, forms), Swiper, SlickNav, Magnific Popup and Animate.css with a
 * minimal equivalent that matches the markup the original theme CSS expects.
 * Loaded BEFORE theme.css so the theme's own rules win on every conflict.
 * ------------------------------------------------------------------------- */

/* --- Reboot ------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, svg, iframe { vertical-align: middle; border: 0; }
img { max-width: 100%; height: auto; }

a { color: inherit; }

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	margin: 0;
}

button { cursor: pointer; background: none; border: 0; }
textarea { resize: vertical; }

[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent-color, #00A8BC); outline-offset: 2px; }

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

.skip-link {
	position: absolute;
	top: -100px; left: 15px;
	z-index: 999;
	padding: 10px 18px;
	background: #08363B;
	color: #fff;
	border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

/* --- Grid --------------------------------------------------------------- */
.container,
.container-fluid {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
}

.row {
	display: flex;
	flex-wrap: wrap;
}

.row > * {
	flex-shrink: 0;
	width: 100%;
	max-width: 100%;
}

.col-1  { flex: 0 0 auto; width: 8.33333333%; }
.col-2  { flex: 0 0 auto; width: 16.66666667%; }
.col-3  { flex: 0 0 auto; width: 25%; }
.col-4  { flex: 0 0 auto; width: 33.33333333%; }
.col-5  { flex: 0 0 auto; width: 41.66666667%; }
.col-6  { flex: 0 0 auto; width: 50%; }
.col-7  { flex: 0 0 auto; width: 58.33333333%; }
.col-8  { flex: 0 0 auto; width: 66.66666667%; }
.col-9  { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
	.col-sm-4  { flex: 0 0 auto; width: 33.33333333%; }
	.col-sm-6  { flex: 0 0 auto; width: 50%; }
	.col-sm-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 768px) {
	.col-md-3  { flex: 0 0 auto; width: 25%; }
	.col-md-4  { flex: 0 0 auto; width: 33.33333333%; }
	.col-md-5  { flex: 0 0 auto; width: 41.66666667%; }
	.col-md-6  { flex: 0 0 auto; width: 50%; }
	.col-md-7  { flex: 0 0 auto; width: 58.33333333%; }
	.col-md-8  { flex: 0 0 auto; width: 66.66666667%; }
	.col-md-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
	.col-lg-3  { flex: 0 0 auto; width: 25%; }
	.col-lg-4  { flex: 0 0 auto; width: 33.33333333%; }
	.col-lg-5  { flex: 0 0 auto; width: 41.66666667%; }
	.col-lg-6  { flex: 0 0 auto; width: 50%; }
	.col-lg-7  { flex: 0 0 auto; width: 58.33333333%; }
	.col-lg-8  { flex: 0 0 auto; width: 66.66666667%; }
	.col-lg-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 1200px) {
	.col-xl-3  { flex: 0 0 auto; width: 25%; }
	.col-xl-4  { flex: 0 0 auto; width: 33.33333333%; }
	.col-xl-5  { flex: 0 0 auto; width: 41.66666667%; }
	.col-xl-6  { flex: 0 0 auto; width: 50%; }
	.col-xl-7  { flex: 0 0 auto; width: 58.33333333%; }
	.col-xl-8  { flex: 0 0 auto; width: 66.66666667%; }
	.col-xl-12 { flex: 0 0 auto; width: 100%; }
}

/* --- Utilities used by the markup --------------------------------------- */
.align-items-center   { align-items: center; }
.align-items-start    { align-items: flex-start; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.d-grid  { display: grid; }
.d-none  { display: none; }
.d-block { display: block; }
.mr-auto { margin-right: auto; }
.hidden  { display: none; }

.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.fs-5 { font-size: 1.25rem; }
.h3   { font-size: 1.75rem; }
.text-success { color: #1a8754; }
.text-danger  { color: #e65757; }

/* --- Navbar scaffolding ------------------------------------------------- */
.navbar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.navbar > .container { display: flex; flex-wrap: inherit; align-items: center; justify-content: space-between; }

.navbar-brand { display: inline-block; }

.navbar-nav { display: flex; flex-direction: row; margin: 0; padding: 0; list-style: none; }
.nav-link { display: block; }

/* The desktop menu is laid out from 992px up; below that the responsive
   menu takes over. Mirrors Bootstrap's .navbar-expand-lg behaviour. */
.navbar-expand-lg > .container > .navbar-collapse { display: none; }

@media (min-width: 992px) {
	.navbar-expand-lg > .container > .navbar-collapse {
		display: flex !important;
		flex-basis: auto;
		flex-grow: 1;
		align-items: center;
	}
}

/* --- Responsive menu (SlickNav-compatible markup, vanilla JS driven) ----- */
.navbar-toggle { margin-left: auto; }
.slicknav_btn { cursor: pointer; }
.slicknav_menu { display: none; z-index: 120; border-radius: 0 0 14px 14px; overflow: hidden; }
.slicknav_menu.is-open { display: block; }
.slicknav_nav li a { display: block; }

/* --- Bootstrap-equivalent collapse -------------------------------------- */
.accordion-collapse { overflow: hidden; }
.accordion-collapse:not(.show) { display: none; }

.accordion-button {
	display: flex;
	align-items: center;
	width: 100%;
	text-align: left;
}

/* --- Modal --------------------------------------------------------------- */
.modal {
	position: fixed;
	inset: 0;
	z-index: 1055;
	display: none;
	overflow-x: hidden;
	overflow-y: auto;
	outline: 0;
	background: rgba(8, 54, 59, .72);
}

.modal.is-open { display: block; }
body.modal-open { overflow: hidden; }

.modal-dialog {
	position: relative;
	width: auto;
	max-width: 500px;
	margin: 1.75rem auto;
	transform: translateY(-24px);
	opacity: 0;
	transition: transform .25s ease-out, opacity .25s ease-out;
}

.modal.is-open .modal-dialog { transform: none; opacity: 1; }

.modal-content {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--white-color, #fff);
	border-radius: 20px;
	padding: 24px;
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.modal-title { font-size: 22px; color: var(--primary-color, #08363B); }

.btn-close {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--secondary-color, #EDF9FC);
	color: var(--primary-color, #08363B);
	font-size: 0;
	position: relative;
	flex: 0 0 auto;
}

.btn-close::before,
.btn-close::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 14px; height: 2px;
	background: currentColor;
}
.btn-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.btn-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.modal-body .form-control { margin-bottom: 14px; }

.modal-body .submit {
	width: 100%;
	padding: 15px 20px;
	font-weight: 700;
	color: var(--white-color, #fff);
	background: var(--accent-color, #00A8BC);
	border-radius: 12px;
}

/* --- Forms --------------------------------------------------------------- */
.form-control {
	display: block;
	width: 100%;
	padding: 16px 20px;
	font-size: 16px;
	color: var(--primary-color, #08363B);
	background: var(--secondary-color, #EDF9FC);
	border: 1px solid transparent;
	border-radius: 12px;
	appearance: none;
}

.form-control:focus { outline: 0; border-color: var(--accent-color, #00A8BC); }
.form-control::placeholder { color: var(--text-color, #67787A); opacity: 1; }

.form-group { position: relative; }

.help-block.with-errors {
	color: var(--error-color, #e65757);
	font-size: 14px;
	margin-top: 6px;
	line-height: 1.4em;
}

.form-notice {
	padding: 14px 18px;
	border-radius: 12px;
	margin-bottom: 20px;
	line-height: 1.5em;
	font-size: 15px;
}
.form-notice.is-success { background: #e6f6ef; color: #14684279; color: #146842; }
.form-notice.is-error   { background: #fdeceb; color: #a3241d; }

.hp-field {
	position: absolute !important;
	left: -9999px;
	width: 1px; height: 1px;
	overflow: hidden;
}

/* --- Breadcrumb ---------------------------------------------------------- */
.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumb-item + .breadcrumb-item { padding-left: .5rem; }

.breadcrumb-item + .breadcrumb-item::before {
	float: left;
	padding-right: .5rem;
	content: "/";
}

/* --- Animations (Animate.css subset used by the markup) ------------------ */
.wow { visibility: hidden; }

@keyframes fadeInUp {
	from { opacity: 0; transform: translate3d(0, 40px, 0); }
	to   { opacity: 1; transform: none; }
}

.animated {
	visibility: visible;
	animation-duration: 1s;
	animation-fill-mode: both;
}

.animated.fadeInUp { animation-name: fadeInUp; }

@media (prefers-reduced-motion: reduce) {
	.wow, .animated { visibility: visible !important; animation: none !important; }
}

/* Heading reveal (replaces GSAP SplitText "text-anime-style-3") */
.text-anime-style-3 { perspective: 400px; }
.text-anime-style-3 .anime-word { display: inline-block; white-space: nowrap; }
.text-anime-style-3 .anime-char {
	display: inline-block;
	opacity: 0;
	transform: translateX(50px);
}
.text-anime-style-3.is-animated .anime-char {
	opacity: 1;
	transform: none;
	transition: opacity .8s cubic-bezier(.34, 1.56, .64, 1), transform .8s cubic-bezier(.34, 1.56, .64, 1);
	transition-delay: calc(var(--char-index) * 20ms);
}

@media (prefers-reduced-motion: reduce) {
	.text-anime-style-3 .anime-char { opacity: 1; transform: none; }
}

/* Image reveal (replaces GSAP ScrollTrigger ".reveal") */
.reveal { visibility: hidden; }
.reveal.is-revealed { visibility: visible; }
.reveal.is-revealed::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--primary-color, #08363B);
	transform-origin: right;
	animation: revealWipe 1s cubic-bezier(.77, 0, .175, 1) forwards;
	z-index: 2;
}

@keyframes revealWipe {
	from { transform: scaleX(1); }
	to   { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
	.reveal { visibility: visible; }
	.reveal.is-revealed::after { animation: none; display: none; }
}

/* --- Slider (replaces Swiper) ------------------------------------------- */
.swiper { position: relative; overflow: hidden; width: 100%; }

.swiper-wrapper {
	display: flex;
	transition: transform .8s cubic-bezier(.4, 0, .2, 1);
	will-change: transform;
}

.swiper-slide { flex: 0 0 auto; height: auto; }

.swiper-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 30px;
}

.swiper-pagination button {
	width: 10px;
	height: 10px;
	padding: 0;
	border-radius: 50%;
	background: var(--divider-color, #08363B1A);
	transition: all .3s ease-in-out;
}

.swiper-pagination button.is-active {
	width: 28px;
	border-radius: 6px;
	background: var(--accent-color, #00A8BC);
}

/* --- Lightbox (replaces Magnific Popup) --------------------------------- */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	background: rgba(8, 54, 59, .92);
}

.lightbox.is-open { display: flex; }

.lightbox__stage {
	position: relative;
	width: 100%;
	max-width: 1100px;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox__stage img {
	max-width: 100%;
	max-height: 82vh;
	width: auto;
	border-radius: 12px;
	display: block;
}

.lightbox__stage iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 82vh;
	border-radius: 12px;
	background: #000;
}

.lightbox__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .3s ease-in-out;
}

.lightbox__btn:hover { background: var(--accent-color, #00A8BC); }
.lightbox__btn--prev { left: -10px; }
.lightbox__btn--next { right: -10px; }

.lightbox__close {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 22px;
	line-height: 1;
}

.lightbox__close:hover { background: var(--accent-color, #00A8BC); }

@media (max-width: 767px) {
	.lightbox__btn--prev { left: 0; }
	.lightbox__btn--next { right: 0; }
}

/* --- Credential badge (replaces circle-white.png / circle.png) ----------- */
.years-experience-circle figure,
.expertise-experience-circle figure { line-height: 0; }

.credential-badge {
	width: 180px;
	height: 180px;
	max-width: 100%;
	display: block;
	border-radius: 50%;
}

.expertise-experience-circle .credential-badge { width: 130px; height: 130px; }
.lets-talk-title .credential-badge { width: 130px; height: 130px; }

@media (max-width: 991px) {
	.credential-badge { width: 130px; height: 130px; }
}

@media (max-width: 767px) {
	.credential-badge { width: 100px; height: 100px; }
	.expertise-experience-circle .credential-badge { width: 100px; height: 100px; }
}

/* --- Circle progress (replaces jquery circle-progress) ------------------- */
.circle { position: relative; }
.circle canvas { display: block; }

/* --- Location-pending panel (Malviya Nagar address not yet confirmed) ---- */
.location-pending {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	min-height: 240px;
	padding: 32px;
	text-align: center;
	background: var(--secondary-color, #EDF9FC);
	border: 1px dashed rgba(8, 54, 59, .25);
	border-radius: 20px;
}

.location-pending i { font-size: 26px; color: var(--accent-color, #00A8BC); }
.location-pending h3 { font-size: 20px; }
.location-pending p { margin: 0; line-height: 1.6em; }

.dark-section .location-pending {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .18);
}
.dark-section .location-pending h3 { color: var(--white-color, #fff); }

/* --- Editor content (blog posts written in the block editor) ------------- */
.post-entry > *:last-child { margin-bottom: 0; }
.post-entry img { border-radius: 20px; }
.post-entry a { color: var(--accent-color, #00A8BC); text-decoration: underline; }

/* --- Pagination ---------------------------------------------------------- */
.pagination-wrap {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
	flex-wrap: wrap;
}

.pagination-wrap .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	border-radius: 12px;
	font-weight: 700;
	color: var(--primary-color, #08363B);
	background: var(--secondary-color, #EDF9FC);
	transition: all .3s ease-in-out;
}

.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
	color: var(--white-color, #fff);
	background: var(--accent-color, #00A8BC);
}

/* --- Quick contact floating buttons ------------------------------------- */
#quickcontact {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 90;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

#quickcontact a { display: block; line-height: 0; }
#quickcontact img { width: 58px; height: 58px; }

@media (max-width: 767px) {
	#quickcontact img { width: 50px; height: 50px; }
}

/* --- Solid header (pages with no dark hero behind the overlay header) ---- */
.has-solid-header .main-header .header-sticky {
	background: var(--primary-color, #08363B);
	border-radius: 0 0 20px 20px;
}

/* --- Thanks page --------------------------------------------------------- */
#thanks { padding: 160px 0 100px; }
#thanks .thanks-video img { max-width: 760px; width: 100%; }

/* ---------------------------------------------------------------------------
   Clinical note callout (block pattern: iddoc/clinical-note)
   .post-entry blockquote is styled by theme.css for blog posts; treatments have
   no blockquote rule, so this gives the callout the same intent in both places
   without overriding the blog treatment.
   --------------------------------------------------------------------------- */
.service-entry .iddoc-clinical-note {
	margin: 30px 0;
	padding: 24px 28px;
	border-left: 4px solid var(--accent-color);
	background: var(--secondary-color, #f6f6f6);
	border-radius: 8px;
}

.service-entry .iddoc-clinical-note p:last-child {
	margin-bottom: 0;
}
