/* =========================================================
   Braj Raj Gau Sewa Charitable Trust
   Warm, friendly NGO theme — lightweight, no framework
   ========================================================= */

:root {
	--marigold: #f59120;
	--marigold-dark: #e07310;
	--saffron: #f6852a;
	--saffron-dark: #d4640d;
	--leaf: #4a9d4f;
	--leaf-dark: #327a37;
	--rose: #e0607f;
	--cream: #fff7ec;
	--cream-2: #fdefd9;
	--ink: #3a2c1c;
	--muted: #7c6f5f;
	--line: #f0e2cd;
	--white: #ffffff;
	--shadow: 0 18px 40px rgba(120, 72, 12, .12);
	--shadow-sm: 0 8px 20px rgba(120, 72, 12, .10);
	--radius: 22px;
	--radius-sm: 14px;
	--max: 1140px;
	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Baloo 2", "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--cream);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--saffron-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--marigold-dark); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	line-height: 1.2;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 .55em;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }

.container {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: 22px;
}

.section { padding: 88px 0; }
.section-sm { padding: 54px 0; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .85rem 1.7rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: .98rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s, box-shadow .25s, background .2s, color .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
	background: linear-gradient(135deg, var(--marigold), var(--saffron-dark));
	color: #fff;
	box-shadow: 0 8px 20px rgba(224, 115, 16, .35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(224, 115, 16, .45); }
.btn-outline { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-outline:hover { background: #fff; color: var(--saffron-dark); }
.btn-ghost { border-color: var(--marigold); color: var(--saffron-dark); background: rgba(245,145,32,.06); }
.btn-ghost:hover { background: var(--marigold); color: #fff; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 247, 236, .9);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 74px;
	gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
	width: 46px; height: 46px; flex: none;
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--marigold), var(--saffron-dark));
	color: #fff;
	border-radius: 16px; font-size: 1.5rem;
	box-shadow: 0 6px 14px rgba(224, 115, 16, .3);
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .03em; }

.nav-toggle {
	display: none;
	background: none; border: none; cursor: pointer;
	font-size: 1.6rem; color: var(--ink); padding: .2rem;
}

.nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: .3rem;
	margin: 0; padding: 0;
}
.nav a {
	display: block;
	padding: .5rem .95rem;
	border-radius: 999px;
	color: var(--ink);
	font-weight: 500;
	font-size: .96rem;
}
.nav a:hover, .nav a.active { color: var(--saffron-dark); background: rgba(245, 145, 32, .12); }
.nav .btn { margin-left: .5rem; padding: .58rem 1.3rem; }
.nav .btn:hover { color: #fff; }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.nav {
		position: absolute;
		top: 74px; left: 0; right: 0;
		background: var(--cream);
		border-bottom: 1px solid var(--line);
		max-height: 0; overflow: hidden;
		transition: max-height .3s ease;
		box-shadow: var(--shadow-sm);
	}
	.nav.open { max-height: 440px; }
	.nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: .2rem; }
	.nav a { padding: .78rem .8rem; }
	.nav .btn { margin: .4rem 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	color: #fff;
	background:
		linear-gradient(120deg, rgba(212, 100, 13, .82), rgba(50, 122, 55, .78)),
		url("../img/hero.jpg") center/cover no-repeat;
	padding: clamp(84px, 14vw, 155px) 0 clamp(110px, 15vw, 185px);
	text-align: center;
	overflow: hidden;
}
.hero::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
	background: var(--cream);
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 18px rgba(0,0,0,.15); }
.hero .lead {
	max-width: 720px;
	margin: 0 auto 1.9rem;
	font-size: 1.16rem;
	color: rgba(255, 255, 255, .95);
}
.hero .eyebrow {
	display: inline-block;
	background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .35);
	padding: .4rem 1.1rem;
	border-radius: 999px;
	font-size: .82rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 1.3rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
	position: relative;
	background: linear-gradient(135deg, var(--marigold-dark), var(--leaf-dark));
	color: #fff;
	padding: 72px 0 78px;
	text-align: center;
	overflow: hidden;
}
.page-banner::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: -1px; height: 46px;
	background: var(--cream);
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.page-banner > .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; margin-bottom: .3rem; }
.page-banner p { color: rgba(255, 255, 255, .92); margin: 0 0 1rem; }
.breadcrumbs { font-size: .9rem; color: rgba(255, 255, 255, .88); }
.breadcrumbs a { color: #fff; text-decoration: underline; }

/* ---------- Section titles ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.kicker {
	display: inline-block;
	color: var(--saffron-dark);
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-size: .8rem;
	background: rgba(245, 145, 32, .12);
	padding: .3rem .9rem;
	border-radius: 999px;
	margin-bottom: .9rem;
}
.section-head p { color: var(--muted); margin: 0; }

/* ---------- About / feature grid ---------- */
.grid { display: grid; gap: 2rem; }
.about-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

.about-media { position: relative; }
.about-media img {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	width: 100%; height: 100%; object-fit: cover;
	border: 6px solid #fff;
}
.about-media::before {
	content: "🐄";
	position: absolute; top: -18px; left: -18px;
	width: 64px; height: 64px; border-radius: 20px;
	background: var(--white); box-shadow: var(--shadow-sm);
	display: grid; place-items: center; font-size: 2rem; z-index: 2;
}

.check-list { list-style: none; padding: 0; margin: 1.3rem 0; }
.check-list li { position: relative; padding-left: 2.2rem; margin-bottom: .8rem; }
.check-list li::before {
	content: "✓";
	position: absolute; left: 0; top: .15rem;
	width: 1.5rem; height: 1.5rem;
	background: var(--leaf); color: #fff;
	border-radius: 50%;
	display: grid; place-items: center;
	font-size: .82rem; font-weight: 700;
	box-shadow: 0 4px 10px rgba(74, 157, 79, .3);
}

/* ---------- Stats ---------- */
.stats { background: var(--cream-2); }
.stats-grid { grid-template-columns: repeat(4, 1fr); text-align: center; gap: 1.4rem; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
	background: #fff; border-radius: var(--radius-sm);
	padding: 1.4rem 1rem; box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--saffron-dark); line-height: 1; margin-bottom: .3rem; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Cards (donations) ---------- */
.cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.7rem;
	box-shadow: var(--shadow-sm);
	transition: transform .2s, box-shadow .25s, border-color .2s;
	display: flex; flex-direction: column;
	position: relative; overflow: hidden;
}
.card::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
	background: linear-gradient(90deg, var(--marigold), var(--leaf));
	opacity: 0; transition: opacity .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card .card-icon {
	width: 58px; height: 58px; border-radius: 18px;
	display: grid; place-items: center;
	background: linear-gradient(135deg, rgba(245,145,32,.16), rgba(74,157,79,.16));
	font-size: 1.7rem; margin-bottom: 1rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.card .price { margin-top: auto; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--leaf-dark); }

