/* Covenant Hands — theme styles (colors and fonts come from theme.json) */

:root {
	--ch-gold: var(--wp--preset--color--gold, #C49A1A);
	--ch-gold-soft: var(--wp--preset--color--gold-soft, #E2C26A);
	--ch-ink: var(--wp--preset--color--ink, #0E0D0B);
	--ch-night: var(--wp--preset--color--night, #161411);
	--ch-coal: var(--wp--preset--color--coal, #1F1C17);
	--ch-line: var(--wp--preset--color--line, #332E25);
	--ch-muted: var(--wp--preset--color--muted, #A39C8C);
	--ch-parchment: var(--wp--preset--color--parchment, #EDE6D6);
	--ch-ivory: var(--wp--preset--color--ivory, #F5F0E6);
	--ch-umber: var(--wp--preset--color--umber, #2A251D);
	--ch-radius: 18px;
	--ch-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--ch-gold); color: var(--ch-ink); }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.ch-main > * + * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }

/* ---------- Labels ---------- */
.ch-eyebrow,
.is-style-ch-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--xs) !important;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--ch-gold);
	margin-bottom: .75rem !important;
}
.ch-eyebrow a { color: inherit; }
.ch-light .ch-eyebrow { color: var(--wp--preset--color--gold-deep, #8F6F10); }

.ch-link-arrow {
	display: inline-flex; align-items: center; gap: .5rem;
	font-size: var(--wp--preset--font-size--sm); font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--ch-gold-soft);
	border-bottom: 1px solid currentColor; padding-bottom: .2rem;
	text-decoration: none !important;
}
.ch-link-arrow::after { content: "→"; transition: transform .25s var(--ch-ease); }
.ch-link-arrow:has(svg)::after { content: none; }
.ch-link-arrow:hover::after { transform: translateX(4px); }
.ch-link-arrow .ch-icon { width: 18px; height: 18px; }
.ch-light .ch-link-arrow { color: var(--ch-umber); }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ch-ease); }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-ch-outline .wp-block-button__link {
	background: transparent; color: var(--ch-parchment);
	box-shadow: inset 0 0 0 1.5px rgba(237, 230, 214, .55);
}
.wp-block-button.is-style-ch-outline .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--ch-gold); color: var(--ch-gold-soft); }
.wp-block-button.is-style-ch-dark .wp-block-button__link { background: var(--ch-ink); color: var(--ch-parchment); }
.wp-block-button.is-style-ch-dark .wp-block-button__link:hover { background: var(--ch-coal); color: var(--ch-gold-soft); }
.ch-btn { cursor: pointer; border: 0; }

/* ---------- Header ---------- */
.ch-header {
	position: sticky; top: 0; z-index: 50;
	border-bottom: 1px solid rgba(196, 154, 26, .18);
	backdrop-filter: saturate(140%) blur(10px);
	background-color: rgba(14, 13, 11, .92) !important;
}
.admin-bar .ch-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ch-header { top: 0; } }

.ch-brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--ch-parchment); text-decoration: none !important; }
.ch-brand .ch-mark { color: var(--ch-gold); flex: none; transition: transform .6s var(--ch-ease); }
.ch-brand:hover .ch-mark { transform: rotate(-8deg); }
.ch-brand__text { display: flex; flex-direction: column; line-height: 1; }
.ch-brand__name { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.45rem; letter-spacing: .01em; }
.ch-brand__sub { font-size: .62rem; font-weight: 700; letter-spacing: .42em; text-transform: uppercase; color: var(--ch-gold); margin-top: .35rem; }
.ch-brand--logo img { max-height: 56px; width: auto; }

