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

:root {
	--crimson: #B91C3B;
	--crimson-dark: #8A1530;
	--crimson-light: #F2E0E6;
	--navy: #1B2A4A;
	--navy-light: #2C3E6B;
	--slate: #4A5568;
	--gray: #718096;
	--light: #F7F8FA;
	--white: #FFFFFF;
	--bg: #FFFFFF;
	--bg-alt: #F7F8FA;
	--text: #4A5568;
	--text-muted: #606F85;
	--heading: #1B2A4A;
	--card-bg: #FFFFFF;
	--card-border: transparent;
	--input-border: #E2E8F0;
	--input-bg: #FFFFFF;
	--shadow: 0 4px 24px rgba(27, 42, 74, 0.10);
	--shadow-lg: 0 8px 40px rgba(27, 42, 74, 0.15);
	--radius: 12px;
	--transition: 0.3s ease;
}

[data-theme="dark"] {
	--bg: #0F172A;
	--bg-alt: #1E293B;
	--text: #CBD5E1;
	--text-muted: #99A6BA;
	--heading: #DADFE2;
	--card-bg: #1E293B;
	--card-border: rgba(255,255,255,0.06);
	--input-border: #334155;
	--input-bg: #1E293B;
	--shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
	--shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
	--crimson: #BB2140;
	--crimson-light: #3B1A24;
}

html { scroll-behavior: smooth; }
body {
	font-family: 'Inter', sans-serif;
	color: var(--text);
	line-height: 1.7;
	background: var(--bg);
	transition: background var(--transition), color var(--transition);
}
a {
   color: var(--crimson);
}
p a:hover, div a:hover {
   color: var(--crimson-dark);
}

.img-dark { display: none; }
[data-theme="dark"] .img-light { display: none; }
[data-theme="dark"] .img-dark { display: block; }

/* ── TOP BAR ── */
.topbar {
	background: var(--navy);
	color: rgba(255,255,255,0.8);
	font-size: 0.82rem;
	padding: 8px 0;
}
.topbar .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.topbar a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color var(--transition); }
.topbar a:hover { color: var(--white); }
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; gap: 14px; }
.topbar-right a { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.1); transition: background var(--transition); }
.topbar-right a:hover { background: var(--crimson); }
.topbar-right .topbar-social-icon { width: 16px; height: 16px; filter: brightness(0) invert(1); }

/* ── THEME TOGGLE ── */
.theme-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none;
	border: 2px solid rgba(27, 42, 74, 0.15);
	border-radius: 10px;
	cursor: pointer;
	font-size: 1.15rem;
	transition: all var(--transition);
	flex-shrink: 0;
}
.theme-toggle::before {
	content: '🌙';
}
[data-theme="dark"] .theme-toggle::before {
	content: '☀️';
}
.theme-toggle:hover { border-color: var(--crimson); background: var(--crimson-light); }
[data-theme="dark"] .theme-toggle { border-color: rgba(255,255,255,0.15); }
[data-theme="dark"] .theme-toggle:hover { border-color: var(--crimson); }

/* ── HEADER / NAV ── */
header {
	background: var(--bg);
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: background var(--transition);
}
header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 12px;
	padding-bottom: 12px;
}
.header-right { display: flex; align-items: center; gap: 12px; margin-left: 4px; }
.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--heading);
}

.logo-img { height: 48px; width: auto; object-fit: contain; }
.logo-text-desktop {
	font-family: 'Playfair Display', serif;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.2;
	margin-right: 10px;
	color: var(--heading);
	white-space: nowrap; 
}
.logo-text-mobile {
	display: none;
	font-family: 'Playfair Display', serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--heading);
	white-space: nowrap;
}

nav ul { list-style: none; display: flex; gap: 4px; }
nav a {
	text-decoration: none;
	color: var(--heading);
	font-weight: 500;
	font-size: 0.92rem;
	padding: 8px 10px;
	border-radius: 7px;
	transition: all var(--transition);
	white-space: nowrap;
}
nav a:hover, nav a.active { background: var(--crimson-light); color: var(--crimson); }

.hamburger {
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: none;
	border: none;
	padding: 8px;
}
.close-nav {
	display: none;
}
.hamburger img { width: 24px; height: 24px; }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HERO ── */
.hero {
	background: linear-gradient(90deg, rgba(27,42,74,1) 0%, rgba(27,42,74,0.85) 40%, rgba(27,42,74,0.5) 70%, rgba(27,42,74,0.15) 100%),
				linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
	color: var(--white);
	padding: 100px 0 110px;
	position: relative;
	overflow: hidden;
}
[data-theme="dark"] .hero {
	background: linear-gradient(90deg, rgba(15,23,42,1) 0%, rgba(15,23,42,0.9) 40%, rgba(15,23,42,0.7) 70%, rgba(15,23,42,0.3) 100%),
				linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}
