/* Village Family Project - design layer 2: type, colour, flow, depth, motion.
   Sits on top of polish.css and the original Divi styles. Delete this file + polish.js (and their tags) to undo. */

:root {
  --vfp-navy: #151f33; --vfp-navy-2: #1f3050; --vfp-ink: #1b2333;
  --vfp-amber: #ffba5a; --vfp-amber-d: #e8962a; --vfp-amber-deep: #8a4a00;
  --vfp-teal: #2a8c82; --vfp-teal-d: #14625c; --vfp-teal-soft: #a5cec7;
  --vfp-sand: #fbf6ec; --vfp-sand-2: #f3eadb;
  --vfp-display: "Fraunces", "Noto Serif", Georgia, serif;
  --vfp-text: "Source Sans 3", "Source Sans Pro", "Open Sans", Arial, sans-serif;
  --vfp-ease: cubic-bezier(.2,.7,.2,1);
  --vfp-shadow-1: 0 1px 2px rgba(15,25,45,.08), 0 8px 24px -10px rgba(15,25,45,.28);
  --vfp-shadow-2: 0 2px 4px rgba(15,25,45,.10), 0 22px 44px -16px rgba(15,25,45,.45);
}

/* ---------- 1. Lettering: one display serif + one humane sans ---------- */
body, #page-container, #page-container :where(p, li, a, span, label, input, textarea, button, select, td, th, blockquote, cite, .et_pb_text_inner, .et_pb_blurb_description, .et_pb_button) {
  font-family: var(--vfp-text);
}
#page-container :where(.et-pb-icon, [class*="et-icon"], .et_pb_button:after, .et_pb_button:before) { font-family: "ETmodules" !important; }
#page-container :where(h1, h2, h3, h4, h5, h6, .et_pb_module_header) { font-family: var(--vfp-text); }
#page-container :where(h1, h2) { font-family: var(--vfp-display) !important; font-optical-sizing: auto; font-weight: 600 !important; letter-spacing: -.012em; text-wrap: balance; }

/* Type scale: hero 40-88 / section 30-44 / sub 20-26 / label 13-14 / body 17 */
#page-container h1 { font-size: clamp(2.6rem, 7.2vw, 5.4rem) !important; line-height: 1.04 !important; text-shadow: 0 2px 24px rgba(10,16,30,.35); }
#page-container .et_pb_text_inner h2, #page-container .et_pb_module_header:is(h2) { font-size: clamp(1.9rem, 3.6vw, 2.75rem) !important; line-height: 1.14 !important; }
#page-container h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.25; font-weight: 700; letter-spacing: .005em; text-wrap: balance; }
#page-container h4 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; }

/* Dark-on-light headings in navy, not flat grey */
#page-container .et_pb_bg_layout_light :is(h1, h2, h3, h4) { color: var(--vfp-navy); text-shadow: none; }
/* Hero "25 YEARS" and the little banner lines: amber caps */
#page-container .et_pb_bg_layout_dark h2:not(.vfp-keep), #page-container .et_pb_fullwidth_header h2 { font-family: var(--vfp-text) !important; letter-spacing: .14em; text-transform: uppercase; }
.et_pb_section_0 .et_pb_bg_layout_dark h2 { color: var(--vfp-amber) !important; }

/* H5 section titles in text modules (Our Mission, We Need Your Help...) */
#page-container .et_pb_text_inner > h5 { font-family: var(--vfp-display) !important; font-weight: 600 !important; font-size: clamp(1.6rem, 3vw, 2.2rem) !important; line-height: 1.15 !important; letter-spacing: .06em; color: var(--vfp-navy) !important; padding-bottom: .1em; }
#page-container .et_pb_text_inner > h5::after { content: ""; display: block; width: 56px; height: 4px; margin: .5em 0 0; background: linear-gradient(90deg, var(--vfp-amber), var(--vfp-amber-d)); border-radius: 4px; }
#page-container .et_pb_text_align_center .et_pb_text_inner > h5::after { margin-left: auto; margin-right: auto; }
/* hero tagline */
.et_pb_section_0 .et_pb_bg_layout_dark .et_pb_text_inner p { font-size: clamp(1.1rem, 2.1vw, 1.45rem) !important; letter-spacing: .02em; }

