/* LGF Theme - site styles */

/* Top bar */
.lgf-topbar {
	background: var(--wp--preset--color--navy);
	color: #fff;
	font-size: 0.85rem;
}
.lgf-topbar a,
.lgf-topbar span {
	color: #fff;
	text-decoration: none;
}
.lgf-topbar .wp-block-social-links a {
	color: #fff;
}

/* Main nav */
.lgf-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	transition: box-shadow 0.2s ease;
}
.lgf-nav.is-stuck {
	box-shadow: 0 4px 16px rgba(14, 58, 102, 0.12);
}
.lgf-nav .wp-block-navigation {
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
}
.lgf-nav .wp-block-navigation a {
	color: var(--wp--preset--color--ink);
}
.lgf-nav .wp-block-navigation a:hover {
	color: var(--wp--preset--color--heart-red);
}

/* Hero pill image masks (single portrait use, e.g. Our Story) */
.lgf-pill-image {
	border-radius: 999px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
}
.lgf-pill-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.lgf-pill-image.is-border-white {
	border: 8px solid #fff;
}
.lgf-pill-image.is-border-gold {
	border: 6px solid var(--wp--preset--color--crown-gold);
}

/* Hero overlapping image composition */
.lgf-hero-image-wrap {
	position: relative;
	width: 100%;
	max-width: 400px;
	aspect-ratio: 1 / 1.05;
	margin: 0 auto;
}
.lgf-hero-main-image {
	position: absolute;
	top: 0;
	right: 0;
	width: 82%;
	height: 80%;
	margin: 0;
	border-radius: 28px;
	overflow: hidden;
	border: 6px solid #fff;
	box-shadow: 0 24px 48px rgba(14, 58, 102, 0.3);
	z-index: 1;
}
.lgf-hero-main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.lgf-hero-accent-image {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 54%;
	aspect-ratio: 1 / 1;
	margin: 0;
	border-radius: 50%;
	overflow: hidden;
	border: 6px solid var(--wp--preset--color--crown-gold);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
	background: #fff;
	z-index: 2;
}
.lgf-hero-accent-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
@media (max-width: 600px) {
	.lgf-hero-image-wrap {
		max-width: 300px;
	}
}

/* Cards */
.lgf-card {
	background: #fff;
	border-radius: 16px;
	padding: 2rem 1.5rem;
	box-shadow: 0 2px 12px rgba(14, 58, 102, 0.08);
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lgf-card-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--wp--preset--color--pale-sky);
	margin-bottom: 1.25rem;
	flex-shrink: 0;
}
.lgf-card p:last-child {
	margin-top: auto;
}

/* Cards: lift on hover everywhere a .lgf-card is used */
.lgf-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(14, 58, 102, 0.16);
}
@media (prefers-reduced-motion: reduce) {
	.lgf-card:hover {
		transform: none;
	}
}

/* Generic page hero band (inner pages) */
.lgf-page-hero {
	text-align: center;
}
.lgf-page-hero .wp-block-group {
	max-width: 760px;
	margin: 0 auto;
}

/* Team cards */
.lgf-team-avatar {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	margin: 0 auto 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--pale-sky);
	color: var(--wp--preset--color--navy-2);
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 1.6rem;
	overflow: hidden;
	flex-shrink: 0;
}
.lgf-team-avatar.is-placeholder {
	background: #e7edf3;
	border: 2px dashed #b9c7d4;
	color: var(--wp--preset--color--slate);
}
.lgf-team-card {
	text-align: center;
}
.lgf-team-card h3 {
	margin-bottom: 0.1rem;
}
.lgf-team-card .lgf-team-role {
	color: var(--wp--preset--color--heart-red);
	font-weight: 600;
	font-size: 0.9rem;
	margin-top: 0;
}