/* ---------- Call to action band ---------- */
.cta-band {
	position: relative;
	background: linear-gradient(135deg, var(--marigold), var(--saffron-dark));
	color: #fff;
	border-radius: var(--radius);
	padding: 2.8rem;
	display: flex; align-items: center; justify-content: space-between;
	gap: 1.6rem; flex-wrap: wrap;
	box-shadow: var(--shadow);
	overflow: hidden;
}
.cta-band::before {
	content: "🐮"; position: absolute; right: -10px; bottom: -20px;
	font-size: 8rem; opacity: .14; transform: rotate(-8deg);
}
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: rgba(255, 255, 255, .95); margin: 0; max-width: 640px; }
.cta-band .btn { position: relative; z-index: 2; }

/* ---------- Content prose (about/donation info) ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { margin-top: 2.3rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .55rem; }
.prose li::marker { color: var(--marigold); }
.prose hr { border: none; border-top: 2px dashed var(--line); margin: 2.4rem 0; }

/* ---------- Contact ---------- */
.contact-grid { grid-template-columns: 1fr 1.4fr; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.info-item .ico {
	flex: none; width: 50px; height: 50px; border-radius: 16px;
	background: linear-gradient(135deg, rgba(74,157,79,.16), rgba(245,145,32,.16));
	display: grid; place-items: center; font-size: 1.35rem;
}
.info-item h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.info-item p { margin: 0; color: var(--muted); }

.info-box, .form-box {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 2rem;
	box-shadow: var(--shadow-sm);
}

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
input, textarea, select {
	width: 100%;
	padding: .82rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: .97rem;
	background: var(--cream);
	color: var(--ink);
	transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--marigold);
	box-shadow: 0 0 0 3px rgba(245, 145, 32, .18);
	background: #fff;
}
textarea { resize: vertical; min-height: 140px; }