/* Small all-caps labels (H3 topic tags, sub-banners) become real eyebrows */
#page-container h3[class*="et_pb_module_header"], #page-container .et_pb_text_inner h3 {
  font-family: var(--vfp-text) !important; text-transform: uppercase; letter-spacing: .13em; font-size: .86rem; font-weight: 800; color: var(--vfp-teal-d);
}
#page-container .et_pb_bg_layout_dark .et_pb_text_inner h3 { color: var(--vfp-amber); }

/* Short amber rule under centred section titles */
#page-container .et_pb_text_inner > h2::after { content: ""; display: block; width: 56px; height: 4px; margin: .5em 0 0; background: linear-gradient(90deg, var(--vfp-amber), var(--vfp-amber-d)); border-radius: 4px; }
#page-container .et_pb_text_align_center .et_pb_text_inner > h2::after, #page-container .et_pb_text_inner > h2[style*="center"]::after { margin-left: auto; margin-right: auto; }
.et_pb_section_0 .et_pb_text_inner > h2::after { display: none; }

/* Body copy: warmer ink, links that look like links */
#page-container .et_pb_bg_layout_light .et_pb_text_inner p, #page-container .et_pb_bg_layout_light .et_pb_text_inner li { color: #263042 !important; }
#page-container .et_pb_text_inner a[href]:not(.et_pb_button):not([href^="tel"]):not([href^="mailto"]) { color: var(--vfp-teal-d); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(42,140,130,.4); transition: text-decoration-color .2s, background .2s; }
#page-container .et_pb_text_inner a[href]:not(.et_pb_button):hover { text-decoration-color: var(--vfp-amber-d); background: rgba(255,186,90,.22); }
#page-container .et_pb_bg_layout_dark .et_pb_text_inner a[href]:not(.et_pb_button) { color: var(--vfp-amber); text-decoration-color: rgba(255,186,90,.5); }

/* Navigation */
#top-menu li a, #top-menu-nav a { font-family: var(--vfp-text) !important; font-size: 14.5px !important; font-weight: 700 !important; letter-spacing: .07em; color: var(--vfp-navy) !important; }
#top-menu li a:hover, #top-menu li a:focus-visible { color: var(--vfp-teal-d) !important; opacity: 1 !important; }
#top-menu > li > a { position: relative; }
#top-menu > li > a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 3px; background: var(--vfp-amber); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--vfp-ease); }
#top-menu > li:hover > a::before, #top-menu > li > a:focus-visible::before { transform: scaleX(1); }
#main-header { transition: box-shadow .3s; }
html.vfp-scrolled #main-header { box-shadow: 0 6px 24px -10px rgba(15,25,45,.35) !important; }

/* ---------- 2. Colour pop ---------- */
#page-container .vfp-sand { background-color: var(--vfp-sand) !important; }
#page-container .vfp-sand2 { background-color: var(--vfp-sand-2) !important; }
#page-container .vfp-navy { background-image: radial-gradient(60% 90% at 88% 0%, rgba(255,186,90,.16), transparent 62%), radial-gradient(50% 80% at 0% 100%, rgba(42,140,130,.22), transparent 65%) !important; background-color: var(--vfp-navy) !important; }
#page-container .vfp-night { background-image: linear-gradient(180deg, #0c1322 0%, #16223a 100%) !important; background-color: #0c1322 !important; }
#page-container .vfp-band { background-image: linear-gradient(120deg, #17263d 0%, #1d4d52 100%) !important; background-color: #17263d !important; }
#page-container .vfp-navy :is(h1,h2,h4), #page-container .vfp-night :is(h1,h2,h4), #page-container .vfp-band :is(h1,h2,h4) { color: #fff; }

