/* ==========================================================================
   THE BELIZE PROJECT — GLOBAL STYLESHEET
   Contains Header, Footer, Contact Modal, Homepage, Gallery, & Ministries
   ========================================================================== */

/* ---------- VARIABLES & BASE ---------- */
:root {
	--ink: #1a1a1a;
	--charcoal: #3d3d3d;
	--gold: #c7973f;
	--gold-premium: #d4af37;
	--white: #ffffff;
	--offwhite: #f4f4f4;
	--error: #b03a2e;
	--dark-bg: #111111;
	--sidebar-bg: #2b241c;
	--glass-blur: blur(12px);
	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Work Sans', 'Open Sans', sans-serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
}

body {
	background-color: var(--white);
	color: var(--charcoal);
	font-family: var(--font-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

/* ---------- HEADER / NAV ---------- */
header {
	background-color: var(--white);
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 2px solid var(--gold);
	box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.navegacion {
	max-width: 1400px;
	margin: 0 auto;
	padding: 15px 40px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}
.nav-spacer { display: flex; }
.nav-logo { display: flex; justify-content: center; }
.nav-logo img {
	height: 60px;
	width: auto;
	display: block;
	transition: transform 0.3s ease;
}
.nav-logo img:hover { transform: scale(1.03); }
.nav-menu {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	list-style: none;
	gap: 28px;
	padding-left: 190px; /* keeps nav links roughly two inches clear of the logo on desktop */
}
.nav-menu li a {
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	padding: 8px 0;
	position: relative;
	transition: color 0.3s ease;
}
.nav-menu li a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 2px;
	background: var(--gold);
	transform: scaleX(1); /* permanent underline, always visible */
	transform-origin: left;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-menu li a:hover { color: var(--gold); }

.drop-cap::first-letter {
	font-family: var(--font-display);
	color: var(--gold);
	font-size: 3.5rem;
	float: left;
	line-height: 0.8;
	padding-right: 10px;
	padding-top: 4px;
}

/* ---------- FOOTER ---------- */
footer {
	background-color: var(--ink);
	color: var(--white);
	text-align: center;
	padding: 50px 24px 40px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	position: relative;
}

.footer-contact {
	max-width: 700px;
	margin: 0 auto 30px;
	padding-bottom: 25px;
	border-bottom: 1px solid rgba(255,255,255,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
}
.footer-contact-divider {
	width: 1px;
	height: 22px;
	background: rgba(199, 151, 63, 0.4);
}
.footer-contact-trigger {
	background: none;
	border: none;
	padding: 0;
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--gold);
	cursor: pointer;
	position: relative;
}
.footer-contact-trigger:hover { color: var(--white); }

.foot { margin-bottom: 15px; }
.foot img { height: 75px; width: auto; opacity: 0.95; }

.footer-social {
	position: absolute;
	right: 40px;
	bottom: 30px;
}
.footer-social a {
	display: inline-block;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
.footer-social a:hover {
	transform: translateY(-3px);
}
.footer-social img {
	height: 240px;
	width: 264px;
	opacity: 0.9;
	filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
	transition: opacity 0.3s ease, filter 0.3s ease;
}
.footer-social a:hover img {
	opacity: 1;
	filter: drop-shadow(0 12px 28px rgba(0,0,0,0.65));
}

.footer-text { opacity: 0.7; line-height: 1.8; }
.footer-credit {
	margin-top: 10px;
	font-size: 12px;
	text-transform: none;
	letter-spacing: normal;
	opacity: 0.7;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.footer-credit img {
	height: 18px;
	width: auto;
	opacity: 0.85;
}
.footer-credit a {
	color: inherit;
	text-decoration: underline;
}

/* ---------- BASE CONTACT MODAL ---------- */
.modal-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(17, 17, 17, 0.85);
	backdrop-filter: blur(6px);
	padding: 24px;
	z-index: 3000;
}
.modal-overlay.is-visible { display: flex; }

.modal-card {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--offwhite);
	border-top: 4px solid var(--gold);
	border-radius: 12px;
	padding: 40px 35px 35px;
	box-shadow: 0 20px 40px rgba(0,0,0,0.3);
	opacity: 0;
	transform: translateY(15px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.modal-overlay.is-open .modal-card,
.modal-overlay.is-open .pledge-leaflet {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.modal-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: none;
	font-size: 28px;
	color: var(--charcoal);
	cursor: pointer;
}
.modal-close:hover { color: var(--gold); }

.modal-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.modal-card .drop-cap { font-size: 15px; color: var(--charcoal); margin-bottom: 20px; }
.modal-card .form-field { margin-bottom: 14px; }
.modal-card label { display: block; font-family: var(--font-display); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--charcoal); margin-bottom: 4px; }

.modal-card input, .modal-card textarea, .modal-card select {
	width: 100%; font-family: var(--font-body); font-size: 14px; color: var(--ink); padding: 8px 12px; border: 1px solid #d8d3c8; border-radius: 6px; background: var(--white);
}
.modal-card input:focus, .modal-card textarea:focus, .modal-card select:focus {
	outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199, 151, 63, 0.15);
}
.modal-card textarea { resize: vertical; min-height: 80px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.modal-submit {
	display: block; width: 100%; margin-top: 8px; padding: 12px 24px; background: var(--ink); color: var(--gold); font-family: var(--font-display); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; border: none; border-radius: 6px; cursor: pointer; transition: all 0.2s ease;
}
.modal-submit:hover { background: var(--gold); color: var(--ink); }
.modal-submit:disabled { opacity: 0.6; cursor: default; }

.form-status { margin-top: 10px; font-size: 13px; color: var(--charcoal); }
.form-status.is-error { color: var(--error); }

.modal-contact-info { margin-top: 20px; padding-top: 15px; border-top: 1px solid #d8d3c8; font-size: 13px; text-align: center; }
.success-message { text-align: center; padding: 20px 0; }

/* ==========================================================================
   HOMEPAGE & GLOBAL ROW COMPONENT LAYOUTS
   ========================================================================== */
.slider {
	width: 100%;
	background-color: #042522;
	position: relative;
	overflow: hidden;
	height: clamp(280px, 35vh, 400px);
	border-bottom: 2px solid var(--gold);
}

.slider ul {
	position: relative;
	list-style: none;
	display: flex;
	width: max-content;
	height: 100%;
	animation: slide-infinite 90s linear infinite;
}

.slider li {
	height: 100%;
	flex: 0 0 auto;
}

.slide-fg {
	height: 100%;
	width: auto;
	display: block;
}

@keyframes slide-infinite {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.hero-intro { text-align: center; padding: 50px 24px 20px; max-width: 800px; margin: 0 auto; }
.hero-intro h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 50px); font-weight: 500; color: var(--ink); line-height: 1.1; margin-bottom: 8px; }
.hero-intro p { color: var(--gold); font-size: 16px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

.divider { height: 2px; max-width: 800px; width: 80px; margin: 0 auto 40px; background: var(--gold); opacity: 0.8; }

.story { max-width: 1000px; margin: 0 auto; padding: 0 24px 60px; text-align: center; }
.story h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 36px); font-weight: 500; color: var(--ink); margin-bottom: 25px; }
.video-wrap { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.12); border: 3px solid var(--gold); }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.belize-section { background-color: var(--offwhite); padding: 70px 24px; }
.container2 { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.map-container { position: relative; }
.map-container img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); display: block; }

.text2 h2 { font-family: var(--font-display); color: var(--ink); font-size: 36px; font-weight: 500; margin-bottom: 20px; }
.text2 p, .ministry-content p { font-size: 16px; color: #444; margin-bottom: 14px; line-height: 1.7; text-align: justify; }
.text2 p:last-child, .ministry-content p:last-child { margin-bottom: 0; font-weight: 600; color: var(--ink); }

/* ==========================================================================
   GALLERY PAGE STYLES (Tiles, Sidebar & Lightbox)
   ========================================================================== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0); backdrop-filter: blur(0px); z-index: 999; visibility: hidden; transition: all 0.5s ease; }
.sidebar-overlay.active { visibility: visible; background: rgba(0, 0, 0, 0.65); backdrop-filter: var(--glass-blur); }
.premium-sidebar { position: fixed; top: 0; right: -880px; width: 100%; max-width: 880px; height: 100%; background: var(--sidebar-bg); border-left: 1px solid rgba(212, 175, 55, 0.3); box-shadow: -10px 0 35px rgba(0,0,0,0.6); z-index: 1000; display: flex; flex-direction: column; transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.sidebar-overlay.active .premium-sidebar { right: 0; }
.sidebar-header { padding: 20px 25px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; background: rgba(10, 10, 10, 0.4); }
.sidebar-header h3 { margin: 0; color: #fff; font-size: 1.3rem; font-family: var(--font-display); }
.sidebar-header h3 span { color: var(--gold-premium); }
.close-sidebar-btn { background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.close-sidebar-btn:hover { color: var(--gold-premium); }
.sidebar-content { flex: 1; overflow-y: auto; padding: 20px; }
.sidebar-content::-webkit-scrollbar { width: 4px; }
.sidebar-content::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.25); border-radius: 4px; }

/* ==========================================================================
   MINISTRIES & GALA COMMON GLOBAL COMPONENTS
   ========================================================================== */
.ministry-nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-bottom: 60px; }
.ministry-nav-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 20px; background: var(--offwhite); border: 1px solid rgba(212, 175, 55, 0.25); border-radius: 12px; text-decoration: none; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 8px 20px rgba(0,0,0,0.04); }
.ministry-nav-tile:hover { transform: translateY(-4px); border-color: var(--gold-premium); box-shadow: 0 12px 30px rgba(212, 175, 55, 0.12); background: var(--white); }
.ministry-nav-tile img { width: 100px; height: 100px; object-fit: contain; margin-bottom: 15px; transition: transform 0.4s ease; }
.ministry-nav-tile:hover img { transform: scale(1.04); }
.ministry-nav-tile h4 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); text-align: center; }
.ministry-nav-tile:hover h4 { color: var(--gold); }

