/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
	--primary: #00aaa6;
	--primary-dark: #008c89;
	--primary-light: #e0f7f6;
	--text-dark: #1a1a2e;
	--text-body: #444;
	--text-light: #888;
	--bg-white: #ffffff;
	--bg-light: #f8f9fa;
	--bg-dark: #1a1a2e;
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
	font-family:
		"Roboto",
		-apple-system,
		BlinkMacSystemFont,
		sans-serif;
	color: var(--text-body);
	background: var(--bg-white);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Poppins", sans-serif;
	color: var(--text-dark);
	line-height: 1.3;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color var(--transition);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ===========================
   Top Bar
   =========================== */
.top-bar {
	background: var(--bg-dark);
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.85rem;
	padding: 8px 0;
}

.top-bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.top-bar-phone {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.8);
	transition: color var(--transition);
}

.top-bar-phone:hover {
	color: var(--primary);
}

.top-bar-phone i {
	font-size: 0.75rem;
}

.top-bar-ministry {
	font-size: 0.8rem;
	opacity: 0.7;
}

/* ===========================
   Header / Navbar
   =========================== */
.header {
	background: var(--bg-white);
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: box-shadow var(--transition);
}

.header.scrolled {
	box-shadow: var(--shadow-md);
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 20px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.logo-text {
	display: flex;
	flex-direction: column;
}

.logo-subtitle {
	font-family: "Poppins", sans-serif;
	font-size: 0.65rem;
	font-weight: 500;
	color: var(--text-light);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.logo-title {
	font-family: "Poppins", sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--primary);
	letter-spacing: 0.5px;
}

.nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nav-link {
	font-family: "Poppins", sans-serif;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--text-dark);
	padding: 8px 14px;
	border-radius: var(--radius-sm);
	transition: all var(--transition);
	position: relative;
}

.nav-link::after {
	content: "";
	position: absolute;
	bottom: 2px;
	left: 50%;
	transform: translateX(-50%) scaleX(0);
	width: 20px;
	height: 3px;
	background: var(--primary);
	border-radius: 2px;
	transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
	color: var(--primary);
}

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

.mobile-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	color: var(--text-dark);
	cursor: pointer;
	padding: 8px;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
	position: relative;
	height: 420px;
	background: url("images/asm-disgorunum.jpeg") center 60% / cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(0, 170, 166, 0.85) 0%,
		rgba(26, 26, 46, 0.75) 100%
	);
}

.hero-content {
	position: relative;
	z-index: 1;
	color: #fff;
	padding: 20px;
	animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
	font-size: 2.4rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 10px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-content p {
	font-size: 1.15rem;
	opacity: 0.9;
	margin-bottom: 28px;
	font-weight: 300;
}

.hero-actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 26px;
	border-radius: var(--radius-sm);
	font-family: "Poppins", sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition);
	border: 2px solid transparent;
}

.btn-primary {
	background: #fff;
	color: var(--primary);
}

.btn-primary:hover {
	background: var(--primary-light);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-outline {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: #fff;
	transform: translateY(-2px);
}

/* ===========================
   Quick Info Cards
   =========================== */
.quick-info {
	margin-top: -50px;
	position: relative;
	z-index: 10;
	padding-bottom: 20px;
}

.quick-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.quick-card {
	background: var(--bg-white);
	border-radius: var(--radius-md);
	padding: 30px 24px;
	text-align: center;
	box-shadow: var(--shadow-md);
	transition: all var(--transition);
	cursor: pointer;
	display: block;
}

.quick-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
}

.quick-card-icon {
	width: 60px;
	height: 60px;
	background: var(--primary-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	transition: all var(--transition);
}

.quick-card-icon i {
	font-size: 1.4rem;
	color: var(--primary);
}

.quick-card:hover .quick-card-icon {
	background: var(--primary);
}

.quick-card:hover .quick-card-icon i {
	color: #fff;
}

.quick-card h3 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 6px;
}

