/* =========================================================
   New Hope Pentecostal Assembly — Design Tokens
   ========================================================= */
:root {
	--ink: #1F1B2E;
	--ink-soft: #2C2640;
	--ember: #E8551A;
	--ember-dark: #C43F0E;
	--gold: #C9A227;
	--parchment: #F7F2E9;
	--parchment-warm: #F1E9D8;
	--teal: #16403D;
	--white: #FFFFFF;
	--text-on-dark: #F3EFE4;
	--text-muted: #6B6478;

	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono: 'IBM Plex Mono', 'Courier New', monospace;

	--radius: 6px;
	--wrap-width: 1180px;
	--transition: 200ms ease;
}

/* =========================================================
   Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--teal);
	background: var(--parchment);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 0.4em; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.skip-link {
	position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white);
	padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 13px 28px;
	border-radius: var(--radius);
	transition: transform var(--transition), background var(--transition), color var(--transition);
	border: 2px solid transparent;
}
.btn--primary {
	background: var(--ember);
	color: var(--white);
}
.btn--primary:hover { background: var(--ember-dark); transform: translateY(-1px); }
.btn--ghost {
	border-color: var(--text-on-dark);
	color: var(--text-on-dark);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
	background: var(--ink);
	position: sticky;
	top: 0;
	z-index: 100;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
}
.site-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}
.site-brand__flame {
	width: 22px; height: 28px;
	display: inline-block;
	background: linear-gradient(180deg, var(--gold) 0%, var(--ember) 55%, var(--ember-dark) 100%);
	clip-path: polygon(50% 0%, 78% 30%, 90% 60%, 75% 100%, 25% 100%, 10% 60%, 22% 30%);
	flex-shrink: 0;
}
.site-brand__text {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--white);
	letter-spacing: -0.01em;
}
.primary-nav__list {
	display: flex;
	gap: 32px;
}
.primary-nav__list a {
	color: var(--text-on-dark);
	font-weight: 500;
	font-size: 0.95rem;
	padding: 8px 0;
	position: relative;
}
.primary-nav__list a::after {
	content: '';
	position: absolute; left: 0; bottom: 0;
	width: 0; height: 2px; background: var(--ember);
	transition: width var(--transition);
}
.primary-nav__list a:hover::after { width: 100%; }

.nav-toggle {
	display: none;
	background: none; border: none;
	flex-direction: column; gap: 5px;
	padding: 8px;
}
.nav-toggle__bar { width: 24px; height: 2px; background: var(--white); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
	position: relative;
	background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 60%, var(--teal) 130%);
	overflow: hidden;
	padding: 100px 0 130px;
}
.hero__flame {
	position: absolute;
	right: -8%; top: -15%;
	width: 520px; height: 640px;
	background: radial-gradient(circle at 40% 30%, rgba(232,85,26,0.35), transparent 60%),
	            radial-gradient(circle at 60% 65%, rgba(201,162,39,0.22), transparent 55%);
	filter: blur(10px);
	pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 640px; }
.hero__eyebrow {
	font-family: var(--font-mono);
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	margin-bottom: 14px;
}
.hero__title {
	color: var(--white);
	font-size: clamp(2.4rem, 5.5vw, 3.6rem);
	margin-bottom: 18px;
}
.hero__tagline {
	color: var(--text-on-dark);
	font-size: 1.15rem;
	max-width: 480px;
	margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Flame divider (signature element) */
.flame-divider, .footer-flame-divider {
	line-height: 0;
	margin-top: -1px;
}
.flame-divider svg, .footer-flame-divider svg {
	width: 100%; height: 40px; display: block;
}
.flame-divider svg path { fill: var(--parchment-warm); }
.footer-flame-divider svg path { fill: var(--ink); }
.footer-flame-divider { background: var(--parchment); }

/* =========================================================
   Spotlight (latest sermon)
   ========================================================= */
.spotlight { background: var(--ink-soft); padding: 64px 0; }
.spotlight__inner {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 48px;
	align-items: center;
}
.spotlight__eyebrow {
	font-family: var(--font-mono);
	color: var(--gold);
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	margin-bottom: 10px;
}
.spotlight__body h2 { color: var(--white); font-size: 1.9rem; margin-bottom: 10px; }
.spotlight__body h2 a:hover { color: var(--ember); }
.spotlight__meta { color: var(--text-on-dark); font-size: 0.9rem; opacity: 0.85; }
.spotlight__series { color: var(--gold); font-size: 0.88rem; font-style: italic; }
.spotlight__excerpt { color: var(--text-on-dark); opacity: 0.9; }

