/* Homepage sections */
.church-homepage,
.church-homepage .wp-block-post-content {
	margin-block-start: 0;
}

.church-homepage .wp-block-post-content {
	max-width: none;
	padding: 0;
	width: 100%;
}

.church-homepage .wp-block-post-content > *,
.church-homepage-section > *,
.church-section-heading > *,
.church-home-hero__content > *,
.church-meeting-card > *,
.church-contact-card > *,
.church-beliefs-list > *,
.church-belief-item > *,
.church-belief-copy > * {
	margin-block-start: 0;
}

.church-homepage-section {
	box-sizing: border-box;
	margin-block-start: 0;
	padding-left: clamp(1.25rem, 3vw, 2rem);
	padding-right: clamp(1.25rem, 3vw, 2rem);
}

.church-homepage-section--standard {
	padding-bottom: clamp(4rem, 9vw, 8rem);
	padding-top: clamp(4rem, 9vw, 8rem);
}

.church-section-heading {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.church-eyebrow {
	font-size: clamp(0.75rem, 1.5vw, 0.875rem);
	font-weight: 500;
	letter-spacing: 0.3em;
	line-height: 1.4;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

.church-eyebrow > p,
.church-home-hero__intro > p,
.church-meeting-time > p,
.church-meeting-description > p,
.church-meeting-verse > p,
.church-newsletter-placeholder__input > p {
	margin: 0;
}

/* Hero */
.church-home-hero {
	align-items: center;
	border-radius: 0;
	display: flex;
	justify-content: center;
	left: 50%;
	margin: 0 -50vw;
	max-width: 100vw;
	min-height: 100vh;
	min-height: 100svh;
	padding: 0;
	position: relative;
	width: 100vw;
}

.church-home-hero .wp-block-cover__image-background {
	border-radius: 0;
	object-fit: cover;
	object-position: 50% 50%;
}

.church-home-hero .wp-block-cover__background {
	background-color: hsl(220deg 20% 10%) !important;
	border-radius: 0;
	opacity: 0.8 !important;
}

.church-home-hero__content {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: 56rem;
	padding: 0 1.25rem;
	width: 100%;
}

.church-home-hero h1 {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 2.25rem;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.25;
	margin-bottom: 1.5rem;
	margin-top: 0;
}

.church-home-hero .church-eyebrow {
	color: hsl(38deg 80% 55%) !important;
	font-size: 0.75rem;
	line-height: 1rem;
	margin-bottom: 1rem;
}

.church-home-hero__intro {
	color: hsl(220deg 10% 55%) !important;
	font-size: 1rem;
	line-height: 1.625;
	margin-left: auto;
	margin-right: auto;
	max-width: 40.625rem;
}

.church-home-hero h1 .has-gold-color {
	color: hsl(38deg 80% 55%) !important;
}

.church-home-hero .wp-block-buttons {
	gap: 0.75rem 1rem;
	margin-top: 2rem;
}

.church-home-hero .wp-block-button__link {
	background-color: hsl(38deg 80% 55%);
	border-radius: 0.25rem;
	line-height: 1.25rem;
	padding: 0.875rem 1.5rem;
}

.church-home-hero .wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
}

.church-home-hero__rule {
	background: linear-gradient(to bottom, rgba(230, 165, 46, 0.6), transparent);
	bottom: clamp(2rem, 5vw, 2.5rem);
	height: clamp(3rem, 7vw, 4rem);
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	width: 1px;
}

/* Standing */
.church-standing-copy {
	max-width: 40.625rem;
}

.church-standing-copy p {
	font-size: clamp(1rem, 2vw, 1.125rem);
	line-height: 1.75;
	margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.church-standing-quote {
	max-width: 40.625rem;
}

/* Cards */
.church-card-grid {
	display: grid !important;
	gap: clamp(1rem, 2.5vw, 1.5rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.church-meeting-card,
.church-contact-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.5rem;
	box-sizing: border-box;
	height: 100%;
	margin: 0;
	position: relative;
	transition: border-color 200ms ease;
}

.church-meeting-card {
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 4vw, 2rem);
}

.church-meeting-card:hover,
.church-meeting-card:focus-within,
.church-contact-card:hover,
.church-contact-card:focus-within {
	border-color: rgba(230, 165, 46, 0.4);
}

.church-card-icon {
	color: var(--wp--preset--color--gold);
	display: block;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.75rem;
	line-height: 1;
	margin-bottom: 1rem;
}

.church-meeting-card h3 {
	font-size: clamp(1.125rem, 2vw, 1.25rem);
	margin-bottom: 0.375rem;
	margin-top: 0;
}

.church-card-link a {
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
}

.church-card-link a::after,
.church-contact-card__link a::after {
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1;
}

.church-meeting-time {
	font-size: clamp(0.75rem, 1.5vw, 0.875rem);
	font-weight: 600;
	letter-spacing: 0.025em;
	margin-bottom: 0.75rem;
}

.church-meeting-description {
	flex-grow: 1;
	font-size: 0.875rem;
	line-height: 1.65;
	margin-bottom: 0.75rem;
}

.church-meeting-verse {
	font-size: 0.75rem;
	font-style: italic;
	margin-bottom: 0;
}

/* Beliefs */
.church-beliefs-list {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 3vw, 1.5rem);
}

.church-belief-item {
	align-items: start;
	display: grid !important;
	gap: 1rem;
	grid-template-columns: 0.5rem minmax(0, 1fr);
	margin: 0;
}

.church-belief-dot {
	align-self: start;
	background: var(--wp--preset--color--gold);
	border-radius: 999px;
	height: 0.5rem;
	margin-top: 0.55rem;
	width: 0.5rem;
}

.church-belief-copy p {
	margin: 0;
}

.church-belief-copy {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.church-belief-copy p + p {
	font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

/* Newsletter placeholder */
.church-newsletter-inner {
	max-width: 36rem;
}

.church-newsletter-placeholder {
	display: grid !important;
	gap: 0.75rem;
	grid-template-columns: minmax(0, 1fr) auto;
	margin-left: auto;
	margin-right: auto;
	max-width: 28rem;
}

.church-newsletter-placeholder__input {
	align-items: center;
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	display: flex;
	font-size: 0.875rem;
	margin: 0;
	min-height: 2.875rem;
	padding: 0 1rem;
}

.church-newsletter-placeholder .wp-block-button__link {
	align-items: center;
	display: flex;
	height: 100%;
}

/* Keep the approved preview visible without presenting a working signup. */
.church-newsletter-placeholder .wp-block-button__link:not([href]) {
	background: var(--wp--preset--color--border);
	color: var(--wp--preset--color--foreground);
	cursor: default;
	opacity: 1;
	pointer-events: none;
}

.church-newsletter-placeholder .wp-block-button__link:not([href]):hover,
.church-newsletter-placeholder .wp-block-button__link:not([href]):focus {
	background: var(--wp--preset--color--border);
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
}

.church-newsletter-inner > p:last-child {
	margin-top: 0.75rem;
}

/* Contact */
.church-contact-grid {
	display: grid !important;
	gap: clamp(1rem, 2.5vw, 2rem);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.church-contact-card {
	align-items: center;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 4vw, 2rem);
	text-align: center;
}

.church-contact-card h3 {
	font-size: clamp(1rem, 2vw, 1.125rem);
	margin-bottom: 0.25rem;
}

.church-contact-card p {
	font-size: clamp(0.75rem, 1.5vw, 0.875rem);
	line-height: 1.55;
	margin: 0;
	overflow-wrap: anywhere;
}

.church-contact-card__link a {
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
}

@media (max-width: 767px) {
	.church-home-hero__intro br {
		display: none;
	}

	.church-card-grid,
	.church-contact-grid {
		grid-template-columns: 1fr;
	}

	.church-newsletter-placeholder {
		grid-template-columns: 1fr;
	}

	.church-newsletter-placeholder .wp-block-button,
	.church-newsletter-placeholder .wp-block-button__link {
		justify-content: center;
		width: 100%;
	}
}

@media (max-width: 639px) {
	.church-home-hero .wp-block-buttons {
		align-items: stretch;
		flex-direction: column;
	}

	.church-home-hero .wp-block-button,
	.church-home-hero .wp-block-button__link {
		width: 100%;
	}
}

@media (min-width: 640px) {
	.church-home-hero__content {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.church-home-hero h1 {
		font-size: 3rem;
		margin-bottom: 2rem;
	}

	.church-home-hero .church-eyebrow {
		font-size: 0.875rem;
		line-height: 1.25rem;
		margin-bottom: 1.5rem;
	}

	.church-home-hero__intro {
		font-size: 1.125rem;
		line-height: 1.625;
	}

	.church-home-hero .wp-block-buttons {
		margin-top: 2.5rem;
	}

	.church-home-hero .wp-block-button__link {
		padding: 1rem 2rem;
	}
}

@media (min-width: 768px) {
	.church-home-hero h1 {
		font-size: 4.5rem;
	}

	.church-home-hero__intro {
		font-size: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.church-home-hero h1 {
		font-size: 6rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.church-meeting-card,
	.church-contact-card {
		transition: none;
	}
}
