/* ==========================================================================
   Olowosoyo Ministries theme
   Colours and fonts are set once here as variables.
   ========================================================================== */

:root {
	--navy: #14213d;
	--navy-2: #1d2d52;
	--navy-3: #0d1629;
	--gold: #c8962e;
	--gold-2: #e0b558;
	--gold-soft: #f6ead0;
	--cream: #faf6ef;
	--paper: #ffffff;
	--ink: #1d1d1f;
	--muted: #5b6070;
	--line: #e7e1d6;
	--green: #2f7a4f;

	/* One plain sans-serif family for the whole site (headings included). */
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--serif: var(--sans);

	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .08);
	--shadow-lg: 0 20px 50px rgba(13, 22, 41, .18);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(56px, 8vw, 104px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
em, i, cite { font-style: normal; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 780px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--gold); color: var(--navy); padding: 8px 16px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.icon { flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
	font: 600 .95rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none;
	cursor: pointer; transition: transform .15s ease, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(200, 150, 46, .35); }
.btn--gold:hover { background: #b6852a; color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--ghost-dark { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost-dark:hover { border-color: var(--navy); color: var(--navy); }
.btn--sm { padding: .6em 1.15em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* WordPress block buttons (used inside page content) get the same look as the theme buttons. */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }
.wp-block-button { margin: 0; }
.wp-block-button__link, .prose .wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.6em; border-radius: 999px; border: 2px solid var(--gold);
	background: var(--gold); color: #fff !important; font: 600 .95rem/1.2 var(--sans);
	text-decoration: none !important; box-shadow: 0 6px 18px rgba(200, 150, 46, .3);
	transition: transform .15s ease, background .2s, color .2s, border-color .2s;
}
.wp-block-button__link:hover, .prose .wp-block-button__link:hover { background: var(--navy); border-color: var(--navy); color: #fff !important; transform: translateY(-1px); }
.wp-block-button:nth-child(n+2):not(.is-style-fill) .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: var(--navy) !important; border-color: var(--navy); box-shadow: none;
}
.wp-block-button:nth-child(n+2):not(.is-style-fill) .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--navy); color: #fff !important; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--navy); white-space: nowrap; }
.link-arrow .icon { transition: transform .2s; width: 18px; height: 18px; color: var(--gold); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid rgba(20, 33, 61, .08);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand-logo { flex: none; width: 60px; height: 60px; object-fit: contain; mix-blend-mode: multiply; border-radius: 12px; }
@media (max-width: 480px) { .brand-logo { width: 46px; height: 46px; } }
.brand-mark {
	flex: none; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--navy); color: var(--gold-2);
	font: 700 1.6rem/1 var(--serif);
	box-shadow: inset 0 0 0 2px var(--gold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font: 700 1.08rem/1.15 var(--sans); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav .menu { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; border-radius: 8px; }
.main-nav .menu a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--navy); background: var(--gold-soft); }
.main-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 240px;
	background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.nav-give { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; color: var(--navy); cursor: pointer; border-radius: 8px; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle-close { display: none; }

@media (max-width: 1000px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: fixed; inset: 76px 0 0 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 12px;
		background: #fff; padding: 20px var(--gutter) 40px; overflow-y: auto;
		display: none;
	}
	.admin-bar .main-nav { top: 122px; }
	.nav-open .main-nav { display: flex; }
	.nav-open .nav-toggle-open { display: none; }
	.nav-open .nav-toggle-close { display: inline; }
	.main-nav .menu { flex-direction: column; }
	.main-nav .menu a { padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
	.nav-give { margin: 12px 0 0; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
	.brand-name { font-size: .95rem; }
	.brand-sub { font-size: .62rem; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--navy-3);
	color: #fff;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background-image: var(--hero-bg, none); background-size: cover; background-position: center;
	opacity: .28; filter: grayscale(30%);
}
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(1000px 500px at 85% 20%, rgba(200, 150, 46, .28), transparent 60%),
		linear-gradient(100deg, var(--navy-3) 25%, rgba(20, 33, 61, .82) 60%, rgba(20, 33, 61, .55));
}
.hero-inner {
	display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: clamp(24px, 5vw, 64px);
	padding-top: clamp(56px, 8vw, 96px);
}
.hero-copy { padding-bottom: clamp(56px, 8vw, 104px); }
.hero-title { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.5rem); margin-bottom: .35em; }
.hero-text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .82); max-width: 38em; margin-bottom: 2em; }
.hero-photo { position: relative; align-self: end; }
.hero-photo::before {
	content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; top: 14%;
	border-radius: 260px 260px 0 0; background: linear-gradient(180deg, rgba(200, 150, 46, .55), rgba(200, 150, 46, .08));
}
.hero-photo img {
	position: relative; width: 100%; max-height: 620px; object-fit: cover; object-position: top center;
	border-radius: 260px 260px 0 0;
	-webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
	mask-image: linear-gradient(180deg, #000 80%, transparent);
}
@media (max-width: 860px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-copy { padding-bottom: 0; }
	.hero-photo { max-width: 360px; margin: 0 auto; width: 80%; }
}

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font: 600 .78rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase;
	color: var(--gold); margin-bottom: 1em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--gold-2); }