/* Buttons: confident, rounded, they lift */
#page-container .et_pb_button { border-radius: 12px !important; font-family: var(--vfp-text) !important; font-weight: 800 !important; letter-spacing: .08em; transition: translate .25s var(--vfp-ease), box-shadow .25s, background-color .25s !important; box-shadow: 0 6px 18px -8px rgba(15,25,45,.5); }
#page-container .et_pb_button:hover { translate: 0 -3px; box-shadow: 0 14px 28px -10px rgba(15,25,45,.55); }
#page-container .et_pb_button:active { translate: 0 0; }
.et_pb_section_0 .et_pb_button { background: var(--vfp-amber) !important; color: #1d1d1d !important; border-color: var(--vfp-amber) !important; font-size: clamp(1.15rem, 4.6vw, 1.75rem) !important; line-height: 1.2 !important; padding: .7em 1.5em !important; max-width: 100%; box-sizing: border-box; }
.et_pb_section_0 .et_pb_button:after { display: none !important; }
.et_pb_section_0 .et_pb_button:hover { background: #ffc978 !important; }

/* Clickable orange cards/banners get a bit more life */
#page-container .vfp-onorange { border-radius: 12px; transition: translate .25s var(--vfp-ease), box-shadow .25s, filter .25s; }
#page-container .vfp-onorange:hover { translate: 0 -3px; filter: saturate(1.1) brightness(1.04); box-shadow: 0 14px 28px -12px rgba(232,150,42,.7); }

/* ---------- 3. Flow: tighter vertical rhythm ---------- */
#page-container .vfp-pad-tight { padding-top: clamp(36px, 5vw, 64px) !important; padding-bottom: clamp(36px, 5vw, 64px) !important; }
#page-container .et_pb_text_inner p { margin-bottom: 1em; }
#page-container .et_pb_text_inner h2 { padding-bottom: .35em; }
#page-container .et_pb_row { padding-top: clamp(16px, 2.2vw, 28px); padding-bottom: clamp(16px, 2.2vw, 28px); }

/* ---------- 4. Layers & depth ---------- */
#page-container .et_pb_image img:not([alt*="logo" i]):not([src*="logo" i]) { border-radius: 14px; box-shadow: var(--vfp-shadow-2), 12px 12px 0 -2px rgba(165,206,199,.55); }
#page-container .et_pb_blurb, #page-container .et_pb_column > .et_pb_module.et_pb_blurb { border-radius: 16px; transition: translate .3s var(--vfp-ease), box-shadow .3s; }
#page-container .et_pb_blurb:hover { translate: 0 -4px; box-shadow: var(--vfp-shadow-2); }
#page-container .et_pb_blurb:hover .et_pb_image_wrap img, #page-container .et_pb_blurb:hover .et_pb_main_blurb_image img { transform: scale(1.03); }
#page-container .et_pb_blurb img { transition: transform .5s var(--vfp-ease); border-radius: 14px; }
#page-container .et_pb_blurb .et_pb_main_blurb_image { overflow: hidden; border-radius: 14px; }
/* Hero: darker foot so type stays crisp, plus a soft ground-fade into the page */
.et_pb_section_0 { position: relative; }
.et_pb_section_0::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; pointer-events: none; background: linear-gradient(to top, rgba(12,19,34,.55), transparent); z-index: 0; }
/* Footer */
#main-footer, #footer-bottom { background: linear-gradient(180deg, #121b2e, #0c1322) !important; }
#footer-bottom a, #footer-bottom #footer-info, #footer-bottom #footer-info a { color: #d9e2f0 !important; }

/* Parallax layer injected by polish.js */
.vfp-has-px { position: relative; isolation: isolate; overflow: hidden; background-image: none !important; }
.vfp-px { position: absolute; left: 0; right: 0; top: -12%; height: 124%; z-index: -1; background-size: cover; background-repeat: no-repeat; will-change: transform; pointer-events: none; }

/* ---------- 5. Motion ---------- */
.vfp-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 100001; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--vfp-amber), var(--vfp-teal)); pointer-events: none; }
.vfp-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; z-index: 99990; background: var(--vfp-navy); color: #fff; font-size: 22px; line-height: 1; box-shadow: var(--vfp-shadow-2); opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .3s, translate .3s var(--vfp-ease), background .2s; }
.vfp-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.vfp-top:hover { background: var(--vfp-teal-d); }

