/* ===== GLOBAL THEME & STYLESHEET ===== */
:root {
	--color-bg: #ffffff;
	--color-primary: #163e2b;       /* Deep Green */
	--color-primary-dark: #0e291c;
	--color-text: #222222;
	--color-muted: #666666;
	--color-border: #e0e0e0;
	--color-gold: #d9a726;
	--color-gold-hover: #fcd34d;
	--color-blue: #1e40af;
	--color-red: #991b1b;
	--font-heading: 'Bitter', serif;
	--font-body: 'Karla', sans-serif;
}

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

body {
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: hidden;
}

main {
	flex: 1;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	cursor: pointer;
	font-family: inherit;
	border: none;
	background: none;
}

img, svg, video {
	max-width: 100%;
	height: auto;
}

/*===== Mobile base =====*/
html {
	box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
	box-sizing: inherit;
}

/* Hamburger Button Setup (Hidden on Desktop) */
.mobile-menu-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	color: #ffffff;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: transparent;
	border: none;
	padding: 0.5rem 0;
	cursor: pointer;
}

/* ===== HEADER & NAVIGATION ===== */
header {
	width: 100%;
	background: var(--color-bg);
}

.logo-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding-top: 1em;
	padding-bottom: 0.5em;
}

.logo-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-family: var(--font-heading);
	font-weight: bold;
	text-transform: uppercase;
	color: var(--color-primary);
}

.logo-sm { width: 1.875em; height: 1.875em; font-size: 0.45em; }
.logo-m { width: 3.5em; height: 3.5em; font-size: 1em; }
.logo-lg { width: 8.125em; height: 8.125em; font-size: 1em; }
.logo-xl { width: 12.5em; height: 12.5em; font-size: 1.2em; }

nav.navbar {
	background-color: var(--color-primary);
	color: #ffffff;
	width: 100%;
	position: relative;
}

.nav-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0.8rem 1rem;
	position: relative;
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 1.5rem;
}

.nav-links a {
	color: #ffffff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	padding: 0.5rem;
	transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
	color: var(--color-gold);
}

/* ===== SHOPPING & CART ===== */
.cart-badge {
	display: none;
	align-items: center;
	gap: 0.3rem;
	background: var(--color-gold);
	color: #000;
	padding: 0.25rem 0.6rem;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: bold;
	margin-left: 1rem;
}

.cart-preview-popover {
	display: none;
	position: absolute;
	top: 100%;
	right: 1rem;
	width: 320px;
	background: #ffffff;
	color: #222222;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	padding: 1rem;
	z-index: 1000;
}

.cart-preview-popover.active {
	display: block;
}

.cart-preview-list {
	list-style: none;
	margin: 0.5rem 0;
	padding: 0;
	max-height: 180px;
	overflow-y: auto;
}

.cart-preview-item {
	display: flex;
	justify-content: space-between;
	font-size: 0.85rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid #eee;
}

.cart-preview-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.btn-popover-cart {
	flex: 1;
	background: #e2e8f0;
	color: #000;
	text-align: center;
	padding: 0.5rem;
	border-radius: 4px;
	font-weight: bold;
	font-size: 0.75rem;
	text-transform: uppercase;
}
.btn-popover-cart:hover { background: #cbd5e1; }

.btn-popover-checkout {
	flex: 1;
	background: var(--color-gold);
	color: #000;
	text-align: center;
	padding: 0.5rem;
	border-radius: 4px;
	font-weight: bold;
	font-size: 0.75rem;
	text-transform: uppercase;
}
.btn-popover-checkout:hover { background: var(--color-gold-hover); }

/* ===== BUTTONS ===== */
.btn-primary {
	background-color: var(--color-gold);
	color: #000000;
	font-weight: 700;
	text-transform: uppercase;
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	font-size: 0.85rem;
	display: inline-block;
	transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
	background-color: var(--color-gold-hover);
}

.carousel-slide .btn-primary:hover,
.hero-btn:hover {
	transform: scale(1.15);
	background-color: var(--color-gold);
}

/* ===== CAROUSEL ===== */
.carousel-container {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	height: 26rem;
	overflow: hidden;
	background-color: var(--color-primary-dark);
}

.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 12;
	color: #ffffff;
	font-size: 2.2rem;
	padding: 0.5rem 1rem;
	cursor: pointer;
	background: transparent;
}
.carousel-arrow-left { left: 1rem; }
.carousel-arrow-right { right: 1rem; }