.video-embed {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: #000;
}
.video-embed iframe {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* =========================================================
   Recent sermons / archive grid
   ========================================================= */
.recent-sermons, .sermon-archive-list { padding: 64px 0; background: var(--parchment-warm); }
.section-heading {
	display: flex; align-items: baseline; justify-content: space-between;
	margin-bottom: 32px;
}
.section-heading__link { color: var(--ember); font-weight: 600; font-size: 0.9rem; }

.sermon-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.sermon-card {
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(31,27,46,0.08);
	transition: transform var(--transition), box-shadow var(--transition);
}
.sermon-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(31,27,46,0.12); }
.sermon-card__thumb { position: relative; display: block; aspect-ratio: 16/10; background: var(--ink); overflow: hidden; }
.sermon-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sermon-card__play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
	width: 46px; height: 46px; border-radius: 50%;
	background: rgba(232,85,26,0.9);
}
.sermon-card__play::after {
	content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%);
	border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--white);
}
.sermon-card__body { padding: 18px 20px 22px; }
.sermon-card__eyebrow {
	font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
	color: var(--ember); letter-spacing: 0.08em; margin-bottom: 6px;
}
.sermon-card__title { font-size: 1.15rem; margin-bottom: 8px; }
.sermon-card__title a:hover { color: var(--ember); }
.sermon-card__meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); margin: 0; }
.sermon-card__meta-sep { margin: 0 3px; }
.sermon-card__scripture { color: var(--teal); }

/* =========================================================
   Service times
   ========================================================= */
.service-times { padding: 72px 0; background: var(--parchment); }
.service-times__inner h2 { text-align: center; margin-bottom: 40px; }
.service-times__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-time-card {
	text-align: center; background: var(--white); border-radius: var(--radius);
	padding: 32px 20px; box-shadow: 0 1px 3px rgba(31,27,46,0.06);
}
.service-time-card__flame {
	display: inline-block; width: 18px; height: 24px; margin-bottom: 14px;
	background: linear-gradient(180deg, var(--gold) 0%, var(--ember) 60%, var(--ember-dark) 100%);
	clip-path: polygon(50% 0%, 78% 30%, 90% 60%, 75% 100%, 25% 100%, 10% 60%, 22% 30%);
}
.service-time-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.service-time-card p { color: var(--text-muted); margin: 0; font-family: var(--font-mono); font-size: 0.9rem; }

/* =========================================================
   Archive header + filters
   ========================================================= */
.archive-hero { background: var(--ink); padding: 56px 0 44px; }
.archive-hero__eyebrow {
	font-family: var(--font-mono); color: var(--gold); text-transform: uppercase;
	font-size: 0.75rem; letter-spacing: 0.1em; margin-bottom: 10px;
}
.archive-hero h1 { color: var(--white); margin: 0; font-size: 2.4rem; }
.archive-hero h1 span { color: var(--ember); }