/* Generic responsive card rows */
.lgf-grid-row-3,
.lgf-program-row {
	flex-wrap: wrap;
	row-gap: 24px;
}
.lgf-grid-row-3 > .wp-block-column,
.lgf-program-row > .wp-block-column {
	flex: 0 0 100% !important;
	max-width: 100% !important;
}
@media (min-width: 600px) {
	.lgf-grid-row-3 > .wp-block-column,
	.lgf-program-row > .wp-block-column {
		flex: 0 0 47% !important;
		max-width: 47% !important;
	}
}
@media (min-width: 900px) {
	.lgf-grid-row-3 > .wp-block-column,
	.lgf-program-row > .wp-block-column {
		flex: 0 0 31% !important;
		max-width: 31% !important;
	}
}

.lgf-grid-row-4 {
	flex-wrap: wrap;
	row-gap: 24px;
}
.lgf-grid-row-4 > .wp-block-column {
	flex: 0 0 100% !important;
	max-width: 100% !important;
}
@media (min-width: 600px) {
	.lgf-grid-row-4 > .wp-block-column {
		flex: 0 0 47% !important;
		max-width: 47% !important;
	}
}
@media (min-width: 900px) {
	.lgf-grid-row-4 > .wp-block-column {
		flex: 0 0 22% !important;
		max-width: 22% !important;
	}
}

/* "See all" style link */
.lgf-see-all {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
	color: var(--wp--preset--color--navy-2);
	border: 2px solid var(--wp--preset--color--navy-2);
	border-radius: 999px;
	padding: 0.6rem 1.4rem;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.lgf-see-all:hover {
	background: var(--wp--preset--color--navy-2);
	color: #fff;
}

/* Stat counters */
.lgf-stat-number {
	font-family: 'Outfit', sans-serif;
	font-weight: 800;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	color: var(--wp--preset--color--crown-gold);
}

/* Location / category pill badge */
.lgf-badge {
	display: inline-block;
	border: 1px solid var(--wp--preset--color--crown-gold);
	color: var(--wp--preset--color--navy);
	border-radius: 999px;
	padding: 0.35rem 1rem;
	font-size: 0.85rem;
	font-weight: 600;
}

/* Event rows */
.lgf-event-row {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--pale-sky);
	padding: 1rem 0;
}
.lgf-event-date-badge {
	background: var(--wp--preset--color--navy);
	color: #fff;
	border-radius: 12px;
	padding: 0.6rem 0.9rem;
	text-align: center;
	font-family: 'Outfit', sans-serif;
	min-width: 72px;
}

/* Donate / CTA band */
.lgf-cta-band {
	background: linear-gradient(135deg, var(--wp--preset--color--navy) 0%, var(--wp--preset--color--navy-2) 100%);
	color: #fff;
	border-radius: 16px;
}
.lgf-cta-band h2,
.lgf-cta-band p {
	color: #fff;
}

/* Footer */
.lgf-footer {
	background: var(--wp--preset--color--ink);
	color: #cdd6e0;
}
.lgf-footer a {
	color: #cdd6e0;
	text-decoration: none;
}
.lgf-footer a:hover {
	color: var(--wp--preset--color--sky-blue);
}
.lgf-footer h3 {
	color: #fff;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.lgf-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.85rem;
	color: #8a97a6;
}

/* Jump-to-program bar (Programs page) - inline, not sticky, to avoid double-sticky overlap with nav */
.lgf-jumpbar {
	background: var(--wp--preset--color--pale-sky);
	border-radius: 999px;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	padding: 1rem 1.5rem;
}
.lgf-jumpbar a {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--wp--preset--color--navy-2);
	text-decoration: none;
}
.lgf-jumpbar a:hover {
	color: var(--wp--preset--color--heart-red);
}

/* Anchor offset so headings don't hide under the sticky nav */
.lgf-program-section {
	scroll-margin-top: 110px;
}

/* Location badge image overlay wrapper */
.lgf-program-image {
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}
.lgf-program-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Icon + text row (e.g. "what your donation can do") */
.lgf-icon-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 14px;
}
.lgf-icon-row svg {
	flex-shrink: 0;
	margin-top: 3px;
}