.carousel-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 3rem 8rem;
	color: #ffffff;
}

.carousel-slide.active {
	opacity: 1;
	z-index: 10;
}

.slide-overlay {
	position: absolute; 
	inset: 0;
	z-index: 2;
	background: rgba(0, 0, 0, 1);
}

.slide-content {
	position: relative;
	z-index: 2;
	max-width: 600px;
	text-align: left;
	line-height: 1.25;
}

.slide-content h2 {
	font-family: var(--font-heading);
	font-size: 2.2rem;
	margin-bottom: 0.5rem;
}

.slide-actions {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: flex-end;
}

.carousel-nav {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1rem;
}

.carousel-dot {
	width: 2rem;
	height: 0.35rem;
	background-color: var(--color-border);
	border-radius: 2px;
	transition: background-color 0.2s ease;
}

.carousel-dot.active { background-color: var(--color-primary); }

/*.bg-flyer { background-color: transparent;}*/
.bg-flyer { background-color: var(--color-primary-dark); }
.bg-flyer .slide-overlay { background: rgba(0,0,0,0.5); }
.bg-placeholder1 { background-color: var(--color-primary); }
.bg-placeholder2 { background-color: var(--color-blue); }
.bg-placeholder3 { background-color: var(--color-red); }
.bg-placeholder4 { background-color: var(--color-gold); }
.bg-placeholder1 .bg-placeholder2 .bg-placeholder3 .bg-placeholder4 .slide-overlay { background: rgba(0,0,0,0.5); }

.fb-feed-wrapper {
	position: relative;
	height: 200px;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	overflow: hidden;
}

.fb-feed-scroll {
	height: 100%;
	overflow-y: auto;
	padding: 1rem;
	background: #f9f9f9;
}

.fb-feed-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.30);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	z-index: 5;
}

/* ===== LAYOUT| RESOURCES & PROJECTS ===== */
.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.page-title {
	font-family: var(--font-heading);
	font-size: 2rem;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
}

.page-subtitle {
	font-size: 1rem;
	color: var(--color-muted);
	margin-bottom: 1.5rem;
}

.padding-bottom { padding-bottom: 2rem; }

.resources-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 3rem;
}

@media (max-width: 900px) { .resources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .resources-grid { grid-template-columns: 1fr; } }

.resource-card {
	border: 1px solid var(--color-border);
	padding: 1.25rem;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	background: #ffffff;
}

.resource-text-container {
	position: relative;
	max-height: 5.5rem;
	overflow: hidden;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--color-muted);
	margin-top: 0.5rem;
}

.resource-text-container.faded::after {
	content: "";
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 2.5rem;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
	pointer-events: none;
}

.resource-text-container.expanded {
	max-height: none;
	overflow: visible;
}

.btn-read-more {
	color: var(--color-primary);
	text-decoration: underline;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-top: auto;
	align-self: flex-end;
	padding-top: 0.5rem;
	background: transparent;
	border: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

.btn-read-more:hover { color: #4ade80; }

.btn-back-project {
	width: auto !important;
	padding: 0.75rem 1.5rem;
	display: inline-block;
	white-space: nowrap;
}


/* ===== FOOTER ===== */
.footer {
	background-color: var(--color-primary);
	color: #ffffff;
	padding: 3rem 1rem 1rem 1rem;
	margin-top: auto;
}

.footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: space-between;
}

.footer-col {
	flex: 1;
	min-width: 250px;
}

.footer-title {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: 0.5rem;
}

.footer-divider {
	border: 0;
	border-top: 1px solid rgba(255,255,255,0.4);
	margin: 0.75rem 0;
}

.footer-email {
	color: #ffffff;
	text-decoration: underline;
	font-size: 0.85rem;
}

.footer-address {
	font-size: 0.8rem;
	line-height: 1.5;
	color: rgba(255,255,255,0.9);
}

.footer-heading {
	font-size: 0.85rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 1rem;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	line-height: 2;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
}

.footer-links a {
	color: #ffffff;
}

.footer-top-btn {
	background-color: rgba(0,0,0,0.4);
	color: #ffffff;
	padding: 0.8rem 1.5rem;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border: none;
}

.footer-bottom {
	max-width: 1100px;
	margin: 2rem auto 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding-top: 1rem;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
}

/* ===== TIMELINE ===== */
.timeline-wrapper {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 0;
}

.timeline-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background-color: var(--color-primary);
	transform: translateX(-50%);
}

