/* =========================================================
   JEEVA FOUNDATION — CAMPAIGN LANDING PAGE
   Scoped to .jf-landing-page so it does not disturb other pages.
   ========================================================= */

.jf-landing-page {
	--landing-bg: #fffaf2;
	--landing-card: #ffffff;
	--landing-border: #e5e9ee;
	--landing-text: #111820;
	--landing-muted: #627184;
	--landing-orange: #ffa500;
	--landing-orange-dark: #e28c00;
	--landing-blue: #1599e8;
	background: var(--landing-bg);
	color: var(--landing-text);
	padding: 28px 0 70px;
}

.jf-landing-container {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.jf-landing-page *,
.jf-landing-page *::before,
.jf-landing-page *::after { box-sizing: border-box; }

.jf-landing-page img { max-width: 100%; }

.jf-landing-kicker {
	display: inline-block;
	background: #2f68cf;
	color: #fff;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: .02em;
	padding: 3px 6px;
	text-transform: uppercase;
}

.jf-landing-page h1,
.jf-landing-page h2,
.jf-landing-page h3,
.jf-landing-page p { margin-top: 0; }

/* ---------- Video ---------- */
.jf-landing-mobile-video { display: none; }

.jf-landing-video-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
	border-radius: 16px;
	box-shadow: 0 14px 38px rgba(0,0,0,.12);
}

.jf-landing-video-frame iframe,
.jf-landing-video-frame video,
.jf-landing-video-frame > div {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Hero ---------- */
.jf-landing-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.48fr) minmax(370px, .82fr);
	gap: 34px;
	align-items: start;
}

.jf-landing-slider-col { min-width: 0; }

.jf-landing-slider {
	width: 100%;
	height: 535px;
	overflow: hidden;
	border-radius: 18px;
	background: #edf0f2;
	box-shadow: 0 14px 40px rgba(0,0,0,.10);
}

.jf-landing-slider .swiper-wrapper,
.jf-landing-slider .swiper-slide { height: 100%; }

.jf-landing-slider .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jf-landing-placeholder {
	display: flex !important;
	align-items: center;
	justify-content: center;
	color: #7b8790;
	font-size: 15px;
}

.jf-landing-slider .swiper-button-prev,
.jf-landing-slider .swiper-button-next {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 5px 18px rgba(0,0,0,.16);
}

.jf-landing-slider .swiper-button-prev::after,
.jf-landing-slider .swiper-button-next::after {
	font-size: 15px;
	font-weight: 900;
	color: #111;
}

