/* New Covenant Fellowship: site styles (child of Solid Ground Starter). */

@font-face { font-family: "Domine"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/domine-normal-400-700.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/open-sans-normal-300-800.woff2") format("woff2"); }

:root {
	--ink: #2c3b3f;            /* Deep slate for the footer and dark bands. */
	--ink-2: #364a4f;
	--ink-3: #43585d;
	--steel: #5e6b6e;
	--steel-light: #b7c4c7;
	--line: #dfe5e6;
	--paper: #f2f4f4;
	--accent: #4d6d74;         /* NCF slate blue (buttons on the old site). */
	--accent-strong: #3b5a61;
	--accent-text: #3b5a61;
	--accent-soft: #e4ecee;
	--on-accent: #fff;
	--sky: #acbec2;            /* The old header color. */
	--sky-dark: #749096;
	--font-head: "Domine", Georgia, serif;
	--font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--radius: 8px;
	--radius-lg: 10px;
	--btn-radius: 8px;
	--header-h: 84px;
}

/* ==========================================================================
   Shared layout for this site's header, banner, hero, bottom band, footer and page content.
   The site's own colors and fonts are at the top of this file; its own look follows the shared part.
   ========================================================================== */

/* ---------- Type: sentence case, softer than the starter's condensed caps ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: 0; }
.section-title, .page-hero__title, .entry-content h2, .form-card h2, .site-footer__title, .sgx-cta__title { text-transform: none; }
.entry-content h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }
.entry-content h3 { font-size: clamp(21px, 2vw, 25px); line-height: 1.25; }
.entry-content p, .entry-content li { color: var(--body-text, #3d4147); }
.btn { border-radius: var(--btn-radius, 8px); }
.eyebrow::before { display: none; }
.eyebrow { letter-spacing: .12em; }

/* ---------- Header ---------- */
.sgx-topbar { font-size: 13.5px; }
.sgx-topbar .topbar__inner { justify-content: flex-end; gap: 22px; }
.sgx-topbar .topbar__message { margin-right: auto; }
.sgx-topbar a { color: inherit; }
.sgx-header .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__words { display: flex; flex-direction: column; line-height: 1.1; }
.sgx-header .brand__name { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--ink); }
.sgx-header .brand__tagline { font-size: 14px; color: var(--steel); margin-top: 3px; }
.main-nav .menu a { font-weight: 600; }
.sgx-header__cta { white-space: nowrap; }
@media (min-width: 1024px) { .sgx-header__cta { display: none; } .main-nav__cta { display: inline-flex; margin-left: 10px; } }
@media (max-width: 1023px) {
	.sgx-header__cta { display: none; }
	.sgx-header .brand__name { font-size: 20px; }
	.sgx-header .brand__tagline { font-size: 12.5px; }
}