.timeline-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	margin-bottom: 3.5rem;
}

.timeline-node {
	position: absolute;
	left: 50%;
	top: 0.5rem;
	transform: translateX(-50%);
	width: 14px;
	height: 14px;
	background-color: var(--color-gold);
	border-radius: 50%;
	z-index: 2;
}

.timeline-left, .timeline-right {
	width: 44%;
}

.text-left-align { text-align: left; }
.text-right-align { text-align: right; }

.timeline-year {
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.25rem;
}

.timeline-title {
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 800;
	color: #111;
	margin-bottom: 0.5rem;
}

.timeline-desc {
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--color-muted);
}

.timeline-placeholder-box {
	width: 140px;
	height: 140px;
	background-color: var(--color-gold);
	box-shadow: 0 4px 10px rgba(0,0,0,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;

	font-size: 1.2rem;
	font-weight: 800;
	font-weight: 800;
	font-variant: small-caps;
	letter-spacing: 0.08rem;
}

/* Full-Bleed Membership Banner */
.membership-banner-full {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	background-color: #f4f5f6;
	padding: 4rem 1rem;
	margin-top: 4rem;
}

.membership-inner {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
}

/* ===== MOBILE REFINEMENTS ===== */
@media (max-width: 600px) {
	.container {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}

	.page-title {
		font-size: 1.75rem !important;
		line-height: 1.2 !important;
	}

	.btn-primary,
	.btn-popover-cart,
	.btn-popover-checkout {
		width: 100% !important;
		text-align: center;
		padding: 0.85rem 1rem !important;
		font-size: 0.95rem !important;
	}
}

@media (pointer: coarse) {
	button,
	a,
	input[type="button"],
	input[type="submit"] {
		min-height: 44px;
	}
}

/* -- Nav & layout on mobile -- */
@media (max-width: 768px) {
	header {
		padding: 0.75rem 1rem;
	}

	.logo-container {
		padding: 0.75rem 0;
	}

	.logo-lg {
		width: 5.5em;
		height: 5.5em;
	}

	.nav-inner {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: 0.6rem 1rem;
	}

	.mobile-menu-toggle {
		display: flex;
	}

	.nav-links {
		display: none;
		flex-direction: column;
		width: 100%;
		position: absolute;
		top: 100%;
		left: 0;
		background-color: var(--color-primary-dark);
		padding: 1rem;
		gap: 0.75rem;
		box-shadow: 0 4px 10px rgba(0,0,0,0.3);
		z-index: 100;
	}

	.nav-links.nav-open {
		display: flex;
	}

	.cart-preview-popover {
		position: fixed;
		top: 60px;
		left: 5% !important;
		right: 5% !important;
		width: 90% !important;
		max-width: none !important;
		z-index: 1000;
	}

	.carousel-container {
		width: 100%;
		left: 0;
		right: auto;
		margin-left: 0;
		margin-right: 0;
	}

	.carousel-slide {
		padding: 2.5rem 1.5rem 4rem 1.5rem;
	}

	.carousel-arrow {
		font-size: 1.75rem;
		padding: 0.25rem 0.5rem;
	}

	aside[aria-label="Advertising Space"] {
		flex-direction: row !important;
		flex-wrap: wrap;
		width: 100%;
		justify-content: flex-start;
	}

	.timeline-line { left: 20px; }
	.timeline-node { left: 20px; }
	.timeline-row {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		padding-left: 45px;
		margin-bottom: 2.5rem;
	}
	/*Making sure timeline order: Year, Title, Text, Pic*/
	.timeline-left, .timeline-right {
		width: 100%;
		text-align: left !important;
		display: block !important;
	}
	.timeline-row .text-left-align,
	.timeline-row .text-right-align {
		order: 1;
	}
	.timeline-row div[style*="display: flex"] {
		order: 2;
	}

	.timeline-placeholder-box { margin-top: 1rem; }
	.membership-inner {
		flex-direction: column;
		text-align: center;
		gap: 1.5rem;
	}

	.membership-banner-full {
		width: 100%;
		left: 0;
		right: auto;
		margin-left: 0;
		margin-right: 0;
	}
}

@media (max-width: 480px) {
	.logo-lg {
		width: 4.5em;
		height: 4.5em;
	}

	.slide-content h2 {
		font-size: 1.4rem;
	}
}
