/* ==========================================================================
   RWBURC — design tokens
   ========================================================================== */
:root {
	--color-cream: #F7EEDD;
	--color-cream-dark: #EEE0C4;
	--color-ink: #241F19;
	--color-green: #1F5C46;
	--color-green-dark: #0F2E22;
	--color-green-mid: #2E7057;
	--color-gold: #D1972E;
	--color-gold-dark: #A9721E;
	--color-burgundy: #7A2E38;
	--color-border: #DFCB9F;
	--color-white: #FFFFFF;

	--font-heading: 'Fraunces', Georgia, serif;
	--font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--radius: 10px;
	--max-width: 1180px;
	--max-width-narrow: 760px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-ink);
	background: var(--color-cream);
	line-height: 1.6;
	font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-gold); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--color-green-dark);
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin: 0 0 1.2em; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link {
	position: absolute; top: -60px; left: 0; background: var(--color-green-dark);
	color: #fff; padding: 12px 20px; z-index: 1000; transition: top .2s;
}
.skip-link:focus { top: 0; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--max-width-narrow); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.rwburc-button {
	display: inline-block;
	background: var(--color-gold);
	color: var(--color-green-dark);
	padding: 12px 26px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
	border: 2px solid var(--color-gold);
	cursor: pointer;
	font-family: var(--font-body);
	font-size: 1rem;
	transition: background .15s, color .15s;
}
.rwburc-button:hover { background: var(--color-gold-dark); border-color: var(--color-gold-dark); color: #fff; }
.rwburc-button--light { background: #fff; color: var(--color-green-dark); border-color: #fff; }
.rwburc-button--light:hover { background: var(--color-cream-dark); color: var(--color-green-dark); }
.rwburc-button--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.rwburc-button--outline:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	background: var(--color-green-dark);
	border-bottom: 3px solid var(--color-gold);
	position: sticky;
	top: 0;
	z-index: 100;
}
.site-header__inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}
.site-branding img { max-height: 56px; width: auto; border-radius: 50%; border: 2px solid var(--color-gold); }
.site-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: #fff; }
.site-tagline { display: none; font-size: .85rem; color: var(--color-cream); opacity: .75; }
@media (min-width: 640px) { .site-tagline { display: inline; } }

.menu-toggle {
	display: flex; flex-direction: column; gap: 5px;
	background: none; border: 0; cursor: pointer; padding: 8px;
}
.menu-toggle__bar { width: 26px; height: 3px; background: var(--color-gold); border-radius: 2px; }

.primary-nav { display: none; }
.primary-nav.is-open { display: block; }
.primary-nav__list {
	list-style: none; margin: 0; padding: 16px 0 0; display: flex; flex-direction: column; gap: 4px;
}
.primary-nav__list a {
	display: block; padding: 10px 4px; text-decoration: none; color: #fff; font-weight: 600;
	border-bottom: 1px solid rgba(255,255,255,.15);
}
.primary-nav__list a:hover { color: var(--color-gold); }
.primary-nav__list li { position: relative; }
.primary-nav__list ul { list-style: none; margin: 0 0 0 14px; padding: 0; }
.primary-nav__phone {
	display: inline-block; margin-top: 12px; font-weight: 700; color: var(--color-gold); text-decoration: none;
}

