/* Modern Dental Clinic Website Styles */

/* CSS Variables – theme colors (Bootstrap 5 compatible) */
:root {
	--primary-color: #2563eb;
	--primary-light: #3b82f6;
	--primary-dark: #1d4ed8;
	--bs-primary: #2563eb;
	--bs-primary-rgb: 37, 99, 235;
	--secondary-color: #64748b;
	--success-color: #10b981;
	--danger-color: #ef4444;
	--warning-color: #f59e0b;
	--info-color: #06b6d4;
	--light-color: #f8fafc;
	--dark-color: #1e293b;
	--gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
	--gradient-hero: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	--border-radius: 0.5rem;
	--border-radius-lg: 1rem;
	--border-radius-xl: 1.5rem;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Popup styles removed */

/* Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-family);
	line-height: 1.6;
	color: var(--dark-color);
	background-color: #ffffff;
	overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 600;
	line-height: 1.2;
	color: var(--dark-color);
}

.display-4 {
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1.1;
}

.display-5 {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.lead {
	font-size: 1.25rem;
	font-weight: 400;
	color: var(--secondary-color);
}

/* Navigation */
.navbar {
	transition: var(--transition);
	backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.95) !important;
	padding: 1rem 0;
}

.navbar-brand {
	font-weight: 700;
	transition: var(--transition);
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.navbar-brand .brand-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background: var(--gradient-primary);
	border-radius: 50%;
	color: white;
	font-size: 1.5rem;
}

@media (max-width: 600px) {
	.navbar-brand .brand-icon {
		display: none;
	}
}

.navbar-nav {
	align-items: center;
	gap: 0.5rem;
}

.navbar-nav .nav-link {
	font-weight: 500;
	color: var(--dark-color) !important;
	transition: var(--transition);
	position: relative;
	padding: 0.75rem 1rem !important;
	border-radius: var(--border-radius);
}

.navbar-nav .nav-link:hover {
	color: var(--primary-color) !important;
	background: rgba(37, 99, 235, 0.1);
}

.navbar-nav .nav-link.active {
	color: var(--primary-color) !important;
	background: rgba(37, 99, 235, 0.1);
}

.navbar-nav .nav-link:not(.dropdown-toggle)::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0.25rem;
	left: 50%;
	background: var(--primary-color);
	transition: var(--transition);
	transform: translateX(-50%);
	border-radius: 1px;
}

.navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
.navbar-nav .nav-link.active:not(.dropdown-toggle)::after {
	width: 60%;
}

/* Service page banner – compact; do not use full hero height */
.hero-section.service-banner {
	min-height: auto;
	padding: 5.5rem 0 2.5rem !important;
	display: block;
	align-items: unset;
	border-radius: 0;
}

/* Main content below fixed navbar – use on inner pages so title is not hidden */
main.main-below-nav {
	padding-top: 5.5rem !important;
}

/* Extra space above page title (e.g. Dental Care Blog, Contact Us) */
.page-header {
	padding-top: 2rem;
}

/* Hero Section */
.hero-section {
	background: var(--gradient-hero);
	min-height: 100vh;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	padding-top: 5.5rem !important;
	/* clear fixed navbar - overrides .py-5 */
}

.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('../images/slider1.jpg') center/cover;
	opacity: 0.1;
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
}

.hero-card {
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: var(--transition);
}

.hero-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-xl);
}

/* Buttons */
.btn {
	border-radius: var(--border-radius);
	font-weight: 600;
	transition: var(--transition);
	border: none;
	position: relative;
	overflow: hidden;
}

.btn-primary {
	background: var(--gradient-primary);
	border: none;
}

.btn-primary:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn-outline-light:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn-lg {
	padding: 1rem 2rem;
	font-size: 1.1rem;
	border-radius: var(--border-radius-lg);
}

/* Cards */
.service-card,
.doctor-card,
.service-item,
.contact-card,
.blog-card {
	transition: var(--transition);
	border: 1px solid rgba(0, 0, 0, 0.05);
	position: relative;
	overflow: hidden;
}

.about-doctor-card:hover {
	box-shadow: var(--shadow-lg);
}

.service-card:hover,
.doctor-card:hover,
.service-item:hover,
.contact-card:hover,
.blog-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-xl);
	border-color: var(--primary-color);
}

.service-card::before,
.service-item::before,
.contact-card::before,
.blog-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
	transition: var(--transition);
}

.service-card:hover::before,
.service-item:hover::before,
.contact-card:hover::before,
.blog-card:hover::before {
	left: 100%;
}

/* Blog Card Styles */
.blog-card {
	display: flex;
	flex-direction: column;
}

.blog-image {
	transition: var(--transition);
}

