:root {
	--primary-dark: #2A5C46;
	--primary-mid: #3E8E70;
	--primary-light: #52B58C;
	--accent: #E8F5E9;
	--text-dark: #1F2937;
	--text-gray: #6B7280;
	--bg-light: #F9FAFB;
	--white: #FFFFFF;
	--radius-lg: 16px;
	--radius-xl: 40px;
}

html {
	scroll-behavior: smooth;
}

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

body {
	font-family: 'Inter', sans-serif;
	background-color: var(--primary-dark);
	color: var(--text-dark);
	line-height: 1.6;
	overflow-x: hidden;
}

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

/* Utility */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	transition: all 0.2s;
	cursor: pointer;
	border: none;
}

.btn-primary {
	background-color: var(--primary-light);
	color: var(--white);
}

.btn-primary:hover {
	background-color: #439e78;
}

.btn-outline {
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: var(--white);
	margin-left: 10px;
}

.btn-outline:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.btn-full {
	width: 100%;
	text-align: center;
}

/* Navbar */
.navbar {
	padding: 20px 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 50;
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	color: var(--white);
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: -0.5px;
}

.nav-links a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	margin: 0 15px;
	font-size: 0.95rem;
	transition: color 0.2s;
}

.nav-links {
	display: flex;
	align-items: center;
}

.nav-links a:hover {
	color: var(--white);
}