.vfp-js .vfp-reveal { opacity: 0; translate: 0 30px; transition: opacity .9s var(--vfp-ease) var(--d, 0s), translate .9s var(--vfp-ease) var(--d, 0s), scale .9s var(--vfp-ease) var(--d, 0s); }
.vfp-js .vfp-reveal.vfp-from-left { translate: -36px 0; }
.vfp-js .vfp-reveal.vfp-from-right { translate: 36px 0; }
.vfp-js .vfp-reveal.vfp-zoom { translate: 0 18px; scale: .96; }
.vfp-js .vfp-reveal.vfp-in { opacity: 1; translate: 0 0; scale: 1; }
@media (max-width: 980px) { .vfp-js .vfp-reveal.vfp-from-left, .vfp-js .vfp-reveal.vfp-from-right { translate: 0 26px; } }
#page-container { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  .vfp-js .vfp-reveal { opacity: 1 !important; translate: none !important; scale: none !important; transition: none !important; }
  #page-container .et_pb_button, #page-container .et_pb_blurb, #page-container .vfp-onorange { transition: none !important; }
  .vfp-progress, .vfp-top { transition: none; }
}

/* ---------- 6. Consistency clean-ups ---------- */
/* Old copy-paste left random inline sizes/colours on spans: bring them in line with the body style */
#page-container .et_pb_text_inner span[style*="font-size"], #page-container .elementor-widget-container span[style*="font-size"] { font-size: inherit !important; line-height: inherit !important; }
#page-container .et_pb_bg_layout_light .et_pb_text_inner :is(p, span, li, div):not(.vfp-keep) { color: #263042; }
#page-container .et_pb_bg_layout_dark .et_pb_text_inner :is(p, span, li) { color: inherit; }
/* hero sub-lines stay legible over photos */
.et_pb_section_0 .et_pb_bg_layout_dark .et_pb_text_inner p, .et_pb_section_0 .et_pb_bg_layout_dark .et_pb_text_inner h2 { text-shadow: 0 1px 14px rgba(10,16,30,.6); }

/* ---------- 7. Impact band (home) ---------- */
.vfp-impact { background: var(--vfp-sand); border-bottom: 1px solid rgba(21,31,51,.08); padding: clamp(28px, 4vw, 52px) max(16px, env(safe-area-inset-left, 0px)); }
.vfp-impact-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); text-align: center; }
.vfp-stat { display: flex; flex-direction: column; align-items: center; gap: .35rem; min-width: 0; }
.vfp-num { font-family: var(--vfp-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; color: var(--vfp-teal-d); letter-spacing: -.02em; }
.vfp-num::after { content: ""; display: block; width: 44px; height: 4px; margin: .35em auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--vfp-amber), var(--vfp-amber-d)); }
.vfp-lab { font-family: var(--vfp-text); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.4; color: #263042; max-width: 22ch; }
@media (max-width: 680px) { .vfp-impact-inner { grid-template-columns: 1fr; } .vfp-lab { max-width: 30ch; } }
#page-container .vfp-num { font-family: var(--vfp-display) !important; }
/* paragraphs centred with inline text-align must also centre their capped-width box */
#page-container .et_pb_text_inner p[style*="text-align: center"] { margin-left: auto; margin-right: auto; }

/* ---------- 8. Contrast fixes (dark sections + stray tan headings) ----------
   Divi tags many text modules inside dark sections as "light layout", so the dark-ink rules above
   were turning their text dark-grey on navy (about 1.2:1). These rules put light text back on dark sections. */
#page-container .vfp-navy .et_pb_text_inner :is(p, li, span, div),
#page-container .vfp-night .et_pb_text_inner :is(p, li, span, div),
#page-container .vfp-band .et_pb_text_inner :is(p, li, span, div) { color: #eef2f8 !important; }
#page-container .vfp-navy .et_pb_text_inner :is(h1, h2, h3, h4, h5, h6),
#page-container .vfp-night .et_pb_text_inner :is(h1, h2, h3, h4, h5, h6),
#page-container .vfp-band .et_pb_text_inner :is(h1, h2, h3, h4, h5, h6) { color: #ffffff !important; }
/* Section titles written as H5 (Our Mission, Job Opportunities...) were picking up Divi's tan */
#page-container .et_pb_text_inner h5 { color: var(--vfp-navy) !important; }
#page-container .vfp-night .et_pb_text_inner h5, #page-container .vfp-navy .et_pb_text_inner h5 { color: #ffffff !important; }
