/*
Theme Name: Hope Church
Description: Child theme of Twenty Twenty-Five for Hope Reformed Church of Vancouver — warm, readable, mobile-first facelift of the legacy hopechurch.ca site.
Template: twentytwentyfive
Version: 1.0.0
Text Domain: hopechurch
*/

/* Hero on the front page */
.hope-hero {
	border-bottom: 4px solid var(--wp--preset--color--accent-2);
}

.hope-hero .wp-block-heading {
	letter-spacing: 0.01em;
}

/* Service-times cards on the front page */
.hope-times {
	background: #ffffff;
	border-top: 3px solid var(--wp--preset--color--accent-2);
	border-radius: 8px;
	padding: 1.75rem 1.5rem;
	box-shadow: 0 2px 10px rgba(34, 51, 59, 0.06);
}

.hope-times h3 {
	margin-top: 0;
}

/* Breadcrumbs on nested pages */
.hope-breadcrumbs {
	font-size: 0.9rem;
	margin-bottom: 0.75rem;
}

.hope-breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
}

.hope-breadcrumbs li:not(:last-child)::after {
	content: "\203A";
	margin-left: 0.35em;
	color: var(--wp--preset--color--accent-4);
}

.hope-breadcrumbs li[aria-current] {
	color: var(--wp--preset--color--accent-6);
}

.hope-breadcrumbs a {
	text-decoration: none;
}

.hope-breadcrumbs a:hover {
	text-decoration: underline;
}

/* Section submenu + content grid on inner pages */
@media (min-width: 782px) {
	.hope-page-grid {
		display: grid;
		grid-template-columns: 230px minmax(0, 1fr);
		gap: 2.5rem;
		align-items: start;
	}

	/* Pages outside any section (no submenu rendered) fall back to one column */
	.hope-page-grid:not(:has(.hope-section-menu)) {
		display: block;
	}
}

.hope-section-menu {
	font-size: 0.95rem;
	border-right: 1px solid var(--wp--preset--color--accent-3);
	padding-right: 1.25rem;
}

.hope-section-menu h2 {
	font-size: 1.05rem;
	margin: 0 0 0.5rem;
}

.hope-section-menu h2 a,
.hope-section-menu ul a {
	text-decoration: none;
	display: block;
	padding: 0.3em 0 0.3em 0.6em;
	border-left: 3px solid transparent;
	color: var(--wp--preset--color--contrast);
}

.hope-section-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hope-section-menu h2 a:hover,
.hope-section-menu ul a:hover {
	color: var(--wp--preset--color--accent-1);
}

.hope-section-menu h2.is-current a,
.hope-section-menu li.is-current a {
	border-left-color: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--accent-1);
	font-weight: 600;
}

@media (max-width: 781px) {
	.hope-section-menu {
		display: none;
	}
}

/* Pastor portrait */
.hope-portrait img {
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(34, 51, 59, 0.18);
}

/* Links inside the dark footer — the global teal link color is unreadable
   on the slate background (contrast 1.85:1), so use gold there instead */
footer .wp-block-group a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--accent-2);
}

footer .wp-block-group a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--base);
}

/* Slightly tighter nav on small screens */
@media (max-width: 781px) {
	.wp-block-navigation {
		font-size: 1rem;
	}
}

/* Keep long content (tables, embeds) from forcing horizontal scroll on phones */
.entry-content table {
	display: block;
	overflow-x: auto;
	max-width: 100%;
}

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