/* ---------- Page title banner (featured image behind the title) ---------- */
.sgx-banner { text-align: center; padding: clamp(56px, 8vw, 110px) 0; isolation: isolate; }
.sgx-banner::before { display: none; }
.sgx-banner::after { height: 0; }
.sgx-banner__bg { position: absolute; inset: 0; z-index: -2; }
.sgx-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.sgx-banner--photo::before { display: block; content: ""; position: absolute; inset: 0; z-index: -1; background: #000; opacity: var(--banner-dim, .45); }
.sgx-banner .crumbs { justify-content: center; }
.sgx-banner .page-hero__title { margin-left: auto; margin-right: auto; font-size: clamp(36px, 5vw, 60px); line-height: 1.1; }
.sgx-banner .page-hero__text { margin: 0 auto; }

/* ---------- Homepage hero ---------- */
.sgx-hero { position: relative; isolation: isolate; overflow: hidden; }
.sgx-hero__title { font-size: clamp(36px, 5vw, 62px); line-height: 1.08; margin-bottom: 18px; }
.sgx-hero__text { font-size: clamp(17px, 1.6vw, 20px); max-width: 640px; }
.sgx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.sgx-hero--background { color: #fff; text-align: center; }
.sgx-hero--background .sgx-hero__inner { min-height: clamp(460px, 70vh, 720px); display: flex; align-items: center; justify-content: center; padding-top: 70px; padding-bottom: 70px; }
.sgx-hero--background .sgx-hero__content { max-width: 900px; }
.sgx-hero--background .sgx-hero__title { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.sgx-hero--background .sgx-hero__text { margin: 0 auto; color: rgba(255,255,255,.92); }
.sgx-hero--background .sgx-hero__actions { justify-content: center; }
.sgx-hero__bg { position: absolute; inset: 0; z-index: -2; }
.sgx-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.sgx-hero--background::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #000; opacity: var(--hero-dim, .4); }
.sgx-hero--split .sgx-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.sgx-hero__photo { margin: 0; }
.sgx-hero__photo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 860px) { .sgx-hero--split .sgx-hero__inner { grid-template-columns: 1fr; } .sgx-hero--split .sgx-hero__photo { order: -1; } }

/* ---------- Page content from the old site ---------- */
.entry-content--centered .wp-block-columns img, .home-content .wp-block-columns img { aspect-ratio: auto; }
.entry-content .wp-block-columns .wp-block-image img { width: 100%; border-radius: var(--radius-lg); }
.entry-content .wp-block-column > .wp-block-image:not(:only-child) img { aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content .wp-block-image.is-style-rounded img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; max-width: 340px; margin: 0 auto; }
.entry-content .wp-block-image.is-style-uncropped img { aspect-ratio: auto !important; object-fit: contain !important; height: auto !important; }
.entry-content .wp-block-column h3 a { text-decoration: none; color: inherit; }
.entry-content .wp-block-column h3 a:hover { color: var(--accent-text); }
.entry-content .wp-block-columns { margin-bottom: 2.2em; }
.entry-content .wp-block-buttons { margin: 0 0 1.4em; display: flex; flex-wrap: wrap; gap: 10px; }
.entry-content .wp-block-button__link { border-radius: var(--btn-radius, 8px); display: inline-block; }
.entry-content .wp-block-gallery figcaption, .entry-content .wp-block-gallery .wp-element-caption { position: static; background: none; color: var(--ink); font-size: 14px; font-weight: 600; padding: 8px 2px 0; text-align: center; max-height: none; overflow: visible; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image { flex-direction: column; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 1; object-fit: cover; }
.entry-content .wp-block-embed { margin: 0 0 1.8em; }
.entry-content .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); }
.entry-content blockquote cite { display: block; font-style: normal; font-weight: 700; margin-top: 6px; font-size: 15px; }

/* Full-width photo bands (Cover blocks) and color bands. */
.entry-content .wp-block-cover.alignfull, .entry-content .is-style-band.alignfull { margin-top: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); padding: clamp(56px, 8vw, 110px) var(--gutter); min-height: 0; text-align: center; }
.entry-content .wp-block-cover { border-radius: 0; }
.entry-content .wp-block-cover .wp-block-cover__inner-container, .entry-content .is-style-band > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.entry-content .wp-block-cover h2, .entry-content .wp-block-cover h3, .entry-content .wp-block-cover p { color: #fff; }
.entry-content .wp-block-cover .wp-block-buttons, .entry-content .is-style-band .wp-block-buttons { justify-content: center; }
.entry-content .is-style-band { background: var(--ink); }
.entry-content .is-style-band h2, .entry-content .is-style-band h3, .entry-content .is-style-band p { color: #fff; }
.entry-content > .wp-block-cover:first-child, .entry-content > .is-style-band:first-child { margin-top: calc(-1 * clamp(48px, 6vw, 80px)); }
.entry-content > .wp-block-cover:last-child, .entry-content > .is-style-band:last-child { margin-bottom: calc(-1 * clamp(64px, 8vw, 110px)); }
.entry-content .is-style-callout { text-align: center; }

/* Newsletter + inline form. */
.sgx-subscribe { background: var(--paper); border-radius: var(--radius-lg); padding: 28px; margin: 2em 0; }
.sgx-subscribe__title { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.sgx-subscribe__row { display: flex; gap: 10px; flex-wrap: wrap; }
.sgx-subscribe input[type=email] { flex: 1 1 240px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--btn-radius, 8px); font: inherit; }
.sgx-form { margin: 2em 0; }

/* ---------- Bottom band ---------- */
.sgx-cta { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: rgba(255,255,255,.9); text-align: center; padding: clamp(60px, 8vw, 100px) 0; }
.sgx-cta__bg { position: absolute; inset: 0; z-index: -2; }
.sgx-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.sgx-cta--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #000; opacity: .55; }
.sgx-cta__inner { max-width: 820px; }
.sgx-cta__title { color: #fff; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; }
.sgx-cta__text { font-size: 18px; }
.sgx-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- Footer ---------- */
.sgx-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.sgx-footer__name { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: #fff; display: block; margin-bottom: 14px; }
@media (max-width: 860px) { .sgx-footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.sgx-social { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sgx-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: inherit; transition: background .2s, color .2s; }
.sgx-social a:hover { background: var(--accent); color: var(--on-accent); }
.sgx-social--top { margin: 0; gap: 4px; }
.sgx-social--top a { width: 28px; height: 28px; background: none; }
.sgx-social--top .sg-icon { width: 15px; height: 15px; }
.sgx-social--contact a { background: var(--paper); color: var(--ink); }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer__contact .sg-icon { flex: none; margin-top: 3px; color: var(--accent); }

/* ---------- Contact page ---------- */
.sgx-contact .contact-cards span, .sgx-contact .contact-cards a { font-size: 16.5px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* Homepage content: wider than inner pages, centered. */
.home-content .entry-content > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.home-content .entry-content > p, .home-content .entry-content > h2, .home-content .entry-content > h3, .home-content .entry-content > ul, .home-content .entry-content > .wp-block-quote, .home-content .entry-content > .wp-block-buttons, .home-content .entry-content > .wp-block-embed { max-width: 860px; }
.home-content .entry-content > .alignfull { max-width: none; }
.home-content { padding-top: clamp(56px, 7vw, 96px); }
.entry-content--centered > .wp-block-columns { max-width: none; }
.home-content .entry-content > .alignfull { width: 100vw; max-width: none; margin-left: 50%; margin-right: 0; transform: translateX(-50%); }
/* A photo beside text keeps a steady shape instead of stretching to the text's height. */
.entry-content .wp-block-columns:has(> .wp-block-column > .wp-block-image:only-child) { align-items: center !important; }
.entry-content .wp-block-column:has(> .wp-block-image:only-child) { align-self: center !important; display: block; }
.entry-content .wp-block-column > .wp-block-image:only-child { display: block; }
.entry-content .wp-block-column > .wp-block-image:only-child img { height: auto; min-height: 0; aspect-ratio: 4 / 3.3; }
/* Round photos (Image block style "Rounded") stay circles, in a narrower column. */
.entry-content .wp-block-column > .wp-block-image.is-style-rounded img, .entry-content .wp-block-image.is-style-rounded img { aspect-ratio: 1 !important; border-radius: 50% !important; width: 100%; max-width: 300px; margin: 0 auto; object-fit: cover; }
.entry-content .wp-block-column:has(> .wp-block-image.is-style-rounded:only-child) { flex: 0 0 32% !important; }
@media (min-width: 1024px) { .main-nav .menu a { white-space: nowrap; } }
.sgx-header .brand { min-width: 0; flex: 0 1 auto; }
.sgx-header .brand__name { overflow-wrap: anywhere; }
@media (max-width: 480px) { .sgx-header .brand__name { font-size: 17px; } .sgx-header .brand__logo { max-width: 46vw; height: auto; max-height: 56px; } }
/* Article cards and articles. */
.project-card__title, .project-card h3 { text-transform: none; }
.project-card__count, .project-card .photo-count { display: none; }
.sgx-article__lead img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius-lg); }
.section-title { text-transform: none; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption, .entry-content .wp-block-gallery.has-nested-images figure.wp-block-image .wp-element-caption { position: static; background: none; color: var(--ink); text-shadow: none; padding: 8px 2px 0; font-size: 14px; font-weight: 600; max-height: none; overflow: visible; margin: 0; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before { display: none; }
.entry-content--centered > .wp-block-gallery, .entry-content--centered > .wp-block-columns { max-width: none; }
.entry-content p a, .entry-content li a { overflow-wrap: anywhere; }

/* ==========================================================================
   New Covenant Fellowship's own look
   ========================================================================== */

h1, h2, h3, h4 { font-weight: 400; }
.entry-content h2 { font-weight: 700; }

/* Header: the old pale slate-blue bar with the church name in serif and the white menu. */
.sgx-header { background: var(--sky); border: 0; }
.sgx-header .brand__name { font-size: 27px; font-weight: 400; color: #1f2a2d; }
.sgx-header .brand__tagline { color: #fff; font-size: 15px; letter-spacing: .04em; }
@media (min-width: 1024px) and (max-width: 1240px) { .sgx-header .main-nav .menu a { padding-left: 8px; padding-right: 8px; font-size: 13.5px; } .sgx-header .brand__name { font-size: 23px; } }
.sgx-header .main-nav .menu a { color: #fff; font-weight: 600; font-size: 14.5px; }
.sgx-header .main-nav .menu > li > a:hover { background: rgba(255,255,255,.18); color: #fff; }
/* Desktop menu only: on phones the menu is a dark panel styled by the parent theme. */
@media (min-width: 1024px) {
	.sgx-header .main-nav .sub-menu a { color: var(--ink); }
}
.sgx-header .main-nav .current-menu-item > a, .sgx-header .main-nav .current_page_item > a, .sgx-header .main-nav .current-menu-ancestor > a { box-shadow: inset 0 -2px 0 #fff; }
.sgx-header .main-nav__cta { background: var(--accent); color: #fff; }
.sgx-header .nav-toggle { background: var(--accent); color: #fff; }
@media (max-width: 1023px) { .sgx-header .brand__name { font-size: 20px; } .sgx-header .brand__tagline { font-size: 12.5px; } }

/* Hero: worship photo with the welcome in large serif. */
.sgx-hero__title { font-weight: 400; font-size: clamp(38px, 5.4vw, 66px); }
.sgx-hero .btn--accent { background: var(--accent); }

/* Content. */
.entry-content .is-style-stats { text-align: center; padding: 10px 0 0; }
.entry-content .is-style-stats .wp-block-column { border-top: 3px solid var(--sky-dark); padding-top: 18px; }
.entry-content .is-style-stats h3 { font-size: 20px; letter-spacing: .06em; margin: 0 0 6px; }
.entry-content .is-style-stats p { font-size: 22px; font-family: var(--font-head); color: var(--accent-text); margin: 0; }
.home-content .entry-content > h2, .home-content .entry-content > .wp-block-buttons { text-align: center; justify-content: center; }
.home-content .entry-content .wp-block-columns:not(.is-style-stats) .wp-block-column:has(> .wp-block-buttons) { text-align: center; }
.home-content .entry-content .wp-block-column .wp-block-buttons { justify-content: center; }
.entry-content .wp-block-button__link { background: var(--accent); color: #fff; }
.entry-content .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.entry-content .is-style-lead { font-family: var(--font-head); font-size: 22px; color: var(--accent-text); }
.entry-content .wp-block-cover h2 { font-weight: 400; font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; }
.entry-content .wp-block-cover p { font-size: 18px; }
.home-content .entry-content > h2:last-child { font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4; text-align: center; color: var(--accent-text); margin-top: 2em; }
.sgx-form { max-width: 720px; margin-left: auto !important; margin-right: auto !important; background: var(--paper); box-shadow: none; }
.sgx-form h2 { text-align: center; }
.sgx-form > p { text-align: center; }
.page-hero__text { font-family: var(--font-head); font-style: italic; }

/* Bottom band + footer. */
.sgx-cta__title { font-weight: 400; }
.sgx-cta .btn--accent { background: #fff; color: var(--accent-text); }
.site-footer { background: var(--ink); }
.site-footer__title { font-weight: 400; }

/* Bottom band, light version: used when the page already ends with a photo band. */
.sgx-cta.sgx-cta--plain { background: var(--paper); color: var(--ink); clip-path: none; margin-top: 0; padding-top: clamp(60px, 8vw, 100px); }
.sgx-cta--plain .sgx-cta__title { color: var(--ink); }
.sgx-cta--plain .sgx-cta__text { color: var(--steel); }
.sgx-cta--plain .eyebrow { color: var(--accent-text); }
.sgx-cta--plain .btn--ghost { border-color: var(--ink); color: var(--ink); }
.sgx-cta--plain .btn--ghost:hover { background: var(--ink); color: #fff; }

/* 1.0.4: main button stays slate blue on the light bottom band. */
.sgx-cta.sgx-cta--plain .btn--accent { background: var(--accent); color: #fff; }
.sgx-cta.sgx-cta--plain .btn--accent:hover { background: var(--ink); color: #fff; }