.quick-card p {
	font-size: 0.85rem;
	color: var(--text-light);
}

/* ===========================
   Sections (shared)
   =========================== */
.section {
	padding: 70px 0;
}

.section:nth-child(even) {
	background: var(--bg-light);
}

.section-header {
	text-align: center;
	margin-bottom: 45px;
}

.section-header h2 {
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.section-underline {
	width: 50px;
	height: 4px;
	background: var(--primary);
	border-radius: 2px;
	margin: 0 auto;
}

/* ===========================
   Doctors Section
   =========================== */
.doctors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.doctor-card {
	background: var(--bg-white);
	border-radius: var(--radius-md);
	padding: 32px 24px;
	text-align: center;
	box-shadow: var(--shadow-sm);
	transition: all var(--transition);
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.doctor-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary-light);
}

.doctor-avatar {
	width: 90px;
	height: 90px;
	background: linear-gradient(135deg, var(--primary-light) 0%, #d4f0ef 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	border: 3px solid var(--primary);
}

.doctor-avatar i {
	font-size: 2.2rem;
	color: var(--primary);
}

.doctor-info h3 {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 6px;
}

.doctor-title {
	display: block;
	font-size: 0.85rem;
	color: var(--primary);
	font-weight: 500;
	margin-bottom: 4px;
}

.doctor-unit {
	display: block;
	font-size: 0.8rem;
	color: var(--text-light);
}

/* ===========================
   Services Section
   =========================== */
.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.service-card {
	background: var(--bg-white);
	border-radius: var(--radius-md);
	padding: 28px 22px;
	text-align: center;
	box-shadow: var(--shadow-sm);
	transition: all var(--transition);
	border: 1px solid rgba(0, 0, 0, 0.04);
	cursor: default;
}

.service-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary-light);
}

.service-icon {
	width: 64px;
	height: 64px;
	background: var(--primary-light);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	transition: all var(--transition);
}

.service-icon i {
	font-size: 1.5rem;
	color: var(--primary);
	transition: color var(--transition);
}

.service-card:hover .service-icon {
	background: var(--primary);
	border-radius: 50%;
}

.service-card:hover .service-icon i {
	color: #fff;
}

.service-card h3 {
	font-size: 0.95rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--text-dark);
}

.service-card p {
	font-size: 0.82rem;
	color: var(--text-light);
	line-height: 1.5;
}

/* ===========================
   Staff Section
   =========================== */
.staff-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.staff-card {
	background: var(--bg-white);
	border-radius: var(--radius-md);
	padding: 28px 20px;
	text-align: center;
	box-shadow: var(--shadow-sm);
	transition: all var(--transition);
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.staff-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary-light);
}

.staff-avatar {
	width: 72px;
	height: 72px;
	background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	border: 3px solid #66bb6a;
}

.staff-avatar i {
	font-size: 1.8rem;
	color: #43a047;
}

.staff-info h3 {
	font-size: 0.95rem;
	font-weight: 600;
	margin-bottom: 4px;
}

.staff-title {
	display: block;
	font-size: 0.82rem;
	color: #43a047;
	font-weight: 500;
}

/* ===========================
   Working Hours Section
   =========================== */
.hours-section {
	background: var(--bg-light);
}

.hours-card {
	max-width: 520px;
	margin: 0 auto;
	background: var(--bg-white);
	border-radius: var(--radius-lg);
	padding: 40px;
	box-shadow: var(--shadow-md);
	text-align: center;
}

.hours-icon {
	width: 70px;
	height: 70px;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 28px;
}

.hours-icon i {
	font-size: 1.8rem;
	color: #fff;
}

.hours-table {
	width: 100%;
	border-collapse: collapse;
}

.hours-table tr {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	transition: background var(--transition);
}

.hours-table tr:last-child {
	border-bottom: none;
}

.hours-table tr:hover {
	background: var(--primary-light);
}

.hours-table td {
	padding: 14px 16px;
	font-size: 0.95rem;
}