/* Quick action cards (Get Involved) */
.lgf-quick-action {
	text-align: center;
}
.lgf-quick-action a {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* Share / social row */
.lgf-share-row {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}
.lgf-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
	font-size: 0.9rem;
	color: #fff;
	background: var(--wp--preset--color--navy-2);
	border-radius: 999px;
	padding: 0.6rem 1.2rem;
	text-decoration: none;
	border: none;
	cursor: pointer;
}
.lgf-share-btn:hover {
	background: var(--wp--preset--color--navy);
	color: #fff;
}
.lgf-share-btn.is-copied {
	background: var(--wp--preset--color--heart-red);
}

/* Placeholder image box */
.lgf-placeholder-box {
	background: #e7edf3;
	border: 2px dashed #b9c7d4;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--slate);
	font-size: 0.9rem;
	min-height: 220px;
	text-align: center;
	padding: 1rem;
}

/* Top bar: address + email always centered, on its own line, both mobile and desktop */
.lgf-topbar {
	flex-wrap: wrap;
	row-gap: 4px;
}
.lgf-topbar p {
	flex: 1 1 100%;
	text-align: center;
}
@media (max-width: 600px) {
	.lgf-topbar {
		padding-left: 14px !important;
		padding-right: 14px !important;
		justify-content: center;
	}
	.lgf-topbar p {
		font-size: 12px;
	}
}

/* Main nav row: responsive - Donate hidden on mobile, hamburger sits on the right */
.lgf-nav {
	flex-wrap: wrap;
	row-gap: 8px;
}
@media (max-width: 600px) {
	.lgf-nav {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
	.lgf-nav .wp-block-site-logo {
		width: 48px !important;
	}
	.lgf-nav .wp-block-site-logo img {
		width: 48px !important;
		height: auto !important;
	}
	.lgf-nav .lgf-donate-btn {
		display: none;
	}
}

/* Mobile nav toggle buttons (hamburger / close) */
.lgf-nav .wp-block-navigation__responsive-container-open,
.lgf-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--ink);
}

/* Mobile nav overlay: on-brand full-screen menu */
.lgf-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--navy);
}
.lgf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: #fff;
}
.lgf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a,
.lgf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: #fff;
	font-size: 1.3rem;
	font-weight: 600;
}
.lgf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover {
	color: var(--wp--preset--color--crown-gold);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.lgf-nav {
		transition: none;
	}
}