@media (min-width: 960px) {
	.menu-toggle { display: none; }
	.primary-nav { display: flex !important; align-items: center; gap: 24px; }
	.primary-nav__list { flex-direction: row; padding: 0; gap: 22px; position: relative; }
	.primary-nav__list a { border-bottom: 0; padding: 6px 2px; position: relative; }
	.primary-nav__list a::after {
		content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
		background: var(--color-gold); transform: scaleX(0); transition: transform .15s;
	}
	.primary-nav__list a:hover::after { transform: scaleX(1); }
	.primary-nav__list ul {
		position: absolute; background: var(--color-green-dark); border: 1px solid var(--color-green-mid);
		border-radius: 8px; padding: 8px; margin: 8px 0 0; min-width: 190px; display: none;
		box-shadow: 0 8px 20px rgba(0,0,0,.25);
	}
	.primary-nav__list li:hover > ul,
	.primary-nav__list li:focus-within > ul { display: block; }
	.primary-nav__list ul a { white-space: nowrap; }
	.primary-nav__phone { margin-top: 0; }
}

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero {
	background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green) 55%, var(--color-green-mid) 100%);
	background-size: cover;
	background-position: center;
	color: #fff;
	position: relative;
	border-bottom: 4px solid var(--color-gold);
}
.hero__overlay {
	background: linear-gradient(135deg, rgba(15,46,34,.90), rgba(31,92,70,.55));
	padding: 100px 0 76px;
}
.hero__title { color: #fff; max-width: 720px; }
.hero__subtitle { font-size: 1.15rem; max-width: 560px; opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Plain page hero used on interior pages */
.page-hero {
	background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
	background-size: cover;
	background-position: center;
	border-bottom: 4px solid var(--color-gold);
}
.page-hero--plain { background-image: none !important; border-bottom: none; }
.page-hero__overlay {
	background: rgba(15,46,34,.35);
	padding: 56px 24px;
	text-align: center;
}
.page-hero--plain .page-hero__overlay { background: none; }
.page-hero__title { color: var(--color-white); margin: 0; }
.page-hero--plain .page-hero__title { color: var(--color-green-dark); }
.page-title { padding-top: 40px; }

/* ==========================================================================
   Notice banner (interregnum etc.)
   ========================================================================== */
.notice-banner {
	margin-top: 24px;
}
.notice-banner p {
	background: #FBEBD4;
	border-left: 5px solid var(--color-gold);
	padding: 16px 20px;
	border-radius: 6px;
	margin: 0;
}

/* ==========================================================================
   Feature grid (homepage 3-up)
   ========================================================================== */
.feature-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	margin: 56px auto;
}
@media (min-width: 780px) {
	.feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-top: 4px solid var(--color-gold);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: 0 2px 10px rgba(15,46,34,.05);
	transition: transform .15s, box-shadow .15s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,46,34,.1); }
.feature-card h2 { font-size: 1.3rem; }
.feature-card a { font-weight: 700; }

/* ==========================================================================
   Welcome content (from the Home page's own editable content)
   ========================================================================== */
.welcome-content { margin: 50px auto; }

/* ==========================================================================
   Painting story
   ========================================================================== */
.painting-story {
	display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center;
	background: var(--color-cream-dark);
	border-radius: var(--radius);
	padding: 36px;
	margin: 56px auto;
}
@media (min-width: 780px) { .painting-story { grid-template-columns: 280px 1fr; padding: 46px; } }
.painting-story__image img {
	border-radius: var(--radius);
	border: 4px solid var(--color-white);
	box-shadow: 0 8px 22px rgba(15,46,34,.12);
}
.painting-story__text h2 { margin-bottom: 12px; }

/* ==========================================================================
   200th anniversary band
   ========================================================================== */
.anniversary-band {
	background-color: var(--color-green-dark);
	background-size: cover;
	background-position: center;
	position: relative;
	margin: 0;
}
.anniversary-band__overlay {
	background: linear-gradient(135deg, rgba(15,46,34,.92), rgba(31,92,70,.75));
	padding: 64px 24px;
	text-align: center;
	color: #fff;
}
.anniversary-band__overlay h2 { color: #fff; }
.anniversary-band__overlay p { max-width: 620px; margin: 0 auto 26px; opacity: .95; font-size: 1.05rem; }

/* ==========================================================================
   Team teaser (homepage)
   ========================================================================== */
.team-teaser { margin: 56px auto; text-align: center; }
.team-teaser h2 { margin-bottom: 30px; }
.team-teaser .rwburc-button { margin-top: 10px; }
.team-grid--compact { margin: 0 0 34px; }

/* ==========================================================================
   Upcoming services teaser + full list
   ========================================================================== */
.upcoming-teaser { margin: 50px auto; }
.upcoming-teaser__list { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--color-border); }
.upcoming-teaser__list li {
	display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--color-border);
}
.upcoming-teaser__date { font-weight: 700; color: var(--color-green-dark); min-width: 190px; }

.services-intro { font-style: italic; color: var(--color-green-dark); }
.services-list { list-style: none; margin: 0; padding: 0; }
.services-list__item {
	display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--color-border);
	flex-wrap: wrap;
}
.services-list__date {
	font-weight: 700; color: var(--color-gold-dark); min-width: 190px; font-size: 1.05rem;
}
.services-list__body { flex: 1; min-width: 220px; }
.services-list__title { margin: 0 0 6px; font-size: 1.25rem; }
.services-list__preacher, .services-list__location, .services-list__streamed { margin: 0 0 4px; color: var(--color-ink); }