.ch-header .wp-block-navigation a { color: var(--ch-parchment); text-transform: uppercase; }
.ch-header .wp-block-navigation a:hover,
.ch-header .wp-block-navigation .current-menu-item > a { color: var(--ch-gold-soft); text-decoration: none; }
.ch-header .wp-block-navigation__submenu-container {
	background: var(--ch-coal) !important; border: 1px solid var(--ch-line) !important;
	border-radius: 12px; padding: .5rem 0 !important; min-width: 220px !important;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.ch-header .wp-block-navigation__submenu-container a { padding: .55rem 1.1rem !important; font-size: .82rem; }
.ch-header-cta .wp-block-button__link { padding: .7rem 1.4rem; }

.wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.25rem; }
.wp-block-navigation__responsive-container.is-menu-open a { font-size: 1.1rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; border: 0 !important; box-shadow: none; padding-left: 1rem !important; }
.wp-block-navigation__responsive-container-open svg, .wp-block-navigation__responsive-container-close svg { fill: var(--ch-parchment); }
.ch-header-cta .wp-block-button__link { white-space: nowrap; }
.ch-brand__name { white-space: nowrap; }
@media (max-width: 599px) {
	.ch-header-cta .wp-block-button__link { padding: .55rem 1.05rem; font-size: .75rem; }
	.ch-brand__name { font-size: 1.2rem; }
	.ch-brand .ch-mark { width: 34px; height: 34px; }
	.ch-brand__sub { letter-spacing: .32em; }
}

.ch-announce { background: var(--ch-gold); color: var(--ch-ink); text-align: center; font-size: .82rem; font-weight: 600; padding: .55rem 1rem; letter-spacing: .02em; }
.ch-announce a { color: inherit; text-decoration: none; }
.ch-announce a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.ch-hero { overflow: hidden; padding-left: var(--wp--style--root--padding-left) !important; padding-right: var(--wp--style--root--padding-right) !important; }
.ch-hero .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(14, 13, 11, .25) 0%, rgba(14, 13, 11, .55) 45%, rgba(14, 13, 11, .96) 100%),
		linear-gradient(90deg, rgba(14, 13, 11, .7) 0%, rgba(14, 13, 11, 0) 70%) !important;
	opacity: 1 !important;
}
.ch-hero .wp-block-cover__image-background { animation: ch-slowzoom 22s ease-out both; }
@keyframes ch-slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.ch-hero .wp-block-cover__inner-container { width: 100% !important; }
.ch-hero .wp-block-cover__inner-container > .alignwide { max-width: var(--wp--style--global--wide-size, 1200px) !important; width: 100%; margin-left: auto !important; margin-right: auto !important; }
.ch-hero__title { font-size: var(--wp--preset--font-size--huge) !important; line-height: .98 !important; margin: .2rem 0 1.1rem !important; }
.ch-hero__title em { font-style: italic; color: var(--ch-gold-soft); }
.ch-hero__lead { color: rgba(237, 230, 214, .85); max-width: 34rem; }
.ch-hero .wp-block-cover__inner-container > * { animation: ch-rise .9s var(--ch-ease) both; }
@keyframes ch-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Pillars ---------- */
.ch-pillars { border-bottom: 1px solid var(--ch-line); }
.ch-pillar { padding: .5rem clamp(1rem, 3vw, 2.5rem); border-left: 1px solid var(--ch-line); }
.ch-pillar:first-child { border-left: 0; padding-left: 0; }
.ch-pillar h3 { margin: .25rem 0 .6rem; }
.ch-pillar__num { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.6rem; color: var(--ch-gold); margin: 0; line-height: 1; }
@media (max-width: 781px) {
	.ch-pillar { border-left: 0; padding: 1.25rem 0; border-top: 1px solid var(--ch-line); }
	.ch-pillar:first-child { border-top: 0; }
}