/* Hero */
.hero {
	background: linear-gradient(135deg, #2A5C46 0%, #3E8E70 100%);
	padding-top: 140px;
	padding-bottom: 120px;
	position: relative;
	color: var(--white);
	text-align: left;
	overflow: hidden;
}

.hero::after {
	content: "";
	position: absolute;
	right: 8%;
	bottom: 0;
	width: 390px;
	height: 100%;
	background-image: url("./top-doctor.webp");
	background-repeat: no-repeat;
	background-size: contain;
	background-position: right bottom;
	transform: scaleX(-1);
	transform-origin: center;
	pointer-events: none;
	z-index: 0;
}

.hero-layout {
	display: block;
	position: relative;
	z-index: 1;
}

.badge-hero {
	display: inline-block;
	background: rgba(255, 255, 255, 0.15);
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 0.85rem;
	margin-bottom: 20px;
	font-weight: 500;
}

.hero-content h1 {
	font-size: 4rem;
	line-height: 1.1;
	margin-bottom: 20px;
	font-weight: 700;
}

.hero-content {
	flex: 1;
	max-width: 620px;
}

.hero-content p {
	font-size: 1.125rem;
	max-width: 600px;
	margin: 0 0 40px;
	color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

/* Main Wrapper */
.main-wrapper {
	background: var(--bg-light);
	border-top-left-radius: 60px;
	border-top-right-radius: 60px;
	position: relative;
	z-index: 10;
	padding-top: 100px;
	padding-bottom: 80px;
	margin-top: -60px; /* Pulls the white section up to cleanly overlap the gradient */
	box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
}

.section {
	margin-bottom: 100px;
}

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

.section-header h2 {
	font-size: 2.5rem;
	color: var(--text-dark);
	margin-bottom: 15px;
}

.section-header p {
	color: var(--text-gray);
	font-size: 1.1rem;
}

/* Cards Grid */
.grid-2x2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
}

.card {
	background: var(--white);
	padding: 40px;
	border-radius: var(--radius-lg);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
	transition: transform 0.2s;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card-badge {
	display: inline-block;
	background: var(--accent);
	color: var(--primary-dark);
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.card h3 {
	font-size: 1.5rem;
	margin-bottom: 15px;
	color: var(--text-dark);
}

.card p {
	color: var(--text-gray);
	margin-bottom: 20px;
	font-size: 0.95rem;
}

.card-list {
	list-style: none;
	padding-left: 0;
}

.card-list li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 10px;
	color: var(--text-dark);
	font-size: 0.9rem;
	font-weight: 500;
}

.card-list li::before {
	content: "•";
	color: var(--primary-light);
	position: absolute;
	left: 0;
	font-weight: bold;
}

/* Specialties / Tabs */
.tabs {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.tab {
	background: transparent;
	border: none;
	padding: 10px 24px;
	border-radius: 30px;
	font-size: 0.95rem;
	color: var(--text-gray);
	cursor: pointer;
	font-weight: 500;
	transition: all 0.2s;
	white-space: nowrap;
}

.tab.active,
.tab:hover {
	background: var(--white);
	color: var(--primary-dark);
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.specialty-card {
	background: var(--white);
	border-radius: var(--radius-lg);
	padding: 50px;
	display: none; /* Changed to none for tabs */
	align-items: center;
	gap: 40px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.specialty-card.active {
	display: flex;
}

.specialty-content {
	flex: 1;
}

.badge-green {
	background: var(--primary-light);
	color: white;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: 600;
	display: inline-block;
	margin-bottom: 15px;
}

.specialty-content h3 {
	font-size: 2rem;
	margin-bottom: 15px;
}

.specialty-content p {
	color: var(--text-gray);
	margin-bottom: 0;
}

.specialty-stats {
	flex: 0 0 300px;
	background: var(--bg-light);
	padding: 30px;
	border-radius: 12px;
}

.stat-row strong {
	display: block;
	margin-bottom: 15px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text-gray);
}

.tags span {
	display: inline-block;
	background: white;
	border: 1px solid #e5e7eb;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 0.85rem;
	margin-bottom: 8px;
	margin-right: 6px;
	color: var(--text-dark);
}

/* Contact Form */
.contact-form-card {
	background: var(--white);
	max-width: 700px;
	margin: 0 auto;
	padding: 50px;
	border-radius: var(--radius-lg);
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95rem;
	background: #F9FAFB;
}

/* Dropdown Chevron fix */
.form-group select.custom-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 1.2em;
	padding-right: 3rem;
	cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: 2px solid var(--primary-light);
	border-color: transparent;
}

.form-status {
	margin-top: 14px;
	font-size: 0.9rem;
	min-height: 1.2em;
}

.form-status.success {
	color: #166534;
}

.form-status.error {
	color: #b91c1c;
}

.contact-info {
	text-align: center;
	margin-top: 40px;
}

.contact-info a {
	color: var(--text-dark);
	font-weight: 600;
	text-decoration: none;
}

/* Footer */
.footer {
	background: linear-gradient(135deg, #2A5C46 0%, #3E8E70 100%);
	color: rgba(255, 255, 255, 0.7);
	padding-top: 80px;
	padding-bottom: 40px;
}

.footer-content {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 60px;
}

.footer-brand {
	max-width: 330px;
}

.logo-white {
	color: var(--white);
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 20px;
}

.footer h4 {
	color: var(--white);
	margin-bottom: 20px;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.footer a {
	display: block;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	margin-bottom: 12px;
	font-size: 0.95rem;
}

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

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 30px;
	text-align: left;
	font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
	.nav-container {
		flex-wrap: nowrap;
	}

	.nav-links {
		display: none;
	}

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

@media (max-width: 768px) {
	.navbar {
		padding: 16px 0;
	}

	.nav-container > .btn {
		padding: 10px 18px;
		font-size: 0.9rem;
	}

	.nav-links {
		gap: 18px;
	}

	.nav-links a {
		margin: 0;
		font-size: 1rem;
	}

	.hero {
		text-align: center;
		padding-top: 146px;
		padding-bottom: 94px;
		background: radial-gradient(circle at 20% 20%, rgba(82, 181, 140, 0.28) 0%, rgba(82, 181, 140, 0) 42%),
			linear-gradient(145deg, #214b39 0%, #2f7b5f 52%, #4ca980 100%);
	}

	.hero::before {
		content: none;
	}

	.hero::after {
		display: none;
	}

	.hero-content {
		max-width: 100%;
	}

	.hero-content h1 {
		font-size: 2.6rem;
		margin-bottom: 20px;
	}

	.hero-content h1 br {
		display: none;
	}

	.hero-content p {
		margin: 0 auto 32px;
		max-width: 38ch;
		line-height: 1.5;
	}

	.hero-actions {
		justify-content: center;
		gap: 10px;
	}

	.hero-actions .btn {
		min-width: 150px;
	}

	.btn-outline {
		margin-left: 0;
	}

	.section {
		margin-bottom: 72px;
	}

	.section-header {
		margin-bottom: 40px;
	}

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

	.tabs {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.grid-2x2 {
		grid-template-columns: 1fr;
	}

	.specialty-card {
		flex-direction: column;
		padding: 30px;
	}

	.specialty-content h3 {
		font-size: 1.6rem;
	}

	.specialty-stats {
		width: 100%;
	}

	.contact-form-card {
		padding: 30px 22px;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.contact-info a {
		overflow-wrap: anywhere;
	}

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

	.main-wrapper {
		border-top-left-radius: 30px;
		border-top-right-radius: 30px;
		padding-top: 60px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 16px;
	}

	.logo {
		font-size: 1.25rem;
	}

	.hero {
		padding-top: 120px;
		padding-bottom: 74px;
	}

	.hero::before {
		content: none;
	}

	.hero::after {
		display: none;
	}

	.hero-content h1 {
		font-size: 2.05rem;
		margin-bottom: 18px;
	}

	.hero-content p {
		font-size: 0.98rem;
		margin-bottom: 28px;
	}

	.hero-actions .btn {
		width: 100%;
	}

	.card,
	.specialty-card,
	.contact-form-card {
		padding: 24px 18px;
	}

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