/* ==========================================================================
   Home contact section
   ========================================================================== */
.home-contact {
	display: grid; grid-template-columns: 1fr; gap: 40px; margin: 60px auto 60px;
	background: var(--color-green-dark); color: var(--color-cream); border-radius: var(--radius);
	padding: 44px 40px;
}
.home-contact h2 { color: #fff; }
.home-contact a { color: var(--color-gold); }
.home-contact .rwburc-form-row label { color: var(--color-cream); }
.home-contact .rwburc-form-row input,
.home-contact .rwburc-form-row textarea { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.home-contact .rwburc-form-row input::placeholder,
.home-contact .rwburc-form-row textarea::placeholder { color: rgba(255,255,255,.5); }
@media (min-width: 780px) { .home-contact { grid-template-columns: 2fr 1fr; } }

/* ==========================================================================
   Forms
   ========================================================================== */
.rwburc-form { max-width: 520px; }
.rwburc-form-row { margin-bottom: 16px; }
.rwburc-form-row label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--color-green-dark); }
.rwburc-form-row input[type="text"],
.rwburc-form-row input[type="email"],
.rwburc-form-row input[type="tel"],
.rwburc-form-row textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--color-border); border-radius: 6px;
	font-family: var(--font-body); font-size: 1rem; background: var(--color-cream);
}
.rwburc-form-row input:focus, .rwburc-form-row textarea:focus {
	outline: 2px solid var(--color-gold); outline-offset: 1px;
}
.rwburc-form-row--checkbox label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.rwburc-hp-field { position: absolute; left: -9999px; top: -9999px; }
.rwburc-form-notice { margin-top: 16px; padding: 12px 16px; border-radius: 6px; font-weight: 600; }
.rwburc-form-notice--success { background: #E4F2E7; color: var(--color-green-dark); }
.rwburc-form-notice--error { background: #FCE7E1; color: var(--color-gold-dark); }

.contact-forms { display: grid; grid-template-columns: 1fr; gap: 50px; margin: 40px 0 60px; }
@media (min-width: 780px) { .contact-forms { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Team grid
   ========================================================================== */
.team-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px;
	margin: 40px 0 70px;
}
.team-card { text-align: center; }
.team-card__photo {
	width: 160px; height: 160px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px;
	border: 4px solid var(--color-white); box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { font-size: 1.15rem; margin-bottom: 2px; }
.team-card__role { color: var(--color-gold-dark); font-weight: 600; margin: 0; }

/* ==========================================================================
   Find us map
   ========================================================================== */
.find-us-map { margin: 30px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); }
.find-us-address { font-weight: 600; }

/* ==========================================================================
   Entry content / core block styling
   ========================================================================== */
.entry-content { margin: 40px 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content table {
	width: 100%; border-collapse: collapse; margin: 24px 0;
}
.entry-content table th, .entry-content table td {
	border: 1px solid var(--color-border); padding: 10px 14px; text-align: left;
}
.entry-content table th { background: var(--color-cream-dark); }
.entry-content figure { margin: 0 0 24px; }
.entry-content .wp-block-gallery { margin: 24px 0; }
.entry-content blockquote {
	border-left: 4px solid var(--color-gold); margin: 24px 0; padding: 4px 0 4px 20px;
	font-style: italic; color: var(--color-green-dark);
}
.entry-content .wp-block-button__link {
	display: inline-block; background: var(--color-gold); color: var(--color-green-dark); padding: 12px 26px;
	border-radius: 999px; text-decoration: none; font-weight: 700;
}
.entry-content .wp-block-button__link:hover { background: var(--color-gold-dark); color: #fff; }
.entry-content .wp-block-columns { gap: 30px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-green-dark); color: #EDE7D8; margin-top: 60px; }
.site-footer a { color: #fff; }
.site-footer__inner {
	max-width: var(--max-width); margin: 0 auto; padding: 50px 24px 30px;
	display: grid; grid-template-columns: 1fr; gap: 30px;
}
@media (min-width: 780px) { .site-footer__inner { grid-template-columns: repeat(3, 1fr); } }
.site-footer__name { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: #fff; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.site-footer__bottom {
	text-align: center; padding: 18px 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; opacity: .8;
}