/* ---------- Light section ---------- */
.ch-light h1, .ch-light h2, .ch-light h3 { color: var(--ch-umber); }
.ch-light a:not(.wp-block-button__link) { color: var(--ch-umber); }
.ch-feature-quote {
	border: 0 !important; margin: 0; padding: 2.5rem 0 0 !important; position: relative;
	font-family: var(--wp--preset--font-family--display); font-style: italic;
}
.ch-feature-quote::before { content: "“"; position: absolute; top: -1.6rem; left: -.3rem; font-size: 6rem; line-height: 1; color: var(--ch-gold); font-style: normal; }
.ch-feature-quote p { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.25; }
.ch-feature-quote cite { display: block; margin-top: 1.25rem; font-family: var(--wp--preset--font-family--body); font-style: normal; font-size: var(--wp--preset--font-size--xs); letter-spacing: .22em; text-transform: uppercase; color: var(--wp--preset--color--gold-deep, #8F6F10); }

/* ---------- Section heads ---------- */
.ch-section-head { margin-bottom: var(--wp--preset--spacing--40) !important; gap: 1rem; }
.ch-section-head h2 { margin: 0; }
.ch-section-head p { margin: 0; }

/* ---------- Cards ---------- */
.is-style-ch-card, .ch-card {
	background: var(--ch-coal); border: 1px solid var(--ch-line); border-radius: var(--ch-radius);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}
.is-style-ch-card > :first-child { margin-top: 0; }
.ch-card .wp-block-post-featured-image { margin: -2.25rem -2.25rem 1.25rem; overflow: hidden; border-radius: var(--ch-radius) var(--ch-radius) 0 0; }

/* ---------- Events ---------- */
.ch-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.5rem; }
.ch-event { background: var(--ch-coal); border: 1px solid var(--ch-line); border-radius: var(--ch-radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, transform .35s var(--ch-ease); }
.ch-event:hover { border-color: rgba(196, 154, 26, .55); transform: translateY(-3px); }
.ch-event__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--ch-night); overflow: hidden; }
.ch-event__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ch-ease); }
.ch-event:hover .ch-event__media img { transform: scale(1.04); }
.ch-event__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ch-gold); background: radial-gradient(circle at 70% 20%, rgba(196, 154, 26, .25), transparent 60%), var(--ch-night); }
.ch-event__date {
	position: absolute; left: 1rem; top: 1rem; background: var(--ch-ink); color: var(--ch-parchment);
	border: 1px solid rgba(196, 154, 26, .5); border-radius: 12px; padding: .45rem .7rem; text-align: center; line-height: 1;
}
.ch-event__date span { display: block; font-size: .65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ch-gold); }
.ch-event__date strong { display: block; font-family: var(--wp--preset--font-family--display); font-size: 1.9rem; font-weight: 600; margin-top: .2rem; }
.ch-event__body { padding: 1.4rem 1.5rem 1.6rem; }
.ch-event__title { font-size: 1.55rem; margin: 0 0 .4rem; }
.ch-event__title a { color: var(--ch-parchment); }
.ch-event__title a:hover { color: var(--ch-gold-soft); text-decoration: none; }
.ch-event__meta { color: var(--ch-gold-soft); font-size: var(--wp--preset--font-size--sm); font-weight: 600; margin: 0 0 .6rem; }
.ch-event__excerpt { color: var(--ch-muted); font-size: var(--wp--preset--font-size--sm); margin: 0; }
.ch-event.is-past { opacity: .72; }
.ch-event.is-past .ch-event__media img { filter: grayscale(.6); }
.ch-event-meta-wrap { text-align: center; }
.ch-event-meta { display: inline-flex; align-items: center; gap: .5rem; margin: .25rem .75rem; color: var(--ch-gold-soft); font-weight: 600; }

.ch-empty { border: 1px dashed var(--ch-line); border-radius: var(--ch-radius); padding: 2rem; text-align: center; color: var(--ch-muted); }
.ch-empty p { margin: 0 0 1rem; }