.sermon-filters { background: var(--white); border-bottom: 1px solid rgba(31,27,46,0.08); padding: 20px 0; }
.sermon-filters__form { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sermon-filters__group { display: flex; flex-direction: column; gap: 4px; }
.sermon-filters__group label { font-size: 0.78rem; font-family: var(--font-mono); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.sermon-filters__group select {
	padding: 9px 14px; border-radius: var(--radius); border: 1px solid rgba(31,27,46,0.15);
	background: var(--parchment); font-family: var(--font-body); font-size: 0.9rem; min-width: 180px;
}
.sermon-filters__clear { color: var(--ember); font-size: 0.85rem; font-weight: 600; align-self: center; }

.no-sermons { text-align: center; padding: 60px 0; color: var(--text-muted); }
.sermon-pagination { margin-top: 40px; display: flex; justify-content: center; gap: 16px; }
.sermon-pagination .page-numbers { padding: 8px 14px; border-radius: var(--radius); background: var(--white); font-family: var(--font-mono); font-size: 0.85rem; }
.sermon-pagination .page-numbers.current { background: var(--ember); color: var(--white); }

/* =========================================================
   Single sermon
   ========================================================= */
.single-sermon__video .video-embed { border-radius: 0; }
.single-sermon__content {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 56px;
	padding: 48px 24px 80px;
}
.single-sermon__eyebrow {
	font-family: var(--font-mono); text-transform: uppercase; font-size: 0.78rem;
	color: var(--ember); letter-spacing: 0.08em; margin-bottom: 10px;
}
.single-sermon__eyebrow a:hover { text-decoration: underline; }
.single-sermon__title { font-size: 2.1rem; margin-bottom: 10px; }
.single-sermon__meta { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }
.single-sermon__scripture { color: var(--teal); font-weight: 500; }
.single-sermon__body { margin-bottom: 28px; }
.sermon-notes-download { margin-bottom: 32px; }
.single-sermon__share { display: flex; align-items: center; gap: 14px; font-size: 0.9rem; color: var(--text-muted); }
.single-sermon__share a { color: var(--ember); font-weight: 600; }

.single-sermon__sidebar-title { font-size: 1.1rem; margin-bottom: 20px; }
.sidebar-sermon { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.sidebar-sermon__thumb { width: 84px; flex-shrink: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; background: var(--ink); }
.sidebar-sermon__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-sermon__title { display: block; font-weight: 600; font-size: 0.92rem; line-height: 1.3; margin-bottom: 4px; }
.sidebar-sermon__title:hover { color: var(--ember); }
.sidebar-sermon__date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }

/* =========================================================
   Generic page content
   ========================================================= */
.page-content { padding: 56px 0 80px; }
.posts-list { display: flex; flex-direction: column; gap: 36px; }
.post-list-item__meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: var(--text-on-dark); }
.site-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding: 20px 24px 48px;
}
.footer-col--about p { color: rgba(243,239,228,0.7); font-size: 0.9rem; margin-top: 10px; }
.footer-col--about h3 { color: var(--white); margin-top: 12px; }
.footer-widget-title { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-col p { color: rgba(243,239,228,0.8); font-size: 0.92rem; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: rgba(243,239,228,0.8); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--ember); }
.site-footer__bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding: 20px 0;
}
.site-footer__bottom p { margin: 0; text-align: center; font-size: 0.82rem; color: rgba(243,239,228,0.55); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
	.spotlight__inner { grid-template-columns: 1fr; }
	.sermon-grid { grid-template-columns: repeat(2, 1fr); }
	.service-times__grid { grid-template-columns: 1fr; }
	.single-sermon__content { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.nav-toggle { display: flex; }
	.primary-nav { display: none; width: 100%; }
	.primary-nav.is-open { display: block; }
	.primary-nav__list { flex-direction: column; gap: 4px; padding: 16px 0; }
	.site-header__inner { flex-wrap: wrap; }
	.hero { padding: 64px 0 90px; }
	.sermon-grid { grid-template-columns: 1fr; }
	.sermon-filters__form { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   About page
   ========================================================= */
.about-intro { padding-top: 56px; }
.about-intro__body { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.about-intro__body p { margin-bottom: 1.2em; }

.beliefs { padding: 56px 0 72px; background: var(--parchment-warm); }
.beliefs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.belief-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 3px rgba(31,27,46,0.06); }
.belief-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.belief-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.beliefs__note { margin-top: 24px; font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

.leadership { padding: 56px 0 80px; }
.leadership__note { color: var(--text-muted); font-style: italic; max-width: 560px; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 56px;
	padding-top: 12px;
}
.contact-info__block { margin-bottom: 22px; }
.contact-info__block h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-mono); color: var(--ember); margin-bottom: 6px; }
.contact-info__block p { margin: 0; color: var(--teal); }
.contact-info__block a:hover { color: var(--ember); }
.contact-map { margin-top: 32px; border-radius: var(--radius); overflow: hidden; }
.contact-map__note { font-size: 0.78rem; color: var(--text-muted); font-style: italic; margin-top: 8px; }

.contact-form-wrap { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: 0 1px 3px rgba(31,27,46,0.08); }
.contact-form__field { margin-bottom: 20px; }
.contact-form__field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.contact-form__field input, .contact-form__field textarea {
	width: 100%; padding: 12px 14px; border: 1px solid rgba(31,27,46,0.15);
	border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem;
	background: var(--parchment);
}
.contact-form__field input:focus, .contact-form__field textarea:focus {
	outline: none; border-color: var(--ember);
}
.contact-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button { width: 100%; border: none; font-size: 1rem; }

.form-notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; font-size: 0.92rem; }
.form-notice--success { background: rgba(22,64,61,0.1); color: var(--teal); border: 1px solid rgba(22,64,61,0.25); }
.form-notice--error { background: rgba(196,63,14,0.08); color: var(--ember-dark); border: 1px solid rgba(196,63,14,0.25); }

/* =========================================================
   Giving page
   ========================================================= */
.hero--giving { padding-bottom: 80px; }
.giving-content { padding: 48px 0 8px; }
.giving-content .wrap { max-width: 760px; }

.giving-methods { padding: 40px 0 56px; }
.giving-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.giving-card {
	background: var(--white); border-radius: var(--radius); padding: 28px;
	box-shadow: 0 1px 3px rgba(31,27,46,0.06); text-align: left;
}
.giving-card h3 { font-size: 1.1rem; margin: 10px 0 16px; }
.giving-card__details { margin: 0; }
.giving-card__details dt { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; margin-top: 10px; }
.giving-card__details dt:first-child { margin-top: 0; }
.giving-card__details dd { margin: 2px 0 0; font-size: 0.95rem; color: var(--teal); }
.giving-card__acct { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.03em; }

.giving-note { margin-top: 28px; font-size: 0.85rem; color: var(--text-muted); font-style: italic; max-width: 640px; }
.giving-note a { color: var(--ember); font-style: normal; font-weight: 600; }
.giving-online { margin-top: 24px; }

.giving-scripture { background: var(--ink-soft); padding: 56px 0; }
.giving-scripture blockquote {
	max-width: 720px; margin: 0 auto; text-align: center;
	font-family: var(--font-display); font-size: 1.3rem; font-style: italic;
	color: var(--text-on-dark); line-height: 1.5;
}
.giving-scripture cite { display: block; margin-top: 16px; font-family: var(--font-mono); font-style: normal; font-size: 0.85rem; color: var(--gold); }

@media (max-width: 900px) {
	.beliefs__grid { grid-template-columns: 1fr; }
	.contact-grid { grid-template-columns: 1fr; }
	.giving-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.sermon-card, .btn { transition: none; }
}