.blog-card:hover .blog-image img {
	transform: scale(1.05);
}

.blog-content h5 a:hover {
	color: var(--primary-color) !important;
}

.service-icon,
.service-icon-large,
.contact-icon {
	transition: var(--transition);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.service-card:hover .service-icon,
.service-item:hover .service-icon-large,
.contact-card:hover .contact-icon {
	background: var(--primary-color) !important;
	color: white !important;
	transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon i,
.service-item:hover .service-icon-large i,
.contact-card:hover i {
	color: white !important;
}

/* Enhanced Icon Styles */
.service-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(37, 99, 235, 0.1);
	color: var(--primary-color);
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.service-icon i {
	color: inherit;
}

.service-icon-large {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: rgba(37, 99, 235, 0.1);
	color: var(--primary-color);
	font-size: 2rem;
	margin-bottom: 1.5rem;
}

.service-icon-large i {
	color: inherit;
}

.contact-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(37, 99, 235, 0.1);
	color: var(--primary-color);
	font-size: 1.5rem;
}

.contact-icon i {
	color: inherit;
}

/* Icon Alignment Improvements */
.service-card .card-body,
.service-item .card-body,
.contact-card .card-body {
	text-align: center;
	padding: 2rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.service-card .card-title,
.service-item .card-title,
.contact-card .card-title {
	margin-bottom: 1rem;
	text-align: center;
}

.service-card .card-text,
.service-item .card-text,
.contact-card .card-text {
	text-align: center;
	margin-bottom: 1rem;
}

.service-card ul,
.service-item ul {
	text-align: left;
	width: 100%;
}

.service-card ul li,
.service-item ul li {
	display: flex;
	align-items: center;
	margin-bottom: 0.5rem;
}

.service-card ul li i,
.service-item ul li i {
	margin-right: 0.5rem;
	width: 16px;
	text-align: center;
}

/* Appointment Section */
.appointment-features .feature-item {
	transition: var(--transition);
}

.appointment-features .feature-item:hover {
	transform: translateX(10px);
}

.feature-icon {
	transition: var(--transition);
}

.appointment-features .feature-item:hover .feature-icon {
	background: rgba(255, 255, 255, 0.3) !important;
	transform: scale(1.1);
}

/* Form Styles */
.form-card {
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: var(--transition);
}

.form-card:hover {
	box-shadow: var(--shadow-xl);
}

.form-control {
	border: 2px solid #e2e8f0;
	border-radius: var(--border-radius);
	transition: var(--transition);
	padding: 0.75rem 1rem;
	font-size: 1rem;
}

.form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
	outline: none;
}

.form-control-lg {
	padding: 1rem 1.25rem;
	font-size: 1.1rem;
	border-radius: var(--border-radius-lg);
}

.form-label {
	color: var(--dark-color);
	margin-bottom: 0.5rem;
	font-weight: 600;
}

/* Footer */
footer {
	background: var(--dark-color) !important;
	padding-bottom: 2rem !important;
}

footer .row.g-4 {
	gap: 0 1rem;
}

footer .footer-brand.mb-4,
footer .footer-links h6,
footer .footer-contact h6,
footer .footer-hours h6 {
	margin-bottom: 0.75rem !important;
}

footer .contact-item.mb-3 {
	margin-bottom: 0.75rem !important;
}

footer hr.my-4 {
	margin-top: 1.5rem !important;
	margin-bottom: 1.5rem !important;
}

.social-link {
	transition: var(--transition);
}

.social-link:hover {
	background: var(--primary-color) !important;
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

/* Map Section */
.map-section {
	height: 400px;
	overflow: hidden;
}

.map-section iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.animate-fade-in {
	animation: fadeInUp 0.8s ease-out;
}

.animate-slide-left {
	animation: slideInLeft 0.8s ease-out;
}

.animate-slide-right {
	animation: slideInRight 0.8s ease-out;
}

/* Loading States */
.btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.fa-spinner {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

/* Utility Classes */
.bg-primary {
	background: var(--gradient-primary) !important;
}

.text-primary {
	color: var(--primary-color) !important;
}

.border-primary {
	border-color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.display-4 {
		font-size: 3rem;
	}

	.display-5 {
		font-size: 2.25rem;
	}
}

@media (max-width: 992px) {
	.display-4 {
		font-size: 2.5rem;
	}

	.display-5 {
		font-size: 2rem;
	}

	.hero-section {
		min-height: 80vh;
		text-align: center;
	}

	.hero-section.service-banner {
		min-height: auto;
		padding: 5.5rem 0 2.5rem !important;
	}

	.hero-buttons {
		justify-content: center;
	}

	/* Footer mobile adjustments */
	.footer-contact,
	.footer-hours {
		margin-bottom: 1rem;
	}
}

@media (max-width: 768px) {
	.display-4 {
		font-size: 2.25rem;
	}

	.display-5 {
		font-size: 1.875rem;
	}

	.lead {
		font-size: 1.125rem;
	}

	.btn-lg {
		padding: 0.875rem 1.5rem;
		font-size: 1rem;
	}

	.form-control-lg {
		padding: 0.875rem 1rem;
		font-size: 1rem;
	}

	.hero-buttons .btn {
		display: block;
		width: 100%;
		margin-bottom: 1rem;
	}

	.hero-buttons .btn:last-child {
		margin-bottom: 0;
	}

	/* Service cards mobile spacing */
	.service-card,
	.service-item,
	.contact-card {
		margin-bottom: 1.5rem;
	}

	/* Footer mobile layout – left-aligned on phone */
	footer .row.g-4>[class^="col-"] {
		text-align: left;
		margin-bottom: 1rem;
	}

	footer .footer-brand .d-flex {
		justify-content: flex-start;
	}

	footer .footer-links ul {
		text-align: left;
		padding-left: 0;
	}

	.footer-contact,
	.footer-hours {
		margin-bottom: 1rem;
		text-align: left;
		align-items: flex-start !important;
	}

	.footer-contact .contact-item {
		flex-direction: row;
		align-items: flex-start;
		justify-content: flex-start;
		text-align: left;
		margin-bottom: 0.75rem;
	}

	.footer-contact .contact-icon {
		margin: 0 0.75rem 0 0 !important;
	}

	.footer-hours {
		text-align: left;
	}

	.footer-hours .w-100 {
		text-align: left;
	}

	.footer-hours .footer-social-links {
		justify-content: flex-start;
	}

	footer hr+.row .col-md-6 {
		text-align: left;
	}
}

@media (max-width: 576px) {
	.display-4 {
		font-size: 2rem;
	}

	.display-5 {
		font-size: 1.75rem;
	}

	.container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.hero-section {
		min-height: 70vh;
		padding: 6.5rem 0 2rem !important;
	}

	.hero-section.service-banner {
		min-height: auto;
		padding: 6.5rem 0 2.5rem !important;
	}

	.navbar-brand {
		font-size: 1rem;
	}

	.navbar-brand .small {
		font-size: 0.75rem;
	}

	/* Mobile-specific adjustments */
	.service-icon,
	.service-icon-large,
	.contact-icon {
		width: 50px;
		height: 50px;
		font-size: 1.25rem;
	}

	.service-icon-large {
		width: 60px;
		height: 60px;
		font-size: 1.5rem;
	}

	/* Footer mobile fixes – small phones, left-aligned */
	footer .row.g-4>[class^="col-"] {
		margin-bottom: 1rem;
	}

	footer .footer-brand,
	footer .footer-links,
	footer .footer-contact,
	footer .footer-hours {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	footer .footer-links ul {
		text-align: left;
		padding-left: 0;
	}

	.footer-contact .contact-item {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		margin-bottom: 0.75rem;
	}

	.footer-contact .contact-icon {
		margin: 0 0.75rem 0 0 !important;
	}

	.footer-contact .contact-item .flex-grow-1 {
		width: 100%;
	}

	.footer-hours {
		text-align: left;
	}

	.footer-hours .footer-hours-text {
		text-align: left;
	}

	.footer-hours .w-100 {
		text-align: left;
	}

	.footer-hours .footer-social-links {
		justify-content: flex-start;
		margin-top: 0;
	}

	footer hr+.row {
		text-align: left;
	}

	footer hr+.row .col-md-6 p {
		text-align: left;
	}

	/* Navigation mobile improvements */
	.navbar-brand {
		flex-direction: column;
		align-items: flex-start;
	}

	.navbar-brand .brand-icon {
		margin-bottom: 0.25rem;
	}

	/* Appointment section mobile */
	.appointment-features .feature-item {
		flex-direction: column;
		text-align: center;
		margin-bottom: 1.5rem;
	}

	.appointment-features .feature-icon {
		margin: 0 auto 0.5rem;
	}

	/* Form mobile adjustments */
	.form-card {
		padding: 1.5rem;
	}

	.popup-content {
		padding: 1.5rem;
		margin: 1rem;
	}

	/* Touch-friendly improvements */
	.btn {
		min-height: 44px;
		min-width: 44px;
	}

	.nav-link {
		padding: 1rem 0.75rem !important;
	}

	.social-link {
		min-width: 44px;
		min-height: 44px;
	}

	/* Better spacing for mobile */
	.py-5 {
		padding-top: 3rem !important;
		padding-bottom: 3rem !important;
	}

	.mb-5 {
		margin-bottom: 3rem !important;
	}

	/* Hero section mobile - must beat .py-5 { padding-top: 3rem !important } */
	.hero-section {
		padding-top: 6.5rem !important;
		padding-bottom: 2rem !important;
	}

	.hero-section.service-banner {
		padding: 6.5rem 0 2.5rem !important;
	}

	main.main-below-nav {
		padding-top: 6.5rem !important;
	}

	.hero-content {
		padding: 1rem 0;
	}
}

/* Print Styles */
@media print {

	.navbar,
	.hero-buttons,
	.btn,
	footer {
		display: none !important;
	}

	.hero-section {
		background: white !important;
		color: black !important;
		min-height: auto !important;
	}

	.hero-content h1,
	.hero-content p {
		color: black !important;
	}
}

/* Accessibility */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Focus Styles */
.form-control:focus,
button:focus,
a:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
	:root {
		--primary-color: #0000ff;
		--dark-color: #000000;
		--secondary-color: #333333;
	}

	.btn-primary {
		background: #0000ff;
		border: 2px solid #000000;
	}
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Why Choose Us icon size (no inline styles) */
.why-icon {
	width: 64px;
	height: 64px;
	transition: var(--transition);
	background: var(--primary-color);
	color: #ffffff;
}

.why-icon i {
	color: inherit;
}

.why-choose-item {
	transition: var(--transition);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.why-choose-item:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-xl);
}

.why-choose-item:hover .why-icon {
	background: rgba(37, 99, 235, 0.1) !important;
	color: var(--primary-color) !important;
}

.why-choose-item:hover .why-icon i {
	color: var(--primary-color) !important;
}

/* Gallery placeholder height */
.gallery-placeholder {
	height: 220px;
}

/* About page author image */
.about-author-img {
	max-width: 280px;
}

/* Blog card image fixed height and cover */
.blog-card .card-img-top.blog-img-cover {
	height: 200px;
	object-fit: cover;
	width: 100%;
}

/* Component overrides (no inline styles) */
.hero-section {
	background: var(--gradient-hero) !important;
}

.hero-lead {
	font-weight: 400;
}

.hero-image {
	max-width: 400px;
}

.service-icon-sm {
	width: 60px;
	height: 60px;
	background: rgba(37, 99, 235, 0.1);
	color: var(--primary-color);
}

.service-icon-sm i {
	color: inherit;
}

/* CTA section – white text on primary background */
.cta-section .cta-heading,
.cta-section .cta-subtext {
	color: #ffffff;
}

.cta-section .cta-subtext {
	opacity: 0.95;
}

/* Appointment section – white feature icons on primary background */
/* Book Appointment section – white icons on primary background */
#appointment .feature-icon,
#appointment .feature-icon-sm {
	color: #ffffff;
}

#appointment .feature-icon i,
#appointment .feature-icon-sm i {
	color: #ffffff !important;
}

.feature-icon-sm {
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.2);
}