/* ---------- YouTube ---------- */
.ch-yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--ch-radius); overflow: hidden; background: #000; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.ch-yt iframe, .ch-yt__btn, .ch-yt__btn img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ch-yt__btn img { object-fit: cover; transition: transform .8s var(--ch-ease), opacity .3s; opacity: .85; }
.ch-yt__btn:hover img { transform: scale(1.03); opacity: 1; }
.ch-yt__play {
	position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; transform: translate(-50%, -50%);
	border-radius: 50%; background: var(--ch-gold); box-shadow: 0 0 0 10px rgba(196, 154, 26, .25);
	transition: transform .3s var(--ch-ease), box-shadow .3s;
}
.ch-yt__play::after { content: ""; position: absolute; left: 32px; top: 25px; border-left: 22px solid var(--ch-ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.ch-yt__btn:hover .ch-yt__play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 16px rgba(196, 154, 26, .2); }

.ch-home-letter, .ch-letter-feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.ch-home-letter h2, .ch-letter-feature h2 { margin: 0 0 1rem; }
.ch-home-letter p:not(.ch-eyebrow), .ch-letter-feature p:not(.ch-eyebrow) { color: var(--ch-muted); }
@media (max-width: 860px) { .ch-home-letter, .ch-letter-feature { grid-template-columns: 1fr; } }
.ch-letters-heading { margin: var(--wp--preset--spacing--50) 0 1.5rem !important; font-size: var(--wp--preset--font-size--xl); }
.ch-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.75rem; }
.ch-letter .ch-yt { box-shadow: none; border: 1px solid var(--ch-line); }
.ch-letter .ch-yt__play { width: 56px; height: 56px; box-shadow: 0 0 0 6px rgba(196, 154, 26, .25); }
.ch-letter .ch-yt__play::after { left: 23px; top: 17px; border-left-width: 16px; border-top-width: 11px; border-bottom-width: 11px; }
.ch-letter .ch-eyebrow { margin: 1rem 0 .3rem !important; }
.ch-letter h4 { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 1.4rem; font-weight: 500; }
.ch-letter h4 a { color: var(--ch-parchment); }

/* ---------- Testimonials ---------- */
.ch-testimonial { background: var(--ch-coal); border: 1px solid var(--ch-line); border-radius: var(--ch-radius); padding: 2.25rem 2rem 2rem; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.ch-testimonial::before { content: "“"; font-family: var(--wp--preset--font-family--display); font-size: 4.5rem; line-height: .6; color: var(--ch-gold); display: block; height: 1.6rem; }
.ch-testimonial__text { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.35rem; line-height: 1.45; }
.ch-testimonial__who { font-size: var(--wp--preset--font-size--sm); color: var(--ch-muted); margin-top: 1.5rem !important; padding-top: 1rem; border-top: 1px solid var(--ch-line); }
.ch-testimonial__who strong { display: block; color: var(--ch-parchment); }

/* ---------- Give band ---------- */
.ch-give-band { background: linear-gradient(135deg, #E2C26A 0%, #C49A1A 50%, #9C7A12 100%); color: var(--ch-ink); position: relative; overflow: hidden; }
.ch-give-band::after { content: ""; position: absolute; right: -6%; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); border-radius: 50%; border: 1px solid rgba(14, 13, 11, .18); box-shadow: 0 0 0 40px rgba(14, 13, 11, .04), 0 0 0 90px rgba(14, 13, 11, .03); pointer-events: none; }
.ch-give-band h2 { color: var(--ch-ink); margin: 0 0 .5rem; }
.ch-give-band .ch-eyebrow { color: var(--ch-ink); opacity: .7; }
.ch-give-band p { color: rgba(14, 13, 11, .8); }
@media (max-width: 781px) { .ch-give-band .wp-block-buttons { justify-content: flex-start !important; } }

/* ---------- Forms ---------- */
.ch-form-card { background: var(--ch-ivory); color: var(--ch-umber); border-radius: var(--ch-radius); padding: 1.25rem 1.5rem .5rem; margin-top: 1.5rem; }
.ch-form-card iframe { display: block; width: 100%; border: 0; }

/* ---------- Contact ---------- */
.ch-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ch-contact li { display: flex; align-items: center; gap: .7rem; color: var(--ch-parchment); font-size: var(--wp--preset--font-size--sm); }
.ch-contact .ch-icon { color: var(--ch-gold); flex: none; }
.ch-contact a { color: var(--ch-parchment); }
.ch-contact a:hover { color: var(--ch-gold-soft); }
.ch-contact--inline { margin: 1.5rem 0 0; }
.ch-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.ch-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ch-line); display: grid; place-items: center; color: var(--ch-parchment); transition: border-color .2s, color .2s; }
.ch-social a:hover { border-color: var(--ch-gold); color: var(--ch-gold); }

