/* Reusable Home-page components. Mobile-first. */
.jf-section { padding: clamp(3rem, 7vw, 5.5rem) 1.25rem; }
.jf-section > .wp-block-group__inner-container,
.jf-section.jf-contained { max-width: 1180px; margin-inline: auto; }
.jf-kicker { color: var(--jf-green); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.jf-card-grid { display: grid; gap: 1rem; }
.jf-card { background: var(--jf-white); border: 1px solid rgba(5,60,129,.14); border-radius: var(--jf-radius); box-shadow: var(--jf-shadow); padding: 1.4rem; height: 100%; }
.jf-card h3 { margin-top: 0; color: var(--jf-deep-blue); }
.jf-icon-dot { width: 2.7rem; height: 2.7rem; border-radius: 999px; display: grid; place-items: center; background: rgba(76,163,34,.12); color: var(--jf-green); font-weight: 900; margin-bottom: .85rem; }
.jf-btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.jf-button-primary .wp-block-button__link { background: var(--jf-green); color: var(--jf-white); font-weight: 800; border-radius: 999px; padding: .85rem 1.25rem; }
.jf-button-secondary .wp-block-button__link { background: transparent; color: var(--jf-deep-blue); border: 2px solid var(--jf-deep-blue); font-weight: 800; border-radius: 999px; padding: calc(.85rem - 2px) calc(1.25rem - 2px); }
.jf-soft-section { background: linear-gradient(180deg, rgba(213,223,226,.45), rgba(255,255,255,1)); }
.jf-steps { counter-reset: jf-step; display: grid; gap: 1rem; }
.jf-step { counter-increment: jf-step; position: relative; padding: 1.35rem 1.35rem 1.35rem 4.5rem; border-radius: var(--jf-radius); background: var(--jf-white); border: 1px solid rgba(5,60,129,.12); }
.jf-step::before { content: counter(jf-step); position: absolute; left: 1.2rem; top: 1.2rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--jf-blue); color: var(--jf-white); font-weight: 900; }
.jf-comparison { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.jf-comparison table { min-width: 640px; width: 100%; border-collapse: collapse; background: var(--jf-white); border-radius: var(--jf-radius); overflow: hidden; }
.jf-comparison th, .jf-comparison td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid rgba(5,60,129,.10); vertical-align: top; }
.jf-comparison th { background: var(--jf-deep-blue); color: var(--jf-white); }
.jf-faq details { background: var(--jf-white); border: 1px solid rgba(5,60,129,.12); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: .75rem; }
.jf-faq summary { cursor: pointer; color: var(--jf-deep-blue); font-weight: 800; }
.jf-final-cta { background: var(--jf-deep-blue); color: var(--jf-white); border-radius: clamp(20px, 4vw, 34px); padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3.5rem); }
.jf-final-cta h2, .jf-final-cta p { color: var(--jf-white); }

/* Video hero framework. Add class jf-video-hero to the hero wrapper. */
.jf-video-hero { position: relative; min-height: clamp(480px, 72vh, 720px); display: grid; align-items: center; overflow: hidden; background: var(--jf-deep-blue); color: var(--jf-white); }
.jf-video-hero > video,
.jf-video-hero .jf-video-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jf-video-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,31,68,.82), rgba(3,31,68,.54) 55%, rgba(3,31,68,.34)); pointer-events: none; }
.jf-video-hero__content { position: relative; z-index: 2; width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; padding-block: 4.5rem; }
.jf-video-hero__content > * { max-width: 720px; }
.jf-video-hero h1 { color: var(--jf-white); font-size: clamp(2.2rem, 7vw, 4.7rem); line-height: 1.02; }
.jf-video-hero p { color: rgba(255,255,255,.94); font-size: clamp(1.05rem, 2.5vw, 1.3rem); }
.jf-video-hero.is-video-fallback video { display: none; }

