﻿/* ==================================================
   Modern Header — shared across all pages
   Overrides legacy .cd-main-header / .cd-logo rules in layout.css
================================================== */

.header-top {
	position: relative;
	z-index: 9999;
}

.cd-main-header.modern-header {
	height: auto !important;
	min-height: 75px;
	background: rgba(255, 255, 255, 0.98) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
	padding: 0 !important;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	z-index: 9999 !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	transition: background 0.3s ease, box-shadow 0.3s ease;
	-webkit-transform: none !important;
	-moz-transform: none !important;
	-ms-transform: none !important;
	-o-transform: none !important;
	transform: none !important;
	will-change: auto;
}

.modern-header .header-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 75px;
	box-sizing: border-box;
}

.modern-header .cd-logo {
	display: flex !important;
	align-items: center;
	position: static !important;
	top: auto !important;
	left: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	flex-shrink: 0;
}

.modern-header .cd-logo img {
	display: block;
	height: 50px !important;
	width: auto !important;
	max-width: 180px;
	transition: transform 0.3s ease;
}

.modern-header .cd-logo:hover img {
	transform: scale(1.05);
}

.modern-header .main-navigation {
	display: flex;
	align-items: center;
	flex: 1;
	justify-content: center;
}

.modern-header .nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 10px;
}

.modern-header .nav-item {
	margin: 0;
	float: none;
}

.modern-header .nav-link {
	display: block;
	padding: 10px 24px;
	color: #0f172a;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.3s ease;
	position: relative;
	line-height: 1.4;
}

.modern-header .nav-link:hover,
.modern-header .nav-link.active {
	color: #0ea5e9;
	background: rgba(14, 165, 233, 0.08);
}

.modern-header .nav-link:hover {
	transform: translateY(-1px);
}

.modern-header .nav-link:after {
	content: '';
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%) scaleX(0);
	width: 30px;
	height: 2px;
	background: #0ea5e9;
	border-radius: 2px;
	transition: transform 0.3s ease;
}

.modern-header .nav-link:hover:after,
.modern-header .nav-link.active:after {
	transform: translateX(-50%) scaleX(1);
}

.modern-header .header-actions {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-shrink: 0;
}

.modern-header .emergency-call-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
	color: #fff !important;
	padding: 10px 20px;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 600;
	box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
	transition: all 0.3s ease;
	animation: modern-header-pulse 2s ease-in-out infinite;
	white-space: nowrap;
}

.modern-header .emergency-call-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
	color: #fff !important;
}

.modern-header .icon-phone {
	font-size: 16px;
	font-family: 'FontAwesome';
	font-style: normal;
	line-height: 1;
}

.modern-header .call-text {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.modern-header .call-number {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

@keyframes modern-header-pulse {
	0%, 100% { box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3); }
	50% { box-shadow: 0 4px 25px rgba(220, 38, 38, 0.5); }
}

.modern-header .mobile-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 30px;
	height: 25px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 10;
}

.modern-header .mobile-menu-toggle span {
	display: block;
	width: 30px;
	height: 3px;
	background: #0f172a;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.modern-header .mobile-menu-toggle:hover span {
	background: #0ea5e9;
}

.mobile-nav {
	position: fixed;
	top: 0;
	right: -100%;
	width: 300px;
	max-width: 85vw;
	height: 100vh;
	background: #ffffff;
	box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
	z-index: 10000;
	transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-y: auto;
}

.mobile-nav.active { right: 0; }

.mobile-nav-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid #e2e8f0;
}

.mobile-logo { height: 40px; width: auto; }

.mobile-nav-close {
	background: transparent;
	border: none;
	font-size: 36px;
	color: #000000;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-nav-menu {
	list-style: none;
	padding: 20px 0;
	margin: 0;
}

.mobile-nav-menu li { margin: 0; float: none; }

