/*
Theme Name: Hope Church
Description: Custom theme for Hope Church, an Apostolic church in Jamestown, North Dakota. Creates the site's pages on activation.
Author: Bison Advertising
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hope-church
*/

:root {
	--hope-ink: #1F1E1C;
	--hope-paper: #FFFFFF;
	--hope-tint: #F3F2EF;
	--hope-flame: #C43E1A;
	--hope-flame-text: #B5391A;
	--hope-flame-bright: #D9481F;
	--hope-muted: #3A3835;
	--hope-line: #C9C5BE;
	--hope-serif: 'Source Serif 4', Georgia, serif;
	--hope-sans: 'Source Sans 3', system-ui, sans-serif;
	--hope-pad: clamp(20px, 4vw, 48px);
}

body { margin: 0; font-family: var(--hope-sans); color: var(--hope-ink); background: var(--hope-paper); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--hope-flame-text); }
a:hover { color: #7E2710; }
img { max-width: 100%; height: auto; }
input, textarea, button { font-family: inherit; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.screen-reader-text { position: absolute; left: -9999px; }
.hope-skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--hope-ink); padding: 10px 16px; z-index: 30; }
.hope-skip:focus { left: 8px; }

/* Top strip */
.hope-strip { background: var(--hope-ink); color: #fff; font-size: 15px; }
.hope-strip__inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--hope-pad); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 32px; }
.hope-strip__inner > * { padding: 9px 0; }
.hope-strip a { color: #fff; font-weight: 600; }
@media (max-width: 600px) { .hope-strip__inner > span { display: none; } .hope-strip__inner { justify-content: flex-end; } }

/* Header */
.hope-header { max-width: 1280px; margin: 0 auto; padding: clamp(12px, 2vw, 22px) var(--hope-pad); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; position: relative; }
.hope-logo { color: var(--hope-ink); text-decoration: none; display: flex; flex-direction: column; gap: 5px; }
.hope-logo:hover { color: var(--hope-ink); }
.hope-logo__name { font-family: var(--hope-serif); font-size: 31px; letter-spacing: 0.01em; line-height: 1; display: flex; align-items: center; white-space: nowrap; }
.hope-logo__name svg { margin: -5px 1px 0; }
.hope-logo__sub { font-size: 11.5px; font-weight: 600; letter-spacing: 0.185em; color: #4A4844; }
.hope-logo--image img { height: clamp(54px, 6vw, 72px); width: auto; display: block; }
.hope-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; font-size: 17px; }
.hope-nav__item { position: relative; }
.hope-nav a { color: var(--hope-ink); text-decoration: none; padding: 12px 0; display: inline-block; }
.hope-nav a:hover { color: var(--hope-flame-text); }
.hope-nav__caret { display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; }
.hope-nav__sub { display: none; position: absolute; top: 100%; left: -18px; min-width: 230px; background: #fff; border: 1px solid var(--hope-line); border-top: 2px solid var(--hope-ink); padding: 8px 0; z-index: 10; }
.hope-nav__item:hover .hope-nav__sub, .hope-nav__item:focus-within .hope-nav__sub { display: block; }
.hope-nav__sub a { display: block; padding: 10px 18px; }
.hope-nav a.hope-nav__give { padding: 10px 22px; border: 1.5px solid var(--hope-ink); border-radius: 3px; font-weight: 600; }
.hope-menu { display: none; }
.hope-menu summary { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border: 1.5px solid var(--hope-ink); border-radius: 3px; font-weight: 600; font-size: 17px; }
.hope-menu > nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: #fff; border-top: 1px solid var(--hope-line); border-bottom: 2px solid var(--hope-ink); padding: 4px 20px 24px; display: flex; flex-direction: column; font-family: var(--hope-serif); font-size: 24px; letter-spacing: -0.01em; }
.hope-menu > nav > a { color: var(--hope-ink); text-decoration: none; padding: 14px 0; border-top: 1px solid var(--hope-line); }
.hope-menu > nav > a:first-child { border-top: 0; }
.hope-menu__sub { display: flex; flex-wrap: wrap; gap: 0 20px; padding: 0 0 12px; font-family: var(--hope-sans); font-size: 17px; letter-spacing: 0; }
.hope-menu__sub a { color: var(--hope-muted); padding: 8px 0; }
.hope-menu__actions { display: flex; gap: 12px; margin-top: 16px; font-family: var(--hope-sans); font-size: 18px; letter-spacing: 0; }
.hope-menu__actions a { flex: 1 1 0; text-align: center; color: var(--hope-ink); text-decoration: none; padding: 14px 8px; border: 1.5px solid var(--hope-ink); border-radius: 3px; font-weight: 600; }
.hope-menu__actions a.is-solid { color: #fff; background: var(--hope-ink); }
@media (max-width: 960px) {
	.hope-nav { display: none; }
	.hope-menu { display: block; }
}

/* Buttons and labels */
.hope-btn, .wp-block-button__link { display: inline-block; color: #fff; background: var(--hope-ink); text-decoration: none; padding: 14px 28px; border-radius: 3px; font-weight: 600; font-size: 18px; border: 1.5px solid var(--hope-ink); cursor: pointer; line-height: 1.4; }
.hope-btn:hover, .wp-block-button__link:hover { background: #3A3835; color: #fff; }
.hope-btn--line { background: transparent; color: var(--hope-ink); }
.hope-btn--line:hover { background: var(--hope-tint); color: var(--hope-ink); }
.hope-kicker, .hope-label { display: block; margin: 0; font-family: var(--hope-sans); font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5; }
.hope-kicker { color: var(--hope-flame-text); }

/* Homepage */
.hope-hero { max-width: 1280px; margin: 0 auto; padding: clamp(16px, 3vw, 40px) var(--hope-pad) 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 28px 56px; }
.hope-hero__text { flex: 1.5 1 480px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.hope-hero h1 { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.hope-hero__headline { font-family: var(--hope-serif); font-weight: 400; font-size: clamp(40px, 6.2vw, 92px); line-height: 0.98; letter-spacing: -0.03em; }
.hope-hero__headline em { color: var(--hope-flame-bright); }
.hope-hero__lead { margin: 0; font-size: clamp(19px, 1.7vw, 22px); color: var(--hope-muted); }
.hope-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hope-hero__photo { flex: 1 1 320px; min-width: 0; height: clamp(200px, 34vw, 480px); background: #DCD9D3; overflow: hidden; }
.hope-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hope-home-block { max-width: 1280px; margin: 0 auto; padding: clamp(32px, 4.5vw, 64px) var(--hope-pad) 0; }
.hope-home-block:last-of-type { padding-bottom: clamp(48px, 6vw, 88px); }
.hope-home-block > .hope-label, .hope-home-split .hope-label { border-top: 2px solid var(--hope-ink); padding-top: 14px; }
.hope-ledger { display: flex; flex-wrap: wrap; }
.hope-ledger > div { flex: 1 1 220px; min-width: 0; padding: 16px 24px 20px 0; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--hope-line); }
.hope-ledger__time { font-family: var(--hope-serif); font-size: clamp(34px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.02em; }
.hope-ledger__time small { font-size: 0.52em; }
.hope-ledger .is-main .hope-ledger__time { color: var(--hope-flame-text); }
.hope-ledger span:last-child { color: var(--hope-muted); }
@media (max-width: 600px) {
	.hope-ledger > div { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding: 12px 0; }
	.hope-ledger__time { flex: 0 0 132px; font-size: 30px; }
	.hope-ledger span:last-child { flex: 1 1 100%; padding-left: 144px; margin-top: -4px; }
}
.hope-home-split { display: flex; flex-wrap: wrap; gap: clamp(32px, 4.5vw, 64px) 56px; }
.hope-home-split > div { flex: 1 1 380px; min-width: 0; }
.hope-where { margin: 14px 0 0; font-family: var(--hope-serif); font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; letter-spacing: -0.015em; }
.hope-where__links { margin: 10px 0 14px; display: flex; flex-wrap: wrap; gap: 0 28px; font-weight: 600; }
.hope-where__links a { padding: 8px 0; }
.hope-home-split .hope-embed { margin-top: 14px; }
.hope-quick { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 16px 0 12px; margin-right: calc(-1 * var(--hope-pad)); padding-right: var(--hope-pad); }
.hope-quick__card { flex: 0 0 210px; scroll-snap-align: start; background: var(--hope-tint); color: var(--hope-ink); text-decoration: none; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 6px; min-height: 148px; box-sizing: border-box; }
.hope-quick__card:hover { background: #E9E7E2; color: var(--hope-ink); }
.hope-quick__title { font-family: var(--hope-serif); font-size: 26px; line-height: 1.1; letter-spacing: -0.015em; }
.hope-quick__text { font-size: 16px; line-height: 1.35; color: var(--hope-muted); }
.hope-quick__arrow { margin-top: auto; color: var(--hope-flame-text); font-size: 22px; line-height: 1; }
@media (min-width: 961px) {
	.hope-quick { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
	.hope-quick__card { flex: 1 1 22%; }
}

/* Inner page heading */
.hope-pagehead__inner { max-width: 1280px; margin: 0 auto; padding: clamp(28px, 5vw, 72px) var(--hope-pad) clamp(28px, 4vw, 56px); }
.hope-pagehead__crumb { display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hope-flame-text); text-decoration: none; padding: 8px 0; }
.hope-pagehead h1 { margin: 12px 0 0; font-family: var(--hope-serif); font-weight: 400; font-size: clamp(42px, 6.2vw, 92px); line-height: 0.98; letter-spacing: -0.03em; max-width: 1000px; }
.hope-pagehead__lead { margin: 24px 0 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--hope-muted); max-width: 620px; }
.hope-feature { max-width: 1280px; margin: 0 auto; padding: 0 var(--hope-pad); }
.hope-feature img { display: block; width: 100%; height: clamp(220px, 34vw, 460px); object-fit: cover; }

/* Inner page content */
.hope-entry { max-width: 1280px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) var(--hope-pad) clamp(56px, 8vw, 120px); }
.hope-pagehead + .hope-entry { border-top: 2px solid var(--hope-ink); }
.hope-entry > * { max-width: 760px; margin-top: 0; margin-bottom: 20px; }
.hope-entry h2 { font-family: var(--hope-serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -0.02em; margin: 56px 0 14px; }
.hope-entry h3 { font-family: var(--hope-serif); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 32px 0 10px; }
.hope-entry > p:first-child { font-family: var(--hope-serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -0.01em; }
.hope-entry ul, .hope-entry ol { padding-left: 0; list-style: none; border-top: 1px solid var(--hope-ink); }
.hope-entry li { padding: 18px 0; border-bottom: 1px solid var(--hope-line); font-family: var(--hope-serif); font-size: 24px; line-height: 1.25; }
.hope-entry li a { text-decoration: none; color: var(--hope-ink); }
.hope-entry li a:hover { color: var(--hope-flame-text); text-decoration: underline; }
.hope-entry .wp-block-buttons { display: inline-flex; margin: 4px 12px 16px 0; }

.hope-times { border-top: 1px solid var(--hope-ink); }
.hope-times__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--hope-line); }
.hope-times__time { flex: 0 0 150px; font-family: var(--hope-serif); font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.hope-times__what { flex: 1 1 220px; }

.hope-faq { border-top: 1px solid var(--hope-ink); }
.hope-faq details { border-bottom: 1px solid var(--hope-line); }
.hope-faq summary { padding: 18px 0; font-size: 21px; font-weight: 600; line-height: 1.3; }
.hope-faq p { margin: 0 0 20px; color: var(--hope-muted); }

.hope-embed { background: #E6E3DE; }
.hope-embed iframe { display: block; width: 100%; height: 380px; border: 0; }
.hope-embed--tall iframe { height: 640px; }
.hope-embed--short iframe { height: clamp(200px, 26vw, 300px); }
.hope-embed--agenda iframe { height: clamp(280px, 30vw, 372px); }
.hope-embed--audio iframe { height: 180px; }
.hope-listen .hope-embed { margin-top: 16px; max-width: 760px; }

/* Forms */
.hope-form { background: var(--hope-tint); padding: clamp(22px, 3vw, 36px); font-size: 17px; color: var(--hope-ink); }
.hope-form__title { margin: 0 0 16px !important; font-family: var(--hope-serif); font-weight: 600; font-size: 24px; line-height: 1.2; }
.hope-form p { margin: 0 0 14px; }
.hope-form label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.hope-form input[type="text"], .hope-form input[type="tel"], .hope-form input[type="email"], .hope-form textarea { width: 100%; box-sizing: border-box; min-height: 52px; border: 1px solid #77736C; border-radius: 3px; padding: 12px 14px; font-size: 18px; background: #fff; color: var(--hope-ink); }
.hope-form__grid { display: flex; flex-wrap: wrap; gap: 0 18px; }
.hope-form__grid p { flex: 1 1 220px; min-width: 0; }
.hope-form__hp { position: absolute; left: -9999px; }
.hope-form__notice { background: #E5F2E6; padding: 12px 16px; font-weight: 600; }
.hope-form__notice--error { background: #FCE8E1; }
.hope-form--plain { background: transparent; padding: 0; }

/* Floating buttons and pop-up form */
.hope-float { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hope-float__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; box-sizing: border-box; background: var(--hope-flame); color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28); }
.hope-float__btn:hover { background: #A93414; color: #fff; }
.hope-float__btn--listen { background: var(--hope-ink); }
.hope-float__btn--listen:hover { background: #3A3835; }
@media (max-width: 600px) {
	.hope-float__btn { width: 56px; height: 56px; min-height: 0; padding: 0; justify-content: center; }
	.hope-float__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.hope-float__btn svg { width: 24px; height: 24px; }
	.hope-hero__photo { display: none; }
}
.hope-dialog { border: 0; padding: clamp(22px, 4vw, 36px); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-sizing: border-box; overflow: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.hope-dialog::backdrop { background: rgba(31, 30, 28, 0.6); }
.hope-dialog__close { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border: 0; background: transparent; font-size: 32px; line-height: 1; cursor: pointer; color: var(--hope-ink); }
.hope-dialog__alt { margin: 4px 0 0; font-size: 16px; color: var(--hope-muted); }

/* Footer */
.hope-footer { background: var(--hope-ink); color: #fff; }
.hope-footer__inner { max-width: 1280px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--hope-pad) 96px; display: flex; flex-direction: column; gap: 28px; }
.hope-footer__logo img { display: block; max-height: 110px; width: auto; }
.hope-footer__big { margin: 0; font-family: var(--hope-serif); font-style: italic; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; max-width: 900px; }
.hope-footer__cols { display: flex; flex-wrap: wrap; gap: 24px 72px; border-top: 1px solid #5A5752; padding-top: 24px; }
.hope-footer__cols > div { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.hope-footer__label { font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hope-line); }
.hope-footer a { color: #fff; padding: 4px 0; }
.hope-footer__fine { font-size: 15px; color: var(--hope-line); }

/* Carrington page */
.hope-pagehead h1 em { color: var(--hope-flame-bright); }
.hope-carr__actions { margin-top: 28px; }
.hope-quick--three .hope-quick__card { min-height: 170px; }
@media (min-width: 961px) { .hope-quick--three .hope-quick__card { flex: 1 1 30%; } }
.hope-carr-split { display: flex; flex-wrap: wrap; gap: 20px 72px; }
.hope-carr-split > .hope-carr__h, .hope-carr-split > .hope-carr__body { border-top: 2px solid var(--hope-ink); padding-top: 16px; }
.hope-carr__h { flex: 1 1 340px; min-width: 0; margin: 0; }
h2.hope-carr__h, .hope-carr__h h2 { font-family: var(--hope-serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 14px; }
h2.hope-carr__h { margin: 0; }
.hope-carr__h p { margin: 0 0 16px; color: var(--hope-muted); max-width: 460px; }
.hope-carr__body { flex: 1.4 1 480px; min-width: 0; }
.hope-carr__body > p { margin: 0 0 16px; font-size: 20px; }
.hope-carr__body > p:first-child { font-family: var(--hope-serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -0.01em; }
.hope-carr__body .hope-faq, .hope-carr__body .hope-times { border-top: 0; margin-top: -16px; }
.hope-carr__call { font-size: 17px; }
.hope-carr__call a { font-family: var(--hope-serif); font-size: 30px; color: var(--hope-ink); text-decoration: none; }
.hope-carr-tint { background: var(--hope-tint); margin-top: clamp(32px, 4.5vw, 64px); padding-bottom: clamp(32px, 4.5vw, 64px); }
.hope-carr-tint .hope-home-block { padding-bottom: 0; }
.hope-carr__list { display: flex; flex-direction: column; margin-top: 8px; font-family: var(--hope-serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.2; }
.hope-carr__list a { color: var(--hope-ink); text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--hope-line); }
.hope-carr__list a:hover { color: var(--hope-flame-text); }
.hope-form__checks { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.hope-form__checks label { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 17px; margin: 0; min-height: 44px; }
.hope-form__checks input { width: 20px; height: 20px; }
.hope-footer__fine a { color: var(--hope-line); padding: 12px 0; display: inline-block; }