.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 35%;
	height: 100%;
	background: url('../img/blood.jpg') left center / cover no-repeat;
	z-index: 0;
	mask-image: linear-gradient(to right, black 0%, black 50%, transparent 100%);
	-webkit-mask-image: linear-gradient(to right, black 0%, black 50%, transparent 100%);
}
.hero::after {
	content: '';
	position: absolute;
	top: -60%;
	right: -20%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(185, 28, 59, 0.25), transparent 70%);
	border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; max-width: 600px; }
.hero-badge {
	display: inline-block;
	background: rgba(185, 28, 59, 0.25);
	color: #F4A0B2;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 20px;
	margin-bottom: 20px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3rem; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: #F4A0B2; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 36px; max-width: 520px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image {
	flex: 0 0 380px;
	height: 380px;
	border-radius: 24px;
	border: 1px solid rgba(255,255,255,0.1);
	overflow: hidden;
	opacity: 0.92;
}
.hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ── BUTTONS ── */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: all var(--transition);
	cursor: pointer;
	border: none;
	font-family: inherit;
}

.btn-primary { background: var(--crimson); color: var(--white); }
[data-theme="dark"] .btn-primary { color: #FFFFFF; }
.btn-primary:hover { background: var(--crimson-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
[data-theme="dark"] .btn-primary:hover { color: #FFFFFF; }

.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--heading); border: 2px solid var(--input-border); }
.btn-outline-dark:hover { border-color: var(--crimson); color: var(--crimson); }

.info-card .btn, .card .btn, .support-card .btn { font-size: 0.88rem; padding: 12px 24px; }

/* ── SECTIONS ── */
section { padding: 60px 0; transition: background var(--transition); position: relative; }
section:nth-child(even) { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--heading); margin-bottom: 12px; }
.section-header p { color: var(--heading); font-weight: 500; max-width: 650px; margin: 0 auto; font-size: 1.05rem; }

.section-label {
	display: inline-block;
	background: var(--crimson-light);
	color: var(--crimson);
	font-size: 0.78rem;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 16px;
	margin-bottom: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ── CARDS GRID ── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
	background: var(--card-bg);
	border-radius: var(--radius);
	padding: 30px 28px;
	box-shadow: var(--shadow);
	transition: all var(--transition);
	border: 1px solid var(--card-border);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--crimson-light); }
.card-icon {
	width: 56px;
	height: 56px;
	color: var(--text-muted);
	background: var(--crimson-light);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin-bottom: 18px;
}
.card-icon img { width: 1em; height: 1em; }
[data-theme="dark"] .card-icon img { filter: brightness(0) invert(1); }
.card h3 { font-size: 1.15rem; color: var(--heading); margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1em; }
.card a:not(.btn) {
	color: var(--crimson);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.card a:not(.btn):hover {
	color: var(--crimson-dark);
}

/* ── LARGE CARDS GRID ── */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 40px; }
.info-card {
	background: var(--card-bg);
	border-radius: var(--radius);
	padding: 32px;
	box-shadow: var(--shadow);
	border-left: 4px solid var(--crimson);
	transition: background var(--transition);
}
.info-card h3 { color: var(--heading); font-size: 1.1rem; margin-bottom: 8px; }
.info-card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1em;}
.info-card ul, .card ul { list-style: none; margin-top: 10px; }
.info-card li, .card li {
	padding: 6px 0;
	color: var(--text-muted);
	font-size: 0.93rem; 
}
.card li {
	display: flex;
	align-items: baseline;
}
.info-card li::before, .card li::before {
	content: '✓';
	color: var(--crimson);
	font-weight: 700;
	margin-right: 8px;
}
.info-card a:not(.btn) {
	color: var(--crimson);
	text-decoration: none;
}
.info-card a:not(.btn):hover {
	color: var(--crimson-dark);
}

/* ── STATS ── */
.stats { background: var(--navy); padding: 24px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }

.stat-item { color: var(--white); }
.stat-number { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: #F4A0B2; margin-bottom: 6px; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image {
	max-height: 420px;
	min-width: 220px;
	max-width: 100%;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.about-image p { color: var(--text-muted); margin-top: 12px; font-size: 1rem; text-align: center; }
.about-content h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--heading); margin-bottom: 16px; }
.about-content p { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; }
.about-values { display: flex; gap: 20px; margin-top: 28px; }
.value-item { text-align: center; flex: 1; padding: 20px; background: var(--bg-alt); border-radius: var(--radius); transition: background var(--transition); }
.value-item .icon { font-size: 1.6rem; margin-bottom: 8px; }
.value-item h4 { color: var(--heading); font-size: 0.9rem; }

/* ── PATIENT ── */
.patient::before {
    content: "";
    position: absolute;
    left: 0;
	top: 0;
    width: 645px;
	height: 569px;
	opacity: 1;
	visibility: visible;
	transition: opacity 400ms ease, visibility 400ms linear;
    background-image: url('../img/person.webp');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 645px 569px;
    z-index: 0;
}
.patient > * { position: relative; z-index: 1; }

/* ── PARENT ── */
.parent::before {
    content: "";
    position: absolute;
    left: 0;
	top: 0;
    width: 720px;
	height: 634px;
	opacity: 1;
	visibility: visible;
	transition: opacity 400ms ease, visibility 400ms linear;
    background-image: url('../img/kids.webp');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 720px 634px;
    z-index: 0;
}
.parent > * { position: relative; z-index: 1; }