.ministry-section { width: 100%; padding: 60px 24px; border-bottom: 1px solid rgba(0,0,0,0.04); }
.bg-white { background-color: var(--white); }
.bg-offwhite { background-color: var(--offwhite); }
.ministry-row { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 50px; }
.ministry-row.reverse { flex-direction: row-reverse; }
.ministry-visual { flex: 1.3; }
.ministry-main-img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.12); border: 3px solid var(--gold); display: block; object-fit: cover; max-height: 420px; }
.ministry-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ministry-content h2 { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 38px); font-weight: 500; color: var(--ink); margin-bottom: 15px; line-height: 1.2; text-align: left; }

.sponsor-grid { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 30px; }
.sponsor-grid img { max-width: 280px; width: 100%; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); transition: transform 0.3s ease; }
.sponsor-grid img:hover { transform: translateY(-4px); }

/* ==========================================================================
   ELEGANT HORIZONTAL LEAFLET PLEDGE MODAL
   ========================================================================== */
.pledge-leaflet {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 820px;
	height: auto;
	max-height: 92vh;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 25px 55px rgba(0,0,0,0.35);
	opacity: 0;
	transform: translateY(20px) scale(0.98);
	transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pledge-leaflet-close {
	position: absolute;
	top: 15px;
	right: 20px;
	background: none;
	border: none;
	font-size: 32px;
	color: var(--charcoal);
	cursor: pointer;
	z-index: 20;
	line-height: 1;
	transition: color 0.2s ease;
}
.pledge-leaflet-close:hover { color: var(--gold); }

.pledge-side-panel {
	flex: 1.1;
	background: #1a1a1a;
	padding: 40px 35px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	border-right: 1px solid rgba(212, 175, 55, 0.15);
	position: relative;
}

.pledge-dove-wrapper {
	width: 85px;
	height: 85px;
	margin-bottom: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pledge-dove-wrapper img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.pledge-verse {
	max-width: 280px;
}
.verse-text {
	font-family: var(--font-display);
	font-size: 16px;
	color: #ffffff;
	line-height: 1.6;
	font-style: italic;
	margin-bottom: 12px;
	opacity: 0.95;
}
.verse-ref {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--gold);
	font-weight: 600;
}

.pledge-main-panel {
	flex: 1.4;
	padding: 45px 40px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #ffffff;
}
.pledge-main-panel h3 {
	font-family: var(--font-display);
	color: var(--ink);
	font-size: 28px;
	margin-bottom: 4px;
	font-weight: 500;
}
.pledge-thanks {
	font-size: 14px;
	color: #555;
	line-height: 1.4;
	margin-bottom: 22px;
}

.bank-details-card {
	background: rgba(199, 151, 63, 0.04);
	border: 1px solid rgba(199, 151, 63, 0.2);
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 12px;
	text-align: left;
}
.bank-details-card h5 {
	font-family: var(--font-display);
	color: var(--ink);
	font-size: 16px;
	margin-bottom: 6px;
}
.bank-details-card p {
	font-size: 14px;
	color: var(--charcoal);
	margin-bottom: 4px;
}
.bank-details-card p:last-child { margin-bottom: 0; }

.check-instruction {
	font-size: 13px;
	color: #666;
	margin-bottom: 25px;
}

.pledge-contact-footer {
	border-top: 1px solid #eee;
	padding-top: 18px;
	text-align: left;
}
.contact-title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--gold);
	font-weight: 600;
	margin-bottom: 10px;
}
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-bottom: 8px;
}
.contact-grid p {
	font-size: 13px;
	line-height: 1.3;
	color: var(--charcoal);
}
.email-line {
	font-size: 13px;
	color: var(--ink);
}

