/* =====================================================================
   theme.css — Minerva Hospital professional design layer (global)
   Loaded AFTER main.css so it reskins the Medilab template cohesively.
   ===================================================================== */

:root {
	/* Typography */
	--default-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--heading-font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
	--nav-font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

	/* Reskin the template palette */
	--accent-color: #0B74C4;
	--heading-color: #0F2233;
	--default-color: #46586A;
	--contrast-color: #ffffff;
	--surface-color: #ffffff;
	--background-color: #ffffff;
	--nav-color: #22323F;
	--nav-hover-color: #0B74C4;
	--nav-dropdown-color: #46586A;
	--nav-dropdown-hover-color: #0B74C4;

	/* Custom design tokens */
	--brand: #0B74C4;
	--brand-600: #0961A6;
	--brand-700: #0B4E86;
	--brand-050: #EAF4FB;
	--brand-100: #D6E9F7;
	--teal: #12A98E;
	--ink: #0F2233;
	--body: #46586A;
	--muted: #7A8A98;
	--line: #E6ECF1;
	--bg-soft: #F5F9FC;

	--sh-1: 0 1px 2px rgba(16, 40, 64, .06);
	--sh-2: 0 8px 24px rgba(16, 40, 64, .08);
	--sh-3: 0 18px 44px rgba(16, 40, 64, .12);

	--rad-sm: 10px;
	--rad: 16px;
	--rad-lg: 24px;
	--pill: 999px;

	--container: 1200px;
}

body {
	font-family: var(--default-font);
	color: var(--body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.navmenu {
	font-family: var(--heading-font);
	color: var(--ink);
}

/* ============ SECTION RHYTHM ============ */
.section,
section.section {
	padding: 60px 0;
}

@media (max-width: 991px) {
	.section, section.section { padding: 44px 0; }
}

/* ============ SECTION TITLE ============ */
.section-title {
	padding-bottom: 30px;
}

.section-title h2 {
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--ink);
	padding-bottom: 18px;
	margin-bottom: 14px;
}

.section-title h2:after {
	width: 64px;
	height: 4px;
	border-radius: var(--pill);
	background: linear-gradient(90deg, var(--brand), var(--teal));
}

.section-title p {
	max-width: 640px;
	margin: 0 auto;
	color: var(--muted);
	font-size: 16.5px;
	line-height: 1.75;
}

/* ============ BUTTONS ============ */
.btn-get-started,
.cta-btn,
.service-btn,
.read-more-btn,
.btn.view-btn,
.btn.checkout-btn {
	font-family: var(--heading-font);
	font-weight: 600;
	letter-spacing: .01em;
}

/* Primary pill button */
.hero .btn-get-started,
.cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 30px;
	border-radius: var(--pill);
	background: var(--brand);
	color: #fff;
	border: 0;
	box-shadow: 0 10px 24px rgba(11, 116, 196, .28);
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.hero .btn-get-started:hover,
.cta-btn:hover {
	background: var(--brand-600);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(11, 116, 196, .34);
}

/* Secondary "Read/View More" text-forward button */
.service-btn,
.read-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: var(--pill);
	background: var(--brand-050);
	color: var(--brand-700) !important;
	border: 1px solid var(--brand-100);
	text-decoration: none;
	transition: all .25s ease;
}

.service-btn:hover,
.read-more-btn:hover {
	background: var(--brand);
	color: #fff !important;
	border-color: var(--brand);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(11, 116, 196, .25);
}

.service-btn i { transition: transform .25s ease; }
.service-btn:hover i { transform: translateX(3px); }

/* ============ HEADER / TOPBAR ============ */
.header {
	box-shadow: 0 2px 20px rgba(16, 40, 64, .06);
	border-bottom: 1px solid var(--line);
}

.header .topbar {
	background: linear-gradient(90deg, var(--brand-700), var(--brand));
	height: auto;
	min-height: 42px;
	font-size: 13.5px;
	letter-spacing: .01em;
}

.header .topbar a,
.header .topbar span,
.header .topbar i { color: #fff; }

.header .topbar .open-cart-btn i {
	font-size: 16px;
	opacity: .95;
	transition: opacity .2s ease;
}
.header .topbar .open-cart-btn:hover i { opacity: 1; }

.header .branding { min-height: 74px; }

.header .logo img { max-height: 60px; }

#SName {
	font-family: var(--heading-font);
	font-weight: 800;
	font-size: 22px;
	color: var(--ink) !important;
	letter-spacing: -.01em;
	margin: 0 0 0 6px;
}

