/**
 * Main theme stylesheet.
 * START: GLOBAL HEADER + HERO SECTION - Root colors and global layout support header, hero, body, and footer.
 */
:root {
	--primary-color: #061d45;
	--secondary-color: #ffffff;
	--accent-color: #f5b22a;
	--text-color: #17213a;
	--muted-text: #53617a;
	--light-bg: #f7f8fb;
	--footer-bg: #061d45;
	--card-shadow: 0 14px 35px rgba(6, 29, 69, .14);
	--radius: 12px;
	--container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text-color); background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-color); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; width: auto; height: auto; padding: 10px 16px; background: #fff; z-index: 9999; clip: auto; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section-padding { padding: 64px 0; }
.center { text-align: center; }
.section-label { color: var(--accent-color); text-transform: uppercase; font-weight: 800; letter-spacing: .04em; margin: 0 0 6px; }
.section-title, h1, h2, h3 { line-height: 1.12; margin-top: 0; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.4rem, 6vw, 5.8rem); text-transform: uppercase; }
h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.8rem, 3vw, 3rem); color: var(--primary-color); }
h3 { font-size: 1rem; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 24px; border-radius: 4px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; border: 2px solid transparent; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent-color); color: #061d45; }
.button-primary:hover { background: #ffd067; color: #061d45; }
.button-outline { border-color: rgba(255,255,255,.75); color: #fff; }
.button-outline:hover { background: #fff; color: var(--primary-color); }
.button-dark { background: var(--primary-color); color: #fff; }
.wide-button { min-width: 320px; }
.site-header { position: sticky; top: 0; z-index: 100; background: linear-gradient(90deg, #061d45, #00142e); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { min-height: 96px; display: flex; align-items: center; gap: 26px; }
.site-branding { display: flex; align-items: center; gap: 14px; min-width: 280px; }
.custom-logo, .mockup-default-logo { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.mockup-default-logo { display: grid; place-items: center; border: 2px solid var(--accent-color); color: var(--accent-color); font-size: 2rem; }
.site-title { margin: 0; font-weight: 900; line-height: 1.05; text-transform: uppercase; letter-spacing: .03em; }
.site-title a { color: #fff; }
.site-tagline { color: var(--accent-color); margin: 2px 0 0; font-weight: 800; }
.primary-navigation { margin-left: auto; }
.primary-menu { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.primary-menu a { color: #fff; font-size: .88rem; font-weight: 800; text-transform: uppercase; }
.header-cta { background: var(--accent-color); color: var(--primary-color); padding: 14px 22px; border-radius: 4px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.mobile-menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35); background: transparent; border-radius: 6px; padding: 9px; }
.mobile-menu-toggle span:not(.screen-reader-text) { display: block; height: 3px; background: #fff; margin: 5px 0; }
.hero-section { min-height: 500px; background-size: cover; background-position: center; color: #fff; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-inner { position: relative; min-height: 500px; display: flex; align-items: center; }
.hero-content { width: min(610px, 100%); padding: 80px 0; }
.hero-content h1 { margin-bottom: 10px; color: #fff; text-shadow: 0 3px 12px rgba(0,0,0,.28); }
.hero-content h1::first-line { color: #fff; }
.hero-content h1 { color: #fff; }
.hero-kicker { border-top: 3px solid var(--accent-color); padding-top: 12px; text-transform: uppercase; font-weight: 900; font-size: .95rem; }
.hero-content p:not(.hero-kicker) { max-width: 530px; font-size: 1.06rem; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.pastor-card { position: absolute; right: 20px; bottom: 34px; max-width: 320px; padding: 18px 22px; background: rgba(6,29,69,.88); border-left: 6px solid var(--accent-color); border-radius: 8px; box-shadow: var(--card-shadow); }
.pastor-card strong, .pastor-card span { display: block; }
/** END: GLOBAL HEADER + HERO SECTION - Header and hero styling ends here. */

/** START: MAIN CONTENT AREA - Homepage, pages, posts, cards, and forms. */
.about-section { background: linear-gradient(90deg, #fff, #f8f9fc); }
.about-grid { display: grid; grid-template-columns: .95fr 1.75fr; gap: 54px; align-items: center; }
.about-copy p { max-width: 560px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-card { background: #fff; border-radius: var(--radius); padding: 34px 18px; text-align: center; box-shadow: var(--card-shadow); min-height: 210px; }
.value-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--primary-color); color: #fff; border-radius: 50%; font-size: 2rem; }
.value-card:nth-child(even) .value-icon { background: var(--accent-color); color: var(--primary-color); }
.value-card h3 { color: var(--primary-color); margin-bottom: 10px; }
.ministries-section { background: radial-gradient(circle at 50% 0, #12396c, #061d45 70%); color: #fff; }
.ministries-section h2 { color: #fff; }
.ministry-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 20px; }
.ministry-card { text-align: center; }
.ministry-card img { aspect-ratio: 16/9; object-fit: cover; border: 3px solid rgba(255,255,255,.75); border-radius: 9px; margin-bottom: 12px; }
.ministry-card h3 { color: #fff; margin: 0 0 4px; }
.ministry-card p { font-size: .88rem; margin: 0; color: rgba(255,255,255,.88); }
.cta-section { background: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 18px; }
.info-card, .sermon-card { min-height: 250px; border-radius: 10px; padding: 24px; box-shadow: var(--card-shadow); }
.info-card { background: #fff; }
.info-card h2, .sermon-card h2 { font-size: 1.55rem; }
.event-list { list-style: none; margin: 0 0 20px; padding: 0; }
.event-list li { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e7eaf1; }
.event-list span { grid-row: span 2; background: var(--primary-color); color: #fff; text-align: center; padding: 6px; border-radius: 3px; text-transform: uppercase; font-weight: 900; line-height: 1.1; }
.event-list small { display: block; color: var(--muted-text); }
.sermon-card { background-size: cover; background-position: center; color: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.sermon-card h2 { color: #fff; }
.dark-card { background: var(--primary-color); color: #fff; }
.dark-card h2 { color: #fff; }
.contact-section { background: var(--light-bg); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.mockup-contact-form { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--card-shadow); }
.mockup-contact-form label { display: block; font-weight: 800; margin-bottom: 7px; }
.mockup-contact-form input, .mockup-contact-form textarea, .newsletter-form input, .search-field { width: 100%; border: 1px solid #ccd3df; border-radius: 4px; padding: 12px 14px; }
.mockup-contact-form button, .newsletter-form button, .search-submit { border: 0; background: var(--primary-color); color: #fff; padding: 12px 20px; border-radius: 4px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.form-message.success { color: #176b32; font-weight: 800; }
.form-message.error { color: #a01818; font-weight: 800; }
.page-main .entry-content > *:not(.alignfull) { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.elementor-full-width-template .entry-content, .elementor-full-width-template { width: 100%; max-width: none; }
.page-entry-header { padding: 50px 0 10px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card, .single-post-content, .not-found-card { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 24px; }
.archive-main, .search-main, .single-layout, .not-found-main, .content-layout { padding: 60px 0; }
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
/** END: MAIN CONTENT AREA - Main website body styling ends here. */

/** START: GLOBAL FOOTER AREA - Newsletter, footer widgets, socials, and copyright. */
.footer-newsletter { background: var(--accent-color); color: var(--primary-color); padding: 22px 0; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.newsletter-inner p { margin: 0; }
.newsletter-form { display: flex; width: min(430px, 100%); }
.newsletter-form input { border-radius: 4px 0 0 4px; border: 0; }
.newsletter-form button { border-radius: 0 4px 4px 0; }
.footer-main { color: #fff; padding: 42px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr 1.25fr; gap: 28px; }
.footer-brand .custom-logo { width: 82px; height: 82px; }
.footer-main h2, .footer-main h3 { color: #fff; font-family: Arial, Helvetica, sans-serif; text-transform: uppercase; }
.gold-text, .footer-main a:hover { color: var(--accent-color); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.footer-menu { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; font-size: .9rem; }
/** END: GLOBAL FOOTER AREA - Footer styling ends here. */

@media (max-width: 1024px) {
	.header-inner { flex-wrap: wrap; padding: 14px 0; }
	.mobile-menu-toggle { display: block; margin-left: auto; }
	.primary-navigation { display: none; width: 100%; order: 5; margin-left: 0; }
	.primary-navigation.is-open { display: block; }
	.primary-menu { display: block; padding: 16px 0; }
	.primary-menu li { border-top: 1px solid rgba(255,255,255,.12); }
	.primary-menu a { display: block; padding: 12px 0; }
	.header-cta { margin-left: 0; }
	.about-grid, .cta-grid, .contact-grid, .content-layout { grid-template-columns: 1fr; }
	.values-grid { grid-template-columns: repeat(2, 1fr); }
	.ministry-grid { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.container { width: min(100% - 28px, var(--container)); }
	.site-branding { min-width: 0; }
	.custom-logo, .mockup-default-logo { width: 62px; height: 62px; }
	.site-title { font-size: 1rem; }
	.hero-section, .hero-inner { min-height: 560px; }
	.hero-content { padding: 60px 0 150px; }
	.pastor-card { left: 14px; right: 14px; bottom: 20px; }
	.values-grid, .post-grid { grid-template-columns: 1fr; }
	.ministry-grid { grid-template-columns: repeat(2, 1fr); }
	.newsletter-inner, .footer-bottom { flex-direction: column; align-items: flex-start; }
	.newsletter-form { width: 100%; }
}

@media (max-width: 480px) {
	h1 { font-size: 2.35rem; }
	.hero-actions, .newsletter-form { flex-direction: column; }
	.newsletter-form input, .newsletter-form button { border-radius: 4px; }
	.button, .wide-button { width: 100%; min-width: 0; }
	.ministry-grid, .footer-grid { grid-template-columns: 1fr; }
	.value-card { min-height: auto; }
}