/* ==========================================================================
   DONATION CARD (single-panel "Make a Donation" modal)
   ========================================================================== */
.donation-card {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--offwhite);
	border-top: 4px solid var(--gold);
	border-radius: 12px;
	padding: 50px 46px 42px;
	box-shadow: 0 25px 55px rgba(0,0,0,0.35);
	opacity: 0;
	transform: translateY(20px) scale(0.98);
	transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.is-open .donation-card {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.donation-card-close {
	position: absolute;
	top: 18px;
	right: 22px;
	background: none;
	border: none;
	font-size: 30px;
	color: var(--charcoal);
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s ease;
}
.donation-card-close:hover { color: var(--gold); }

.donation-card h3 {
	font-family: var(--font-display);
	color: var(--ink);
	font-size: 26px;
	font-weight: 400;
	font-style: italic;
	letter-spacing: 0.01em;
	margin-bottom: 14px;
}
.donation-intro {
	font-size: 15px;
	color: var(--charcoal);
	line-height: 1.75;
	margin-bottom: 28px;
	font-weight: 300;
}

.donation-method-label {
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--gold);
	margin-bottom: 10px;
	padding-left: 12px;
	border-left: 3px solid var(--gold);
}
.donation-method-label:not(:first-of-type) {
	margin-top: 26px;
}

