/* =========================================================
   Kashi Sanskriti Charitable Trust — Main stylesheet
   Palette is fixed by brief — do not introduce other colors:
   Header #EA9B3F · Footer #432201 · Terracotta #C96526
   Deep brown #432201 · Saffron #EA9B3F · Sage #A0C3B3
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Poppins', sans-serif;
	color: var(--color-text);
	background: var(--color-white);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-terracotta); text-decoration: none; }
a:hover { color: var(--color-saffron); }

h1, h2, h3, h4 {
	font-family: 'Playfair Display', serif;
	color: var(--color-deep-brown);
	line-height: 1.2;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.text-center { text-align: center; }

.eyebrow {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .8rem;
	font-weight: 600;
	color: var(--color-terracotta);
	margin-bottom: .5em;
}
.section-lede { font-size: 1.1rem; max-width: 640px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--color-saffron); color: #fff; padding: 10px 16px; z-index: 999; border-radius: 6px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 3px solid var(--color-sage);
	outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .95rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-saffron); color: #fff; }
.btn-primary:hover { background: var(--color-terracotta); color: #fff; }
.btn-outline { background: transparent; border-color: var(--color-terracotta); color: var(--color-terracotta); }
.btn-outline:hover { background: var(--color-terracotta); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--color-deep-brown); color: var(--color-deep-brown); }
.btn-ghost:hover { background: var(--color-deep-brown); color: #fff; }
.btn-large { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
	background: var(--color-header);
	position: sticky; top: 0; z-index: 100;
	box-shadow: 0 2px 12px rgba(67, 34, 1, .15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 24px; }
.site-logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.site-logo img { width: 52px; height: 52px; border-radius: 50%; background: #fff; object-fit: cover; }
.site-title-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-title-text strong { font-family: 'Playfair Display', serif; font-size: 1.15rem; }
.site-title-text small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

.primary-menu { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.primary-menu li a {
	color: #fff; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem;
	display: inline-block; transition: background .15s ease;
}
.primary-menu li a:hover { background: rgba(255,255,255,.18); color: #fff; }
.primary-menu li.menu-donate a,
.primary-menu li:last-child a {
	background: var(--color-deep-brown); color: #fff;
}
.primary-menu li.menu-donate a:hover,
.primary-menu li:last-child a:hover { background: var(--color-terracotta); }

.mobile-menu-toggle { display: none; background: none; border: 0; width: 40px; height: 32px; padding: 0; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 100%; height: 3px; background: #fff; margin: 6px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; min-height: 560px; display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(67,34,1,.55), rgba(67,34,1,.85)); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 1; padding: 90px 24px; max-width: 800px; }
.hero-content .eyebrow { color: var(--color-sage); }
.hero-content h1 { color: #fff; }
.hero-tagline { font-size: 1.2rem; opacity: .95; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Story strip ---------- */
.story-strip { background: var(--color-cream); padding: 56px 0; }
.story-text { font-size: 1.05rem; max-width: 760px; margin: 0 auto 1em; }