.eyebrow a { color: inherit; text-decoration: none; }

/* ---------- Highlights ---------- */
.highlights { position: relative; background: var(--gold); color: var(--navy-3); }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.highlight { padding: 28px 24px; text-align: center; }
.highlight + .highlight { border-left: 1px solid rgba(13, 22, 41, .18); }
.highlight-big { font: 700 2rem/1 var(--serif); margin: 0 0 6px; }
.highlight-small { margin: 0; font-size: .95rem; font-weight: 500; }
@media (max-width: 640px) {
	.highlights-grid { grid-template-columns: 1fr; }
	.highlight + .highlight { border-left: 0; border-top: 1px solid rgba(13, 22, 41, .18); }
	.highlight { padding: 18px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .85); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: .3em; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-lead { font-size: 1.08rem; color: var(--muted); margin: 0; }
.section--navy .section-lead { color: rgba(255, 255, 255, .75); }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-top .section-head { margin-bottom: 0; }
@media (max-width: 700px) { .section-top { flex-direction: column; align-items: flex-start; } }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.about .split-media { position: relative; }
.about .split-media::after {
	content: ""; position: absolute; z-index: -1; right: -18px; bottom: -18px; width: 60%; height: 60%;
	border: 2px solid var(--gold); border-radius: var(--radius);
}
.about .split-media { isolation: isolate; }
.split--video { grid-template-columns: .9fr 1.1fr; }
@media (max-width: 860px) {
	.split, .split--video { grid-template-columns: 1fr; }
	.about .split-media { max-width: 440px; }
	.about .split-media::after { display: none; }
}

.prose { font-size: 1.05rem; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { font-size: 2rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius-sm); }
.prose blockquote { margin: 1.5em 0; padding: .5em 0 .5em 1.25em; border-left: 3px solid var(--gold); font: 500 1.2rem/1.5 var(--sans); color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a:not(.wp-block-button__link):not(.btn) { color: var(--navy); font-weight: 500; }
.prose figure { margin: 1.5em 0; }

.prose .wp-block-gallery img { border-radius: var(--radius-sm); }
.prose .wp-block-gallery figcaption { background: linear-gradient(0deg, rgba(13, 22, 41, .85), transparent); color: #fff; font-size: .85rem; }
.prose .wp-block-embed iframe, .prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-sm); }
.about .prose { margin-bottom: 28px; color: var(--muted); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--books { grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--books { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid--3 { grid-template-columns: 1fr; } .grid--books { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.card {
	display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--navy-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.card-media-fallback .icon { width: 48px; height: 48px; opacity: .7; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); margin: 0 0 10px; }
.card-title { font-size: 1.45rem; margin-bottom: .4em; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--gold); }
.card-excerpt { color: var(--muted); font-size: .97rem; flex: 1; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: #8a6419; font-weight: 600; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }

.date-badge {
	position: absolute; left: 16px; top: 16px; width: 60px; padding: 8px 0 6px; text-align: center;
	background: #fff; border-radius: 10px; box-shadow: var(--shadow);
	font: 600 .75rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--gold);
}
.date-badge b { display: block; font: 700 1.7rem/1 var(--serif); color: var(--navy); margin-bottom: 2px; letter-spacing: 0; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.status--upcoming { background: #e6eefc; color: #2448a8; }
.status--ongoing { background: #e3f3e9; color: var(--green); }
.status--past { background: #eef0f3; color: var(--muted); }
.event-facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }
.event-facts li { display: flex; gap: 10px; align-items: flex-start; }
.event-facts .icon { width: 18px; height: 18px; color: var(--gold); margin-top: 3px; }
.empty-note { padding: 24px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* Books */
.book-card { text-align: center; }
.book-cover { display: block; position: relative; border-radius: 6px 12px 12px 6px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,.08), 10px 14px 30px rgba(20, 33, 61, .18); transition: transform .25s; background: var(--cream); aspect-ratio: 2 / 3; }
.book-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent); z-index: 1; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card:hover .book-cover { transform: translateY(-6px) rotate(-1deg); }
.book-title { font-size: 1.2rem; margin: 18px 0 4px; }
.book-title a { color: var(--navy); text-decoration: none; }
.book-price { margin: 0; font-size: .9rem; color: var(--muted); }
.book-price .free { color: var(--green); font-weight: 600; }

/* Video */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cover { position: absolute; inset: 0; display: block; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s; }
.video-cover:hover img { opacity: .9; }
.video-cover .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(200, 150, 46, .3); }
.video-cover .play .icon { width: 36px; height: 36px; margin-left: 4px; }

/* Get involved */
.involve-card { background: #fff; border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); display: flex; flex-direction: column; }
.involve-card p { color: var(--muted); flex: 1; }
.involve-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 18px; }
.involve-icon .icon { width: 26px; height: 26px; }

/* ---------- Inner pages ---------- */
.page-hero {
	position: relative; overflow: hidden;
	background: radial-gradient(800px 300px at 90% 0%, rgba(200, 150, 46, .25), transparent 60%), var(--navy);
	color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
}
.page-hero h1 { color: #fff; max-width: 18em; }
.page-hero .eyebrow { color: var(--gold-2); }
.page-hero-sub { font-size: 1.15rem; color: rgba(255, 255, 255, .78); max-width: 40em; margin: 0; }
.page-hero .status { margin-top: 6px; }

.page-with-image { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.page-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); position: sticky; top: 110px; }
@media (max-width: 860px) { .page-with-image { grid-template-columns: 1fr; } .page-image { max-width: 380px; } }

.article-head { padding: clamp(48px, 7vw, 88px) 0 32px; background: var(--cream); }
.article-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 0; }
.article-image { margin: -1px auto 0; padding-top: 32px; max-width: 1000px; }
.article-image img { border-radius: var(--radius); width: 100%; }
.single-article .entry-content { padding: 40px 0 24px; font-size: 1.1rem; }
.article-foot { border-top: 1px solid var(--line); padding: 24px 0; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.tags a { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border-radius: 999px; background: var(--cream); text-decoration: none; font-size: .85rem; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0 64px; font-weight: 600; }
.post-nav a { text-decoration: none; }
.post-nav div:last-child { text-align: right; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.pagination { margin-top: 48px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

.event-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.event-image img { border-radius: var(--radius); width: 100%; margin-bottom: 32px; }
.event-panel { position: sticky; top: 110px; background: var(--cream); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; }
.event-panel h2 { font-size: 1.6rem; margin: 0; }
.event-facts--lg { gap: 16px; margin: 6px 0 12px; font-size: 1rem; color: var(--ink); }
.event-facts--lg strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .event-layout { grid-template-columns: 1fr; } .event-panel { position: static; } }

/* Contact / forms */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.partner-layout { grid-template-columns: 1fr 380px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card { position: relative; background: var(--navy); color: rgba(255, 255, 255, .85); border-radius: var(--radius); padding: 32px; }
.contact-card h2 { color: #fff; font-size: 1.8rem; }
.contact-card a { color: #fff; }
.contact-card .prose { color: rgba(255, 255, 255, .85); }
.contact-card blockquote { margin: 0; font: 500 1.2rem/1.5 var(--sans); color: #fff; }
.contact-main .entry-content { margin-bottom: 32px; color: var(--muted); }
.contact-card cite { display: block; margin-top: 12px; font: 600 .85rem var(--sans); color: var(--gold-2); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.give-card { background: var(--cream); color: var(--ink); }
.give-card h2 { color: var(--navy); }
.give-card a:not(.btn) { color: var(--navy); }
.give-way + .give-way { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.give-way h3 { font-size: 1.25rem; margin-bottom: .2em; }
.bank { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; background: #fff; padding: 12px 14px; border-radius: 8px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--gold); margin-top: 4px; width: 18px; height: 18px; }
.contact-list--lg strong { display: block; color: var(--gold-2); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-list--lg { margin-bottom: 24px; }
.contact-main h2 { font-size: 2rem; }

.olo-contact-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.olo-contact-form .opt { font-weight: 400; color: var(--muted); }
.olo-contact-form input[type="text"], .olo-contact-form input[type="email"], .olo-contact-form input[type="tel"], .olo-contact-form textarea,
.search-form input[type="search"], .comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; padding: 14px 16px; font: 1rem var(--sans); color: var(--ink);
	border: 1px solid #d9d3c7; border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.olo-contact-form input:focus, .olo-contact-form textarea:focus, .search-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 150, 46, .18); }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row--2 { grid-template-columns: 1fr; } }
.olo-check label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.form-note { font-size: .85rem; color: var(--muted); }
.olo-hp { position: absolute; left: -9999px; }
.olo-notice { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-weight: 500; }
.olo-notice--ok { background: #e3f3e9; color: #1d5235; }
.olo-notice--error { background: #fdeceb; color: #8a231b; }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.3); }

.search-form { display: flex; gap: 8px; max-width: 520px; margin: 24px auto; }
.empty-state { text-align: center; padding: 40px 0; }

/* Social */
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, color .2s; }
.social a:hover { background: var(--gold); color: #fff; }
.social .icon { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: rgba(255, 255, 255, .7); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand { display: flex; align-items: center; gap: 14px; font: 700 1.15rem/1.25 var(--sans); color: #fff; margin-bottom: 16px; }
.footer-logo { flex: none; width: 64px; height: 64px; object-fit: contain; border-radius: 50%; background: #faf8f4; padding: 4px; }
.site-footer h3 { font: 600 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 20px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-menu, .site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-about .social { margin-top: 20px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; } }

/* ---------- Bookstore (WooCommerce) ---------- */
.shop-wrap .woocommerce-result-count { color: var(--muted); font-size: .9rem; }
.shop-wrap .woocommerce-ordering select { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); }
.shop-wrap .woocommerce-products-header { display: none; }
.shop-wrap ul.products { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; clear: both; }
.shop-wrap ul.products::before, .shop-wrap ul.products::after { display: none; }
.shop-wrap ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; text-align: center; }
.shop-wrap ul.products li.product a img { border-radius: 6px 12px 12px 6px; box-shadow: 10px 14px 30px rgba(20, 33, 61, .18); aspect-ratio: 2 / 3; object-fit: cover; width: 100%; margin-bottom: 16px; transition: transform .25s; }
.shop-wrap ul.products li.product a:hover img { transform: translateY(-6px); }
.shop-wrap ul.products li.product .woocommerce-loop-product__title { font: 700 1.2rem/1.2 var(--serif); color: var(--navy); margin: 0 0 6px; }
.shop-wrap ul.products li.product .price { color: var(--muted); font-size: .9rem; display: block; margin-bottom: 12px; }
.shop-wrap ul.products li.product a { text-decoration: none; }
@media (max-width: 960px) { .shop-wrap ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .shop-wrap ul.products { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit {
	display: inline-block; background: var(--navy) !important; color: #fff !important; border-radius: 999px !important;
	padding: .75em 1.4em !important; font: 600 .9rem/1.2 var(--sans) !important; border: 0; text-decoration: none;
}
.woocommerce .button:hover { background: var(--gold) !important; }
.woocommerce .button.alt, .woocommerce button.single_add_to_cart_button { background: var(--gold) !important; }
.single-product div.product { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 56px; align-items: start; }
.single-product div.product .woocommerce-product-gallery { width: auto !important; float: none !important; }
.single-product div.product .woocommerce-product-gallery img { border-radius: 8px; box-shadow: var(--shadow-lg); }
.single-product div.product .summary { width: auto !important; float: none !important; }
.single-product div.product .product_title { font-size: clamp(2rem, 4vw, 3rem); }
.single-product div.product .price { font-size: 1.3rem; color: var(--green); font-weight: 600; }
.single-product .woocommerce-tabs, .single-product .related, .single-product .upsells { grid-column: 1 / -1; }
.single-product .woocommerce-tabs ul.tabs { list-style: none; padding: 0; display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.single-product .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 16px; text-decoration: none; font-weight: 600; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.single-product form.cart { display: flex; gap: 12px; align-items: center; margin: 24px 0; }
.single-product .quantity input { width: 70px; padding: 10px; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 760px) { .single-product div.product { grid-template-columns: 1fr; } }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; padding: 16px 20px; border-radius: 10px; background: var(--cream); border-left: 4px solid var(--gold); margin: 0 0 24px; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce-breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.woocommerce-breadcrumb a { color: var(--muted); }

/* Comments */
.comments { padding: 24px 0 64px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-form .submit { background: var(--navy); color: #fff; border: 0; padding: 12px 24px; border-radius: 999px; font-weight: 600; cursor: pointer; }

/* WordPress core alignments */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 8px; }

/* ---------- "Edit this section" pills (only visible to logged-in editors) ---------- */
.olo-edit-pill {
	position: absolute; top: 14px; right: 14px; z-index: 5;
	display: inline-flex; align-items: center; gap: 4px;
	padding: 6px 12px; border-radius: 999px;
	background: var(--gold); color: #fff !important; text-decoration: none !important;
	font: 600 12px/1.2 var(--sans); box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
	opacity: .9;
}
.olo-edit-pill:hover { opacity: 1; background: var(--navy); }
.olo-edit-pill--static, .footer-bottom .olo-edit-pill, .contact-card .olo-edit-pill { position: static; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   v1.1 — consistent styling across all pages
   ========================================================================== */

/* Bookstore extras */
.shop-wrap .woocommerce-result-count { float: left; margin: 8px 0 0; }
.shop-wrap .woocommerce-ordering { float: right; margin: 0; }
.shop-wrap ul.products li.product a img { background: var(--cream); }
.shop-wrap ul.products li.product .woocommerce-loop-product__title { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
.price .free, .book-price .free { color: var(--green); font-weight: 600; }
.shop-wrap ul.products li.product .button { margin-top: 4px; }
.woocommerce-pagination { margin-top: 48px; }
.woocommerce-pagination ul.page-numbers { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; border: 0 !important; }
.woocommerce-pagination ul.page-numbers li { border: 0 !important; float: none !important; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span {
	min-width: 44px; height: 44px; padding: 0 14px !important; display: inline-grid !important; place-items: center;
	border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--navy) !important; font-weight: 600; background: #fff !important;
}
.woocommerce-pagination .page-numbers span.current { background: var(--navy) !important; color: #fff !important; border-color: var(--navy); }
.woocommerce-pagination .page-numbers a:hover { border-color: var(--navy); }
.single-product div.product .woocommerce-product-gallery__image img { width: 100%; height: auto; }
.single-product div.product .product_meta { font-size: .9rem; color: var(--muted); }
.single-product div.product .product_meta a { color: var(--navy); }
.single-product .related > h2, .single-product .upsells > h2 { font-size: 1.6rem; margin: 56px 0 8px; }
.single-product .woocommerce-tabs h2 { font-size: 1.4rem; }
.single-product .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; margin: 0 !important; padding: 0 !important; }
.single-product .woocommerce-tabs ul.tabs li::before, .single-product .woocommerce-tabs ul.tabs li::after, .single-product .woocommerce-tabs ul.tabs::before { display: none !important; }
.woocommerce-product-gallery__trigger { display: none; }
img.woocommerce-placeholder { opacity: .5; }

/* MailPoet newsletter / partner forms: same fields and buttons as the rest of the site */
.mailpoet_form { padding: 0 !important; }
.mailpoet_form form { margin: 0; }
.mailpoet_form .mailpoet_paragraph { margin-bottom: 16px !important; }
.mailpoet_form input.mailpoet_text, .mailpoet_form textarea.mailpoet_textarea, .mailpoet_form select.mailpoet_select {
	width: 100% !important; max-width: 100% !important; padding: 14px 16px !important; font: 1rem var(--sans) !important; color: var(--ink) !important;
	border: 1px solid #d9d3c7 !important; border-radius: 10px !important; background: #fff !important; box-shadow: none !important;
}
.mailpoet_form input.mailpoet_text:focus, .mailpoet_form select.mailpoet_select:focus { outline: none; border-color: var(--gold) !important; box-shadow: 0 0 0 4px rgba(200, 150, 46, .18) !important; }
.mailpoet_form label, .mailpoet_form .mailpoet_radio_label, .mailpoet_form .mailpoet_checkbox_label { font: 500 .95rem/1.5 var(--sans) !important; color: var(--ink) !important; }
.mailpoet_form .mailpoet_text_label, .mailpoet_form .mailpoet_select_label, .mailpoet_form .mailpoet_segment_label { display: block; font-weight: 600 !important; color: var(--navy) !important; margin-bottom: 6px; }
.mailpoet_form input.mailpoet_submit, .mailpoet_form .mailpoet_submit {
	width: auto !important; padding: .9em 1.8em !important; border-radius: 999px !important; border: 0 !important;
	background: var(--gold) !important; color: #fff !important; font: 600 1rem/1.2 var(--sans) !important;
	box-shadow: 0 6px 18px rgba(200, 150, 46, .35) !important; cursor: pointer;
}
.mailpoet_form input.mailpoet_submit:hover { background: var(--navy) !important; }
.mailpoet_form .mailpoet_form_columns { gap: 16px; }
.mailpoet_form .mailpoet_form_column { margin: 0 !important; }
.wp-block-mailpoet-subscription-form-block, .mailpoet_form_shortcode { background: var(--cream); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px) !important; margin: 1.5em 0; }

/* Comments form and spam slider */
.comment-reply-title { font-size: 1.5rem; }
.comment-form .submit { font: 600 .95rem/1.2 var(--sans); padding: .85em 1.6em; }
.comment-form .submit:hover { background: var(--gold); }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.comment-form .comment-form-cookies-consent label, .comment-form .comment-form-mailpoet label { display: inline; font-weight: 400; }
.slide-to-unlock, .slider-captcha, #slider-captcha { max-width: 340px; border-radius: 999px; overflow: hidden; }

/* Headings inside cards and footers keep a calm weight */
.card-title { font-size: 1.2rem; letter-spacing: -.01em; }
.book-title { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.highlight-big { letter-spacing: -.02em; }
.hero-title { letter-spacing: -.03em; font-size: clamp(2.3rem, 5vw, 4rem); }
.page-hero h1 { letter-spacing: -.03em; }
.date-badge b { font-family: var(--sans); }

/* MailPoet's own form styles use an ID, so these need #main to win */
#main .mailpoet_form .mailpoet_submit, #main .mailpoet_form input[type="submit"] {
	border-radius: 999px !important; padding: .9em 1.8em !important; background: var(--gold) !important; color: #fff !important;
	font: 600 1rem/1.2 var(--sans) !important; border: 0 !important; box-shadow: 0 6px 18px rgba(200, 150, 46, .35) !important;
}
#main .mailpoet_form .mailpoet_submit:hover { background: var(--navy) !important; }
#main .mailpoet_form form { max-width: 100% !important; }

/* Product tabs: the tab label already says "Description" */
.single-product .woocommerce-Tabs-panel > h2:first-child { display: none; }

@media (max-width: 480px) {
	.brand-name { white-space: normal; font-size: .9rem; }
	.brand-sub { letter-spacing: .1em; }
}