/* ── DOCTOR ── */
.doctor::before {
    content: "";
    position: absolute;
    left: 0;
	top: 0;
    width: 700px;
	height: 700px;
	opacity: 1;
	visibility: visible;
	transition: opacity 400ms ease, visibility 400ms linear;
    background-image: url('../img/doctor.webp');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 700px 700px;
    z-index: 0;
}
.doctor > * { position: relative; z-index: 1; }

/* ── SUPPORT ── */
.support-wrapper {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 32px;
	align-items: center;
}
.support-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}
.support-card {
	background: var(--card-bg);
	border-radius: var(--radius);
	padding: 30px 28px;
	text-align: center;
	box-shadow: var(--shadow);
	transition: all var(--transition);
}
.support-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.support-card .icon { font-size: 2.5rem; margin-bottom: 18px; }
.support-card h3 { color: var(--heading); margin-bottom: 10px; }
.support-card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1em; }

.support-image {
	max-height: 420px;
	min-width: 220px;
	max-width: 100%;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.support-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
}

/* ── CONTACT ── */
.contact-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content:center; }
.contact-item { display: flex; gap: 12px; align-items: center; }
.contact-item .icon {
	width: 48px;
	height: 48px;
	background: var(--crimson-light);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	flex-shrink: 0;
}
.contact-item h4 { color: var(--heading); font-size: 0.95rem; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--text-muted); font-size: 0.93rem; text-decoration: none; }
.contact-item a:hover { color: var(--crimson); }

/* ── CTA BANNER ── */
.cta-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: center; }
.cta-image {
	height: 290px;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.cta-banner {
	background: linear-gradient(135deg, var(--crimson), var(--crimson-dark)) !important;
	padding: 15px 0;
	color: var(--white);
}
.cta-banner h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(230,230,230,0.85); margin-bottom: 30px; font-size: 1rem; }
.cta-banner .btn { background: var(--white); color: var(--crimson); }
.cta-banner .btn:hover { background: var(--navy); color: var(--white); }

/* ── FOOTER ── */
footer {
	background: var(--navy);
	color: rgba(255,255,255,0.7);
	padding: 45px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); }

.footer-about .logo { color: var(--white); margin-bottom: 16px; }
.footer-about p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
	width: 36px;
	height: 36px;
	background: rgba(255,255,255,0.08);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.7);
	text-decoration: none;
	transition: all var(--transition);
	font-size: 0.85rem;
	font-weight: 600;
}
.footer-social a:hover { background: var(--crimson); color: var(--white); }
.footer-social .footer-social-icon { width: 18px; height: 18px; filter: brightness(0) invert(1); }

footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; transition: color var(--transition); }
footer a:hover { color: var(--white); }

.footer-bottom {
	padding: 15px 0;
	text-align: center;
	font-size: 0.82rem;
	color: rgba(255,255,255,0.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
	.logo-text-desktop { display: none; }
	.logo-text-mobile { display: inline; }
	.patient::before, .parent::before, .doctor::before {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		width: 0;
		height: 0;
	 }
}

@media (max-width: 1024px) {
	.cards-grid, .support-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.hero h1 { font-size: 2.4rem; }
	.about-image { display: none; }
	.support-wrapper { grid-template-columns: 1fr; }
	.support-image { max-height: 350px; display: none; }
}

@media (max-width: 900px) {
	.hamburger { display: flex; }
	nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 280px;
		height: 100vh;
		background: var(--bg);
		box-shadow: var(--shadow-lg);
		transition: right var(--transition), background var(--transition);
		z-index: 2000;
		padding: 80px 24px 24px;
	}
	nav.open { right: 0; }
	nav ul { flex-direction: column; gap: 4px; }
	nav a { display: block; padding: 12px 16px; font-size: 1rem; }
	.nav-overlay {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,0.4);
		z-index: 1999;
	}
	.nav-overlay.show { display: block; }
	.close-nav {
		display: block;
		position: absolute;
		top: 20px;
		right: 20px;
		background: none;
		border: none;
		font-size: 1.6rem;
		cursor: pointer;
		color: var(--heading);
	}

	.hero::before { display: none; }
	.hero .container { flex-direction: column; text-align: center; }
	.hero-content { max-width: 100%; }
	.hero p { margin: 0 auto 36px; }
	.hero-buttons { justify-content: center; }
	.hero-image { display: none; }
	.hero h1 { font-size: 2rem; }

	.cards-grid, .info-grid, .support-grid, .contact-grid { grid-template-columns: 1fr; }
	.stats .container { grid-template-columns: repeat(2, 1fr); }
	.about-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-links { display: none; }
	.topbar { display: none; }
	.cta-image { display: none; }
	.cta-banner { padding: 30px 0; }
	.cta-grid { grid-template-columns: 1fr; }
	.about-values { display: none; }
	.no-mobile { display: none; }
}