.contact-icon-sm {
	width: 60px;
	height: 60px;
	background: rgba(37, 99, 235, 0.1);
	color: var(--primary-color);
}

.footer-contact .contact-icon.footer-contact-icon,
.footer-contact-icon {
	width: 40px;
	height: 40px;
	background: rgba(37, 99, 235, 0.2);
}

.footer-hours-list {
	width: 100%;
}

.footer-hours-list li {
	width: 100%;
}

.footer-social-link {
	width: 40px;
	height: 40px;
	background: rgba(37, 99, 235, 0.2);
}

.blog-image-fixed {
	height: 200px;
	overflow: hidden;
}

.blog-img-cover {
	object-fit: cover;
}

.blog-image-placeholder {
	height: 200px;
}

.map-iframe {
	border: 0;
}

.modal-header-icon {
	width: 48px;
	height: 48px;
	background: rgba(37, 99, 235, 0.1);
	color: var(--primary-color);
}

.modal-header-icon i {
	color: inherit;
}

.gtm-noscript-iframe {
	display: none;
	visibility: hidden;
}

/* Floating WhatsApp – single button, does not overlap */
.floating-whatsapp-wrap {
	position: fixed;
	bottom: 1.25rem;
	right: 1.25rem;
	z-index: 1030;
}

.floating-whatsapp-wrap .floating-whatsapp {
	width: 56px;
	height: 56px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 576px) {
	.floating-whatsapp-wrap {
		bottom: 1rem;
		right: 1rem;
	}
}

.breadcrumb-item+.breadcrumb-item::before {
	content: "›";
}

.max-w-800 {
	max-width: 800px;
}

.services-page-intro {
	max-width: 640px;
}