/* St. Rita visual identity and responsive polish */

:root {
	--rita-red: #b5212f;
	--rita-deep: #26130d;
	--rita-green: #276141;
	--rita-sky: #eef6fb;
}

html,
body {
	max-width: 100%;
}

body {
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

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

.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.notification {
	position: fixed;
	top: 100px;
	right: 20px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 420px;
	padding: 16px 24px;
	border-radius: 8px;
	color: #fff;
	font-size: .95rem;
	font-weight: 500;
	line-height: 1.5;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
	transform: translateX(120%);
	transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
	backdrop-filter: blur(10px);
}

.notification.show {
	transform: translateX(0);
}

.notification-success {
	background: linear-gradient(135deg, #2d5a27, #3a7332);
	border: 1px solid rgba(255, 255, 255, .15);
}

.notification-error {
	background: linear-gradient(135deg, #6b1d2f, #8b2a42);
	border: 1px solid rgba(255, 255, 255, .15);
}

.notification i {
	flex-shrink: 0;
	font-size: 1.3rem;
}

@media (max-width: 480px) {
	.notification {
		top: 80px;
		left: 20px;
		right: 20px;
		max-width: none;
	}
}

/* Public project directory */
.projects-hero {
	min-height: 38vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 104px 20px 64px;
	background-color: var(--rita-deep);
	background-size: cover;
	background-position: center;
	text-align: center;
}

.projects-hero p {
	max-width: 680px;
	margin: 10px auto 0;
	color: rgba(255, 255, 255, .84);
	line-height: 1.65;
}

.project-campaigns-section {
	padding: 76px 0 88px;
	background: #f7f5f2;
}

.project-campaign-list {
	display: grid;
	gap: 24px;
}

.project-campaign-card {
	display: grid;
	grid-template-columns: minmax(300px, 42%) minmax(0, 1fr);
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e6e0da;
	border-radius: 8px;
	box-shadow: 0 8px 26px rgba(38, 19, 13, .07);
}

.project-campaign-media {
	position: relative;
	min-height: 390px;
	background: #ece8e3;
}

.project-campaign-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.campaign-status {
	display: inline-flex;
	align-items: center;
	width: max-content;
	max-width: 100%;
	padding: 6px 10px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.project-campaign-media > .campaign-status {
	position: absolute;
	top: 16px;
	left: 16px;
}

.campaign-status-open {
	background: #e9f5ed;
	border-color: #b9d8c2;
	color: #245c37;
}

.campaign-status-upcoming {
	background: #fff7df;
	border-color: #e6cf82;
	color: #725708;
}

.campaign-status-ended {
	background: #f1f1f1;
	border-color: #d1d1d1;
	color: #5d5d5d;
}

.project-campaign-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding: 30px;
}

.project-campaign-content h3 {
	color: var(--rita-deep);
	font-family: var(--font-heading);
	font-size: 1.72rem;
	line-height: 1.2;
	margin: 0 0 12px;
	overflow-wrap: anywhere;
}

.project-campaign-description {
	color: #625a54;
	line-height: 1.68;
	margin: 0 0 16px;
}

.campaign-dates {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	width: 100%;
	margin-bottom: 18px;
	color: #5d534c;
	font-size: .84rem;
}

.campaign-dates span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.campaign-dates i {
	color: var(--rita-red);
}

.project-empty-state {
	padding: 52px 20px;
	background: #fff;
	border: 1px solid #e6e0da;
	border-radius: 8px;
	text-align: center;
}

.project-empty-state i {
	font-size: 2rem;
	color: var(--gold);
}

.project-empty-state h3 {
	margin: 12px 0 5px;
	color: var(--rita-deep);
}

.project-empty-state p {
	margin: 0;
	color: #6c635c;
}

@media (max-width: 780px) {
	.project-campaign-card {
		grid-template-columns: 1fr;
	}

	.project-campaign-media {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	.project-campaign-content {
		padding: 23px;
	}
}

@media (max-width: 600px) {
	.project-campaigns-section {
		padding: 52px 0 64px;
	}
}

@media (max-width: 380px) {
	.project-campaign-content {
		padding: 19px 16px;
	}
}

[data-aos] {
	opacity: 1 !important;
	transform: none !important;
}

.placeholder-img[hidden] {
	display: none !important;
}

.hero-sm {
	overflow: hidden;
}

.hero-scroll {
	display: none;
}

.navbar.nav-solid,
.navbar.scrolled {
	background: rgba(44, 24, 16, .95);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	box-shadow: var(--shadow-lg);
	padding: 10px 0;
}

.hero-sm > div {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.nav-logo {
	min-width: 0;
}

.nav-toggle {
	background: transparent;
	border: 0;
}

.nav-toggle:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 3px;
}

.nav-link-icon {
	display: none;
}

@media (min-width: 769px) {
	.nav-menu .nav-link-icon {
		display: none !important;
	}
}

.nav-logo-img,
.footer-logo-img,
.hero-parish-logo,
.identity-logo {
	object-fit: contain;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.nav-logo-img {
	width: 46px;
	height: 46px;
	padding: 3px;
	flex: 0 0 auto;
}

.nav-logo span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.footer-logo-img {
	width: 46px;
	height: 46px;
	padding: 3px;
	margin-right: 10px;
	flex: 0 0 auto;
}

.hero-parish-logo {
	width: 112px;
	height: 112px;
	padding: 7px;
	margin: 0 auto 18px;
}

.st-rita-hero {
	min-height: 92svh;
	background-size: cover;
	background-position: center;
	isolation: isolate;
	padding-top: var(--nav-height);
}

.st-rita-hero::before {
	opacity: .45;
}

.st-rita-hero .hero-content {
	width: min(100%, 940px);
	padding: 120px 20px 70px;
}

.st-rita-hero .hero-title {
	font-size: clamp(2.4rem, 6vw, 5rem);
	max-width: 12ch;
	margin-left: auto;
	margin-right: auto;
}

.st-rita-hero .hero-subtitle {
	max-width: 760px;
	color: rgba(255, 255, 255, .9);
}

.st-rita-hero .hero-badge {
	max-width: min(100%, 720px);
	justify-content: center;
	white-space: normal;
	line-height: 1.4;
}

.st-rita-identity-panel {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 18px;
	align-items: center;
	justify-items: center;
	padding: 28px;
	background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
	border: 1px solid rgba(201, 168, 76, .35);
	border-radius: 18px;
	box-shadow: var(--shadow-lg);
}

.identity-logo {
	width: 150px;
	height: 150px;
	padding: 8px;
}

.identity-header {
	width: min(100%, 520px);
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: center;
	border-radius: 12px;
	border: 1px solid rgba(44, 24, 16, .12);
	box-shadow: var(--shadow-md);
}

.identity-caption {
	display: grid;
	gap: 4px;
	text-align: center;
	color: var(--brown);
}

.identity-caption span {
	color: var(--gray-500);
}

.about-parish-image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: var(--shadow-lg);
}

.project-feature-section,
.project-detail-hero {
	padding: 84px 0;
	background: linear-gradient(180deg, #fff 0%, #f7fbf8 100%);
}

.project-feature,
.project-detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
	gap: 44px;
	align-items: center;
}

.project-feature-media img,
.project-detail-grid img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 24px 60px rgba(24, 35, 31, .18);
	border: 1px solid rgba(39, 97, 65, .16);
	background: var(--rita-sky);
}

.project-feature-copy,
.project-detail-grid > div {
	min-width: 0;
}

.project-feature-copy h2,
.project-detail-grid h2 {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.08;
	color: var(--brown);
	margin: 10px 0 18px;
}

.project-feature-copy p,
.project-detail-grid p {
	color: var(--gray-600);
	line-height: 1.8;
	margin-bottom: 24px;
}

.project-feature-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.event-introduction {
	max-width: 820px;
	margin: 0 auto 38px;
	color: var(--gray-600);
	font-size: 1.02rem;
	line-height: 1.8;
	text-align: center;
}

.event-card,
.testimonial-card {
	border-radius: 8px;
}

.form-group,
.form-row,
.event-card,
.gallery-item,
.footer-col {
	min-width: 0;
}

.btn {
	white-space: normal;
	text-align: center;
	line-height: 1.25;
}

.field-help {
	display: flex;
	justify-content: flex-end;
	margin-top: 6px;
	color: var(--gray-500);
	font-size: .78rem;
}

@media (min-width: 769px) and (max-width: 1180px) {
	.nav-menu {
		gap: 2px;
	}

	.nav-link {
		padding-left: 9px;
		padding-right: 9px;
		font-size: .82rem;
	}

	.nav-cta {
		padding-left: 14px;
		padding-right: 14px;
	}
}

.form-errors {
	margin: 0 0 18px;
	padding: 12px 14px;
	border: 1px solid #e6b8bd;
	border-radius: 8px;
	background: #fff0f1;
	color: #7f1d2d;
	font-size: .9rem;
}

.footer-logo span {
	min-width: 0;
	line-height: 1.25;
}

.footer-social {
	display: flex;
	gap: 10px;
	margin: 14px 0 18px;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	color: #fff;
}

.footer-social a:hover,
.footer-social a:focus-visible {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--brown);
}

@media (max-width: 1024px) {
	.project-feature,
	.project-detail-grid {
		grid-template-columns: 1fr;
	}

	.project-feature-copy {
		order: -1;
	}
}

@media (max-width: 768px) {
	body.nav-open::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 999;
		background: rgba(20, 9, 6, .68);
		backdrop-filter: blur(2px);
		-webkit-backdrop-filter: blur(2px);
	}

	.navbar {
		padding: 10px 0;
	}

	.nav-logo {
		max-width: calc(100vw - 92px);
	}

	.nav-logo-img {
		width: 42px;
		height: 42px;
	}

	.nav-logo span {
		font-size: 1.05rem;
	}

	.nav-menu {
		top: 10px;
		right: calc(-100% - 24px);
		bottom: auto;
		z-index: 1002;
		width: min(88vw, 360px);
		height: auto;
		max-height: calc(100dvh - 20px);
		padding: 78px 14px 16px;
		gap: 0;
		background: #2c1810;
		border: 1px solid rgba(201, 168, 76, .42);
		border-radius: 8px;
		overflow-y: auto;
		box-shadow: -18px 0 45px rgba(18, 8, 5, .34), 0 18px 46px rgba(18, 8, 5, .42);
	}

	.nav-menu::before {
		content: "";
		position: absolute;
		top: 64px;
		left: 14px;
		right: 14px;
		border-top: 1px solid rgba(201, 168, 76, .28);
	}

	.nav-menu.active {
		right: 10px;
	}

	.nav-menu li {
		width: 100%;
		border-top: 1px solid rgba(255, 255, 255, .1);
	}

	.nav-menu li:first-child,
	.nav-menu li:last-child {
		border-top: 0;
	}

	.nav-menu .nav-link {
		display: flex;
		align-items: center;
		gap: 14px;
		width: 100%;
		min-height: 50px;
		margin: 4px 0;
		padding: 12px 16px;
		border: 1px solid transparent;
		border-radius: 6px;
		color: rgba(255, 255, 255, .88);
		font-size: .98rem;
		font-weight: 600;
	}

	.nav-menu .nav-link-icon {
		display: inline-flex !important;
		align-items: center;
		justify-content: flex-start;
		flex: 0 0 38px;
		width: 38px;
		min-height: 24px;
		border-right: 1px solid rgba(201, 168, 76, .34);
		color: var(--gold);
		font-size: .96rem;
	}

	.nav-menu .nav-link > span {
		min-width: 0;
		flex: 1;
	}

	.nav-menu .nav-link:hover,
	.nav-menu .nav-link:focus-visible {
		border-color: rgba(201, 168, 76, .38);
		background: rgba(255, 255, 255, .08);
		color: #fff;
	}

	.nav-menu .nav-link.active {
		border-color: rgba(201, 168, 76, .52);
		background: rgba(201, 168, 76, .16);
		box-shadow: inset 3px 0 0 var(--gold);
		color: #f2dc9b;
	}

	.nav-toggle {
		z-index: 1003;
		width: 44px;
		height: 44px;
		align-items: center;
		justify-content: center;
		border: 1px solid rgba(255, 255, 255, .22);
		border-radius: 6px;
		background: rgba(44, 24, 16, .34);
	}

	.nav-toggle.active {
		border-color: rgba(201, 168, 76, .58);
		background: rgba(201, 168, 76, .12);
	}

	.hero-scroll {
		display: none;
	}

	.st-rita-hero {
		min-height: auto;
	}

	.st-rita-hero .hero-content {
		padding: 105px 18px 54px;
	}

	.hero-parish-logo {
		width: 94px;
		height: 94px;
	}

	.st-rita-hero .hero-title {
		max-width: 14ch;
		font-size: clamp(2rem, 11vw, 3rem);
	}

	.hero-sm {
		padding-left: 18px !important;
		padding-right: 18px !important;
	}

	.hero-sm .hero-title {
		width: 100%;
		max-width: 13ch;
		margin-left: auto;
		margin-right: auto;
		font-size: clamp(1.95rem, 8vw, 2.45rem) !important;
		line-height: 1.15;
		overflow-wrap: normal;
	}

	.st-rita-identity-panel {
		padding: 22px;
		border-radius: 12px;
	}

	.identity-logo {
		width: 118px;
		height: 118px;
	}

	.project-feature-section,
	.project-detail-hero {
		padding: 58px 0;
	}

	.project-feature,
	.project-detail-grid {
		gap: 26px;
	}

	.project-feature-actions,
	.hero-buttons {
		width: 100%;
	}

	.project-feature-actions .btn,
	.hero-buttons .btn {
		flex: 1 1 220px;
	}

}

@media (max-width: 480px) {
	:root {
		--container-padding: 16px;
	}

	.st-rita-hero {
		padding-top: 0;
	}

	.st-rita-hero .hero-content {
		padding: 82px 18px 34px;
	}

	.st-rita-hero .hero-parish-logo {
		display: none;
	}

	.st-rita-hero .hero-badge {
		margin-bottom: 18px;
	}

	.st-rita-hero .hero-title {
		margin-bottom: 8px;
	}

	.st-rita-hero .hero-subtitle {
		margin-bottom: 20px;
		line-height: 1.5;
	}

	.st-rita-hero .hero-buttons {
		flex-flow: row nowrap;
		gap: 8px;
	}

	.st-rita-hero .hero-buttons .btn {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		min-height: 48px;
		padding: 12px 8px;
		gap: 6px;
		font-size: .7rem;
	}

	.hero-badge {
		padding: 9px 14px;
		font-size: .75rem;
		letter-spacing: .04em;
	}

	.hero-sm {
		min-height: auto !important;
		padding-top: 94px !important;
		padding-bottom: 48px !important;
	}

	.hero-sm .hero-title {
		max-width: 12ch;
		font-size: 1.82rem !important;
	}

	.st-rita-hero .hero-title {
		max-width: 15ch;
		font-size: 2rem;
	}

	.st-rita-hero .hero-subtitle {
		font-size: .96rem;
		line-height: 1.65;
	}

	.hero-buttons .btn,
	.project-feature-actions .btn {
		flex: 0 0 auto;
		min-height: 54px;
	}

	.project-feature-copy h2,
	.project-detail-grid h2 {
		font-size: 1.85rem;
	}

	.project-feature-media img,
	.project-detail-grid img {
		aspect-ratio: 4 / 3;
	}

}