/* Nav links: refined, animated underline */
@media (min-width: 1200px) {
	.navmenu a,
	.navmenu a:focus {
		font-size: 13.5px;
		font-weight: 600;
		letter-spacing: .02em;
		color: var(--nav-color);
		padding: 16px 14px;
		position: relative;
	}

	.navmenu > ul > li > a::after {
		content: "";
		position: absolute;
		left: 14px;
		right: 14px;
		bottom: 8px;
		height: 2px;
		border-radius: 2px;
		background: linear-gradient(90deg, var(--brand), var(--teal));
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .25s ease;
	}

	.navmenu > ul > li:hover > a::after,
	.navmenu > ul > li > a.active::after { transform: scaleX(1); }

	.navmenu li:hover > a,
	.navmenu .active { color: var(--brand); }

	.navmenu .dropdown ul {
		border-radius: 14px;
		border: 1px solid var(--line);
		box-shadow: var(--sh-3);
		padding: 8px;
	}

	.navmenu .dropdown ul a {
		border-radius: 8px;
		padding: 10px 14px;
		font-weight: 500;
	}

	.navmenu .dropdown ul a:hover,
	.navmenu .dropdown ul li:hover > a {
		background: var(--brand-050);
		color: var(--brand-700);
	}
}

/* Header CTA button — "Make an Appointment" */
.header .cta-btn,
.header .cta-btn:focus {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 16px;
	background: linear-gradient(135deg, var(--brand), var(--brand-600));
	color: #fff;
	border-radius: var(--pill);
	padding: 11px 24px;
	font-family: var(--heading-font);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .01em;
	white-space: nowrap;
	box-shadow: 0 10px 22px rgba(11, 116, 196, .32);
	transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.header .cta-btn i { font-size: 14px; }

.header .cta-btn:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(11, 116, 196, .45);
	filter: brightness(1.06);
}

/* ============ PREMIUM FOOTER (deep navy) ============ */
.footer,
.footer.light-background {
	background: #0C1E2E;
	color: #AEBECC;
	padding-top: 72px;
}

.footer .footer-top { padding-bottom: 40px; }

.footer h4,
.footer .footer-links h4,
.footer .footer-links h4.text-black {
	color: #fff !important;
	font-weight: 700;
	font-size: 17px;
	margin-bottom: 18px;
	position: relative;
	padding-bottom: 12px;
}

.footer .footer-links h4::after,
.footer .footer-links h4.text-black::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 3px;
	border-radius: var(--pill);
	background: linear-gradient(90deg, var(--brand), var(--teal));
}

.footer .sitename { color: #fff; font-weight: 700; }
.footer .footer-contact p,
.footer .footer-contact span,
.footer #address { color: #AEBECC; }
.footer .footer-contact strong { color: #fff; }

.footer .footer-links ul { list-style: none; padding: 0; margin: 0; }

.footer .footer-links ul li { padding: 7px 0; }

.footer .footer-links ul a {
	color: #AEBECC;
	text-decoration: none;
	transition: color .2s ease, padding-left .2s ease;
	display: inline-block;
}

.footer .footer-links ul a:hover {
	color: #fff;
	padding-left: 6px;
}

.footer .social-links { gap: 10px; }

.footer .social-links a {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	transition: all .25s ease;
}

.footer .social-links a:hover {
	background: var(--brand);
	transform: translateY(-3px);
}

.footer #MapAddress {
	border-radius: 12px;
	filter: grayscale(.2);
}

.footer .copyright {
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding-top: 22px;
	margin-top: 8px;
	color: #8497A6;
	font-size: 14px;
}

.footer .copyright .sitename { color: #fff; }

/* Scroll-to-top + call button polish */
#scroll-top {
	background: var(--brand);
	border-radius: 12px;
	box-shadow: var(--sh-2);
}
#scroll-top:hover { background: var(--brand-600); }

/* =====================================================================
   Image save deterrents — block drag, selection and iOS long-press menu.
   (Right-click on images is blocked via JS in the layout.)
   Note: cannot stop screenshots / DevTools / direct URL — deterrent only.
   ===================================================================== */
img {
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	user-drag: none;
	-webkit-touch-callout: none;
	user-select: none;
	-webkit-user-select: none;
}

/* =====================================================================
   Mobile safety — prevent horizontal scroll and overflowing media
   ===================================================================== */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe { max-width: 100%; }

@media (max-width: 575px) {
	/* Comfortable side padding + type on small phones */
	.container { padding-left: 16px; padding-right: 16px; }
	.section-title h2 { font-size: 26px; }
	.hero-slide h1 { font-size: 32px; }
	.stats-content h2 { font-size: 36px; }
}