/* ---------- Trust badges ---------- */
.trust-badges { padding: 40px 0; background: #fff; }
.badge-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.badge {
	display: flex; align-items: center; gap: 10px;
	background: var(--color-cream); border: 1px solid var(--color-sage);
	border-radius: 14px; padding: 14px 18px; color: var(--color-deep-brown);
	font-size: .85rem; max-width: 260px;
}
.badge:hover { border-color: var(--color-terracotta); }
.badge-check { color: var(--color-terracotta); font-weight: 700; font-size: 1.1rem; }
.badge small { color: var(--color-text); opacity: .75; font-weight: 400; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-cream { background: var(--color-cream); }
.section-dark { background: var(--color-deep-brown); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.9); }

/* ---------- Impact counters ---------- */
.counter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-top: 32px; }
.counter-item { text-align: center; background: #fff; border: 1px solid var(--color-sage); border-radius: 16px; padding: 28px 16px; }
.counter-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.counter-value { display: block; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800; color: var(--color-terracotta); }
.counter-label { display: block; font-size: .85rem; color: var(--color-text); opacity: .8; margin-top: 4px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.fund-card, .program-card {
	background: #fff; border: 1px solid var(--color-sage); border-radius: 18px; padding: 28px;
	display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s ease, transform .15s ease;
}
.fund-card:hover, .program-card:hover { box-shadow: 0 10px 30px rgba(67,34,1,.12); transform: translateY(-3px); color: inherit; }
.fund-icon { font-size: 2.2rem; }
.fund-price { color: var(--color-terracotta); font-weight: 600; margin-bottom: 4px; }
.fund-card .btn { margin-top: auto; align-self: flex-start; }
.program-card { text-decoration: none; color: var(--color-text); }
.link-arrow { color: var(--color-terracotta); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-category { margin-top: 32px; color: var(--color-terracotta); }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.faq-item { border: 1px solid var(--color-sage); border-radius: 12px; overflow: hidden; background: #fff; }
.faq-question {
	width: 100%; display: flex; align-items: center; justify-content: space-between;
	background: none; border: 0; padding: 18px 20px; text-align: left; cursor: pointer;
}
.faq-question h3 { margin: 0; font-size: 1rem; font-family: 'Poppins', sans-serif; font-weight: 600; }
.faq-icon { font-size: 1.3rem; color: var(--color-terracotta); transition: transform .2s ease; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 20px; }
.faq-item.is-open .faq-answer { max-height: 600px; padding-bottom: 18px; }

/* ---------- Impact panel / fund tables ---------- */
.fund-breakdown-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 16px; margin: 24px 0; }
.fund-breakdown-row > div { background: #fff; border-radius: 12px; padding: 20px; text-align: center; border: 1px solid var(--color-sage); }
.fb-label { display: block; font-size: .8rem; opacity: .7; }
.fb-value { display: block; font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--color-terracotta); font-weight: 700; }
.fund-table-wrap { overflow-x: auto; }
.fund-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.fund-table th, .fund-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-sage); }
.fund-table th { background: var(--color-cream); }
.case-study { border-left: 4px solid var(--color-terracotta); padding-left: 20px; font-style: italic; color: var(--color-deep-brown); }
.small-note { font-size: .85rem; opacity: .75; }
.numbered-steps { padding-left: 20px; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.check-list li::before { content: '✔'; position: absolute; left: 0; color: var(--color-terracotta); }
.download-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Forms ---------- */
.kst-form { display: flex; flex-direction: column; gap: 16px; }
.kst-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .9rem; }
.kst-form input, .kst-form select, .kst-form textarea {
	padding: 12px 14px; border: 1px solid var(--color-sage); border-radius: 10px; font-family: inherit; font-size: 1rem;
}
.kst-form input:focus, .kst-form select:focus, .kst-form textarea:focus { border-color: var(--color-terracotta); }
.map-embed { margin-top: 20px; border-radius: 14px; overflow: hidden; }
.contact-details { list-style: none; padding: 0; }
.contact-details li { margin-bottom: 12px; }

.donate-form h2 { margin-top: 28px; font-size: 1.2rem; }
.fund-select-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 10px; }
.fund-select-option {
	border: 2px solid var(--color-sage); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-size: .9rem; font-weight: 500;
	display: flex; align-items: center; gap: 8px;
}
.fund-select-option input { width: auto; }
.fund-select-option.is-selected, .fund-select-option:has(input:checked) { border-color: var(--color-terracotta); background: var(--color-cream); }
.amount-tiers { display: flex; flex-direction: column; gap: 12px; }
.tier-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 10px; }
.tier-btn {
	background: #fff; border: 2px solid var(--color-sage); border-radius: 12px; padding: 12px; cursor: pointer;
	font-weight: 700; color: var(--color-deep-brown); text-align: center; font-size: 1rem;
}
.tier-btn small { display: block; font-weight: 400; font-size: .72rem; opacity: .75; margin-top: 4px; }
.tier-btn.is-active, .tier-btn:hover { border-color: var(--color-terracotta); background: var(--color-cream); }
.custom-amount { max-width: 260px; margin-top: 6px; }
.frequency-toggle { display: flex; gap: 20px; flex-wrap: wrap; }
.frequency-toggle label { flex-direction: row; align-items: center; }
.frequency-toggle input { width: auto; }
.checkbox-label { flex-direction: row !important; align-items: center; gap: 10px !important; }
.checkbox-label input { width: auto; }
.reassurance-copy { background: var(--color-cream); border-radius: 14px; padding: 20px; margin-top: 24px; font-size: .85rem; }
.reassurance-copy p { margin: 6px 0; }
.form-status { min-height: 1.4em; font-weight: 600; }
.form-status.success { color: #2f6b3a; }
.form-status.error { color: #a33; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-footer); color: rgba(255,255,255,.85); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding: 64px 24px 40px; }
.footer-brand img { border-radius: 50%; background: #fff; margin-bottom: 12px; }
.footer-org-name { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.1rem; }
.footer-tagline { font-size: .85rem; opacity: .85; }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.social-icon {
	width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.12);
	display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .8rem;
}
.social-icon:hover { background: var(--color-saffron); color: #fff; }
.footer-heading { color: var(--color-sage); font-family: 'Poppins', sans-serif; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col ul, .footer-contact ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: .88rem; }
.footer-col a, .footer-contact a { color: rgba(255,255,255,.85); }
.footer-col a:hover, .footer-contact a:hover { color: var(--color-saffron); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 20px 24px; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; }
.footer-bottom a { color: var(--color-sage); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.two-col { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
	.primary-nav {
		position: fixed; top: 76px; left: 0; right: 0; background: var(--color-header);
		transform: translateY(-120%); transition: transform .2s ease; z-index: 90; padding: 12px 0;
	}
	.primary-nav.is-open { transform: translateY(0); }
	.primary-menu { flex-direction: column; padding: 0 24px; gap: 4px; }
	.mobile-menu-toggle { display: block; }
	.footer-grid { grid-template-columns: 1fr; padding: 48px 24px 32px; }
}