.mobile-nav-menu a {
	display: block;
	padding: 15px 25px;
	color: #0f172a;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: all 0.3s ease;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
	background: rgba(14, 165, 233, 0.08);
	border-left-color: #0ea5e9;
	color: #0ea5e9;
}

.mobile-nav-footer {
	padding: 20px;
	border-top: 1px solid #e2e8f0;
}

.mobile-emergency-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
	color: #fff !important;
	padding: 15px 20px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.mobile-nav-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
	opacity: 1;
	visibility: visible;
}

html.dark-theme .cd-main-header.modern-header {
	background: rgba(15, 23, 42, 0.98) !important;
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .modern-header .nav-link { color: #f1f5f9; }

html.dark-theme .modern-header .nav-link:hover,
html.dark-theme .modern-header .nav-link.active {
	color: #38bdf8;
	background: rgba(56, 189, 248, 0.12);
}

html.dark-theme .modern-header .mobile-menu-toggle span { background: #f1f5f9; }
html.dark-theme .mobile-nav { background: #0f172a; }
html.dark-theme .mobile-nav-header,
html.dark-theme .mobile-nav-footer { border-color: rgba(255, 255, 255, 0.08); }
html.dark-theme .mobile-nav-close { color: #f1f5f9; }
html.dark-theme .mobile-nav-menu a { color: #f1f5f9; }
html.dark-theme .mobile-nav-menu a:hover,
html.dark-theme .mobile-nav-menu a.active {
	background: rgba(56, 189, 248, 0.12);
	border-left-color: #38bdf8;
	color: #38bdf8;
}

.section-page-top-title { position: relative; overflow: hidden; }

.parallax-contact {
	background-color: #0c4a6e;
	background-image: linear-gradient(135deg, rgba(14, 165, 233, 0.85), rgba(15, 23, 42, 0.9)), url('../images/parallax/contact.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}

#ajax-form input,
#ajax-form textarea { box-sizing: border-box; color: #101010; }

#ajax-form input::placeholder,
#ajax-form textarea::placeholder { color: #64748b; opacity: 1; }

html.dark-theme #ajax-form,
html.dark-theme #ajax-form input,
html.dark-theme #ajax-form textarea,
html.dark-theme #ajax-form label,
html.dark-theme .error { color: #e2e8f0; }

html.dark-theme #ajax-form input,
html.dark-theme #ajax-form textarea {
	border-bottom-color: #64748b;
	color: #f1f5f9;
}

html.dark-theme #button-con button {
	border-color: #94a3b8;
	color: #f1f5f9;
}

html.dark-theme .button-map {
	background: #1e293b;
	color: #f1f5f9;
}

.cd-main-content { margin-top: 75px; }

body,
body *:not([class*="icon"]):not([class*="revicon"]):not(.scroll-to-top) {
	font-family: 'Montserrat', sans-serif;
}

.tp-banner .border-text {
	display: inline-block;
	padding: 12px 22px;
	border: 3px solid #006b8f;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.94);
	color: #111827;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.3);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.modern-header .theme-toggle-header-btn {
	display: inline-flex;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(14, 165, 233, 0.2);
	border-radius: 50%;
	background: #f0f9ff;
	color: #0369a1;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
	transform: none;
	transition: background-color 0.2s ease, border-color 0.2s ease,
		color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.modern-header .theme-toggle-header-btn:hover {
	background: #0284c7;
	border-color: #0284c7;
	color: #ffffff;
	box-shadow: 0 5px 14px rgba(2, 132, 199, 0.28);
	transform: translateY(-1px);
}

.modern-header .theme-toggle-header-btn:focus-visible {
	outline: 3px solid rgba(14, 165, 233, 0.4);
	outline-offset: 3px;
}

.modern-header .theme-toggle-header-btn svg {
	display: block;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	stroke: currentColor;
	transform: none;
	transition: transform 0.25s ease;
}

.modern-header .theme-toggle-header-btn:hover svg {
	transform: rotate(-12deg);
}

html.dark-theme .modern-header .theme-toggle-header-btn {
	background: #172554;
	border-color: rgba(125, 211, 252, 0.28);
	color: #bae6fd;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}

html.dark-theme .modern-header .theme-toggle-header-btn:hover {
	background: #075985;
	border-color: #38bdf8;
	color: #ffffff;
	box-shadow: 0 5px 14px rgba(14, 165, 233, 0.24);
}

html.dark-theme .modern-header .theme-toggle-header-btn .icon-sun {
	transform: none;
}

html.dark-theme .modern-header .theme-toggle-header-btn:hover .icon-sun {
	transform: rotate(12deg);
}

.patient-info-card,
.patient-faq {
	height: 100%;
	box-sizing: border-box;
	padding: 22px;
	border: 1px solid #dbeafe;
	border-radius: 10px;
	background: #f8fafc;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.patient-info-card h4,
.patient-info-card h5,
.patient-faq h4 {
	margin: 0 0 12px;
	color: #0f172a;
	text-align: left;
}

.patient-info-card p,
.patient-faq p {
	margin: 0 0 12px;
	color: #1e293b;
	line-height: 1.7;
}

.patient-info-card ul {
	margin: 0 0 12px 20px;
	list-style: disc outside;
}

.patient-info-card li {
	margin: 0 0 6px;
	color: #1e293b;
}

.patient-info-card a,
.patient-faq a {
	color: #0369a1;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.patient-info-card a:hover,
.patient-faq a:hover {
	color: #0c4a6e;
}

.patient-contact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin: 0 0 24px;
}

.patient-faq details {
	padding: 16px 0;
	border-top: 1px solid #cbd5e1;
}

.patient-faq summary {
	color: #0f172a;
	font-weight: 700;
	cursor: pointer;
	line-height: 1.5;
}

.patient-faq details p {
	margin: 10px 0 0;
}

html.dark-theme .patient-info-card,
html.dark-theme .patient-faq {
	background: #111c2e;
	border-color: #334155;
}

html.dark-theme .patient-info-card h4,
html.dark-theme .patient-info-card h5,
html.dark-theme .patient-faq h4,
html.dark-theme .patient-faq summary {
	color: #f1f5f9;
}

html.dark-theme .patient-info-card p,
html.dark-theme .patient-faq p,
html.dark-theme .patient-info-card li {
	color: #cbd5e1;
}

html.dark-theme .patient-faq details {
	border-color: #334155;
}

html.dark-theme .patient-info-card a,
html.dark-theme .patient-faq a {
	color: #7dd3fc;
}

@media (max-width: 1024px) {
	.modern-header .call-text,
	.modern-header .call-number { display: none; }

	.modern-header .emergency-call-btn {
		padding: 12px;
		border-radius: 50%;
		width: 45px;
		height: 45px;
		justify-content: center;
	}
}

@media (max-width: 768px) {
	.cd-main-header.modern-header { min-height: 65px; }
	.modern-header .header-container { padding: 0 12px; height: 65px; }
	.modern-header .cd-logo img { height: 38px !important; max-width: 105px; }
	.modern-header .main-navigation { display: none; }
	.modern-header .mobile-menu-toggle { display: flex; }
	.modern-header .header-actions { gap: 8px; }
	.modern-header .call-number { display: inline; font-size: 12px; letter-spacing: 0; }
	.modern-header .emergency-call-btn {
		width: auto;
		height: 40px;
		padding: 8px 10px;
		border-radius: 20px;
		gap: 6px;
	}

	@media (max-width: 767px) {
		.patient-contact-grid {
			grid-template-columns: 1fr;
			gap: 14px;
		}

		.patient-info-card,
		.patient-faq {
			padding: 18px;
		}
	}
	.modern-header .theme-toggle-header-btn {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
	}
	.modern-header .theme-toggle-header-btn svg {
		flex-basis: 18px;
		width: 18px;
		height: 18px;
	}
	.cd-main-content { margin-top: 65px; }
}