.mailing-address-card {
	background: var(--white);
	border: 1px solid rgba(199, 151, 63, 0.25);
	border-radius: 8px;
	padding: 14px 20px;
	margin-top: 10px;
	text-align: left;
}
.mailing-address-card p {
	font-size: 14px;
	color: var(--charcoal);
	line-height: 1.5;
	margin: 0;
}

.donation-contact-footer {
	border-top: 1px solid rgba(199, 151, 63, 0.25);
	padding-top: 22px;
	margin-top: 30px;
	text-align: left;
}
.donation-contact-footer .contact-title {
	color: var(--ink);
	font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
	.navegacion { grid-template-columns: 1fr; gap: 15px; padding: 15px; }
	.nav-spacer { display: none; }
	.nav-menu { justify-content: center; flex-wrap: wrap; gap: 18px; padding-left: 0; }
	.ministry-row { max-width: 900px; gap: 35px; }
}

@media (max-width: 820px) {
	.pledge-leaflet {
		flex-direction: column;
		max-width: 440px;
		max-height: 90vh;
		overflow-y: auto;
	}
	.pledge-side-panel {
		padding: 35px 24px 30px;
	}
	.pledge-main-panel {
		padding: 35px 30px 30px;
	}
	.pledge-dove-wrapper {
		width: 70px;
		height: 70px;
		margin-bottom: 15px;
	}
}

@media (max-width: 768px) {
	.nav-menu li a { font-size: 14px; }
	.drop-cap::first-letter { padding-top: 2px; font-size: 3rem; }
	.container { padding: 0 20px; }
	
	.modal-card { padding: 35px 24px 24px; }
	.modal-card h3 { font-size: 22px; }
	
	.container2, .ministry-row, .ministry-row.reverse { grid-template-columns: 1fr; flex-direction: column; gap: 30px; text-align: center; }
	.ministry-visual { flex: none; width: 100%; }
	.text2, .ministry-content { text-align: center; }
	.text2 p, .ministry-content p { text-align: center; }
	.ministry-content h2 { text-align: center; }
	.slider { height: 280px; }
	
	.ministry-nav-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
	.ministry-nav-tile { padding: 25px 15px; }
	.ministry-nav-tile img { width: 80px; height: 80px; }
	.contact-grid { grid-template-columns: 1fr; gap: 8px; }

	.footer-social {
		position: static;
		margin-top: 20px;
	}
}