.jf-landing-slider .swiper-pagination { bottom: 14px; }
.jf-landing-slider .swiper-pagination-bullet { background: #fff; opacity: .65; }
.jf-landing-slider .swiper-pagination-bullet-active { background: var(--marigold); opacity: 1; }

/* ---------- Donation card ---------- */
.jf-donation-card {
	background: var(--landing-card);
	border: 1px solid var(--landing-border);
	border-radius: 16px;
	padding: 22px;
	box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

.jf-donation-head h1 {
	font-size: 27px;
	line-height: 1.2;
	font-weight: 800;
	margin: 11px 0 8px;
	color: #15191e;
}

.jf-donation-price {
	display: flex;
	align-items: baseline;
	gap: 5px;
	margin-bottom: 18px;
	color: #ff6500;
}

.jf-donation-price strong { font-size: 19px; }
.jf-donation-price span { font-size: 13px; font-weight: 600; }

.jf-quick-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.jf-quick-grid label { display: block; min-width: 0; }

.jf-quick-grid label > span,
.jf-food-count .jf-quick-label > span {
	display: block;
	margin: 0 0 5px 2px;
	font-size: 11px;
	font-weight: 700;
	color: #687c90;
}

.jf-quick-grid label em { color: #ef3030; font-style: normal; }

.jf-quick-grid input {
	width: 100%;
	height: 42px;
	border: 1px solid #d7e0e8;
	border-radius: 8px;
	background: #fff;
	padding: 0 11px;
	font: inherit;
	font-size: 13px;
	color: #18212a;
	outline: none;
}

.jf-quick-grid input:focus {
	border-color: var(--landing-blue);
	box-shadow: 0 0 0 3px rgba(21,153,232,.10);
}

.jf-food-count {
	margin-top: 10px;
	padding: 10px;
	border: 1px solid #d7e0e8;
	border-radius: 8px;
}

.jf-quick-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.jf-quick-label b { font-size: 13px; }

.jf-food-options {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
}

.jf-food-options button,
.jf-custom-count {
	min-height: 34px;
	border: 1px solid #d7e0e8;
	border-radius: 7px;
	background: #f8fafc;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	color: #3e5060;
	cursor: pointer;
}

.jf-food-options button:hover { border-color: var(--landing-blue); }

.jf-custom-count {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 8px;
	background: #fff;
}

.jf-custom-count input {
	width: 55px;
	height: 30px;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 12px;
}

.jf-custom-count span { white-space: nowrap; }

.jf-photo-check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding: 8px;
	border: 1px solid #d7e0e8;
	border-radius: 8px;
	font-size: 11px;
	color: #586b7c;
}

.jf-photo-check input { max-width: 105px; font-size: 10px; }
.jf-photo-check span { flex: 1; }
.jf-photo-check small { color: #8a98a5; }
.jf-photo-check strong { color: #0b82d5; font-size: 10px; white-space: nowrap; }

.jf-quick-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 13px;
	padding-top: 13px;
	border-top: 1px dashed #d7e0e8;
	font-size: 12px;
	color: #66717d;
}

.jf-quick-total b { font-size: 20px; color: #17212b; }

.jf-quick-submit {
	width: 100%;
	height: 45px;
	margin-top: 11px;
	border: 0;
	border-radius: 9px;
	background: linear-gradient(120deg, var(--landing-orange), var(--landing-orange-dark));
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.jf-quick-submit:hover { filter: brightness(.97); }
.jf-quick-note { margin: 8px 0 0; text-align: center; font-size: 10px; color: #8a98a5; }

/* ---------- Mission ---------- */
.jf-landing-mission {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	padding: 68px 0 48px;
}

.jf-mission-copy h2 {
	font-size: 28px;
	line-height: 1.25;
	font-weight: 800;
	margin: 11px 0 14px;
	color: #111;
}

.jf-mission-content {
	font-size: 15px;
	line-height: 1.85;
	color: #53677a;
}

.jf-mission-content p:last-child { margin-bottom: 0; }
.jf-mission-heart { margin-top: 8px; font-size: 22px; color: #ef3030; }

/* ---------- What is given ---------- */
.jf-landing-what-given { margin-bottom: 36px; }

.jf-what-given-card {
	display: grid;
	grid-template-columns: 1fr 190px;
	min-height: 170px;
	align-items: center;
	gap: 24px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e7e7e7;
	border-radius: 14px;
	box-shadow: 0 6px 20px rgba(0,0,0,.05);
}

.jf-what-given-card h2 {
	font-size: 21px;
	font-weight: 800;
	margin: 9px 0 8px;
}

.jf-what-given-card p {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	color: #657482;
}

.jf-what-given-card img {
	width: 190px;
	height: 145px;
	object-fit: cover;
	border-radius: 10px;
}

/* ---------- Trust ---------- */
.jf-landing-trust { margin-bottom: 52px; }

.jf-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.jf-trust-grid > div {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 76px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #e5e8eb;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0,0,0,.04);
}

.jf-trust-grid i { width: 26px; text-align: center; color: #111; font-size: 20px; }
.jf-trust-grid span { display: block; }
.jf-trust-grid strong { display: block; font-size: 13px; color: #111; }
.jf-trust-grid small { display: block; margin-top: 2px; font-size: 10px; color: #7b8790; }

/* ---------- Gallery / related ---------- */
.jf-landing-gallery,
.jf-landing-related { margin-bottom: 54px; }

.jf-landing-section-head { margin-bottom: 18px; }
.jf-landing-section-head h2 { margin: 10px 0 0; font-size: 28px; font-weight: 800; color: #111; }

.jf-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 13px;
}

.jf-gallery-item {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: #eee;
}

.jf-gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

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

.jf-related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.jf-related-card-wrap { min-width: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.jf-landing-page { padding: 14px 0 35px; }
	.jf-landing-container { width: min(100% - 24px, 600px); }

	/* Required mobile order: video -> carousel -> mission -> donation -> what given -> trust -> gallery -> related. */
	.jf-landing-mobile-video {
		display: block;
		margin-bottom: 18px;
	}
	.jf-landing-mobile-video h2 { margin: 8px 0 10px; font-size: 20px; font-weight: 800; }
	.jf-landing-mobile-video .jf-landing-video-frame { border-radius: 12px; }

	.jf-landing-hero {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.jf-landing-slider-col { order: 1; width: 100%; }
	.jf-landing-donation-col { order: 2; width: 100%; margin-top: 18px; }
	.jf-landing-slider { height: 285px; border-radius: 12px; }
	.jf-landing-slider .swiper-button-prev,
	.jf-landing-slider .swiper-button-next { display: none; }

	/* Mission is moved visually before donation. */
	.jf-landing-mission {
		display: flex;
		flex-direction: column;
		gap: 18px;
		padding: 32px 0 18px;
	}

	/* We cannot reorder a sibling outside hero with flex, so on mobile the donation is visually moved
	   below mission by using a parent grid in the page wrapper. */
	.jf-landing-page .jf-landing-container {
		display: flex;
		flex-direction: column;
	}

	.jf-landing-mobile-video { order: 1; }
	.jf-landing-hero { order: 2; }
	.jf-landing-mission { order: 3; }
	.jf-landing-what-given { order: 4; }
	.jf-landing-trust { order: 5; }
	.jf-landing-gallery { order: 6; }
	.jf-landing-related { order: 7; }

	/* Pull donation out of hero visually by making hero contents display in a way that keeps
	   carousel first, then mission, then donation. */
	.jf-landing-donation-col { order: 3; }
	.jf-landing-mission { order: 2; }
	.jf-landing-slider-col { order: 1; }
	.jf-landing-donation-col { order: 3; }

	.jf-landing-hero { display: contents; }
	.jf-landing-slider-col { order: 2; }
	.jf-landing-mission { order: 3; }
	.jf-landing-donation-col { order: 4; margin-top: 0; }
	.jf-landing-what-given { order: 5; }
	.jf-landing-trust { order: 6; }
	.jf-landing-gallery { order: 7; }
	.jf-landing-related { order: 8; }

	.jf-landing-mission { padding-top: 30px; }
	.jf-mission-copy h2 { font-size: 23px; }
	.jf-mission-content { font-size: 14px; line-height: 1.75; }
	.jf-mission-video { display: none; }

	.jf-donation-card { padding: 16px; border-radius: 13px; box-shadow: 0 8px 25px rgba(0,0,0,.07); }
	.jf-donation-head h1 { font-size: 22px; }
	.jf-quick-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.jf-quick-grid input { height: 40px; font-size: 12px; }
	.jf-photo-check { flex-wrap: wrap; }
	.jf-photo-check input { max-width: 100%; }

	.jf-what-given-card { grid-template-columns: 1fr; gap: 15px; padding: 15px; }
	.jf-what-given-card img { width: 100%; height: 190px; order: -1; }
	.jf-what-given-card h2 { font-size: 19px; }

	.jf-trust-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.jf-trust-grid > div { min-height: 70px; padding: 9px; gap: 8px; }
	.jf-trust-grid strong { font-size: 11px; }
	.jf-trust-grid small { font-size: 8px; }
	.jf-trust-grid i { width: 22px; font-size: 17px; }

	.jf-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.jf-landing-section-head h2 { font-size: 22px; }
	.jf-related-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.jf-landing-gallery, .jf-landing-related { margin-bottom: 30px; }
}

@media (min-width: 768px) and (max-width: 991px) {
	.jf-landing-container { width: min(100% - 32px, 900px); }
	.jf-landing-hero { grid-template-columns: 1fr; }
	.jf-landing-slider { height: 460px; }
	.jf-related-grid { grid-template-columns: repeat(2, 1fr); }
	.jf-trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
	.jf-quick-grid { grid-template-columns: 1fr; }
	.jf-landing-slider { height: 250px; }
	.jf-related-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Landing donation add-on + anonymous options ---------- */
.jf-landing-addons{margin-top:14px;padding-top:14px;border-top:1px dashed #dfe5ea}
.jf-landing-addon-title{font-size:12px;font-weight:800;color:#687c90;text-transform:uppercase;letter-spacing:.04em;margin:0 0 7px 2px}
.jf-landing-addon{display:flex!important;align-items:center;gap:10px;width:100%;min-height:46px;padding:10px 12px;border:1px solid #d7e0e8;border-radius:10px;background:#fff;cursor:pointer}
.jf-landing-addon input{position:absolute!important;}
.jf-landing-addon span {
    font-size: 11px;
    font-weight: 700;
    color: #1a222b;
    flex: 1;
    margin-left: 30px;
}
.jf-landing-addon strong{font-size:13px;color:#f36b00;white-space:nowrap}
.jf-landing-addon:has(input:checked){border-color:#ffa500;background:#fff8ea;box-shadow:0 0 0 2px rgba(255,165,0,.12)}
.jf-landing-anonymous{display:flex!important;align-items:flex-start;gap:11px;margin:12px 0 0;padding:12px;border:1px solid #d7e0e8;border-radius:10px;background:#fff;cursor:pointer}
.jf-landing-anonymous input{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}
.jf-landing-anonymous-box{width:22px;height:22px;min-width:22px;border:2px solid #c7d0d8;border-radius:6px;position:relative;margin-top:1px}
.jf-landing-anonymous-box:after{content:'✓';position:absolute;left:3px;top:-3px;font-size:17px;font-weight:900;color:#fff;opacity:0}
.jf-landing-anonymous input:checked + .jf-landing-anonymous-box{background:#ffa500;border-color:#ffa500}
.jf-landing-anonymous input:checked + .jf-landing-anonymous-box:after{opacity:1}
.jf-landing-anonymous > span:last-child{display:block;min-width:0}
.jf-landing-anonymous strong{display:inline;font-size:13px;color:#1a222b}
.jf-landing-anonymous small{font-size:11px;color:#6f7c87}
.jf-landing-anonymous em{display:block;font-style:normal;font-size:10px;line-height:1.35;color:#87939d;margin-top:3px}
@media (max-width:600px){
 .jf-landing-addon{padding:9px 10px}
 .jf-landing-anonymous{padding:10px}
}