.hours-table .day {
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	color: var(--text-dark);
	text-align: left;
}

.hours-table .time {
	font-weight: 500;
	color: var(--primary);
	text-align: right;
}

.hours-table tr.closed .day {
	color: var(--text-light);
}

.hours-table tr.closed .time {
	color: #e74c3c;
	font-weight: 600;
}

/* ===========================
   Gallery Section
   =========================== */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.gallery-item {
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	position: relative;
	transition: all var(--transition);
}

.gallery-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.gallery-item img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
	color: #fff;
	padding: 30px 16px 14px;
	font-family: "Poppins", sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	opacity: 0;
	transform: translateY(10px);
	transition: all var(--transition);
}

.gallery-item:hover .gallery-caption {
	opacity: 1;
	transform: translateY(0);
}

/* ===========================
   Lightbox
   =========================== */
.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.lightbox.active {
	opacity: 1;
	pointer-events: auto;
}

.lightbox-img {
	max-width: 85vw;
	max-height: 85vh;
	border-radius: var(--radius-md);
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
	transform: scale(1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	border: none;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	transition: all var(--transition);
	backdrop-filter: blur(4px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
	background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
	top: 20px;
	right: 20px;
}

.lightbox-prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

/* ===========================
   Footer
   =========================== */
.footer {
	background: var(--bg-dark);
	color: rgba(255, 255, 255, 0.8);
	padding: 60px 0 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.footer h3 {
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 10px;
}

.footer h3::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 30px;
	height: 3px;
	background: var(--primary);
	border-radius: 2px;
}

.footer-list {
	list-style: none;
}

.footer-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 0.88rem;
	line-height: 1.5;
}

.footer-list li i {
	color: var(--primary);
	margin-top: 3px;
	flex-shrink: 0;
}

.footer-list a {
	color: rgba(255, 255, 255, 0.7);
	transition: color var(--transition);
}

.footer-list a:hover {
	color: var(--primary);
}

.footer-links li {
	margin-bottom: 10px;
}

.footer-links a {
	display: inline-block;
	position: relative;
}

.footer-links a::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--primary);
	transition: width var(--transition);
}

.footer-links a:hover::after {
	width: 100%;
}

.footer-bottom {
	margin-top: 40px;
	padding: 18px 0;
	background: var(--primary);
	text-align: center;
}

.footer-bottom p {
	font-size: 0.82rem;
	color: #fff;
	font-weight: 400;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in {
	opacity: 0;
	transform: translateY(25px);
	transition:
		opacity 0.6s ease,
		transform 0.6s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
	.mobile-toggle {
		display: block;
	}

	.nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bg-white);
		flex-direction: column;
		box-shadow: var(--shadow-md);
		padding: 12px 0;
	}

	.nav.open {
		display: flex;
	}

	.nav-link {
		padding: 12px 24px;
		width: 100%;
	}

	.nav-link::after {
		display: none;
	}

	.hero {
		height: 340px;
	}

	.hero-content h1 {
		font-size: 1.8rem;
	}

	.quick-cards {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.quick-info {
		margin-top: -30px;
	}

	.quick-card {
		padding: 22px 20px;
	}

	.doctors-grid {
		grid-template-columns: 1fr;
	}

	.services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.staff-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gallery-grid {
		grid-template-columns: 1fr;
	}

	.gallery-item img {
		height: 220px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.hours-card {
		padding: 28px 20px;
	}

	.section {
		padding: 50px 0;
	}

	.section-header h2 {
		font-size: 1.5rem;
	}

	.top-bar-ministry {
		display: none;
	}
}

@media (max-width: 480px) {
	.hero {
		height: 300px;
	}

	.hero-content h1 {
		font-size: 1.5rem;
	}

	.hero-actions {
		flex-direction: column;
		align-items: center;
	}

	.btn {
		width: 100%;
		justify-content: center;
	}

	.services-grid {
		grid-template-columns: 1fr;
	}

	.staff-grid {
		grid-template-columns: 1fr;
	}
}