/* Our Story: full-bleed background photo with overlay text + CTA */
.lgf-story-bg-section {
	position: relative;
	min-height: 520px;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.lgf-story-bg-image {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
}
.lgf-story-bg-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	display: block;
}
.lgf-story-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(100deg, rgba(14, 58, 102, 0.94) 0%, rgba(14, 58, 102, 0.82) 40%, rgba(14, 58, 102, 0.25) 100%);
}
.lgf-story-content {
	position: relative;
	z-index: 2;
	max-width: 620px;
	padding: 64px 48px;
	color: #fff;
}
.lgf-story-content h2,
.lgf-story-content p {
	color: #fff;
}
.lgf-story-content p {
	line-height: 1.45;
	margin-bottom: 0.75rem;
}
.lgf-story-content .wp-block-quote {
	border-left: 3px solid var(--wp--preset--color--crown-gold);
	padding-left: 1rem;
	margin: 0.75rem 0;
}
.lgf-story-content .wp-block-quote p {
	line-height: 1.35;
	margin-bottom: 0.4rem;
}
.lgf-story-content .wp-block-quote cite {
	color: var(--wp--preset--color--crown-gold);
}
@media (max-width: 781px) {
	.lgf-story-overlay {
		background: linear-gradient(180deg, rgba(14, 58, 102, 0.55) 0%, rgba(14, 58, 102, 0.9) 55%, rgba(14, 58, 102, 0.96) 100%);
	}
	.lgf-story-bg-section {
		min-height: 460px;
		align-items: flex-end;
	}
	.lgf-story-content {
		max-width: 100%;
		padding: 32px 24px;
	}
}
/* Upcoming events: boxed cards in a responsive row */
.lgf-event-card {
	text-align: center;
	align-items: center;
}
.lgf-event-card .lgf-event-date-badge {
	margin: 0 auto 12px;
}
/* Mobile header: logo and nav/hamburger split the row 50/50 */
@media (max-width: 600px) {
	.lgf-nav > .wp-block-site-logo {
		flex: 0 0 50%;
		max-width: 50%;
	}
	.lgf-nav > .wp-block-navigation {
		flex: 0 0 50%;
		max-width: 50%;
		display: flex;
		justify-content: flex-end;
	}
}
/* Impact snapshot: colored stat cards */
.lgf-card.lgf-stat-navy {
	background: var(--wp--preset--color--navy);
}
.lgf-card.lgf-stat-navy-2 {
	background: var(--wp--preset--color--navy-2);
}
.lgf-card.lgf-stat-red {
	background: var(--wp--preset--color--heart-red);
}
.lgf-card.lgf-stat-gold {
	background: var(--wp--preset--color--crown-gold);
}
.lgf-card.lgf-stat-navy p,
.lgf-card.lgf-stat-navy-2 p,
.lgf-card.lgf-stat-red p {
	color: #fff;
}
.lgf-card.lgf-stat-navy .lgf-stat-number,
.lgf-card.lgf-stat-navy-2 .lgf-stat-number,
.lgf-card.lgf-stat-red .lgf-stat-number {
	color: var(--wp--preset--color--crown-gold);
}
.lgf-card.lgf-stat-gold p {
	color: var(--wp--preset--color--navy);
}
.lgf-card.lgf-stat-gold .lgf-stat-number {
	color: var(--wp--preset--color--ink);
}
/* Program cards: top image + colored text body */
.lgf-program-card {
	padding: 0 !important;
	overflow: hidden;
}
.lgf-program-card-image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.lgf-program-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.lgf-program-card-body {
	padding: 1.5rem 1.25rem;
	flex: 1;
}
.lgf-program-card-body h3 {
	margin-top: 0;
}
.lgf-program-card-body p {
	margin-bottom: 0;
}
.lgf-program-card.lgf-tint-red .lgf-program-card-body {
	background: rgba(176, 42, 48, 0.12);
}
.lgf-program-card.lgf-tint-gold .lgf-program-card-body {
	background: rgba(217, 169, 59, 0.18);
}
.lgf-program-card.lgf-tint-navy-2 .lgf-program-card-body {
	background: rgba(20, 81, 143, 0.12);
}
.lgf-program-card.lgf-tint-navy .lgf-program-card-body {
	background: rgba(14, 58, 102, 0.1);
}
/* Soft tinted card backgrounds (non-white), reusable anywhere */
.lgf-card.lgf-tint-bg-navy2 {
	background: rgba(20, 81, 143, 0.08);
}
.lgf-card.lgf-tint-bg-gold {
	background: rgba(217, 169, 59, 0.14);
}

/* Image-background card with color overlay + white text on top */
.lgf-card.lgf-image-card {
	position: relative;
	overflow: hidden;
	min-height: 280px;
	padding: 0 !important;
	justify-content: flex-end;
}
.lgf-image-card-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.lgf-image-card-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.lgf-image-card-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(14, 58, 102, 0.85);
}
.lgf-image-card-content {
	position: relative;
	z-index: 2;
	padding: 2rem 1.5rem;
}
.lgf-image-card-content h3,
.lgf-image-card-content p {
	color: #fff;
}
/* Site-wide scroll-reveal: applied automatically by JS to every top-level page section */
.lgf-reveal {
	opacity: 0;
	transform: translateY(56px) scale(0.96);
	transition: opacity 0.75s cubic-bezier(0.22, 0.68, 0, 1.01), transform 0.75s cubic-bezier(0.22, 0.68, 0, 1.01);
	will-change: opacity, transform;
}
.lgf-reveal.lgf-in-view {
	opacity: 1;
	transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
	.lgf-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}