.donation-options { display: grid; gap: .6rem; margin: .4rem 0 1rem; }
.donation-options .opt {
	display: flex; align-items: center; gap: .7rem;
	padding: .78rem 1rem; border: 1px solid var(--line);
	border-radius: var(--radius-sm); background: var(--cream);
	cursor: pointer; transition: border-color .2s, background .2s;
	font-weight: 500;
}
.donation-options .opt:hover { border-color: var(--marigold); background: #fff; }
.donation-options .opt input { width: auto; accent-color: var(--marigold); }

.form-note { font-size: .88rem; color: var(--muted); }
.form-status { margin-top: 1rem; font-weight: 500; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--leaf-dark); }
.form-status.err { color: #c0392b; }

/* ---------- Payment info ---------- */
.pay-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.pay-card img { border-radius: var(--radius-sm); margin: 0 auto; }
.bank-list { list-style: none; padding: 0; margin: 0; }
.bank-list li { padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.bank-list li:last-child { border-bottom: none; }
.bank-list b { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
	background: #2f2416;
	color: rgba(255, 255, 255, .8);
	padding: 60px 0 26px;
}
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2.6rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.7rem; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer .footer-about h4 { font-size: 1.2rem; }
.site-footer p { color: rgba(255, 255, 255, .72); font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-links a { color: rgba(255, 255, 255, .78); font-size: .95rem; }
.footer-links a:hover { color: var(--marigold); }
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding-top: 1.5rem;
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
	font-size: .87rem; color: rgba(255, 255, 255, .6);
}
.footer-bottom a { color: rgba(255, 255, 255, .78); }

/* ---------- Tabs ---------- */
.tabs {
	display: flex; justify-content: center; gap: .5rem;
	margin-bottom: 2.4rem; flex-wrap: wrap;
}
.tab-btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .7rem 1.5rem; border-radius: 999px;
	border: 2px solid var(--line); background: var(--white);
	color: var(--ink); font-weight: 600; font-size: .98rem; cursor: pointer;
	transition: all .2s;
}
.tab-btn:hover { border-color: var(--marigold); }
.tab-btn.active {
	background: linear-gradient(135deg, var(--marigold), var(--saffron-dark));
	color: #fff; border-color: transparent;
	box-shadow: 0 8px 18px rgba(224, 115, 16, .3);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Pagination ---------- */
.pagination {
	display: flex; justify-content: center; align-items: center;
	gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.page-btn {
	min-width: 42px; height: 42px; padding: 0 .8rem;
	border-radius: 12px; border: 1px solid var(--line);
	background: var(--white); color: var(--ink);
	font-weight: 600; cursor: pointer; transition: all .2s;
}
.page-btn:hover:not(:disabled) { border-color: var(--marigold); color: var(--saffron-dark); }
.page-btn.active {
	background: linear-gradient(135deg, var(--marigold), var(--saffron-dark));
	color: #fff; border-color: transparent;
}
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Videos ---------- */
.video-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }
.video-card {
	background: var(--white); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .25s;
}
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.video-frame {
	position: relative; aspect-ratio: 16 / 9; background: #000;
	cursor: pointer; overflow: hidden;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .video-frame img { transform: scale(1.05); }
.video-frame .play {
	position: absolute; inset: 0; margin: auto;
	width: 68px; height: 68px; border-radius: 50%;
	background: rgba(224, 115, 16, .92); color: #fff;
	display: grid; place-items: center; font-size: 1.7rem;
	box-shadow: 0 6px 20px rgba(0,0,0,.4); transition: transform .2s, background .2s;
	padding-left: 4px;
}
.video-frame:hover .play { transform: scale(1.1); background: var(--saffron-dark); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .video-title { padding: 1rem 1.1rem; font-weight: 600; font-size: .98rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.2rem;
}
@media (max-width: 640px) {
	.gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
}
.gallery-item {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-sm);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	cursor: zoom-in;
	background: var(--cream-2);
	transition: transform .2s, box-shadow .25s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
	content: "🔍";
	position: absolute; inset: 0;
	display: grid; place-items: center;
	font-size: 1.6rem;
	background: linear-gradient(0deg, rgba(212,100,13,.55), rgba(50,122,55,.35));
	opacity: 0; transition: opacity .25s;
}
.gallery-item:hover::after { opacity: 1; }

.gallery-empty {
	text-align: center; color: var(--muted);
	border: 2px dashed var(--line); border-radius: var(--radius);
	padding: 3rem 1.5rem; background: var(--white);
}

/* Lightbox */
.lightbox {
	position: fixed; inset: 0; z-index: 100;
	background: rgba(30, 20, 8, .92);
	display: none; align-items: center; justify-content: center;
	padding: 4vh 2vw;
}
.lightbox.open { display: flex; }
.lightbox img {
	max-width: 92vw; max-height: 88vh;
	border-radius: var(--radius-sm);
	box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lb-btn {
	position: absolute;
	background: rgba(255,255,255,.14);
	color: #fff; border: none; cursor: pointer;
	width: 52px; height: 52px; border-radius: 50%;
	font-size: 1.6rem; display: grid; place-items: center;
	transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 18px; right: 18px; font-size: 1.4rem; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count {
	position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
	color: rgba(255,255,255,.85); font-size: .9rem;
	background: rgba(0,0,0,.35); padding: .3rem .9rem; border-radius: 999px;
}
@media (max-width: 560px) {
	.lb-prev { left: 8px; } .lb-next { right: 8px; }
	.lb-btn { width: 44px; height: 44px; }
}

/* ---------- Scroll to top ---------- */
.to-top {
	position: fixed; right: 20px; bottom: 20px;
	width: 48px; height: 48px; border-radius: 50%;
	background: linear-gradient(135deg, var(--marigold), var(--saffron-dark));
	color: #fff;
	display: grid; place-items: center;
	box-shadow: var(--shadow); opacity: 0; visibility: hidden;
	transition: opacity .3s, transform .2s; z-index: 40; font-size: 1.3rem;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { color: #fff; transform: translateY(-3px); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}
