/*
Theme Name: El Shaddai COGIC
Theme URI: https://elshaddaicogic.org/
Author: El Shaddai Church of God in Christ
Description: Custom theme for El Shaddai COGIC, Milwaukee. Royal purple and gold, with an editable home page (Appearance > Customize), plus Events, Ministries, Sermons and Prayer Requests in the dashboard. Works alongside Elementor for interior pages.
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elshaddai
*/

:root {
	--es-ink: #1E0F38;
	--es-purple: #2E1A55;
	--es-purple-2: #3F2770;
	--es-violet: #5B3A99;
	--es-line-dark: #3D2A62;
	--es-mist: #F5F4F8;
	--es-mist-2: #ECE9F3;
	--es-border: #DCD8E6;
	--es-text: #1C1630;
	--es-muted: #514A63;
	--es-on-dark: #DCD4EC;
	--es-on-dark-2: #CFC6E3;
	--es-gold: #D9BE5C;
	--es-radius: 20px;
	--es-head: "Lexend", system-ui, sans-serif;
	--es-body: "Nunito Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #fff;
	color: var(--es-text);
	font-family: var(--es-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--es-violet); }
a:hover { color: var(--es-purple); }
h1, h2, h3, h4, h5, h6 { font-family: var(--es-head); color: var(--es-purple); line-height: 1.15; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: #fff; color: var(--es-purple); padding: 10px 16px; border-radius: 8px;
}
:focus-visible { outline: 3px solid var(--es-gold); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section--mist { background: var(--es-mist); }
.section--ink { background: var(--es-ink); color: #fff; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.eyebrow {
	font-family: var(--es-head); font-size: 13px; font-weight: 600;
	letter-spacing: 3px; text-transform: uppercase; color: var(--es-violet);
}
.section--ink .eyebrow, .hero .eyebrow { color: var(--es-gold); }
.h-section { margin: 0; font-size: 42px; font-weight: 700; }
.section--ink .h-section { color: #fff; }
.lede { margin: 0; color: var(--es-muted); }
.section--ink .lede { color: var(--es-on-dark-2); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.section-head .stack { gap: 12px; max-width: 680px; }

.btn {
	display: inline-block; font-family: var(--es-head); font-weight: 600; font-size: 16px;
	padding: 15px 28px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
	line-height: 1.2; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--es-gold); color: var(--es-ink); }
.btn--gold:hover { background: #E6CD6E; color: var(--es-ink); }
.btn--purple { background: var(--es-purple); color: #fff; }
.btn--purple:hover { background: var(--es-violet); color: #fff; }
.btn--ghost-light { border: 1.5px solid #8C7BB5; color: #fff; padding: 14px 28px; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--ghost { border: 1.5px solid var(--es-purple); color: var(--es-purple); padding: 14px 28px; }
.btn--ghost:hover { background: var(--es-purple); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { font-family: var(--es-head); font-weight: 600; text-decoration: none; }
.section--ink .text-link { color: var(--es-gold); }

/* Announcement + header */
.announce { background: var(--es-ink); color: #E4DEF0; font-size: 14px; padding: 10px 0; }
.announce .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.announce a { color: var(--es-gold); font-weight: 700; text-decoration: none; }
.site-header { background: var(--es-purple); color: #fff; padding: 14px 0; position: relative; z-index: 50; }
.site-header .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.brand img { height: 72px; width: auto; display: block; }
.nav-toggle {
	display: none; background: transparent; border: 1.5px solid #8C7BB5; color: #fff;
	border-radius: 12px; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer;
}
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.primary-nav li { position: relative; }
.primary-nav a { font-family: var(--es-head); font-size: 15px; font-weight: 500; color: #fff; text-decoration: none; padding: 6px 0; display: inline-block; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--es-gold); }
.primary-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: -16px; min-width: 220px; flex-direction: column; gap: 0;
	background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px rgba(20, 8, 40, .25);
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }
.primary-nav .sub-menu a { color: var(--es-purple); padding: 8px 12px; display: block; border-radius: 8px; }
.primary-nav .sub-menu a:hover { background: var(--es-mist); color: var(--es-purple); }
.primary-nav .menu-give > a, .primary-nav a.menu-give {
	background: var(--es-gold); color: var(--es-ink); font-weight: 600; padding: 11px 24px; border-radius: 999px;
}
.primary-nav .menu-give > a:hover { color: var(--es-ink); background: #E6CD6E; }

/* Hero */
.hero { background: var(--es-purple); color: #fff; padding: 64px 0 104px; overflow: hidden; }
.hero h1 { margin: 0; color: #fff; font-size: 68px; font-weight: 700; line-height: 1.05; letter-spacing: -1px; }
.hero h1 span { color: var(--es-gold); }
.hero p { margin: 0; font-size: 19px; color: var(--es-on-dark); max-width: 520px; }
.hero .stack { gap: 24px; }
.hero-media { position: relative; height: 460px; border-radius: 24px; background: var(--es-purple-2); }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; display: block; }
.hero-media .hero-emblem { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-media .hero-emblem img { width: 58%; max-width: 280px; opacity: .9; }
.hero-card {
	position: absolute; left: -24px; bottom: -32px; background: #fff; color: var(--es-purple);
	border-radius: 18px; padding: 18px 22px; box-shadow: 0 18px 40px rgba(20, 8, 40, .4);
	display: flex; flex-direction: column; gap: 2px;
}
.hero-card .eyebrow { color: var(--es-violet); font-size: 12px; letter-spacing: 2px; }
.hero-card strong { font-family: var(--es-head); font-size: 24px; }
.hero-card span:last-child { font-size: 14px; color: var(--es-muted); }

/* Weekly cards */
.weekly { padding: 64px 0; }
.weekly h2 { margin: 0 0 28px; font-size: 34px; }
.svc { background: #fff; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.svc .when { font-family: var(--es-head); font-size: 13px; font-weight: 600; color: var(--es-violet); letter-spacing: 1.2px; text-transform: uppercase; }
.svc .name { font-family: var(--es-head); font-size: 20px; font-weight: 600; color: var(--es-purple); }
.svc .desc { font-size: 15px; color: var(--es-muted); }
.svc--feature { background: var(--es-purple); color: #fff; }
.svc--feature .when { color: var(--es-gold); }
.svc--feature .name { color: #fff; }
.svc--feature .desc { color: var(--es-on-dark-2); }
.svc--feature a { color: var(--es-gold); }

/* Visit */
.visit-item { display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--es-violet); padding-top: 20px; }
.visit-item h3 { margin: 0; font-size: 21px; font-weight: 600; }
.visit-item p { margin: 0; color: var(--es-muted); }
.visit-cta { margin-top: 40px; }

/* Story */
.story { position: relative; overflow: hidden; }
.story-watermark { position: absolute; right: -140px; top: -120px; width: 560px; height: 560px; opacity: .07; pointer-events: none; }
.story .wrap { position: relative; }
.story-emblem { width: 96px; height: 96px; }
.timeline-row { display: flex; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--es-line-dark); }
.timeline-row:last-child { border-bottom: 0; }
.timeline-row .yr { font-family: var(--es-head); font-weight: 700; font-size: 30px; color: var(--es-gold); min-width: 104px; }
.timeline-row .ev { color: var(--es-on-dark); padding-top: 6px; }

/* Leadership */
.photo-frame { height: 480px; border-radius: 24px; background: var(--es-mist-2); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--es-muted); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame .ph-emblem, .event-flyer .ph-emblem { width: 140px; height: auto; object-fit: contain; opacity: .35; }

.photo-frame--white { background: #fff; border: 1.5px solid var(--es-border); }
.photo-frame img.is-cutout { object-fit: contain; object-position: center bottom; width: 100%; height: 100%; padding-top: 16px; }

/* Our Pastor page */
.pull-quote {
	margin: 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--es-gold);
	font-family: var(--es-head); font-size: 24px; line-height: 1.4; font-weight: 500; color: var(--es-purple);
}
.bio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.bio-grid--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.bio-grid--flip .bio-photo { order: 2; }
.bio-photo { margin: 0; position: sticky; top: 24px; border-radius: 24px; overflow: hidden; background: var(--es-mist-2); }
.bio-photo img { display: block; width: 100%; height: auto; }
.bio-body .h-section { margin-bottom: 6px; }
.bio-title { margin: 0 0 24px; font-family: var(--es-head); font-weight: 500; color: var(--es-violet); font-size: 16px; }
.bio-body .entry-content p { color: var(--es-text); }
.admin-hint { background: #FFF7DD; border: 1.5px dashed #C9A646; border-radius: 12px; padding: 14px 16px; color: #5C4A0E; font-size: 15px; }

/* Our History page */
.history-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.history-grid--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.history-lead { font-size: 21px; line-height: 1.55; color: var(--es-purple); }
.history-photo { margin: 0; }
.history-photo img { display: block; width: 100%; height: auto; border-radius: 24px; }
.history-photo figcaption { font-size: 14px; color: var(--es-muted); margin-top: 10px; }
.history-text h2 { margin-top: 0; }

/* Watch */
.video-frame { aspect-ratio: 16 / 9; border-radius: 20px; background: var(--es-purple); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-dot { width: 76px; height: 76px; border-radius: 50%; background: var(--es-gold); display: flex; align-items: center; justify-content: center; }
.g2--watch { gap: 32px; align-items: stretch; }
.sermon-list { display: flex; flex-direction: column; gap: 14px; }
.sermon-card { background: #fff; border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.sermon-card .d { font-size: 13px; color: var(--es-violet); font-weight: 700; }
.sermon-card .t { font-family: var(--es-head); font-weight: 600; color: var(--es-purple); }
.sermon-card .s { font-size: 14px; color: var(--es-muted); }
.sermon-card:hover { box-shadow: 0 8px 24px rgba(46, 26, 85, .12); }

/* Ministries */
.min-card { display: flex; flex-direction: column; gap: 6px; border: 1.5px solid var(--es-border); border-radius: 18px; padding: 22px; text-decoration: none; min-height: 120px; transition: border-color .15s, box-shadow .15s; }
.min-card:hover { border-color: var(--es-violet); box-shadow: 0 8px 24px rgba(46, 26, 85, .1); }
.min-card .n { font-family: var(--es-head); font-size: 18px; font-weight: 600; color: var(--es-purple); }
.min-card .l { font-size: 15px; color: var(--es-muted); }

/* Events */
.event-card { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1.5px solid transparent; }
.section:not(.section--mist) .event-card { border-color: var(--es-border); }
.event-card:hover { box-shadow: 0 8px 24px rgba(46, 26, 85, .12); color: inherit; }
.event-flyer { height: 190px; background: var(--es-mist-2); display: flex; align-items: center; justify-content: center; }
.event-flyer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-flyer .ph-emblem { width: 88px; }
.event-body { padding: 22px; display: flex; gap: 18px; align-items: flex-start; }
.date-chip { display: flex; flex-direction: column; align-items: center; min-width: 58px; background: var(--es-purple); color: #fff; border-radius: 12px; padding: 8px 0; font-family: var(--es-head); }
.date-chip .m { font-size: 12px; letter-spacing: 1.5px; color: var(--es-gold); font-weight: 600; }
.date-chip .dd { font-size: 24px; font-weight: 700; line-height: 1.15; }
.event-body .t { font-family: var(--es-head); font-weight: 600; color: var(--es-purple); font-size: 18px; display: block; }
.event-body .meta { font-size: 15px; color: var(--es-muted); }
.empty-note { background: #fff; border-radius: 18px; padding: 28px; color: var(--es-muted); }

/* Give + prayer */
.g2--give { align-items: stretch; }
.give-panel { background: var(--es-purple); color: #fff; border-radius: 24px; padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.give-panel h2 { margin: 0; color: #fff; font-size: 36px; }
.give-panel p { margin: 0; color: var(--es-on-dark-2); }
.give-panel ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--es-on-dark); }
.prayer-form { border: 1.5px solid var(--es-border); border-radius: 24px; padding: 44px; display: flex; flex-direction: column; gap: 8px; }
.prayer-form h2 { margin: 0 0 8px; font-size: 36px; }
.prayer-form label { font-size: 14px; font-weight: 700; color: var(--es-purple); margin-top: 8px; }
.prayer-form input[type=text], .prayer-form input[type=email], .prayer-form textarea {
	font: inherit; padding: 12px 14px; border: 1.5px solid #CCC6DA; border-radius: 12px; width: 100%; background: #fff; color: var(--es-text);
}
.prayer-form textarea { resize: vertical; min-height: 120px; }
.prayer-form .btn { align-self: flex-start; margin-top: 12px; }
.prayer-form .fine { font-size: 13px; color: var(--es-muted); }
.prayer-form .hp { position: absolute; left: -9999px; }
.notice { border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.notice--ok { background: #E7F3EA; color: #1D5A2E; }
.notice--err { background: #FBE9E9; color: #8A1F1F; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--es-muted) !important; }
.check input { margin-top: 5px; }

/* Footer */
.site-footer { background: var(--es-ink); color: var(--es-on-dark-2); padding: 64px 0 32px; font-size: 15px; }
.site-footer .g4 { gap: 32px; }
.site-footer h4 { margin: 0 0 8px; color: #fff; font-size: 16px; font-weight: 600; }
.site-footer a { color: var(--es-on-dark-2); }
.site-footer a:hover { color: var(--es-gold); }
.site-footer .tag { color: var(--es-gold); font-family: var(--es-head); font-weight: 500; }
.footer-logo { width: 220px; height: auto; }
.social-row { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-bottom { border-top: 1px solid var(--es-line-dark); margin-top: 40px; padding-top: 24px; font-size: 13px; color: #A99DC4; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

/* Interior pages */
.page-hero { background: var(--es-purple); color: #fff; padding: 64px 0; }
.page-hero h1 { margin: 0; color: #fff; font-size: 52px; font-weight: 700; }
.page-hero .eyebrow { color: var(--es-gold); }
.page-hero p { color: var(--es-on-dark); margin: 12px 0 0; max-width: 680px; }
.content-wrap { max-width: 820px; margin: 0 auto; padding: 64px 32px 96px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 32px; margin: 1.6em 0 .5em; }
.entry-content h3 { font-size: 24px; margin: 1.4em 0 .4em; }
.entry-content img { border-radius: 16px; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--es-gold); color: var(--es-muted); font-style: italic; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 28px; color: var(--es-muted); font-size: 15px; }
.entry-meta strong { color: var(--es-purple); font-family: var(--es-head); font-weight: 600; }
.featured { margin-bottom: 32px; border-radius: 20px; overflow: hidden; }
.featured img { display: block; width: 100%; }
.archive-grid { padding-top: 64px; padding-bottom: 96px; }
.pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--es-border); text-decoration: none; }
.pagination .current { background: var(--es-purple); color: #fff; border-color: var(--es-purple); }
.post-card { border: 1.5px solid var(--es-border); border-radius: 18px; padding: 24px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.post-card .t { font-family: var(--es-head); font-weight: 600; font-size: 20px; color: var(--es-purple); }
.post-card .x { color: var(--es-muted); font-size: 15px; }
.elementor-page .site-main { min-height: 40vh; }

/* Responsive */
@media (max-width: 960px) {
	.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g3 { grid-template-columns: minmax(0, 1fr); }
	.g2 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.hero h1 { font-size: 48px; }
	.h-section { font-size: 34px; }
	.section { padding: 72px 0; }
	.nav-toggle { display: inline-flex; }
	.primary-nav { display: none; width: 100%; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0; }
	.primary-nav a { font-size: 17px; padding: 10px 0; }
	.primary-nav .sub-menu { display: flex; position: static; box-shadow: none; background: transparent; padding: 0 0 0 16px; }
	.primary-nav .sub-menu a { color: var(--es-on-dark); padding: 8px 0; }
	.primary-nav .menu-give > a { margin-top: 8px; }
	.hero-media { height: 340px; }
	.hero-card { left: 16px; bottom: -28px; }
	.photo-frame { height: 380px; }
	.page-hero h1 { font-size: 40px; }
	.bio-grid, .bio-grid--flip, .history-grid, .history-grid--flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.bio-grid--flip .bio-photo { order: 0; }
	.bio-photo { position: static; max-width: 520px; }
	.pull-quote { font-size: 20px; }
}
@media (max-width: 560px) {
	.wrap { padding: 0 16px; }
	.content-wrap { padding: 48px 16px 72px; }
	.g4 { grid-template-columns: minmax(0, 1fr); }
	.hero { padding: 48px 0 88px; }
	.hero h1 { font-size: 40px; }
	.brand img { height: 52px; }
	.give-panel, .prayer-form { padding: 28px; }
	.timeline-row { gap: 16px; }
	.timeline-row .yr { min-width: 80px; font-size: 24px; }
	.announce .wrap { flex-direction: column; gap: 2px; }
}