/* ---------- Page banner ---------- */
.ch-page-banner { position: relative; text-align: center; border-bottom: 1px solid var(--ch-line); margin-bottom: var(--wp--preset--spacing--50); overflow: hidden; }
.ch-page-banner::before { content: ""; position: absolute; left: 50%; top: -60%; width: 900px; height: 500px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(196, 154, 26, .22), transparent); pointer-events: none; }
.ch-page-banner > * { position: relative; }
.ch-page-banner .wp-block-post-title { margin: .2rem auto .8rem; max-width: 18ch; }
.ch-page-intro { color: var(--ch-muted); font-size: var(--wp--preset--font-size--lg); max-width: 40rem; margin: 0 auto; }
.ch-page-body { padding-bottom: var(--wp--preset--spacing--60); }
.ch-page-body > h2:first-child { margin-top: 0; }

.ch-dropcap::first-letter { float: left; font-family: var(--wp--preset--font-family--display); font-size: 4.6em; line-height: .78; padding: .1em .12em 0 0; color: var(--ch-gold); }
.ch-pastor { background: radial-gradient(circle at 100% 0%, rgba(196, 154, 26, .14), transparent 55%), var(--ch-coal) !important; }
.ch-cta { border-top: 1px solid var(--ch-line); padding-top: var(--wp--preset--spacing--50); }
.ch-belief h3 { font-size: 1.65rem; margin: .5rem 0 .6rem; }
.ch-beliefs, .ch-resources { gap: 1.5rem; }
.ch-past-heading { font-size: var(--wp--preset--font-size--xl) !important; color: var(--ch-muted) !important; }

/* ---------- Give page ---------- */
.ch-give-online {
	text-align: center; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--ch-radius);
	background: radial-gradient(circle at 50% 0%, rgba(196, 154, 26, .22), transparent 60%), var(--ch-coal);
	border: 1px solid rgba(196, 154, 26, .35);
}
.ch-give-online h2 { margin: 0 0 .75rem; }
.ch-give-online p:not(.ch-eyebrow) { color: var(--ch-muted); max-width: 32rem; margin: 0 auto 1.75rem; }
.ch-give-online .ch-btn { font-size: 1rem; padding: 1.1rem 2.75rem; border-radius: 999px; background: var(--ch-gold); color: var(--ch-ink); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ch-give-online .ch-btn:hover { background: var(--ch-gold-soft); }
.ch-give-more { margin-top: var(--wp--preset--spacing--50); }
.ch-give-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.ch-give-card { background: var(--ch-coal); border: 1px solid var(--ch-line); border-radius: var(--ch-radius); padding: 1.75rem; text-align: center; }
.ch-give-card .ch-icon { width: 30px; height: 30px; color: var(--ch-gold); }
.ch-give-card h3 { font-size: 1.5rem; margin: .6rem 0 .4rem; }
.ch-give-card__label { color: var(--ch-muted); font-size: var(--wp--preset--font-size--xs); letter-spacing: .18em; text-transform: uppercase; margin: 0; }
.ch-give-card__value { font-weight: 700; color: var(--ch-gold-soft); margin: .3rem 0 0; word-break: break-word; }

/* ---------- Footer ---------- */
.ch-footer .ch-eyebrow { margin-bottom: 1rem !important; }
.is-style-ch-plain, .ch-footer-links { list-style: none; padding: 0; margin: 0; }
.ch-footer-links li { margin: 0 0 .55rem; }
.ch-footer-links a { color: var(--ch-parchment); font-size: var(--wp--preset--font-size--sm); }
.ch-footer-links a:hover { color: var(--ch-gold-soft); }
.ch-footer .wp-block-separator { margin: var(--wp--preset--spacing--40) 0 1.25rem; border: 0; height: 1px; opacity: 1; }
.ch-copyright { color: var(--ch-muted); font-size: var(--wp--preset--font-size--xs); letter-spacing: .06em; margin: 0; }

.is-style-ch-checks { list-style: none; padding-left: 0; }
.is-style-ch-checks li { padding-left: 1.6rem; position: relative; }
.is-style-ch-checks li::before { content: "✦"; position: absolute; left: 0; color: var(--ch-gold); }

/* ---------- Motion: reveal on scroll ---------- */
.ch-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ch-ease), transform .8s var(--ch-ease); }
.ch-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.ch-reveal { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid var(--ch-gold-soft); outline-offset: 3px; }