@media (min-width: 700px) {
  .jf-card-grid.jf-3 { grid-template-columns: repeat(3, 1fr); }
  .jf-card-grid.jf-4 { grid-template-columns: repeat(2, 1fr); }
  .jf-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1040px) {
  .jf-card-grid.jf-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .jf-video-hero video { visibility: hidden; }
  .jf-video-hero.is-reduced-motion-ready video { visibility: visible; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* v1.3.1: Gutenberg/Kadence wrapper-safe responsive layout fixes. */
.jf-section,
.jf-card,
.jf-step,
.jf-final-cta,
.jf-video-hero,
.jf-video-hero__content { box-sizing: border-box; }

.jf-section { position: relative; clear: both; width: 100%; overflow: clip; }

/* WordPress may inject an inner-container around Group block children.
   Put the grid on that generated wrapper so cards cannot overlap. */
.jf-card-grid,
.jf-steps { display: block; width: 100%; }
.jf-card-grid > .wp-block-group__inner-container,
.jf-steps > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
}
.jf-card-grid > .wp-block-group__inner-container > *,
.jf-steps > .wp-block-group__inner-container > * { min-width: 0; width: 100%; }

.jf-card { margin: 0; min-width: 0; }
.jf-step { margin: 0; min-width: 0; }

/* Keep hero content above media and contained on narrow screens. */
.jf-video-hero > .wp-block-group__inner-container { position: relative; width: 100%; }
.jf-video-hero__content { max-width: 1180px; }
.jf-video-hero__content > .wp-block-group__inner-container { width: 100%; max-width: 720px; }

@media (max-width: 699px) {
  .jf-section { padding: 2.75rem 1rem; }
  .jf-video-hero { min-height: 540px; }
  .jf-video-hero__content { width: calc(100% - 2rem); padding-block: 3rem; }
  .jf-video-hero h1 { font-size: clamp(2rem, 11vw, 3rem); line-height: 1.05; }
  .jf-btn-row { width: 100%; }
  .jf-btn-row .wp-block-button { width: 100%; }
  .jf-btn-row .wp-block-button__link { display: block; width: 100%; text-align: center; }
  .jf-comparison { width: 100%; max-width: 100%; }
}

@media (min-width: 700px) {
  .jf-card-grid.jf-3 > .wp-block-group__inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jf-card-grid.jf-4 > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jf-steps > .wp-block-group__inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .jf-card-grid.jf-4 > .wp-block-group__inner-container { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* v1.3.2: Home audience path cards are full-card links on pointer and keyboard input. */
.home .jf-card-grid.jf-3 .jf-path-card { cursor: pointer; }
.home .jf-card-grid.jf-3 .jf-path-card h3 a { color: inherit; text-decoration: none; }
.home .jf-card-grid.jf-3 .jf-path-card:hover h3 a,
.home .jf-card-grid.jf-3 .jf-path-card:focus h3 a { text-decoration: underline; }
.home .jf-card-grid.jf-3 .jf-path-card:focus { outline: 3px solid var(--jf-orange); outline-offset: 3px; }

/* Approved JoesFundraising footer */
.site-footer { display: none; }
.jf-site-footer {
	background: #053C81;
	color: #fff;
	padding: 3rem 1.25rem 1.25rem;
}
.jf-site-footer__inner {
	width: min(1120px, 100%);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(180px, .75fr) minmax(220px, .9fr);
	gap: 2.25rem;
}
.jf-site-footer h2,
.jf-site-footer h3 { color: #fff; margin-top: 0; }
.jf-site-footer h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
.jf-site-footer h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.jf-site-footer p { color: #fff; }
.jf-site-footer ul { list-style: none; margin: 0; padding: 0; }
.jf-site-footer li + li { margin-top: .55rem; }
.jf-site-footer a { color: #fff; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.jf-site-footer a:hover,
.jf-site-footer a:focus-visible { color: #fff; text-decoration-thickness: 2px; }
.jf-site-footer__cta {
	display: inline-block;
	background: #F59513;
	color: #111 !important;
	font-weight: 700;
	text-decoration: none !important;
	padding: .75rem 1rem;
	border-radius: .4rem;
}
.jf-site-footer__bottom {
	width: min(1120px, 100%);
	margin: 2.25rem auto 0;
	padding-top: 1.1rem;
	border-top: 1px solid rgba(255,255,255,.28);
	display: flex;
	justify-content: space-between;
	gap: 1rem 2rem;
	flex-wrap: wrap;
	font-size: .92rem;
}
.jf-site-footer__bottom p { margin: 0; }
@media (max-width: 760px) {
	.jf-site-footer { padding-top: 2.25rem; }
	.jf-site-footer__inner { grid-template-columns: 1fr; gap: 1.75rem; }
	.jf-site-footer__bottom { display: block; }
	.jf-site-footer__bottom p + p { margin-top: .7rem; }
}
